stackone_client 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/ats.rb +52 -0
  3. data/lib/stack_one/hris.rb +4 -4
  4. data/lib/stack_one/models/operations/ats_upload_application_document_request.rb +30 -0
  5. data/lib/stack_one/models/operations/ats_upload_application_document_response.rb +33 -0
  6. data/lib/stack_one/models/operations/crm_get_contact_request.rb +5 -2
  7. data/lib/stack_one/models/operations/crm_list_contacts_request.rb +5 -2
  8. data/lib/stack_one/models/operations/hris_upload_employee_document_request.rb +5 -5
  9. data/lib/stack_one/models/operations.rb +2 -0
  10. data/lib/stack_one/models/shared/application.rb +5 -2
  11. data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +5 -2
  12. data/lib/stack_one/models/shared/atsdocumentapimodel.rb +5 -3
  13. data/lib/stack_one/models/shared/atsdocumentapimodel_type.rb +3 -1
  14. data/lib/stack_one/models/shared/atsdocumentapimodel_value.rb +1 -1
  15. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +8 -2
  16. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_application_status.rb +27 -0
  17. data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +37 -0
  18. data/lib/stack_one/models/shared/category.rb +14 -11
  19. data/lib/stack_one/models/shared/confidential.rb +14 -6
  20. data/lib/stack_one/models/shared/connectorsmeta.rb +2 -2
  21. data/lib/stack_one/models/shared/connectorsmeta_category.rb +24 -0
  22. data/lib/stack_one/models/shared/contact.rb +5 -2
  23. data/lib/stack_one/models/shared/contactscustomfields.rb +45 -0
  24. data/lib/stack_one/models/shared/contactscustomfields_type.rb +27 -0
  25. data/lib/stack_one/models/shared/contactscustomfields_value.rb +23 -0
  26. data/lib/stack_one/models/shared/content.rb +1 -1
  27. data/lib/stack_one/models/shared/content_value.rb +1 -1
  28. data/lib/stack_one/models/shared/document.rb +2 -2
  29. data/lib/stack_one/models/shared/file_format.rb +1 -1
  30. data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_category.rb +27 -0
  31. data/lib/stack_one/models/shared/hrisdocumentapimodel.rb +5 -3
  32. data/lib/stack_one/models/shared/hrisdocumentapimodel_category.rb +27 -0
  33. data/lib/stack_one/models/shared/hrisdocumentapimodel_schemas_value.rb +40 -0
  34. data/lib/stack_one/models/shared/hrisdocumentapimodel_type.rb +5 -3
  35. data/lib/stack_one/models/shared/hrisdocumentapimodel_value.rb +4 -1
  36. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto.rb +39 -0
  37. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_category.rb +27 -0
  38. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_file_format.rb +27 -0
  39. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_file_format_value.rb +1227 -0
  40. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_value.rb +19 -0
  41. data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_value.rb +40 -0
  42. data/lib/stack_one/models/shared/job.rb +2 -2
  43. data/lib/stack_one/models/shared/job_confidential.rb +19 -0
  44. data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +3 -3
  45. data/lib/stack_one/models/shared/unifieduploadrequestdto_category.rb +27 -0
  46. data/lib/stack_one/models/shared/unifieduploadrequestdto_confidential.rb +1 -1
  47. data/lib/stack_one/models/shared/unifieduploadrequestdto_file_format.rb +1 -1
  48. data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1 -1
  49. data/lib/stack_one/models/shared/unifieduploadrequestdto_value.rb +1 -1
  50. data/lib/stack_one/models/shared/workeligibility_category.rb +27 -0
  51. data/lib/stack_one/models/shared/workeligibility_document.rb +2 -2
  52. data/lib/stack_one/models/shared.rb +29 -11
  53. data/lib/stack_one/sdkconfiguration.rb +3 -3
  54. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b804a8811c79b2af6599122609bea8e06e710aa294e61574b2eabd2bff63606
4
- data.tar.gz: 5b339b8b7e12c6b1404416f1397cd50569c87042b93721923a40038e2e738b35
3
+ metadata.gz: 6924939a1ac2a3d0de77aa6131a37605fe39fd9d49c52830f07d4abd523d8df0
4
+ data.tar.gz: 30129c1246064c50f6a7776f0de0a8a058cb049059285ac71a12a61486059b15
5
5
  SHA512:
