diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4ad47521..68982cde 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 482384cc-3b98-4ced-bd0b-14aa8b3e0053 management: - docChecksum: 444ed2cff1e48d9fce31d5a0c71b8ccb + docChecksum: c40d8a7dcfdb90f49c38faf3220a9633 docVersion: 1.0.0 - speakeasyVersion: 1.423.1 - generationVersion: 2.442.11 - releaseVersion: 0.2.46 - configChecksum: 323ad5862fdf534731d86f11d4444ea9 + speakeasyVersion: 1.424.0 + generationVersion: 2.445.1 + releaseVersion: 0.2.47 + configChecksum: 01ec730c43d1855c3b4a654848bb931e repoURL: https://github.com/StackOneHQ/stackone-client-ruby.git repoSubDirectory: . installationURL: https://github.com/StackOneHQ/stackone-client-ruby @@ -445,6 +445,7 @@ generatedFiles: - docs/models/operations/stackoneproxyrequestresponse.md - docs/models/operations/stackoneupdateaccountrequest.md - docs/models/operations/stackoneupdateaccountresponse.md + - docs/models/operations/status.md - docs/models/shared/account.md - docs/models/shared/accountaddress.md - docs/models/shared/accountaddressschemasvalue.md @@ -479,6 +480,7 @@ generatedFiles: - docs/models/shared/assignmentresult.md - docs/models/shared/assignmentspaginated.md - docs/models/shared/assignmentstatusenum.md + - docs/models/shared/assignmentvalue.md - docs/models/shared/atscreateapplicationrequestdto.md - docs/models/shared/atscreateapplicationrequestdtoapplicationstatus.md - docs/models/shared/atscreateapplicationrequestdtocandidate.md @@ -537,8 +539,10 @@ generatedFiles: - docs/models/shared/company.md - docs/models/shared/companyresult.md - docs/models/shared/completion.md + - docs/models/shared/completionlearningobjecttype.md - docs/models/shared/completionresult.md - docs/models/shared/completionschemasresult.md + - docs/models/shared/completionschemasvalue.md - docs/models/shared/completionspaginated.md - docs/models/shared/completionvalue.md - docs/models/shared/confidential.md @@ -839,8 +843,7 @@ generatedFiles: - docs/models/shared/jobstatus.md - docs/models/shared/jobvalue.md - docs/models/shared/label.md - - docs/models/shared/learningobjecttypeenum.md - - docs/models/shared/learningobjecttypeenumvalue.md + - docs/models/shared/learningobjecttype.md - docs/models/shared/level.md - docs/models/shared/linkedaccount.md - docs/models/shared/linkedaccountmeta.md @@ -1434,6 +1437,7 @@ generatedFiles: - lib/stack_one/models/operations/stackone_proxy_request_response.rb - lib/stack_one/models/operations/stackone_update_account_request.rb - lib/stack_one/models/operations/stackone_update_account_response.rb + - lib/stack_one/models/operations/status.rb - lib/stack_one/models/shared.rb - lib/stack_one/models/shared/account.rb - lib/stack_one/models/shared/accountaddress.rb @@ -1466,6 +1470,7 @@ generatedFiles: - lib/stack_one/models/shared/assessmentsresults_value.rb - lib/stack_one/models/shared/assessmentsresultsresult.rb - lib/stack_one/models/shared/assignment.rb + - lib/stack_one/models/shared/assignment_value.rb - lib/stack_one/models/shared/assignmentresult.rb - lib/stack_one/models/shared/assignmentspaginated.rb - lib/stack_one/models/shared/assignmentstatusenum.rb @@ -1527,7 +1532,9 @@ generatedFiles: - lib/stack_one/models/shared/company.rb - lib/stack_one/models/shared/companyresult.rb - lib/stack_one/models/shared/completion.rb + - lib/stack_one/models/shared/completion_learning_object_type.rb - lib/stack_one/models/shared/completion_schemas_result.rb + - lib/stack_one/models/shared/completion_schemas_value.rb - lib/stack_one/models/shared/completion_value.rb - lib/stack_one/models/shared/completionresult.rb - lib/stack_one/models/shared/completionspaginated.rb @@ -1829,8 +1836,7 @@ generatedFiles: - lib/stack_one/models/shared/jobresult.rb - lib/stack_one/models/shared/jobspaginated.rb - lib/stack_one/models/shared/label.rb - - lib/stack_one/models/shared/learningobjecttypeenum.rb - - lib/stack_one/models/shared/learningobjecttypeenum_value.rb + - lib/stack_one/models/shared/learning_object_type.rb - lib/stack_one/models/shared/level.rb - lib/stack_one/models/shared/linkedaccount.rb - lib/stack_one/models/shared/linkedaccount_status.rb @@ -3467,7 +3473,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"active": true, "categories": [{"active": true, "name": "Information-Technology", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}}], "content_url": "https://www.youtube.com/watch?v=16873", "course_ids": ["16873-SOFTWARE-ENG-COURSE"], "cover_url": "https://www.googledrive.com/?v=16873", "description": "This video acts as learning content for software engineers.", "duration": "P3Y6M4DT12H30M5S", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "languages": [], "order": 1, "title": "Software Engineer Lv 1", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}} + application/json: {"active": true, "categories": [{"active": true, "name": "Information-Technology", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}}], "content_url": "https://www.youtube.com/watch?v=16873", "course_ids": ["16873-SOFTWARE-ENG-COURSE"], "cover_url": "https://www.googledrive.com/?v=16873", "description": "This video acts as learning content for software engineers.", "duration": "P3Y6M4DT12H30M5S", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "languages": [], "order": 1, "skills": [{"active": true, "id": "16873-IT345", "name": "Information-Technology", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}], "title": "Software Engineer Lv 1", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}} responses: "201": application/json: {"data": {"external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}, "message": "Record created successfully.", "statusCode": 201, "timestamp": "2021-01-01T01:01:01.000Z"} @@ -3516,14 +3522,14 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"completed_at": "2021-07-21T14:00:00.000Z", "content_external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT", "content_id": "16873-ENG-VIDEO-1", "course_id": "16873-ENG-COURSE-1", "created_at": "2021-07-21T14:00:00.000Z", "external_id": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION", "id": "123456", "remote_content_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_course_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_external_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "updated_at": "2021-07-21T14:00:00.000Z", "user_id": "c28xyrc55866bvuv"}} + application/json: {"data": {"completed_at": "2021-07-21T14:00:00.000Z", "content_external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT", "content_id": "16873-ENG-VIDEO-1", "course_id": "16873-ENG-COURSE-1", "created_at": "2021-07-21T14:00:00.000Z", "external_id": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION", "id": "123456", "learning_object_external_reference": "e3gd34-23tr21-er234-345er56", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_content_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_course_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_external_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "updated_at": "2021-07-21T14:00:00.000Z", "user_id": "c28xyrc55866bvuv"}} lms_get_content: "": parameters: path: id: "" query: - fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method" + fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at" header: x-account-id: "" responses: @@ -3588,7 +3594,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"completed_at": "2021-07-21T14:00:00.000Z", "content_external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT", "content_id": "16873-ENG-VIDEO-1", "course_id": "16873-ENG-COURSE-1", "created_at": "2021-07-21T14:00:00.000Z", "external_id": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION", "id": "123456", "remote_content_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_course_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_external_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "updated_at": "2021-07-21T14:00:00.000Z", "user_id": "c28xyrc55866bvuv"}} + application/json: {"data": {"completed_at": "2021-07-21T14:00:00.000Z", "content_external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT", "content_id": "16873-ENG-VIDEO-1", "course_id": "16873-ENG-COURSE-1", "created_at": "2021-07-21T14:00:00.000Z", "external_id": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION", "id": "123456", "learning_object_external_reference": "e3gd34-23tr21-er234-345er56", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_content_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_course_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_external_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "updated_at": "2021-07-21T14:00:00.000Z", "user_id": "c28xyrc55866bvuv"}} lms_list_assignments: "": parameters: @@ -3633,7 +3639,7 @@ examples: "": parameters: query: - fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method" + fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at" filter: {"updated_after": "2020-01-01T00:00:00.000Z"} updated_after: "2020-01-01T00:00:00.000Z" header: @@ -3717,7 +3723,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"active": true, "categories": [{"active": true, "name": "Information-Technology", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}}], "content_url": "https://www.youtube.com/watch?v=16873", "course_ids": ["16873-SOFTWARE-ENG-COURSE"], "cover_url": "https://www.googledrive.com/?v=16873", "description": "This video acts as learning content for software engineers.", "duration": "P3Y6M4DT12H30M5S", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "languages": [], "order": 1, "title": "Software Engineer Lv 1", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}} + application/json: {"active": true, "categories": [{"active": true, "name": "Information-Technology", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}}], "content_url": "https://www.youtube.com/watch?v=16873", "course_ids": ["16873-SOFTWARE-ENG-COURSE"], "cover_url": "https://www.googledrive.com/?v=16873", "description": "This video acts as learning content for software engineers.", "duration": "P3Y6M4DT12H30M5S", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "languages": [], "order": 1, "skills": [{"active": true, "id": "16873-IT345", "name": "Information-Technology", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}], "title": "Software Engineer Lv 1", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}} responses: "201": application/json: {"message": "Record updated successfully.", "statusCode": 200, "timestamp": "2021-01-01T01:01:01.000Z"} @@ -3727,7 +3733,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"active": true, "categories": [{"active": true, "name": "Information-Technology", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}}], "content_url": "https://www.youtube.com/watch?v=16873", "course_ids": ["16873-SOFTWARE-ENG-COURSE"], "cover_url": "https://www.googledrive.com/?v=16873", "description": "This video acts as learning content for software engineers.", "duration": "P3Y6M4DT12H30M5S", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "languages": [], "order": 1, "title": "Software Engineer Lv 1", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}} + application/json: {"active": true, "categories": [{"active": true, "name": "Information-Technology", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}}], "content_url": "https://www.youtube.com/watch?v=16873", "course_ids": ["16873-SOFTWARE-ENG-COURSE"], "cover_url": "https://www.googledrive.com/?v=16873", "description": "This video acts as learning content for software engineers.", "duration": "P3Y6M4DT12H30M5S", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "languages": [], "order": 1, "skills": [{"active": true, "id": "16873-IT345", "name": "Information-Technology", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}], "title": "Software Engineer Lv 1", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}} responses: "201": application/json: {"data": {"external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}, "message": "Record created successfully.", "statusCode": 201, "timestamp": "2021-01-01T01:01:01.000Z"} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 80630aa3..25a5a8e2 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.423.1 +speakeasyVersion: 1.424.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:8190c8287054bb49d26dadb2cdaede9f217116681a921f3a9e29edf282743f20 - sourceBlobDigest: sha256:150dfc6785178a9da7577593fadf87e21ef7c8560c6c5028dd70e5c44ff2efe9 + sourceRevisionDigest: sha256:3b79b9979faae36bc0454c8d83d0e38691ca70d62c965718dd62486bdfa3e96b + sourceBlobDigest: sha256:795e363f528b1e0979843832521f931700f80a50ee902a8fcd8e86239c2c1357 tags: - latest - main @@ -11,10 +11,10 @@ targets: StackOneRubyClient: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:8190c8287054bb49d26dadb2cdaede9f217116681a921f3a9e29edf282743f20 - sourceBlobDigest: sha256:150dfc6785178a9da7577593fadf87e21ef7c8560c6c5028dd70e5c44ff2efe9 + sourceRevisionDigest: sha256:3b79b9979faae36bc0454c8d83d0e38691ca70d62c965718dd62486bdfa3e96b + sourceBlobDigest: sha256:795e363f528b1e0979843832521f931700f80a50ee902a8fcd8e86239c2c1357 codeSamplesNamespace: code-samples-ruby-stackonerubyclient - codeSamplesRevisionDigest: sha256:af327cb8e657de253ea054ed229d4821c0e09b1314520d7130e75d865091ce53 + codeSamplesRevisionDigest: sha256:b5bece82ee4e0677ace50a1a694c5191da0882e215a6a8385f669a07eb97f390 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 250a8342..543bcea7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -538,4 +538,14 @@ Based on: ### Generated - [ruby v0.2.46] . ### Releases -- [Ruby Gems v0.2.46] https://rubygems.org/gems/stackone_client/versions/0.2.46 - . \ No newline at end of file +- [Ruby Gems v0.2.46] https://rubygems.org/gems/stackone_client/versions/0.2.46 - . + +## 2024-11-04 09:01:17 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.424.0 (2.445.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.47] . +### Releases +- [Ruby Gems v0.2.47] https://rubygems.org/gems/stackone_client/versions/0.2.47 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 223096ab..8e86aa61 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -794,25 +794,25 @@ actions: x-codeSamples: - lang: ruby label: lms_list_content - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n\nreq = ::StackOne::Operations::LmsListContentRequest.new(\n fields_: \"id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method\",\n filter: ::StackOne::Operations::LmsListContentQueryParamFilter.new(\n updated_after: \"2020-01-01T00:00:00.000Z\",\n ),\n x_account_id: \"\",\n)\n \nres = s.lms.list_content(req)\n\nif ! res.content_paginated.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n\nreq = ::StackOne::Operations::LmsListContentRequest.new(\n fields_: \"id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at\",\n filter: ::StackOne::Operations::LmsListContentQueryParamFilter.new(\n updated_after: \"2020-01-01T00:00:00.000Z\",\n ),\n x_account_id: \"\",\n)\n \nres = s.lms.list_content(req)\n\nif ! res.content_paginated.nil?\n # handle response\nend" - target: $["paths"]["/unified/lms/content"]["post"] update: x-codeSamples: - lang: ruby label: lms_create_content - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.create_content(x_account_id=\"\", lms_create_content_request_dto=::StackOne::Shared::LmsCreateContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n content_launch_method: ::StackOne::Shared::LmsCreateContentRequestDtoContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n))\n\nif ! res.create_result.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.create_content(x_account_id=\"\", lms_create_content_request_dto=::StackOne::Shared::LmsCreateContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n skills: [\n ::StackOne::Shared::Skills.new(\n id: \"12345\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Sales Techniques\",\n active: true,\n ),\n ],\n content_launch_method: ::StackOne::Shared::LmsCreateContentRequestDtoContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n))\n\nif ! res.create_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/lms/content"]["put"] update: x-codeSamples: - lang: ruby label: lms_upsert_content - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.upsert_content(x_account_id=\"\", lms_upsert_content_request_dto=::StackOne::Shared::LmsUpsertContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n content_launch_method: ::StackOne::Shared::ContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n))\n\nif ! res.create_result.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.upsert_content(x_account_id=\"\", lms_upsert_content_request_dto=::StackOne::Shared::LmsUpsertContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n skills: [\n ::StackOne::Shared::Skills.new(\n id: \"12345\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Sales Techniques\",\n active: true,\n ),\n ],\n content_launch_method: ::StackOne::Shared::ContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n))\n\nif ! res.create_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/lms/content/batch"]["post"] update: x-codeSamples: - lang: ruby label: lms_batch_upsert_content - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.batch_upsert_content(x_account_id=\"\", lms_batch_upsert_content_request_dto=::StackOne::Shared::LmsBatchUpsertContentRequestDto.new(\n items: [\n ::StackOne::Shared::LmsUpsertContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n content_launch_method: ::StackOne::Shared::ContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n ),\n ],\n))\n\nif ! res.batch_result_api_model.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.batch_upsert_content(x_account_id=\"\", lms_batch_upsert_content_request_dto=::StackOne::Shared::LmsBatchUpsertContentRequestDto.new(\n items: [\n ::StackOne::Shared::LmsUpsertContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n skills: [\n ::StackOne::Shared::Skills.new(\n id: \"12345\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Sales Techniques\",\n active: true,\n ),\n ],\n content_launch_method: ::StackOne::Shared::ContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n ),\n ],\n))\n\nif ! res.batch_result_api_model.nil?\n # handle response\nend" - target: $["paths"]["/unified/lms/content/{id}"]["delete"] update: x-codeSamples: @@ -824,13 +824,13 @@ actions: x-codeSamples: - lang: ruby label: lms_get_content - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n\nreq = ::StackOne::Operations::LmsGetContentRequest.new(\n id: \"\",\n fields_: \"id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method\",\n x_account_id: \"\",\n)\n \nres = s.lms.get_content(req)\n\nif ! res.content_result.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n\nreq = ::StackOne::Operations::LmsGetContentRequest.new(\n id: \"\",\n fields_: \"id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at\",\n x_account_id: \"\",\n)\n \nres = s.lms.get_content(req)\n\nif ! res.content_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/lms/content/{id}"]["patch"] update: x-codeSamples: - lang: ruby label: lms_update_content - source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.update_content(id=\"\", x_account_id=\"\", lms_create_content_request_dto=::StackOne::Shared::LmsCreateContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n content_launch_method: ::StackOne::Shared::LmsCreateContentRequestDtoContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n))\n\nif ! res.update_result.nil?\n # handle response\nend" + source: "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.lms.update_content(id=\"\", x_account_id=\"\", lms_create_content_request_dto=::StackOne::Shared::LmsCreateContentRequestDto.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n external_reference: \"SOFTWARE-ENG-LV1-TRAINING-VIDEO-1\",\n course_ids: [\n \"16873-SOFTWARE-ENG-COURSE\",\n ],\n title: \"Software Engineer Lv 1\",\n description: \"This video acts as learning content for software engineers.\",\n languages: [\n ::StackOne::Shared::ContentLanguageEnum.new(\n value: ::StackOne::Shared::ContentLanguageEnumValue::EN_GB,\n ),\n ],\n content_url: \"https://www.youtube.com/watch?v=16873\",\n cover_url: \"https://www.googledrive.com/?v=16873\",\n active: true,\n duration: \"P3Y6M4DT12H30M5S\",\n skills: [\n ::StackOne::Shared::Skills.new(\n id: \"12345\",\n remote_id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n name: \"Sales Techniques\",\n active: true,\n ),\n ],\n content_launch_method: ::StackOne::Shared::LmsCreateContentRequestDtoContentLaunchMethod.new(),\n order: 1.0,\n categories: [\n ::StackOne::Shared::CreateCategoriesApiModel.new(\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n name: \"Technology\",\n active: true,\n ),\n ],\n))\n\nif ! res.update_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/lms/courses"]["get"] update: x-codeSamples: diff --git a/docs/models/operations/atslistjobsqueryparamfilter.md b/docs/models/operations/atslistjobsqueryparamfilter.md index 7d3b135f..040a5cc4 100644 --- a/docs/models/operations/atslistjobsqueryparamfilter.md +++ b/docs/models/operations/atslistjobsqueryparamfilter.md @@ -1,10 +1,11 @@ # AtsListJobsQueryParamFilter -Filter parameters that allow greater customisation of the list response +ATS Jobs filters ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `updated_after` | *T.nilable(::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 +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `status` | [T.nilable(::StackOne::Operations::Status)](../../models/operations/status.md) | :heavy_minus_sign: | The status of the job | | +| `updated_after` | *T.nilable(::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/atslistjobsrequest.md b/docs/models/operations/atslistjobsrequest.md index 94877907..c7690212 100644 --- a/docs/models/operations/atslistjobsrequest.md +++ b/docs/models/operations/atslistjobsrequest.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `expand` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be expanded in the response | job_postings,interview_stages | | `fields_` | *T.nilable(::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,code,title,status,job_status,department_ids,remote_department_ids,location_ids,remote_location_ids,hiring_team,interview_stages,confidential,custom_fields,created_at,updated_at | -| `filter` | [T.nilable(::StackOne::Operations::AtsListJobsQueryParamFilter)](../../models/operations/atslistjobsqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | +| `filter` | [T.nilable(::StackOne::Operations::AtsListJobsQueryParamFilter)](../../models/operations/atslistjobsqueryparamfilter.md) | :heavy_minus_sign: | ATS Jobs filters | | | `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | custom_fields | | `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | | ~~`page`~~ | *T.nilable(::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 | | diff --git a/docs/models/operations/lmsgetcontentrequest.md b/docs/models/operations/lmsgetcontentrequest.md index 95eb4541..d7daad5d 100644 --- a/docs/models/operations/lmsgetcontentrequest.md +++ b/docs/models/operations/lmsgetcontentrequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `fields_` | *T.nilable(::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,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result is returned | | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `fields_` | *T.nilable(::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,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at | +| `id` | *::String* | :heavy_check_mark: | N/A | | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result is returned | | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file diff --git a/docs/models/operations/lmslistcontentrequest.md b/docs/models/operations/lmslistcontentrequest.md index b94ed8d5..fd573dc0 100644 --- a/docs/models/operations/lmslistcontentrequest.md +++ b/docs/models/operations/lmslistcontentrequest.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `fields_` | *T.nilable(::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,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method | -| `filter` | [T.nilable(::StackOne::Operations::LmsListContentQueryParamFilter)](../../models/operations/lmslistcontentqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | -| ~~`page`~~ | *T.nilable(::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 | | -| `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page | | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result is returned | | -| ~~`updated_after`~~ | *T.nilable(::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 | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `fields_` | *T.nilable(::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,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at | +| `filter` | [T.nilable(::StackOne::Operations::LmsListContentQueryParamFilter)](../../models/operations/lmslistcontentqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | +| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | +| ~~`page`~~ | *T.nilable(::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 | | +| `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page | | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result is returned | | +| ~~`updated_after`~~ | *T.nilable(::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 | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file diff --git a/docs/models/operations/status.md b/docs/models/operations/status.md new file mode 100644 index 00000000..f63181e4 --- /dev/null +++ b/docs/models/operations/status.md @@ -0,0 +1,10 @@ +# Status + +The status of the job + + +## Values + +| Name | Value | +| ------ | ------ | +| `OPEN` | open | \ No newline at end of file diff --git a/docs/models/shared/assignment.md b/docs/models/shared/assignment.md index d6f37551..91ec5cdd 100644 --- a/docs/models/shared/assignment.md +++ b/docs/models/shared/assignment.md @@ -3,21 +3,21 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `course_id` | *T.nilable(::String)* | :heavy_minus_sign: | The course ID associated with this assignment | 16873-ENG-1 | -| `created_at` | *T.nilable(::String)* | :heavy_minus_sign: | The date the assignment was created | 2021-07-21T14:00:00.000Z | -| `due_date` | *T.nilable(::String)* | :heavy_minus_sign: | The date the assignment is due to be completed | 2021-07-21T14:00:00.000Z | -| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID associated with this assignment | 123456 | -| `learning_object_external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The learning_object_external_reference associated with this assignment | e3gd34-23tr21-er234-345er56 | -| `learning_object_id` | *T.nilable(::String)* | :heavy_minus_sign: | The learning_object_id associated with this assignment | e3gd34-23tr21-er234-345er56 | -| `learning_object_type` | T::Array<[::StackOne::Shared::LearningObjectTypeEnum](../../models/shared/learningobjecttypeenum.md)> | :heavy_minus_sign: | The learning object type of the assignment | | -| `progress` | *T.nilable(::Float)* | :heavy_minus_sign: | The progress associated with this assigment | 40 | -| `remote_course_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the course related to the assignment | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | -| `remote_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | -| `remote_learning_object_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the learning object related to the assignment | e3cb55bf-aa84-466e-a6c1-b8302b257a49 | -| `remote_user_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the user related to the assignment | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | -| `status` | T::Array<[::StackOne::Shared::AssignmentStatusEnum](../../models/shared/assignmentstatusenum.md)> | :heavy_minus_sign: | The status of the assignment | | -| `unified_custom_fields` | T::Hash[Symbol, *::Object*] | :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"
} | -| `updated_at` | *T.nilable(::String)* | :heavy_minus_sign: | The date the assignment was last updated | 2021-07-21T14:00:00.000Z | -| `user_id` | *T.nilable(::String)* | :heavy_minus_sign: | The user ID associated with this assignment | c28xyrc55866bvuv | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `course_id` | *T.nilable(::String)* | :heavy_minus_sign: | The course ID associated with this assignment | 16873-ENG-1 | +| `created_at` | *T.nilable(::String)* | :heavy_minus_sign: | The date the assignment was created | 2021-07-21T14:00:00.000Z | +| `due_date` | *T.nilable(::String)* | :heavy_minus_sign: | The date the assignment is due to be completed | 2021-07-21T14:00:00.000Z | +| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID associated with this assignment | 123456 | +| `learning_object_external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The learning_object_external_reference associated with this assignment | e3gd34-23tr21-er234-345er56 | +| `learning_object_id` | *T.nilable(::String)* | :heavy_minus_sign: | The learning_object_id associated with this assignment | e3gd34-23tr21-er234-345er56 | +| `learning_object_type` | [T.nilable(::StackOne::Shared::LearningObjectType)](../../models/shared/learningobjecttype.md) | :heavy_minus_sign: | The learning object type of the assignment | | +| `progress` | *T.nilable(::Float)* | :heavy_minus_sign: | The progress associated with this assigment | 40 | +| `remote_course_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the course related to the assignment | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | +| `remote_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `remote_learning_object_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the learning object related to the assignment | e3cb55bf-aa84-466e-a6c1-b8302b257a49 | +| `remote_user_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the user related to the assignment | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | +| `status` | T::Array<[::StackOne::Shared::AssignmentStatusEnum](../../models/shared/assignmentstatusenum.md)> | :heavy_minus_sign: | The status of the assignment | | +| `unified_custom_fields` | T::Hash[Symbol, *::Object*] | :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"
} | +| `updated_at` | *T.nilable(::String)* | :heavy_minus_sign: | The date the assignment was last updated | 2021-07-21T14:00:00.000Z | +| `user_id` | *T.nilable(::String)* | :heavy_minus_sign: | The user ID associated with this assignment | c28xyrc55866bvuv | \ No newline at end of file diff --git a/docs/models/shared/learningobjecttypeenumvalue.md b/docs/models/shared/assignmentvalue.md similarity index 85% rename from docs/models/shared/learningobjecttypeenumvalue.md rename to docs/models/shared/assignmentvalue.md index 51dc1e6a..82457df7 100644 --- a/docs/models/shared/learningobjecttypeenumvalue.md +++ b/docs/models/shared/assignmentvalue.md @@ -1,4 +1,4 @@ -# LearningObjectTypeEnumValue +# AssignmentValue ## Values diff --git a/docs/models/shared/completion.md b/docs/models/shared/completion.md index e7ff1497..1d7b94f0 100644 --- a/docs/models/shared/completion.md +++ b/docs/models/shared/completion.md @@ -3,21 +3,25 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `completed_at` | *T.nilable(::String)* | :heavy_minus_sign: | The date the content was completed | 2021-07-21T14:00:00.000Z | -| `content_external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The external reference associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT | -| `content_id` | *T.nilable(::String)* | :heavy_minus_sign: | The content ID associated with this completion | 16873-ENG-VIDEO-1 | -| `course_id` | *T.nilable(::String)* | :heavy_minus_sign: | The course ID associated with this completion | 16873-ENG-COURSE-1 | -| `created_at` | *T.nilable(::String)* | :heavy_minus_sign: | The created date of the completion | 2021-07-21T14:00:00.000Z | -| `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The external ID associated with this completion | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION | -| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID associated with this completion | 123456 | -| `remote_content_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the content associated with the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | -| `remote_course_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the course associated with the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | -| `remote_external_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the content external reference | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | -| `remote_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | -| `remote_user_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the user related to the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | -| `result` | [T.nilable(::StackOne::Shared::CompletionSchemasResult)](../../models/shared/completionschemasresult.md) | :heavy_minus_sign: | The result of the completion | | -| `unified_custom_fields` | T::Hash[Symbol, *::Object*] | :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"
} | -| `updated_at` | *T.nilable(::String)* | :heavy_minus_sign: | The updated date of the completion | 2021-07-21T14:00:00.000Z | -| `user_id` | *T.nilable(::String)* | :heavy_minus_sign: | The user ID associated with this completion | c28xyrc55866bvuv | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `completed_at` | *T.nilable(::String)* | :heavy_minus_sign: | The date the content was completed | 2021-07-21T14:00:00.000Z | +| `content_external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The external reference associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT | +| `content_id` | *T.nilable(::String)* | :heavy_minus_sign: | The content ID associated with this completion | 16873-ENG-VIDEO-1 | +| `course_id` | *T.nilable(::String)* | :heavy_minus_sign: | The course ID associated with this completion | 16873-ENG-COURSE-1 | +| `created_at` | *T.nilable(::String)* | :heavy_minus_sign: | The created date of the completion | 2021-07-21T14:00:00.000Z | +| `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The external ID associated with this completion | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION | +| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID associated with this completion | 123456 | +| `learning_object_external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The learning_object_external_reference associated with this assignment | e3gd34-23tr21-er234-345er56 | +| `learning_object_id` | *T.nilable(::String)* | :heavy_minus_sign: | The learning_object_id associated with this assignment | e3gd34-23tr21-er234-345er56 | +| `learning_object_type` | [T.nilable(::StackOne::Shared::CompletionLearningObjectType)](../../models/shared/completionlearningobjecttype.md) | :heavy_minus_sign: | The learning object type of the assignment | | +| `remote_content_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the content associated with the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | +| `remote_course_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the course associated with the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | +| `remote_external_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the content external reference | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | +| `remote_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `remote_learning_object_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the learning object related to the assignment | e3cb55bf-aa84-466e-a6c1-b8302b257a49 | +| `remote_user_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier of the user related to the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | +| `result` | [T.nilable(::StackOne::Shared::CompletionSchemasResult)](../../models/shared/completionschemasresult.md) | :heavy_minus_sign: | The result of the completion | | +| `unified_custom_fields` | T::Hash[Symbol, *::Object*] | :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"
} | +| `updated_at` | *T.nilable(::String)* | :heavy_minus_sign: | The updated date of the completion | 2021-07-21T14:00:00.000Z | +| `user_id` | *T.nilable(::String)* | :heavy_minus_sign: | The user ID associated with this completion | c28xyrc55866bvuv | \ No newline at end of file diff --git a/docs/models/shared/completionlearningobjecttype.md b/docs/models/shared/completionlearningobjecttype.md new file mode 100644 index 00000000..98f0ae13 --- /dev/null +++ b/docs/models/shared/completionlearningobjecttype.md @@ -0,0 +1,11 @@ +# CompletionLearningObjectType + +The learning object type of the assignment + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `source_value` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | +| `value` | [T.nilable(::StackOne::Shared::CompletionValue)](../../models/shared/completionvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/completionschemasresult.md b/docs/models/shared/completionschemasresult.md index ea7d54e5..6e3741ac 100644 --- a/docs/models/shared/completionschemasresult.md +++ b/docs/models/shared/completionschemasresult.md @@ -5,7 +5,7 @@ The result of the completion ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `source_value` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | -| `value` | [T.nilable(::StackOne::Shared::CompletionValue)](../../models/shared/completionvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `source_value` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | +| `value` | [T.nilable(::StackOne::Shared::CompletionSchemasValue)](../../models/shared/completionschemasvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/completionschemasvalue.md b/docs/models/shared/completionschemasvalue.md new file mode 100644 index 00000000..d825c309 --- /dev/null +++ b/docs/models/shared/completionschemasvalue.md @@ -0,0 +1,9 @@ +# CompletionSchemasValue + + +## Values + +| Name | Value | +| ------ | ------ | +| `PASS` | Pass | +| `FAIL` | Fail | \ No newline at end of file diff --git a/docs/models/shared/completionvalue.md b/docs/models/shared/completionvalue.md index 5603dbde..415e2a8f 100644 --- a/docs/models/shared/completionvalue.md +++ b/docs/models/shared/completionvalue.md @@ -3,7 +3,8 @@ ## Values -| Name | Value | -| ------ | ------ | -| `PASS` | Pass | -| `FAIL` | Fail | \ No newline at end of file +| Name | Value | +| ------------ | ------------ | +| `CONTENT` | content | +| `COURSE` | course | +| `COLLECTION` | collection | \ No newline at end of file diff --git a/docs/models/shared/employeeschemasnationalidentitynumbertypevalue.md b/docs/models/shared/employeeschemasnationalidentitynumbertypevalue.md index 324bc8ed..2cc16bcf 100644 --- a/docs/models/shared/employeeschemasnationalidentitynumbertypevalue.md +++ b/docs/models/shared/employeeschemasnationalidentitynumbertypevalue.md @@ -12,6 +12,7 @@ The type of the national identity number | `SIN` | sin | | `NID` | nid | | `PIN` | pin | +| `PN` | pn | | `UMCN` | umcn | | `PIC` | pic | | `RIC` | ric | @@ -22,6 +23,7 @@ The type of the national identity number | `AADHAAR` | aadhaar | | `EPIC` | epic | | `PTN` | ptn | +| `ITIN` | itin | | `TIN` | tin | | `UPRC` | uprc | | `PCODE` | pcode | diff --git a/docs/models/shared/hriscreateemployeerequestdtoschemasnationalidentitynumbertypevalue.md b/docs/models/shared/hriscreateemployeerequestdtoschemasnationalidentitynumbertypevalue.md index f46d976f..777708b9 100644 --- a/docs/models/shared/hriscreateemployeerequestdtoschemasnationalidentitynumbertypevalue.md +++ b/docs/models/shared/hriscreateemployeerequestdtoschemasnationalidentitynumbertypevalue.md @@ -12,6 +12,7 @@ The type of the national identity number | `SIN` | sin | | `NID` | nid | | `PIN` | pin | +| `PN` | pn | | `UMCN` | umcn | | `PIC` | pic | | `RIC` | ric | @@ -22,6 +23,7 @@ The type of the national identity number | `AADHAAR` | aadhaar | | `EPIC` | epic | | `PTN` | ptn | +| `ITIN` | itin | | `TIN` | tin | | `UPRC` | uprc | | `PCODE` | pcode | diff --git a/docs/models/shared/learningobjecttype.md b/docs/models/shared/learningobjecttype.md new file mode 100644 index 00000000..58a31bca --- /dev/null +++ b/docs/models/shared/learningobjecttype.md @@ -0,0 +1,11 @@ +# LearningObjectType + +The learning object type of the assignment + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `source_value` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | +| `value` | [T.nilable(::StackOne::Shared::AssignmentValue)](../../models/shared/assignmentvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/learningobjecttypeenum.md b/docs/models/shared/learningobjecttypeenum.md deleted file mode 100644 index 8735467a..00000000 --- a/docs/models/shared/learningobjecttypeenum.md +++ /dev/null @@ -1,9 +0,0 @@ -# LearningObjectTypeEnum - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `source_value` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | -| `value` | [T.nilable(::StackOne::Shared::LearningObjectTypeEnumValue)](../../models/shared/learningobjecttypeenumvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/lmscreatecontentrequestdto.md b/docs/models/shared/lmscreatecontentrequestdto.md index 24c7001c..5be55019 100644 --- a/docs/models/shared/lmscreatecontentrequestdto.md +++ b/docs/models/shared/lmscreatecontentrequestdto.md @@ -17,5 +17,6 @@ | `external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The external ID associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1 | | `languages` | T::Array<[::StackOne::Shared::ContentLanguageEnum](../../models/shared/contentlanguageenum.md)> | :heavy_minus_sign: | The languages associated with this content | | | `order` | *T.nilable(::Float)* | :heavy_minus_sign: | The order of the individual content within a content grouping. This is not applicable for pushing individual content. | 1 | +| `skills` | T::Array<[::StackOne::Shared::Skills](../../models/shared/skills.md)> | :heavy_minus_sign: | The skills associated with this course | [
{
"id": "12345",
"name": "Sales Techniques"
}
] | | `title` | *T.nilable(::String)* | :heavy_minus_sign: | The title of the content | Software Engineer Lv 1 | | `unified_custom_fields` | T::Hash[Symbol, *::Object*] | :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"
} | \ No newline at end of file diff --git a/docs/models/shared/lmsupsertcontentrequestdto.md b/docs/models/shared/lmsupsertcontentrequestdto.md index 5817851c..5b7587b2 100644 --- a/docs/models/shared/lmsupsertcontentrequestdto.md +++ b/docs/models/shared/lmsupsertcontentrequestdto.md @@ -17,5 +17,6 @@ | `external_reference` | *T.nilable(::String)* | :heavy_minus_sign: | The external ID associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1 | | `languages` | T::Array<[::StackOne::Shared::ContentLanguageEnum](../../models/shared/contentlanguageenum.md)> | :heavy_minus_sign: | The languages associated with this content | | | `order` | *T.nilable(::Float)* | :heavy_minus_sign: | The order of the individual content within a content grouping. This is not applicable for pushing individual content. | 1 | +| `skills` | T::Array<[::StackOne::Shared::Skills](../../models/shared/skills.md)> | :heavy_minus_sign: | The skills associated with this course | [
{
"id": "12345",
"name": "Sales Techniques"
}
] | | `title` | *T.nilable(::String)* | :heavy_minus_sign: | The title of the content | Software Engineer Lv 1 | | `unified_custom_fields` | T::Hash[Symbol, *::Object*] | :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"
} | \ No newline at end of file diff --git a/docs/sdks/lms/README.md b/docs/sdks/lms/README.md index 8433ef8a..dc3440df 100644 --- a/docs/sdks/lms/README.md +++ b/docs/sdks/lms/README.md @@ -77,6 +77,14 @@ res = s.lms.batch_upsert_content(lms_batch_upsert_content_request_dto=::StackOne ), ], order: 1.0, + skills: [ + ::StackOne::Shared::Skills.new( + active: true, + id: "12345", + name: "Sales Techniques", + remote_id: "8187e5da-dc77-475e-9949-af0f1fa4e4e3", + ), + ], title: "Software Engineer Lv 1", unified_custom_fields: { "my_project_custom_field_1": "REF-1236", @@ -151,6 +159,14 @@ res = s.lms.create_content(lms_create_content_request_dto=::StackOne::Shared::Lm ), ], order: 1.0, + skills: [ + ::StackOne::Shared::Skills.new( + active: true, + id: "12345", + name: "Sales Techniques", + remote_id: "8187e5da-dc77-475e-9949-af0f1fa4e4e3", + ), + ], title: "Software Engineer Lv 1", unified_custom_fields: { "my_project_custom_field_1": "REF-1236", @@ -419,7 +435,7 @@ s.config_security( req = ::StackOne::Operations::LmsGetContentRequest.new( - fields_: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method", + fields_: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at", id: "", x_account_id: "", ) @@ -832,7 +848,7 @@ s.config_security( req = ::StackOne::Operations::LmsListContentRequest.new( - fields_: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,order,content_launch_method", + fields_: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,categories,skills,order,content_launch_method,updated_at,created_at", filter: ::StackOne::Operations::LmsListContentQueryParamFilter.new( updated_after: "2020-01-01T00:00:00.000Z", ), @@ -1144,6 +1160,14 @@ res = s.lms.update_content(lms_create_content_request_dto=::StackOne::Shared::Lm ), ], order: 1.0, + skills: [ + ::StackOne::Shared::Skills.new( + active: true, + id: "12345", + name: "Sales Techniques", + remote_id: "8187e5da-dc77-475e-9949-af0f1fa4e4e3", + ), + ], title: "Software Engineer Lv 1", unified_custom_fields: { "my_project_custom_field_1": "REF-1236", @@ -1217,6 +1241,14 @@ res = s.lms.upsert_content(lms_upsert_content_request_dto=::StackOne::Shared::Lm ), ], order: 1.0, + skills: [ + ::StackOne::Shared::Skills.new( + active: true, + id: "12345", + name: "Sales Techniques", + remote_id: "8187e5da-dc77-475e-9949-af0f1fa4e4e3", + ), + ], title: "Software Engineer Lv 1", unified_custom_fields: { "my_project_custom_field_1": "REF-1236", diff --git a/gen.yaml b/gen.yaml index da080319..eedfde85 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false ruby: - version: 0.2.46 + version: 0.2.47 author: StackOne description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/lib/stack_one/models/operations.rb b/lib/stack_one/models/operations.rb index a62063f4..20be19cc 100644 --- a/lib/stack_one/models/operations.rb +++ b/lib/stack_one/models/operations.rb @@ -127,6 +127,7 @@ module Operations autoload :AtsListJobPostingsQueryParamFilter, 'stack_one/models/operations/ats_list_job_postings_queryparam_filter.rb' autoload :AtsListJobPostingsRequest, 'stack_one/models/operations/ats_list_job_postings_request.rb' autoload :AtsListJobPostingsResponse, 'stack_one/models/operations/ats_list_job_postings_response.rb' + autoload :Status, 'stack_one/models/operations/status.rb' autoload :AtsListJobsQueryParamFilter, 'stack_one/models/operations/ats_list_jobs_queryparam_filter.rb' autoload :AtsListJobsRequest, 'stack_one/models/operations/ats_list_jobs_request.rb' autoload :AtsListJobsResponse, 'stack_one/models/operations/ats_list_jobs_response.rb' diff --git a/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb b/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb index 7d2d2dff..98153a21 100644 --- a/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb +++ b/lib/stack_one/models/operations/ats_list_jobs_queryparam_filter.rb @@ -7,16 +7,19 @@ module StackOne module Operations - # Filter parameters that allow greater customisation of the list response + # ATS Jobs filters class AtsListJobsQueryParamFilter < ::StackOne::Utils::FieldAugmented extend T::Sig + # The status of the job + field :status, T.nilable(::StackOne::Operations::Status), { 'query_param': { 'field_name': 'status' } } # Use a string with a date to only select results updated after that given date field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } } - sig { params(updated_after: T.nilable(::String)).void } - def initialize(updated_after: nil) + sig { params(status: T.nilable(::StackOne::Operations::Status), updated_after: T.nilable(::String)).void } + def initialize(status: nil, updated_after: nil) + @status = status @updated_after = updated_after end end diff --git a/lib/stack_one/models/operations/ats_list_jobs_request.rb b/lib/stack_one/models/operations/ats_list_jobs_request.rb index 54e56075..932c6ab3 100644 --- a/lib/stack_one/models/operations/ats_list_jobs_request.rb +++ b/lib/stack_one/models/operations/ats_list_jobs_request.rb @@ -17,7 +17,7 @@ class AtsListJobsRequest < ::StackOne::Utils::FieldAugmented field :expand, T.nilable(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } } # The comma separated list of fields that will be returned in the response (if empty, all fields are returned) field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } } - # Filter parameters that allow greater customisation of the list response + # ATS Jobs filters field :filter, T.nilable(::StackOne::Operations::AtsListJobsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } } # The comma separated list of fields that will be included in the response field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } } diff --git a/lib/stack_one/models/operations/status.rb b/lib/stack_one/models/operations/status.rb new file mode 100644 index 00000000..c8a8f103 --- /dev/null +++ b/lib/stack_one/models/operations/status.rb @@ -0,0 +1,17 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Operations + + # Status - The status of the job + class Status < T::Enum + enums do + OPEN = new('open') + end + end + end +end diff --git a/lib/stack_one/models/shared.rb b/lib/stack_one/models/shared.rb index e08258f8..4704eb18 100644 --- a/lib/stack_one/models/shared.rb +++ b/lib/stack_one/models/shared.rb @@ -458,6 +458,9 @@ module Shared autoload :LmsUpsertContentRequestDtoSchemasValue, 'stack_one/models/shared/lmsupsertcontentrequestdto_schemas_value.rb' autoload :LmsUpsertContentRequestDtoContentType, 'stack_one/models/shared/lmsupsertcontentrequestdto_content_type.rb' autoload :LmsUpsertContentRequestDto, 'stack_one/models/shared/lmsupsertcontentrequestdto.rb' + autoload :SkillsValue, 'stack_one/models/shared/skills_value.rb' + autoload :SkillsLevel, 'stack_one/models/shared/skills_level.rb' + autoload :Skills, 'stack_one/models/shared/skills.rb' autoload :ContentLanguageEnumValue, 'stack_one/models/shared/contentlanguageenum_value.rb' autoload :ContentLanguageEnum, 'stack_one/models/shared/contentlanguageenum.rb' autoload :CreateCategoriesApiModelValue, 'stack_one/models/shared/createcategoriesapimodel_value.rb' @@ -473,17 +476,19 @@ module Shared autoload :LmsCreateCompletionRequestDto, 'stack_one/models/shared/lmscreatecompletionrequestdto.rb' autoload :DeleteResult, 'stack_one/models/shared/deleteresult.rb' autoload :AssignmentResult, 'stack_one/models/shared/assignmentresult.rb' + autoload :AssignmentValue, 'stack_one/models/shared/assignment_value.rb' + autoload :LearningObjectType, 'stack_one/models/shared/learning_object_type.rb' autoload :Assignment, 'stack_one/models/shared/assignment.rb' autoload :Value, 'stack_one/models/shared/value.rb' autoload :AssignmentStatusEnum, 'stack_one/models/shared/assignmentstatusenum.rb' - autoload :LearningObjectTypeEnumValue, 'stack_one/models/shared/learningobjecttypeenum_value.rb' - autoload :LearningObjectTypeEnum, 'stack_one/models/shared/learningobjecttypeenum.rb' autoload :CategoryResult, 'stack_one/models/shared/categoryresult.rb' autoload :CategoryValue, 'stack_one/models/shared/category_value.rb' autoload :Level, 'stack_one/models/shared/level.rb' autoload :Category, 'stack_one/models/shared/category.rb' autoload :CompletionResult, 'stack_one/models/shared/completionresult.rb' autoload :CompletionValue, 'stack_one/models/shared/completion_value.rb' + autoload :CompletionLearningObjectType, 'stack_one/models/shared/completion_learning_object_type.rb' + autoload :CompletionSchemasValue, 'stack_one/models/shared/completion_schemas_value.rb' autoload :CompletionSchemasResult, 'stack_one/models/shared/completion_schemas_result.rb' autoload :Completion, 'stack_one/models/shared/completion.rb' autoload :ContentResult, 'stack_one/models/shared/contentresult.rb' @@ -493,9 +498,6 @@ module Shared autoload :CourseSchemasValue, 'stack_one/models/shared/course_schemas_value.rb' autoload :CourseType, 'stack_one/models/shared/course_type.rb' autoload :Course, 'stack_one/models/shared/course.rb' - autoload :SkillsValue, 'stack_one/models/shared/skills_value.rb' - autoload :SkillsLevel, 'stack_one/models/shared/skills_level.rb' - autoload :Skills, 'stack_one/models/shared/skills.rb' autoload :SkillResult, 'stack_one/models/shared/skillresult.rb' autoload :AssignmentsPaginated, 'stack_one/models/shared/assignmentspaginated.rb' autoload :CategoriesPaginated, 'stack_one/models/shared/categoriespaginated.rb' diff --git a/lib/stack_one/models/shared/assignment.rb b/lib/stack_one/models/shared/assignment.rb index 0da17771..ed205c5d 100644 --- a/lib/stack_one/models/shared/assignment.rb +++ b/lib/stack_one/models/shared/assignment.rb @@ -24,7 +24,7 @@ class Assignment < ::StackOne::Utils::FieldAugmented # The learning_object_id associated with this assignment field :learning_object_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_id') } } # The learning object type of the assignment - field :learning_object_type, T.nilable(T::Array[::StackOne::Shared::LearningObjectTypeEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_type') } } + field :learning_object_type, T.nilable(::StackOne::Shared::LearningObjectType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_type') } } # The progress associated with this assigment field :progress, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('progress') } } # Provider's unique identifier of the course related to the assignment @@ -45,7 +45,7 @@ class Assignment < ::StackOne::Utils::FieldAugmented field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } } - sig { params(course_id: T.nilable(::String), created_at: T.nilable(::String), due_date: T.nilable(::String), id: T.nilable(::String), learning_object_external_reference: T.nilable(::String), learning_object_id: T.nilable(::String), learning_object_type: T.nilable(T::Array[::StackOne::Shared::LearningObjectTypeEnum]), progress: T.nilable(::Float), remote_course_id: T.nilable(::String), remote_id: T.nilable(::String), remote_learning_object_id: T.nilable(::String), remote_user_id: T.nilable(::String), status: T.nilable(T::Array[::StackOne::Shared::AssignmentStatusEnum]), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), user_id: T.nilable(::String)).void } + sig { params(course_id: T.nilable(::String), created_at: T.nilable(::String), due_date: T.nilable(::String), id: T.nilable(::String), learning_object_external_reference: T.nilable(::String), learning_object_id: T.nilable(::String), learning_object_type: T.nilable(::StackOne::Shared::LearningObjectType), progress: T.nilable(::Float), remote_course_id: T.nilable(::String), remote_id: T.nilable(::String), remote_learning_object_id: T.nilable(::String), remote_user_id: T.nilable(::String), status: T.nilable(T::Array[::StackOne::Shared::AssignmentStatusEnum]), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), user_id: T.nilable(::String)).void } def initialize(course_id: nil, created_at: nil, due_date: nil, id: nil, learning_object_external_reference: nil, learning_object_id: nil, learning_object_type: nil, progress: nil, remote_course_id: nil, remote_id: nil, remote_learning_object_id: nil, remote_user_id: nil, status: nil, unified_custom_fields: nil, updated_at: nil, user_id: nil) @course_id = course_id @created_at = created_at diff --git a/lib/stack_one/models/shared/learningobjecttypeenum_value.rb b/lib/stack_one/models/shared/assignment_value.rb similarity index 86% rename from lib/stack_one/models/shared/learningobjecttypeenum_value.rb rename to lib/stack_one/models/shared/assignment_value.rb index a565b473..821340e3 100644 --- a/lib/stack_one/models/shared/learningobjecttypeenum_value.rb +++ b/lib/stack_one/models/shared/assignment_value.rb @@ -8,7 +8,7 @@ module StackOne module Shared - class LearningObjectTypeEnumValue < T::Enum + class AssignmentValue < T::Enum enums do CONTENT = new('content') COURSE = new('course') diff --git a/lib/stack_one/models/shared/completion.rb b/lib/stack_one/models/shared/completion.rb index 3fa7076c..ac760870 100644 --- a/lib/stack_one/models/shared/completion.rb +++ b/lib/stack_one/models/shared/completion.rb @@ -25,6 +25,12 @@ class Completion < ::StackOne::Utils::FieldAugmented field :external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('external_id') } } # The ID associated with this completion field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } + # The learning_object_external_reference associated with this assignment + field :learning_object_external_reference, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_external_reference') } } + # The learning_object_id associated with this assignment + field :learning_object_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_id') } } + # The learning object type of the assignment + field :learning_object_type, T.nilable(::StackOne::Shared::CompletionLearningObjectType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('learning_object_type') } } # Provider's unique identifier of the content associated with the completion field :remote_content_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_content_id') } } # Provider's unique identifier of the course associated with the completion @@ -33,6 +39,8 @@ class Completion < ::StackOne::Utils::FieldAugmented field :remote_external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_external_id') } } # Provider's unique identifier field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } } + # Provider's unique identifier of the learning object related to the assignment + field :remote_learning_object_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_learning_object_id') } } # Provider's unique identifier of the user related to the completion field :remote_user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_user_id') } } # The result of the completion @@ -45,8 +53,8 @@ class Completion < ::StackOne::Utils::FieldAugmented field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } } - sig { params(completed_at: T.nilable(::String), content_external_reference: T.nilable(::String), content_id: T.nilable(::String), course_id: T.nilable(::String), created_at: T.nilable(::String), external_id: T.nilable(::String), id: T.nilable(::String), remote_content_id: T.nilable(::String), remote_course_id: T.nilable(::String), remote_external_id: T.nilable(::String), remote_id: T.nilable(::String), remote_user_id: T.nilable(::String), result: T.nilable(::StackOne::Shared::CompletionSchemasResult), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), user_id: T.nilable(::String)).void } - def initialize(completed_at: nil, content_external_reference: nil, content_id: nil, course_id: nil, created_at: nil, external_id: nil, id: nil, remote_content_id: nil, remote_course_id: nil, remote_external_id: nil, remote_id: nil, remote_user_id: nil, result: nil, unified_custom_fields: nil, updated_at: nil, user_id: nil) + sig { params(completed_at: T.nilable(::String), content_external_reference: T.nilable(::String), content_id: T.nilable(::String), course_id: T.nilable(::String), created_at: T.nilable(::String), external_id: T.nilable(::String), id: T.nilable(::String), learning_object_external_reference: T.nilable(::String), learning_object_id: T.nilable(::String), learning_object_type: T.nilable(::StackOne::Shared::CompletionLearningObjectType), remote_content_id: T.nilable(::String), remote_course_id: T.nilable(::String), remote_external_id: T.nilable(::String), remote_id: T.nilable(::String), remote_learning_object_id: T.nilable(::String), remote_user_id: T.nilable(::String), result: T.nilable(::StackOne::Shared::CompletionSchemasResult), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::String), user_id: T.nilable(::String)).void } + def initialize(completed_at: nil, content_external_reference: nil, content_id: nil, course_id: nil, created_at: nil, external_id: nil, id: nil, learning_object_external_reference: nil, learning_object_id: nil, learning_object_type: nil, remote_content_id: nil, remote_course_id: nil, remote_external_id: nil, remote_id: nil, remote_learning_object_id: nil, remote_user_id: nil, result: nil, unified_custom_fields: nil, updated_at: nil, user_id: nil) @completed_at = completed_at @content_external_reference = content_external_reference @content_id = content_id @@ -54,10 +62,14 @@ def initialize(completed_at: nil, content_external_reference: nil, content_id: n @created_at = created_at @external_id = external_id @id = id + @learning_object_external_reference = learning_object_external_reference + @learning_object_id = learning_object_id + @learning_object_type = learning_object_type @remote_content_id = remote_content_id @remote_course_id = remote_course_id @remote_external_id = remote_external_id @remote_id = remote_id + @remote_learning_object_id = remote_learning_object_id @remote_user_id = remote_user_id @result = result @unified_custom_fields = unified_custom_fields diff --git a/lib/stack_one/models/shared/completion_learning_object_type.rb b/lib/stack_one/models/shared/completion_learning_object_type.rb new file mode 100644 index 00000000..265957d5 --- /dev/null +++ b/lib/stack_one/models/shared/completion_learning_object_type.rb @@ -0,0 +1,27 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Shared + + # The learning object type of the assignment + class CompletionLearningObjectType < ::StackOne::Utils::FieldAugmented + extend T::Sig + + + field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } + + field :value, T.nilable(::StackOne::Shared::CompletionValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CompletionValue, true) } } + + + sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CompletionValue)).void } + def initialize(source_value: nil, value: nil) + @source_value = source_value + @value = value + end + end + end +end diff --git a/lib/stack_one/models/shared/completion_schemas_result.rb b/lib/stack_one/models/shared/completion_schemas_result.rb index 0240a435..3ccf4728 100644 --- a/lib/stack_one/models/shared/completion_schemas_result.rb +++ b/lib/stack_one/models/shared/completion_schemas_result.rb @@ -14,10 +14,10 @@ class CompletionSchemasResult < ::StackOne::Utils::FieldAugmented field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } - field :value, T.nilable(::StackOne::Shared::CompletionValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CompletionValue, true) } } + field :value, T.nilable(::StackOne::Shared::CompletionSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CompletionSchemasValue, true) } } - sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CompletionValue)).void } + sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CompletionSchemasValue)).void } def initialize(source_value: nil, value: nil) @source_value = source_value @value = value diff --git a/lib/stack_one/models/shared/completion_schemas_value.rb b/lib/stack_one/models/shared/completion_schemas_value.rb new file mode 100644 index 00000000..b5a66ba6 --- /dev/null +++ b/lib/stack_one/models/shared/completion_schemas_value.rb @@ -0,0 +1,18 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Shared + + + class CompletionSchemasValue < T::Enum + enums do + PASS = new('Pass') + FAIL = new('Fail') + end + end + end +end diff --git a/lib/stack_one/models/shared/completion_value.rb b/lib/stack_one/models/shared/completion_value.rb index b96ef56f..ea28926c 100644 --- a/lib/stack_one/models/shared/completion_value.rb +++ b/lib/stack_one/models/shared/completion_value.rb @@ -10,8 +10,9 @@ module Shared class CompletionValue < T::Enum enums do - PASS = new('Pass') - FAIL = new('Fail') + CONTENT = new('content') + COURSE = new('course') + COLLECTION = new('collection') end end end diff --git a/lib/stack_one/models/shared/employee_schemas_national_identity_number_type_value.rb b/lib/stack_one/models/shared/employee_schemas_national_identity_number_type_value.rb index e11a1b1c..5c3eedbb 100644 --- a/lib/stack_one/models/shared/employee_schemas_national_identity_number_type_value.rb +++ b/lib/stack_one/models/shared/employee_schemas_national_identity_number_type_value.rb @@ -15,6 +15,7 @@ class EmployeeSchemasNationalIdentityNumberTypeValue < T::Enum SIN = new('sin') NID = new('nid') PIN = new('pin') + PN = new('pn') UMCN = new('umcn') PIC = new('pic') RIC = new('ric') @@ -25,6 +26,7 @@ class EmployeeSchemasNationalIdentityNumberTypeValue < T::Enum AADHAAR = new('aadhaar') EPIC = new('epic') PTN = new('ptn') + ITIN = new('itin') TIN = new('tin') UPRC = new('uprc') PCODE = new('pcode') diff --git a/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb b/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb index 28aa06e7..9b121b50 100644 --- a/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb +++ b/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb @@ -15,6 +15,7 @@ class HrisCreateEmployeeRequestDtoSchemasNationalIdentityNumberTypeValue < T::En SIN = new('sin') NID = new('nid') PIN = new('pin') + PN = new('pn') UMCN = new('umcn') PIC = new('pic') RIC = new('ric') @@ -25,6 +26,7 @@ class HrisCreateEmployeeRequestDtoSchemasNationalIdentityNumberTypeValue < T::En AADHAAR = new('aadhaar') EPIC = new('epic') PTN = new('ptn') + ITIN = new('itin') TIN = new('tin') UPRC = new('uprc') PCODE = new('pcode') diff --git a/lib/stack_one/models/shared/learningobjecttypeenum.rb b/lib/stack_one/models/shared/learning_object_type.rb similarity index 56% rename from lib/stack_one/models/shared/learningobjecttypeenum.rb rename to lib/stack_one/models/shared/learning_object_type.rb index 5ad82401..37d307a7 100644 --- a/lib/stack_one/models/shared/learningobjecttypeenum.rb +++ b/lib/stack_one/models/shared/learning_object_type.rb @@ -7,17 +7,17 @@ module StackOne module Shared - - class LearningObjectTypeEnum < ::StackOne::Utils::FieldAugmented + # The learning object type of the assignment + class LearningObjectType < ::StackOne::Utils::FieldAugmented extend T::Sig field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } - field :value, T.nilable(::StackOne::Shared::LearningObjectTypeEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::LearningObjectTypeEnumValue, true) } } + field :value, T.nilable(::StackOne::Shared::AssignmentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AssignmentValue, true) } } - sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::LearningObjectTypeEnumValue)).void } + sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::AssignmentValue)).void } def initialize(source_value: nil, value: nil) @source_value = source_value @value = value diff --git a/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb b/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb index 9a994a76..9a57ac63 100644 --- a/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +++ b/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb @@ -35,14 +35,16 @@ class LmsCreateContentRequestDto < ::StackOne::Utils::FieldAugmented field :languages, T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('languages') } } # The order of the individual content within a content grouping. This is not applicable for pushing individual content. field :order, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } } + # The skills associated with this course + field :skills, T.nilable(T::Array[::StackOne::Shared::Skills]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('skills') } } # The title of the content field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } } # Custom Unified Fields configured in your StackOne project field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } } - sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_launch_method: T.nilable(::StackOne::Shared::ContentLaunchMethod), content_type: T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void } - def initialize(active: nil, categories: nil, content_launch_method: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, title: nil, unified_custom_fields: nil) + sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_launch_method: T.nilable(::StackOne::Shared::ContentLaunchMethod), content_type: T.nilable(::StackOne::Shared::LmsCreateContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), skills: T.nilable(T::Array[::StackOne::Shared::Skills]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void } + def initialize(active: nil, categories: nil, content_launch_method: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, skills: nil, title: nil, unified_custom_fields: nil) @active = active @categories = categories @content_launch_method = content_launch_method @@ -55,6 +57,7 @@ def initialize(active: nil, categories: nil, content_launch_method: nil, content @external_reference = external_reference @languages = languages @order = order + @skills = skills @title = title @unified_custom_fields = unified_custom_fields end diff --git a/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb b/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb index 192d3ba9..7a0d1bc3 100644 --- a/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +++ b/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb @@ -35,14 +35,16 @@ class LmsUpsertContentRequestDto < ::StackOne::Utils::FieldAugmented field :languages, T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('languages') } } # The order of the individual content within a content grouping. This is not applicable for pushing individual content. field :order, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } } + # The skills associated with this course + field :skills, T.nilable(T::Array[::StackOne::Shared::Skills]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('skills') } } # The title of the content field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } } # Custom Unified Fields configured in your StackOne project field :unified_custom_fields, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_custom_fields') } } - sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_launch_method: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentLaunchMethod), content_type: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void } - def initialize(active: nil, categories: nil, content_launch_method: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, title: nil, unified_custom_fields: nil) + sig { params(active: T.nilable(::Object), categories: T.nilable(T::Array[::StackOne::Shared::CreateCategoriesApiModel]), content_launch_method: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentLaunchMethod), content_type: T.nilable(::StackOne::Shared::LmsUpsertContentRequestDtoContentType), content_url: T.nilable(::String), course_ids: T.nilable(T::Array[::String]), cover_url: T.nilable(::String), description: T.nilable(::String), duration: T.nilable(::String), external_reference: T.nilable(::String), languages: T.nilable(T::Array[::StackOne::Shared::ContentLanguageEnum]), order: T.nilable(::Float), skills: T.nilable(T::Array[::StackOne::Shared::Skills]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object])).void } + def initialize(active: nil, categories: nil, content_launch_method: nil, content_type: nil, content_url: nil, course_ids: nil, cover_url: nil, description: nil, duration: nil, external_reference: nil, languages: nil, order: nil, skills: nil, title: nil, unified_custom_fields: nil) @active = active @categories = categories @content_launch_method = content_launch_method @@ -55,6 +57,7 @@ def initialize(active: nil, categories: nil, content_launch_method: nil, content @external_reference = external_reference @languages = languages @order = order + @skills = skills @title = title @unified_custom_fields = unified_custom_fields end diff --git a/lib/stack_one/sdkconfiguration.rb b/lib/stack_one/sdkconfiguration.rb index 63828dc0..ced2a717 100644 --- a/lib/stack_one/sdkconfiguration.rb +++ b/lib/stack_one/sdkconfiguration.rb @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx) @security = security @language = 'ruby' @openapi_doc_version = '1.0.0' - @sdk_version = '0.2.46' - @gen_version = '2.442.11' - @user_agent = 'speakeasy-sdk/ruby 0.2.46 2.442.11 1.0.0 stackone_client' + @sdk_version = '0.2.47' + @gen_version = '2.445.1' + @user_agent = 'speakeasy-sdk/ruby 0.2.47 2.445.1 1.0.0 stackone_client' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/stackone_client.gemspec b/stackone_client.gemspec index 02d8fe42..a65d7a96 100644 --- a/stackone_client.gemspec +++ b/stackone_client.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'stackone_client' - s.version = '0.2.46' + s.version = '0.2.47' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = ''