stackone_client 0.2.32 → 0.2.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stack_one/hris.rb +71 -0
  3. data/lib/stack_one/marketing.rb +169 -0
  4. data/lib/stack_one/models/operations/ats_get_candidate_request.rb +5 -2
  5. data/lib/stack_one/models/operations/ats_list_candidates_request.rb +5 -2
  6. data/lib/stack_one/models/operations/hris_get_department_group_request.rb +36 -0
  7. data/lib/stack_one/models/operations/hris_get_department_group_response.rb +33 -0
  8. data/lib/stack_one/models/operations/hris_list_department_groups_queryparam_filter.rb +24 -0
  9. data/lib/stack_one/models/operations/hris_list_department_groups_request.rb +52 -0
  10. data/lib/stack_one/models/operations/hris_list_department_groups_response.rb +33 -0
  11. data/lib/stack_one/models/operations/marketing_create_content_block_request.rb +27 -0
  12. data/lib/stack_one/models/operations/marketing_create_content_block_response.rb +33 -0
  13. data/lib/stack_one/models/operations/marketing_get_content_block_request.rb +36 -0
  14. data/lib/stack_one/models/operations/marketing_get_content_block_response.rb +33 -0
  15. data/lib/stack_one/models/operations/marketing_list_content_blocks_queryparam_filter.rb +24 -0
  16. data/lib/stack_one/models/operations/marketing_list_content_blocks_request.rb +52 -0
  17. data/lib/stack_one/models/operations/marketing_list_content_blocks_response.rb +33 -0
  18. data/lib/stack_one/models/operations/marketing_update_content_block_request.rb +30 -0
  19. data/lib/stack_one/models/operations/marketing_update_content_block_response.rb +33 -0
  20. data/lib/stack_one/models/operations.rb +14 -0
  21. data/lib/stack_one/models/shared/candidate.rb +5 -2
  22. data/lib/stack_one/models/shared/candidatecustomfields.rb +48 -0
  23. data/lib/stack_one/models/shared/{employee_schemas_type.rb → candidatecustomfields_type.rb} +5 -5
  24. data/lib/stack_one/models/shared/{employee_schemas_groups_value.rb → candidatecustomfields_value.rb} +6 -6
  25. data/lib/stack_one/models/shared/contentblock.rb +48 -0
  26. data/lib/stack_one/models/shared/contentblock_schemas_value.rb +18 -0
  27. data/lib/stack_one/models/shared/contentblock_status.rb +27 -0
  28. data/lib/stack_one/models/shared/contentblock_type.rb +27 -0
  29. data/lib/stack_one/models/shared/contentblock_value.rb +18 -0
  30. data/lib/stack_one/models/shared/contentblockspaginated.rb +33 -0
  31. data/lib/stack_one/models/shared/employee.rb +2 -2
  32. data/lib/stack_one/models/shared/employee_type.rb +4 -4
  33. data/lib/stack_one/models/shared/{groups.rb → hrisdepartment.rb} +5 -5
  34. data/lib/stack_one/models/shared/hrisdepartment_type.rb +27 -0
  35. data/lib/stack_one/models/shared/hrisdepartment_value.rb +18 -0
  36. data/lib/stack_one/models/shared/hrisdepartmentspaginated.rb +33 -0
  37. data/lib/stack_one/models/shared/hrisdepartmentsresult.rb +27 -0
  38. data/lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto.rb +33 -0
  39. data/lib/stack_one/models/shared/national_identity_number.rb +2 -2
  40. data/lib/stack_one/models/shared.rb +19 -7
  41. data/lib/stack_one/sdkconfiguration.rb +3 -3
  42. metadata +31 -5
@@ -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 Operations
9
+
10
+ # Filter parameters that allow greater customisation of the list response
11
+ class MarketingListContentBlocksQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Use a string with a date to only select results updated after that given date
15
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
+
17
+
18
+ sig { params(updated_after: T.nilable(::String)).void }
19
+ def initialize(updated_after: nil)
20
+ @updated_after = updated_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,52 @@
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 MarketingListContentBlocksRequest < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The account identifier
15
+ field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
16
+ # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
+ field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
+ # Filter parameters that allow greater customisation of the list response
19
+ field :filter, T.nilable(::StackOne::Operations::MarketingListContentBlocksQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
20
+ # The unified cursor
21
+ field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
22
+ # The page number of the results to fetch
23
+ #
24
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ field :page, T.nilable(::String), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
26
+ # The number of results per page
27
+ field :page_size, T.nilable(::String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
28
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
29
+ field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'deepObject', 'explode': true } }
30
+ # Indicates that the raw request result is returned
31
+ field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
+ # Use a string with a date to only select results updated after that given date
33
+ #
34
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
35
+ field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
+
37
+
38
+ sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::MarketingListContentBlocksQueryParamFilter), 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: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
40
+ @x_account_id = x_account_id
41
+ @fields_ = fields_
42
+ @filter = filter
43
+ @next_ = next_
44
+ @page = page
45
+ @page_size = page_size
46
+ @proxy = proxy
47
+ @raw = raw
48
+ @updated_after = updated_after
49
+ end
50
+ end
51
+ end
52
+ 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 MarketingListContentBlocksResponse < ::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 list of Content Blocks was retrieved.
21
+ field :content_blocks_paginated, T.nilable(::StackOne::Shared::ContentBlocksPaginated)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, content_blocks_paginated: T.nilable(::StackOne::Shared::ContentBlocksPaginated)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, content_blocks_paginated: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @content_blocks_paginated = content_blocks_paginated
30
+ end
31
+ end
32
+ end
33
+ end
@@ -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 MarketingUpdateContentBlockRequest < ::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 :marketing_create_content_blocks_request_dto, ::StackOne::Shared::MarketingCreateContentBlocksRequestDto, { '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, marketing_create_content_blocks_request_dto: ::StackOne::Shared::MarketingCreateContentBlocksRequestDto, x_account_id: ::String).void }
23
+ def initialize(id: nil, marketing_create_content_blocks_request_dto: nil, x_account_id: nil)
24
+ @id = id
25
+ @marketing_create_content_blocks_request_dto = marketing_create_content_blocks_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 MarketingUpdateContentBlockResponse < ::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
+ # Record updated successfully
21
+ field :create_result, T.nilable(::StackOne::Shared::CreateResult)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_result: T.nilable(::StackOne::Shared::CreateResult)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, create_result: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @create_result = create_result
30
+ end
31
+ end
32
+ end
33
+ end
@@ -155,6 +155,8 @@ module StackOne
155
155
  autoload :HrisGetBenefitResponse, 'stack_one/models/operations/hris_get_benefit_response.rb'
156
156
  autoload :HrisGetCompanyRequest, 'stack_one/models/operations/hris_get_company_request.rb'
157
157
  autoload :HrisGetCompanyResponse, 'stack_one/models/operations/hris_get_company_response.rb'
158
+ autoload :HrisGetDepartmentGroupRequest, 'stack_one/models/operations/hris_get_department_group_request.rb'
159
+ autoload :HrisGetDepartmentGroupResponse, 'stack_one/models/operations/hris_get_department_group_response.rb'
158
160
  autoload :HrisGetEmployeeRequest, 'stack_one/models/operations/hris_get_employee_request.rb'
159
161
  autoload :HrisGetEmployeeResponse, 'stack_one/models/operations/hris_get_employee_response.rb'
160
162
  autoload :HrisGetEmployeeDocumentRequest, 'stack_one/models/operations/hris_get_employee_document_request.rb'
@@ -181,6 +183,9 @@ module StackOne
181
183
  autoload :HrisListCompaniesQueryParamFilter, 'stack_one/models/operations/hris_list_companies_queryparam_filter.rb'
182
184
  autoload :HrisListCompaniesRequest, 'stack_one/models/operations/hris_list_companies_request.rb'
183
185
  autoload :HrisListCompaniesResponse, 'stack_one/models/operations/hris_list_companies_response.rb'
186
+ autoload :HrisListDepartmentGroupsQueryParamFilter, 'stack_one/models/operations/hris_list_department_groups_queryparam_filter.rb'
187
+ autoload :HrisListDepartmentGroupsRequest, 'stack_one/models/operations/hris_list_department_groups_request.rb'
188
+ autoload :HrisListDepartmentGroupsResponse, 'stack_one/models/operations/hris_list_department_groups_response.rb'
184
189
  autoload :HrisListEmployeeCategoriesQueryParamFilter, 'stack_one/models/operations/hris_list_employee_categories_queryparam_filter.rb'
185
190
  autoload :HrisListEmployeeCategoriesRequest, 'stack_one/models/operations/hris_list_employee_categories_request.rb'
186
191
  autoload :HrisListEmployeeCategoriesResponse, 'stack_one/models/operations/hris_list_employee_categories_response.rb'
@@ -219,6 +224,8 @@ module StackOne
219
224
  autoload :HrisUpdateTimeOffRequestResponse, 'stack_one/models/operations/hris_update_time_off_request_response.rb'
220
225
  autoload :HrisUploadEmployeeDocumentRequest, 'stack_one/models/operations/hris_upload_employee_document_request.rb'
221
226
  autoload :HrisUploadEmployeeDocumentResponse, 'stack_one/models/operations/hris_upload_employee_document_response.rb'
227
+ autoload :MarketingCreateContentBlockRequest, 'stack_one/models/operations/marketing_create_content_block_request.rb'
228
+ autoload :MarketingCreateContentBlockResponse, 'stack_one/models/operations/marketing_create_content_block_response.rb'
222
229
  autoload :MarketingCreateEmailTemplateRequest, 'stack_one/models/operations/marketing_create_email_template_request.rb'
223
230
  autoload :MarketingCreateEmailTemplateResponse, 'stack_one/models/operations/marketing_create_email_template_response.rb'
224
231
  autoload :MarketingCreateOmniChannelTemplateRequest, 'stack_one/models/operations/marketing_create_omni_channel_template_request.rb'
@@ -227,6 +234,8 @@ module StackOne
227
234
  autoload :MarketingCreatePushTemplateResponse, 'stack_one/models/operations/marketing_create_push_template_response.rb'
228
235
  autoload :MarketingGetCampaignRequest, 'stack_one/models/operations/marketing_get_campaign_request.rb'
229
236
  autoload :MarketingGetCampaignResponse, 'stack_one/models/operations/marketing_get_campaign_response.rb'
237
+ autoload :MarketingGetContentBlockRequest, 'stack_one/models/operations/marketing_get_content_block_request.rb'
238
+ autoload :MarketingGetContentBlockResponse, 'stack_one/models/operations/marketing_get_content_block_response.rb'
230
239
  autoload :MarketingGetEmailTemplateRequest, 'stack_one/models/operations/marketing_get_email_template_request.rb'
231
240
  autoload :MarketingGetEmailTemplateResponse, 'stack_one/models/operations/marketing_get_email_template_response.rb'
232
241
  autoload :MarketingGetOmniChannelTemplateRequest, 'stack_one/models/operations/marketing_get_omni_channel_template_request.rb'
@@ -236,6 +245,9 @@ module StackOne
236
245
  autoload :MarketingListCampaignsQueryParamFilter, 'stack_one/models/operations/marketing_list_campaigns_queryparam_filter.rb'
237
246
  autoload :MarketingListCampaignsRequest, 'stack_one/models/operations/marketing_list_campaigns_request.rb'
238
247
  autoload :MarketingListCampaignsResponse, 'stack_one/models/operations/marketing_list_campaigns_response.rb'
248
+ autoload :MarketingListContentBlocksQueryParamFilter, 'stack_one/models/operations/marketing_list_content_blocks_queryparam_filter.rb'
249
+ autoload :MarketingListContentBlocksRequest, 'stack_one/models/operations/marketing_list_content_blocks_request.rb'
250
+ autoload :MarketingListContentBlocksResponse, 'stack_one/models/operations/marketing_list_content_blocks_response.rb'
239
251
  autoload :MarketingListEmailTemplatesQueryParamFilter, 'stack_one/models/operations/marketing_list_email_templates_queryparam_filter.rb'
240
252
  autoload :MarketingListEmailTemplatesRequest, 'stack_one/models/operations/marketing_list_email_templates_request.rb'
241
253
  autoload :MarketingListEmailTemplatesResponse, 'stack_one/models/operations/marketing_list_email_templates_response.rb'
@@ -245,6 +257,8 @@ module StackOne
245
257
  autoload :MarketingListPushTemplatesQueryParamFilter, 'stack_one/models/operations/marketing_list_push_templates_queryparam_filter.rb'
246
258
  autoload :MarketingListPushTemplatesRequest, 'stack_one/models/operations/marketing_list_push_templates_request.rb'
247
259
  autoload :MarketingListPushTemplatesResponse, 'stack_one/models/operations/marketing_list_push_templates_response.rb'
260
+ autoload :MarketingUpdateContentBlockRequest, 'stack_one/models/operations/marketing_update_content_block_request.rb'
261
+ autoload :MarketingUpdateContentBlockResponse, 'stack_one/models/operations/marketing_update_content_block_response.rb'
248
262
  autoload :MarketingUpdateEmailTemplateRequest, 'stack_one/models/operations/marketing_update_email_template_request.rb'
249
263
  autoload :MarketingUpdateEmailTemplateResponse, 'stack_one/models/operations/marketing_update_email_template_response.rb'
250
264
  autoload :MarketingUpdateOmniChannelTemplateRequest, 'stack_one/models/operations/marketing_update_omni_channel_template_request.rb'
@@ -19,6 +19,8 @@ module StackOne
19
19
  field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('country') } }
20
20
  # Candidate created date
21
21
  field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
22
+ # The candidate custom fields
23
+ field :custom_fields, T.nilable(T::Array[::StackOne::Shared::CandidateCustomFields]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_fields') } }
22
24
  # Candidate email
23
25
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
24
26
  # List of candidate emails
@@ -51,12 +53,13 @@ module StackOne
51
53
  field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
52
54
 
53
55
 
54
- sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), country: T.nilable(::String), created_at: T.nilable(::DateTime), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_application_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
55
- def initialize(application_ids: nil, company: nil, country: nil, created_at: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_application_ids: nil, remote_id: nil, social_links: nil, title: nil, updated_at: nil)
56
+ sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), country: T.nilable(::String), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::CandidateCustomFields]), email: T.nilable(::String), emails: T.nilable(T::Array[::StackOne::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[::StackOne::Shared::PhoneNumber]), remote_application_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[::StackOne::Shared::SocialLink]), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
57
+ def initialize(application_ids: nil, company: nil, country: nil, created_at: nil, custom_fields: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_application_ids: nil, remote_id: nil, social_links: nil, title: nil, updated_at: nil)
56
58
  @application_ids = application_ids
57
59
  @company = company
58
60
  @country = country
59
61
  @created_at = created_at
62
+ @custom_fields = custom_fields
60
63
  @email = email
61
64
  @emails = emails
62
65
  @first_name = first_name
@@ -0,0 +1,48 @@
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 CandidateCustomFields < ::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
+ # Provider's unique identifier for the value of the custom field.
25
+ field :remote_value_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_value_id') } }
26
+ # The type of the custom field.
27
+ field :type, T.nilable(::StackOne::Shared::CandidateCustomFieldsType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
28
+ # The value associated with the custom field.
29
+ field :value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
30
+ # The unique identifier for the value of the custom field.
31
+ field :value_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value_id') } }
32
+
33
+
34
+ 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), remote_value_id: T.nilable(::String), type: T.nilable(::StackOne::Shared::CandidateCustomFieldsType), value: T.nilable(::Object), value_id: T.nilable(::String)).void }
35
+ def initialize(description: nil, id: nil, name: nil, options: nil, remote_id: nil, remote_value_id: nil, type: nil, value: nil, value_id: nil)
36
+ @description = description
37
+ @id = id
38
+ @name = name
39
+ @options = options
40
+ @remote_id = remote_id
41
+ @remote_value_id = remote_value_id
42
+ @type = type
43
+ @value = value
44
+ @value_id = value_id
45
+ end
46
+ end
47
+ end
48
+ end
@@ -7,17 +7,17 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
-
11
- class EmployeeSchemasType < ::StackOne::Utils::FieldAugmented
10
+ # The type of the custom field.
11
+ class CandidateCustomFieldsType < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
15
15
  field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
- # The type of the national identity number
17
- field :value, T.nilable(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue, true) } }
16
+
17
+ field :value, T.nilable(::StackOne::Shared::CandidateCustomFieldsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::CandidateCustomFieldsValue, true) } }
18
18
 
19
19
 
20
- sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue)).void }
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::CandidateCustomFieldsValue)).void }
21
21
  def initialize(source_value: nil, value: nil)
22
22
  @source_value = source_value
23
23
  @value = value
@@ -8,13 +8,13 @@ module StackOne
8
8
  module Shared
9
9
 
10
10
 
11
- class EmployeeSchemasGroupsValue < T::Enum
11
+ class CandidateCustomFieldsValue < T::Enum
12
12
  enums do
13
- WORKSPACE = new('workspace')
14
- TEAM = new('team')
15
- DEPARTMENT = new('department')
16
- GROUP = new('group')
17
- ORGANIZATION = new('organization')
13
+ DATE = new('date')
14
+ FLOAT = new('float')
15
+ INTEGER = new('integer')
16
+ LIST = new('list')
17
+ TEXT = new('text')
18
18
  UNMAPPED_VALUE = new('unmapped_value')