6
- metadata.gz: 1174aaf47b016d1992feb97d5eaf8731a78624e220e8b9a0c4bb69be9cf9bffc087abf2fe312ec25d5640557ad3cf0927fb63b0ac3dc3f006bed07b8ce256d91
7
- data.tar.gz: c6ae08a0293c86a93428cbc112e86bf19c17d016a0133c1756613ddfa3f663e5c100fecc96bf692f2eb2de3aa327aa1ca17eb273aa66402db922002c1e9b64de
6
+ metadata.gz: 50f86bd5e853c69f49a260f6395d0e964a897a546781dd7dc5c815e389ad8b13e429bdfeef3a87751d8634938ab9b94b533ff05e877d230db1faf087cd28cf73
7
+ data.tar.gz: b3c8f6813a19f4f9919e974c44c0e894f4617b38608662db4b7ad154d7262a6d37647af40b8a6e950a4e828473d9f1d910c245ca331008847e652d2e5766f462
data/lib/stack_one/ats.rb CHANGED
@@ -1439,5 +1439,57 @@ module StackOne
1439
1439
  end
1440
1440
  res
1441
1441
  end
1442
+
1443
+
1444
+ sig { params(unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::AtsUploadApplicationDocumentResponse) }
1445
+ def upload_application_document(unified_upload_request_dto, id, x_account_id)
1446
+ # upload_application_document - Upload Application Document
1447
+ request = ::StackOne::Operations::AtsUploadApplicationDocumentRequest.new(
1448
+
1449
+ unified_upload_request_dto: unified_upload_request_dto,
1450
+ id: id,
1451
+ x_account_id: x_account_id
1452
+ )
1453
+ url, params = @sdk_configuration.get_server_details
1454
+ base_url = Utils.template_url(url, params)
1455
+ url = Utils.generate_url(
1456
+ ::StackOne::Operations::AtsUploadApplicationDocumentRequest,
1457
+ base_url,
1458
+ '/unified/ats/applications/{id}/documents/upload',
1459
+ request
1460
+ )
1461
+ headers = Utils.get_headers(request)
1462
+ req_content_type, data, form = Utils.serialize_request_body(request, :unified_upload_request_dto, :json)
1463
+ headers['content-type'] = req_content_type
1464
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1465
+ headers['Accept'] = 'application/json'
1466
+ headers['user-agent'] = @sdk_configuration.user_agent
1467
+
1468
+ r = @sdk_configuration.client.post(url) do |req|
1469
+ req.headers = headers
1470
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
1471
+ if form
1472
+ req.body = Utils.encode_form(form)
1473
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1474
+ req.body = URI.encode_www_form(data)
1475
+ else
1476
+ req.body = data
1477
+ end
1478
+ end
1479
+
1480
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
1481
+
1482
+ res = ::StackOne::Operations::AtsUploadApplicationDocumentResponse.new(
1483
+ status_code: r.status, content_type: content_type, raw_response: r
1484
+ )
1485
+ if r.status == 200
1486
+ if Utils.match_content_type(content_type, 'application/json')
1487
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::WriteResultApiModel)
1488
+ res.write_result_api_model = out
1489
+ end
1490
+ elsif [400, 403, 412, 429, 500, 501].include?(r.status)
1491
+ end
1492
+ res
1493
+ end
1442
1494
  end
1443
1495
  end
@@ -1134,12 +1134,12 @@ module StackOne
1134
1134
  end
1135
1135
 
1136
1136
 
1137
- sig { params(unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
1138
- def upload_employee_document(unified_upload_request_dto, id, x_account_id)
1137
+ sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
1138
+ def upload_employee_document(hris_documents_upload_request_dto, id, x_account_id)
1139
1139
  # upload_employee_document - Upload Employee Document
1140
1140
  request = ::StackOne::Operations::HrisUploadEmployeeDocumentRequest.new(
1141
1141
 
1142
- unified_upload_request_dto: unified_upload_request_dto,
1142
+ hris_documents_upload_request_dto: hris_documents_upload_request_dto,
1143
1143
  id: id,
1144
1144
  x_account_id: x_account_id
1145
1145
  )
@@ -1152,7 +1152,7 @@ module StackOne
1152
1152
  request
1153
1153
  )
1154
1154
  headers = Utils.get_headers(request)
1155
- req_content_type, data, form = Utils.serialize_request_body(request, :unified_upload_request_dto, :json)
1155
+ req_content_type, data, form = Utils.serialize_request_body(request, :hris_documents_upload_request_dto, :json)
1156
1156
  headers['content-type'] = req_content_type
1157
1157
  raise StandardError, 'request body is required' if data.nil? && form.nil?
1158
1158
  headers['Accept'] = 'application/json'
@@ -0,0 +1,30 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsUploadApplicationDocumentRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+
17
+ field :unified_upload_request_dto, ::StackOne::Shared::UnifiedUploadRequestDto, { 'request': { 'media_type': 'application/json' } }
18
+ # The account identifier
19
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
+
21
+
22
+ sig { params(id: ::String, unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, x_account_id: ::String).void }
23
+ def initialize(id: nil, unified_upload_request_dto: nil, x_account_id: nil)
24
+ @id = id
25
+ @unified_upload_request_dto = unified_upload_request_dto
26
+ @x_account_id = x_account_id
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Operations
9
+
10
+
11
+ class AtsUploadApplicationDocumentResponse < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # The document related to the application with the given identifier was uploaded.
21
+ field :write_result_api_model, T.nilable(::StackOne::Shared::WriteResultApiModel)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, write_result_api_model: T.nilable(::StackOne::Shared::WriteResultApiModel)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, write_result_api_model: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @write_result_api_model = write_result_api_model
30
+ end
31
+ end
32
+ end
33
+ end
@@ -17,17 +17,20 @@ module StackOne
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
18
  # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
+ # The comma separated list of fields that will be included in the response
21
+ field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
20
22
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
21
23
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
22
24
  # Indicates that the raw request result is returned
23
25
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
24
26
 
25
27
 
26
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
27
- def initialize(id: nil, x_account_id: nil, fields_: nil, proxy: nil, raw: nil)
28
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), include: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean)).void }
29
+ def initialize(id: nil, x_account_id: nil, fields_: nil, include: nil, proxy: nil, raw: nil)
28
30
  @id = id
29
31
  @x_account_id = x_account_id
30
32
  @fields_ = fields_
33
+ @include = include
31
34
  @proxy = proxy
32
35
  @raw = raw
33
36
  end
@@ -17,6 +17,8 @@ module StackOne
17
17
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
18
  # Use a string with a date to only select results updated after that given date
19
19
  field :filter_updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'filter[updated_after]', 'style': 'form', 'explode': true } }
20
+ # The comma separated list of fields that will be included in the response
21
+ field :include, T.nilable(::String), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } }
20
22
  # The unified cursor
21
23
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
22
24
  # The page number of the results to fetch
@@ -35,11 +37,12 @@ module StackOne
35
37
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
38
 
37
39
 
38
- sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter_updated_after: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
39
- def initialize(x_account_id: nil, fields_: nil, filter_updated_after: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
40
+ sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter_updated_after: T.nilable(::String), include: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
41
+ def initialize(x_account_id: nil, fields_: nil, filter_updated_after: nil, include: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
40
42
  @x_account_id = x_account_id
41
43
  @fields_ = fields_
42
44
  @filter_updated_after = filter_updated_after
45
+ @include = include
43
46
  @next_ = next_
44
47
  @page = page
45
48
  @page_size = page_size
@@ -12,17 +12,17 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
15
+ field :hris_documents_upload_request_dto, ::StackOne::Shared::HrisDocumentsUploadRequestDto, { 'request': { 'media_type': 'application/json' } }
16
16
 
17
- field :unified_upload_request_dto, ::StackOne::Shared::UnifiedUploadRequestDto, { 'request': { 'media_type': 'application/json' } }
17
+ field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
18
18
  # The account identifier
19
19
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
20
20
 
21
21
 
22
- sig { params(id: ::String, unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, x_account_id: ::String).void }
23
- def initialize(id: nil, unified_upload_request_dto: nil, x_account_id: nil)
22
+ sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String).void }
23
+ def initialize(hris_documents_upload_request_dto: nil, id: nil, x_account_id: nil)
24
+ @hris_documents_upload_request_dto = hris_documents_upload_request_dto
24
25
  @id = id
25
- @unified_upload_request_dto = unified_upload_request_dto
26
26
  @x_account_id = x_account_id