19
19
  end
20
20
  end
@@ -0,0 +1,48 @@
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 ContentBlock < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :content, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
16
+ # Date of creation
17
+ field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
+ # Unique identifier
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
20
+
21
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
22
+ # Provider's unique identifier
23
+ field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
24
+ # Stackone enum identifying the status of content block.
25
+ field :status, T.nilable(::StackOne::Shared::ContentBlockStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
26
+
27
+ field :tags, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
28
+ # Stackone enum identifying the type of content block.
29
+ field :type, T.nilable(::StackOne::Shared::ContentBlockType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
30
+ # Date of last update
31
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
32
+
33
+
34
+ sig { params(content: T.nilable(::String), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), remote_id: T.nilable(::String), status: T.nilable(::StackOne::Shared::ContentBlockStatus), tags: T.nilable(T::Array[::String]), type: T.nilable(::StackOne::Shared::ContentBlockType), updated_at: T.nilable(::DateTime)).void }
35
+ def initialize(content: nil, created_at: nil, id: nil, name: nil, remote_id: nil, status: nil, tags: nil, type: nil, updated_at: nil)
36
+ @content = content
37
+ @created_at = created_at
38
+ @id = id
39
+ @name = name
40
+ @remote_id = remote_id
41
+ @status = status
42
+ @tags = tags
43
+ @type = type
44
+ @updated_at = updated_at
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,18 @@
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
+ # ContentBlockSchemasValue - The type of the content blocks.
11
+ class ContentBlockSchemasValue < T::Enum
12
+ enums do
13
+ TEXT = new('text')
14
+ end
15
+ end
16
+
17
+ end
18
+ 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
+ # Stackone enum identifying the status of content block.
11
+ class ContentBlockStatus < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The source value of the status.
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The Status of the content blocks.
17
+ field :value, T.nilable(::StackOne::Shared::ContentBlockValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ContentBlockValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ContentBlockValue)).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,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
+ # Stackone enum identifying the type of content block.
11
+ class ContentBlockType < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The source value of the type.
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The type of the content blocks.
17
+ field :value, T.nilable(::StackOne::Shared::ContentBlockSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::ContentBlockSchemasValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::ContentBlockSchemasValue)).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,18 @@
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
+ # ContentBlockValue - The Status of the content blocks.
11
+ class ContentBlockValue < T::Enum
12
+ enums do
13
+ TEXT = new('text')
14
+ end
15
+ end
16
+
17
+ end
18
+ 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 Shared
9
+
10
+
11
+ class ContentBlocksPaginated < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :data, T::Array[::StackOne::Shared::ContentBlock], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
16
+
17
+ field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
18
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
19
+ field :next_page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
20
+
21
+ field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
22
+
23
+
24
+ sig { params(data: T::Array[::StackOne::Shared::ContentBlock], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
25
+ def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
26
+ @data = data
27
+ @next_ = next_
28
+ @next_page = next_page
29
+ @raw = raw
30
+ end
31
+ end
32
+ end
33
+ end
@@ -54,7 +54,7 @@ module StackOne
54
54
  # The employee gender
55
55
  field :gender, T.nilable(::StackOne::Shared::Gender), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('gender') } }
56
56
  # The employee groups
57
- field :groups, T.nilable(::StackOne::Shared::Groups), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('groups') } }
57
+ field :groups, T.nilable(T::Array[::StackOne::Shared::HRISGroup]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('groups') } }
58
58
  # The employee hire date
59
59
  field :hire_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hire_date'), 'decoder': Utils.datetime_from_iso_format(true) } }
60
60
  # The employee home location
@@ -103,7 +103,7 @@ module StackOne
103
103
  field :work_phone_number, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('work_phone_number') } }
104
104
 
105
105
 