27
27
  end
28
28
  end
@@ -95,6 +95,8 @@ module StackOne
95
95
  autoload :AtsUpdateApplicationResponse, 'stack_one/models/operations/ats_update_application_response.rb'
96
96
  autoload :AtsUpdateCandidateRequest, 'stack_one/models/operations/ats_update_candidate_request.rb'
97
97
  autoload :AtsUpdateCandidateResponse, 'stack_one/models/operations/ats_update_candidate_response.rb'
98
+ autoload :AtsUploadApplicationDocumentRequest, 'stack_one/models/operations/ats_upload_application_document_request.rb'
99
+ autoload :AtsUploadApplicationDocumentResponse, 'stack_one/models/operations/ats_upload_application_document_response.rb'
98
100
  autoload :CrmCreateContactRequest, 'stack_one/models/operations/crm_create_contact_request.rb'
99
101
  autoload :CrmCreateContactResponse, 'stack_one/models/operations/crm_create_contact_response.rb'
100
102
  autoload :CrmGetAccountRequest, 'stack_one/models/operations/crm_get_account_request.rb'
@@ -49,12 +49,14 @@ module StackOne
49
49
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
50
50
 
51
51
  field :result_links, T.nilable(T::Array[::StackOne::Shared::ResultLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('result_links') } }
52
+ # Source of the application
53
+ field :source, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } }
52
54
  # Date of last update
53
55
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
54
56
 
55
57
 
56
- sig { params(application_status: T.nilable(::StackOne::Shared::ApplicationStatus), attachments: T.nilable(T::Array[::StackOne::Shared::ApplicationAttachment]), candidate: T.nilable(::StackOne::Shared::ApplicationCandidate), candidate_id: T.nilable(::String), created_at: T.nilable(::DateTime), documents: T.nilable(T::Array[::StackOne::Shared::AtsDocumentApiModel]), id: T.nilable(::String), interview_stage: T.nilable(::StackOne::Shared::ApplicationInterviewStage), interview_stage_id: T.nilable(::String), job_id: T.nilable(::String), location_id: T.nilable(::String), location_ids: T.nilable(T::Array[::String]), questionnaires: T.nilable(T::Array[::StackOne::Shared::Questionnaire]), rejected_at: T.nilable(::DateTime), rejected_reason_ids: T.nilable(T::Array[::String]), rejected_reasons: T.nilable(T::Array[::StackOne::Shared::RejectedReason]), remote_id: T.nilable(::String), result_links: T.nilable(T::Array[::StackOne::Shared::ResultLink]), updated_at: T.nilable(::DateTime)).void }
57
- def initialize(application_status: nil, attachments: nil, candidate: nil, candidate_id: nil, created_at: nil, documents: nil, id: nil, interview_stage: nil, interview_stage_id: nil, job_id: nil, location_id: nil, location_ids: nil, questionnaires: nil, rejected_at: nil, rejected_reason_ids: nil, rejected_reasons: nil, remote_id: nil, result_links: nil, updated_at: nil)
58
+ sig { params(application_status: T.nilable(::StackOne::Shared::ApplicationStatus), attachments: T.nilable(T::Array[::StackOne::Shared::ApplicationAttachment]), candidate: T.nilable(::StackOne::Shared::ApplicationCandidate), candidate_id: T.nilable(::String), created_at: T.nilable(::DateTime), documents: T.nilable(T::Array[::StackOne::Shared::AtsDocumentApiModel]), id: T.nilable(::String), interview_stage: T.nilable(::StackOne::Shared::ApplicationInterviewStage), interview_stage_id: T.nilable(::String), job_id: T.nilable(::String), location_id: T.nilable(::String), location_ids: T.nilable(T::Array[::String]), questionnaires: T.nilable(T::Array[::StackOne::Shared::Questionnaire]), rejected_at: T.nilable(::DateTime), rejected_reason_ids: T.nilable(T::Array[::String]), rejected_reasons: T.nilable(T::Array[::StackOne::Shared::RejectedReason]), remote_id: T.nilable(::String), result_links: T.nilable(T::Array[::StackOne::Shared::ResultLink]), source: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
59
+ def initialize(application_status: nil, attachments: nil, candidate: nil, candidate_id: nil, created_at: nil, documents: nil, id: nil, interview_stage: nil, interview_stage_id: nil, job_id: nil, location_id: nil, location_ids: nil, questionnaires: nil, rejected_at: nil, rejected_reason_ids: nil, rejected_reasons: nil, remote_id: nil, result_links: nil, source: nil, updated_at: nil)
58
60
  @application_status = application_status
59
61
  @attachments = attachments
60
62
  @candidate = candidate
@@ -73,6 +75,7 @@ module StackOne
73
75
  @rejected_reasons = rejected_reasons
74
76
  @remote_id = remote_id
75
77
  @result_links = result_links
78
+ @source = source
76
79
  @updated_at = updated_at
77
80
  end
78
81
  end
@@ -23,16 +23,19 @@ module StackOne
23
23
  field :location_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_id') } }
24
24
  # Questionnaires associated with the application
25
25
  field :questionnaires, T.nilable(T::Array[::StackOne::Shared::Questionnaire]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('questionnaires') } }
26
+ # Source of the application
27
+ field :source, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } }
26
28
 
27
29
 
28
- sig { params(application_status: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoApplicationStatus), candidate: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(::String), job_id: T.nilable(::String), location_id: T.nilable(::String), questionnaires: T.nilable(T::Array[::StackOne::Shared::Questionnaire])).void }
29
- def initialize(application_status: nil, candidate: nil, candidate_id: nil, job_id: nil, location_id: nil, questionnaires: nil)
30
+ sig { params(application_status: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoApplicationStatus), candidate: T.nilable(::StackOne::Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(::String), job_id: T.nilable(::String), location_id: T.nilable(::String), questionnaires: T.nilable(T::Array[::StackOne::Shared::Questionnaire]), source: T.nilable(::String)).void }
31
+ def initialize(application_status: nil, candidate: nil, candidate_id: nil, job_id: nil, location_id: nil, questionnaires: nil, source: nil)
30
32
  @application_status = application_status
31
33
  @candidate = candidate
32
34
  @candidate_id = candidate_id
33
35
  @job_id = job_id
34
36
  @location_id = location_id
35
37
  @questionnaires = questionnaires
38
+ @source = source
36
39
  end
37
40
  end
38
41
  end
@@ -11,8 +11,8 @@ module StackOne
11
11
  class AtsDocumentApiModel < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # The category of the file
15
- field :category, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
14
+ # The category of the the document
15
+ field :category, T.nilable(::StackOne::Shared::Category), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
16
16
  # The content of the file
17
17
  field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
18
18
  # The creation date of the file
@@ -26,12 +26,14 @@ module StackOne
26
26
  # Provider's unique identifier
27
27
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
28
28
  # The content type of the document
29
+ #
30
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
29
31
  field :type, T.nilable(::StackOne::Shared::AtsDocumentApiModelType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
30
32
  # The update date of the file
31
33
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
32
34
 
33
35
 
34
- sig { params(category: T.nilable(::String), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::AtsDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
36
+ sig { params(category: T.nilable(::StackOne::Shared::Category), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::AtsDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
35
37
  def initialize(category: nil, contents: nil, created_at: nil, id: nil, name: nil, path: nil, remote_id: nil, type: nil, updated_at: nil)
36
38
  @category = category
37
39
  @contents = contents
@@ -8,12 +8,14 @@ module StackOne
8
8
  module Shared
9
9
 
10
10
  # The content type of the document
11
+ #
12
+ # @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
11
13
  class AtsDocumentApiModelType < ::StackOne::Utils::FieldAugmented
12
14
  extend T::Sig
13
15
 
14
16
 
15
17
  field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
-
18
+ # The category of the file
17
19
  field :value, T.nilable(::StackOne::Shared::AtsDocumentApiModelValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AtsDocumentApiModelValue, true) } }
18
20
 
19
21
 
@@ -7,7 +7,7 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
-
10
+ # AtsDocumentApiModelValue - The category of the file
11
11
  class AtsDocumentApiModelValue < T::Enum
12
12
  enums do
13
13
  RESUME = new('resume')
@@ -11,16 +11,22 @@ module StackOne
11
11
  class AtsUpdateApplicationRequestDto < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+
15
+ field :application_status, T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_status') } }
14
16
  # Unique identifier of the interview stage
15
17
  field :interview_stage_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage_id') } }
16
18
  # Unique identifier of the rejection reason
17
19
  field :rejected_reason_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('rejected_reason_id') } }
20
+ # Source of the application
21
+ field :source, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } }
18
22
 