106
- sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), groups: T.nilable(::StackOne::Shared::Groups), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::NationalIdentityNumber), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), remote_manager_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
106
+ sig { params(avatar: T.nilable(::StackOne::Shared::Avatar), avatar_url: T.nilable(::String), benefits: T.nilable(T::Array[::StackOne::Shared::HRISBenefit]), birthday: T.nilable(::DateTime), citizenships: T.nilable(T::Array[::StackOne::Shared::CountryCodeEnum]), company: T.nilable(::StackOne::Shared::EmployeeCompany), company_name: T.nilable(::String), cost_centers: T.nilable(T::Array[::StackOne::Shared::CostCenters]), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[::StackOne::Shared::EmployeeCustomFields]), date_of_birth: T.nilable(::DateTime), department: T.nilable(::String), display_name: T.nilable(::String), employee_number: T.nilable(::String), employment_contract_type: T.nilable(::StackOne::Shared::EmploymentContractType), employment_status: T.nilable(::StackOne::Shared::EmploymentStatus), employment_type: T.nilable(::StackOne::Shared::EmploymentType), employments: T.nilable(T::Array[::StackOne::Shared::Employment]), ethnicity: T.nilable(::StackOne::Shared::Ethnicity), first_name: T.nilable(::String), gender: T.nilable(::StackOne::Shared::Gender), groups: T.nilable(T::Array[::StackOne::Shared::HRISGroup]), hire_date: T.nilable(::DateTime), home_location: T.nilable(::StackOne::Shared::HomeLocation), id: T.nilable(::String), job_description: T.nilable(::StackOne::Shared::JobDescription), job_title: T.nilable(::String), last_name: T.nilable(::String), manager_id: T.nilable(::String), marital_status: T.nilable(::StackOne::Shared::MaritalStatus), name: T.nilable(::String), national_identity_number: T.nilable(::StackOne::Shared::NationalIdentityNumber), personal_email: T.nilable(::String), personal_phone_number: T.nilable(::String), preferred_language: T.nilable(::StackOne::Shared::PreferredLanguage), remote_id: T.nilable(::String), remote_manager_id: T.nilable(::String), start_date: T.nilable(::DateTime), tenure: T.nilable(::Float), termination_date: T.nilable(::DateTime), updated_at: T.nilable(::DateTime), work_anniversary: T.nilable(::DateTime), work_email: T.nilable(::String), work_location: T.nilable(::StackOne::Shared::WorkLocation), work_phone_number: T.nilable(::String)).void }
107
107
  def initialize(avatar: nil, avatar_url: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, groups: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, national_identity_number: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, remote_manager_id: nil, start_date: nil, tenure: nil, termination_date: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
108
108
  @avatar = avatar
109
109
  @avatar_url = avatar_url
@@ -7,17 +7,17 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # The type of the group
10
+
11
11
  class EmployeeType < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
15
15
  field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
-
17
- field :value, T.nilable(::StackOne::Shared::EmployeeSchemasGroupsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::EmployeeSchemasGroupsValue, true) } }
16
+ # The type of the national identity number
17
+ field :value, T.nilable(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue, true) } }
18
18
 
19
19
 
20
- sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::EmployeeSchemasGroupsValue)).void }
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::EmployeeSchemasNationalIdentityNumberValue)).void }
21
21
  def initialize(source_value: nil, value: nil)
22
22
  @source_value = source_value
23
23
  @value = value
@@ -7,8 +7,8 @@
7
7
  module StackOne
8
8
  module Shared
9
9
 
10
- # The employee groups
11
- class Groups < ::StackOne::Utils::FieldAugmented
10
+
11
+ class HRISDepartment < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # Unique identifier
@@ -23,11 +23,11 @@ module StackOne
23
23
  field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
24
24
  # Provider's list of parent group ids of the given group
25
25
  field :remote_parent_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_parent_ids') } }
26
- # The type of the group
27
- field :type, T.nilable(::StackOne::Shared::EmployeeType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
26
+ # The type of the department group
27
+ field :type, T.nilable(::StackOne::Shared::HRISDepartmentType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
28
28
 
29
29
 
30
- sig { params(id: T.nilable(::String), name: T.nilable(::String), owner_ids: T.nilable(T::Array[::String]), parent_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), remote_parent_ids: T.nilable(T::Array[::String]), type: T.nilable(::StackOne::Shared::EmployeeType)).void }
30
+ sig { params(id: T.nilable(::String), name: T.nilable(::String), owner_ids: T.nilable(T::Array[::String]), parent_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), remote_parent_ids: T.nilable(T::Array[::String]), type: T.nilable(::StackOne::Shared::HRISDepartmentType)).void }
31
31
  def initialize(id: nil, name: nil, owner_ids: nil, parent_ids: nil, remote_id: nil, remote_parent_ids: nil, type: nil)
32
32
  @id = id
33
33
  @name = name