19
23
 
20
- sig { params(interview_stage_id: T.nilable(::String), rejected_reason_id: T.nilable(::String)).void }
21
- def initialize(interview_stage_id: nil, rejected_reason_id: nil)
24
+ sig { params(application_status: T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoApplicationStatus), interview_stage_id: T.nilable(::String), rejected_reason_id: T.nilable(::String), source: T.nilable(::String)).void }
25
+ def initialize(application_status: nil, interview_stage_id: nil, rejected_reason_id: nil, source: nil)
26
+ @application_status = application_status
22
27
  @interview_stage_id = interview_stage_id
23
28
  @rejected_reason_id = rejected_reason_id
29
+ @source = source
24
30
  end
25
31
  end
26
32
  end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class AtsUpdateApplicationRequestDtoApplicationStatus < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The source value of the application status.
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The status of the application.
17
+ field :value, T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::AtsUpdateApplicationRequestDtoValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::AtsUpdateApplicationRequestDtoValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # AtsUpdateApplicationRequestDtoValue - The status of the application.
11
+ class AtsUpdateApplicationRequestDtoValue < T::Enum
12
+ enums do
13
+ ACTIVE = new('active')
14
+ ASSESSMENT = new('assessment')
15
+ BACKGROUND_CHECK = new('background_check')
16
+ CONVERTED = new('converted')
17
+ DECLINED_BY_CANDIDATE = new('declined_by_candidate')
18
+ HIRED = new('hired')
19
+ INTERVIEW = new('interview')
20
+ LEAD = new('lead')
21
+ OFFER = new('offer')
22
+ REFERENCE_CHECK = new('reference_check')
23
+ REJECTED = new('rejected')
24
+ REVIEW = new('review')
25
+ SCREEN = new('screen')
26
+ NEW = new('new')
27
+ ONBOARDING = new('onboarding')
28
+ CREATED = new('created')
29
+ ACCEPTED = new('accepted')
30
+ SHORT_LIST = new('short_list')
31
+ APPROVED = new('approved')
32
+ UNMAPPED_VALUE = new('unmapped_value')
33
+ end
34
+ end
35
+
36
+ end
37
+ end
@@ -7,18 +7,21 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # Category - The provider service category
11
- class Category < T::Enum
12
- enums do
13
- ATS = new('ats')
14
- HRIS = new('hris')
15
- HRIS_LEGACY = new('hris-legacy')
16
- CRM = new('crm')
17
- IAM = new('iam')
18
- MARKETING = new('marketing')
19
- STACKONE = new('stackone')
10
+ # The category of the the document
11
+ class Category < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The category of the file
17
+ field :value, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::String)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
20
24
  end
21
25
  end
22
-
23
26
  end
24
27
  end
@@ -7,13 +7,21 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # Confidential - Confidential status of the job
11
- class Confidential < T::Enum
12
- enums do
13
- TRUE = new('true')
14
- FALSE = new('false')
10
+ # The confidentiality level of the file to be uploaded
11
+ class Confidential < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # Whether the file is confidential or not
17
+ field :value, T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisDocumentsUploadRequestDtoSchemasValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisDocumentsUploadRequestDtoSchemasValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
15
24
  end
16
25
  end
17
-
18
26
  end
19
27
  end
@@ -12,7 +12,7 @@ module StackOne
12
12
  extend T::Sig
13
13
 
14
14
  # The provider service category
15
- field :category, ::StackOne::Shared::Category, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category'), 'decoder': Utils.enum_from_string(::StackOne::Shared::Category, false) } }
15
+ field :category, ::StackOne::Shared::ConnectorsMetaCategory, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ConnectorsMetaCategory, false) } }
16
16
 
17
17
  field :models, T::Hash[Symbol, ::Object], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('models') } }
18
18
  # The provider key
@@ -25,7 +25,7 @@ module StackOne
25
25
  field :resources, T.nilable(::StackOne::Shared::Resources), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resources') } }
26
26
 
27
27
 
28
- sig { params(category: ::StackOne::Shared::Category, models: T::Hash[Symbol, ::Object], provider: ::String, provider_name: ::String, active: T.nilable(T::Boolean), resources: T.nilable(::StackOne::Shared::Resources)).void }
28
+ sig { params(category: ::StackOne::Shared::ConnectorsMetaCategory, models: T::Hash[Symbol, ::Object], provider: ::String, provider_name: ::String, active: T.nilable(T::Boolean), resources: T.nilable(::StackOne::Shared::Resources)).void }
29
29
  def initialize(category: nil, models: nil, provider: nil, provider_name: nil, active: nil, resources: nil)
30
30
  @category = category
31
31
  @models = models
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # ConnectorsMetaCategory - The provider service category
11
+ class ConnectorsMetaCategory < T::Enum
12
+ enums do
13
+ ATS = new('ats')
14
+ HRIS = new('hris')
15
+ HRIS_LEGACY = new('hris-legacy')
16
+ CRM = new('crm')
17
+ IAM = new('iam')
18
+ MARKETING = new('marketing')
19
+ STACKONE = new('stackone')
20
+ end
21
+ end
22
+
23
+ end
24
+ end
@@ -17,6 +17,8 @@ module StackOne
17
17
  field :company_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
18
18
  # Timestamp when the contact was created
19
19
  field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
+ # Contact custom fields
21
+ field :custom_fields, T.nilable(T::Array[::StackOne::Shared::ContactsCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
20
22
  # List of associated deal IDs
21
23
  field :deal_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('deal_ids') } }
22
24
  # List of contact email addresses
@@ -35,11 +37,12 @@ module StackOne
35
37
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
36
38
 
37
39
 
38
- sig { params(account_ids: T.nilable(T::Array[::String]), company_name: T.nilable(::String), created_at: T.nilable(::DateTime), deal_ids: T.nilable(T::Array[::String]), emails: T.nilable(T::Array[::String]), first_name: T.nilable(::String), id: T.nilable(::String), last_name: T.nilable(::String), phone_numbers: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
39
- def initialize(account_ids: nil, company_name: nil, created_at: nil, deal_ids: nil, emails: nil, first_name: nil, id: nil, last_name: nil, phone_numbers: nil, remote_id: nil, updated_at: nil)
40
+ sig { params(account_ids: T.nilable(T::Array[::String]), company_name: T.nilable(::String), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::ContactsCustomFields]), deal_ids: T.nilable(T::Array[::String]), emails: T.nilable(T::Array[::String]), first_name: T.nilable(::String), id: T.nilable(::String), last_name: T.nilable(::String), phone_numbers: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
41
+ def initialize(account_ids: nil, company_name: nil, created_at: nil, custom_fields: nil, deal_ids: nil, emails: nil, first_name: nil, id: nil, last_name: nil, phone_numbers: nil, remote_id: nil, updated_at: nil)
40
42
  @account_ids = account_ids
41
43
  @company_name = company_name
42
44
  @created_at = created_at
45
+ @custom_fields = custom_fields
43
46
  @deal_ids = deal_ids
44
47
  @emails = emails
45
48
  @first_name = first_name
@@ -0,0 +1,45 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ContactsCustomFields < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The description of the custom field.
15
+ field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } }
16
+ # Unique identifier
17
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
+ # The name of the custom field.
19
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
20
+ # An array of possible options for the custom field.
21
+ field :options, T.nilable(T::Array[::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('options') } }
22
+ # Provider's unique identifier
23
+ field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
24
+ # The type of the custom field.
25
+ field :type, T.nilable(::StackOne::Shared::ContactsCustomFieldsType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
26
+ # The value associated with the custom field.
27
+ field :value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
28
+ # The unique identifier for the value of the custom field.
29
+ field :value_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value_id') } }
30
+
31
+
32
+ sig { params(description: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), options: T.nilable(T::Array[::Object]), remote_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::ContactsCustomFieldsType), value: T.nilable(::Object), value_id: T.nilable(::String)).void }
33
+ def initialize(description: nil, id: nil, name: nil, options: nil, remote_id: nil, type: nil, value: nil, value_id: nil)
34
+ @description = description
35
+ @id = id
36
+ @name = name
37
+ @options = options
38
+ @remote_id = remote_id
39
+ @type = type
40
+ @value = value
41
+ @value_id = value_id
42
+ end
43
+ end
44
+ end
45
+ end