stackone_client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stackone/models/operations/ats_get_application.rb +12 -2
  3. data/lib/stackone/models/operations/ats_get_application_offer.rb +12 -2
  4. data/lib/stackone/models/operations/ats_get_application_scorecard.rb +12 -2
  5. data/lib/stackone/models/operations/ats_get_candidate.rb +12 -2
  6. data/lib/stackone/models/operations/ats_get_candidate_note.rb +12 -2
  7. data/lib/stackone/models/operations/ats_get_department.rb +12 -2
  8. data/lib/stackone/models/operations/ats_get_interview.rb +12 -2
  9. data/lib/stackone/models/operations/ats_get_interview_stage.rb +12 -2
  10. data/lib/stackone/models/operations/ats_get_job.rb +12 -2
  11. data/lib/stackone/models/operations/ats_get_job_posting.rb +12 -2
  12. data/lib/stackone/models/operations/ats_get_location.rb +12 -2
  13. data/lib/stackone/models/operations/ats_get_offer.rb +12 -2
  14. data/lib/stackone/models/operations/ats_get_rejected_reason.rb +12 -2
  15. data/lib/stackone/models/operations/ats_get_user.rb +12 -2
  16. data/lib/stackone/models/operations/ats_list_application_scorecards.rb +12 -2
  17. data/lib/stackone/models/operations/ats_list_applications.rb +12 -2
  18. data/lib/stackone/models/operations/ats_list_applications_offers.rb +12 -2
  19. data/lib/stackone/models/operations/ats_list_candidate_notes.rb +12 -2
  20. data/lib/stackone/models/operations/ats_list_candidates.rb +12 -2
  21. data/lib/stackone/models/operations/ats_list_departments.rb +12 -2
  22. data/lib/stackone/models/operations/ats_list_interview_stages.rb +12 -2
  23. data/lib/stackone/models/operations/ats_list_interviews.rb +12 -2
  24. data/lib/stackone/models/operations/ats_list_job_postings.rb +12 -2
  25. data/lib/stackone/models/operations/ats_list_jobs.rb +12 -2
  26. data/lib/stackone/models/operations/ats_list_locations.rb +12 -2
  27. data/lib/stackone/models/operations/ats_list_offers.rb +12 -2
  28. data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +12 -2
  29. data/lib/stackone/models/operations/ats_list_users.rb +12 -2
  30. data/lib/stackone/models/operations/crm_get_account.rb +12 -2
  31. data/lib/stackone/models/operations/crm_get_contact.rb +12 -2
  32. data/lib/stackone/models/operations/crm_get_list.rb +12 -2
  33. data/lib/stackone/models/operations/crm_list_accounts.rb +12 -2
  34. data/lib/stackone/models/operations/crm_list_contacts.rb +12 -2
  35. data/lib/stackone/models/operations/crm_list_lists.rb +12 -2
  36. data/lib/stackone/models/operations/hris_get_company.rb +12 -2
  37. data/lib/stackone/models/operations/hris_get_employee.rb +12 -2
  38. data/lib/stackone/models/operations/hris_get_employee_document.rb +12 -2
  39. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +12 -2
  40. data/lib/stackone/models/operations/hris_get_employment.rb +12 -2
  41. data/lib/stackone/models/operations/hris_get_location.rb +12 -2
  42. data/lib/stackone/models/operations/hris_get_time_off_request.rb +12 -2
  43. data/lib/stackone/models/operations/hris_list_companies.rb +12 -2
  44. data/lib/stackone/models/operations/hris_list_employee_documents.rb +12 -2
  45. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +12 -2
  46. data/lib/stackone/models/operations/hris_list_employees.rb +12 -2
  47. data/lib/stackone/models/operations/hris_list_employments.rb +12 -2
  48. data/lib/stackone/models/operations/hris_list_locations.rb +12 -2
  49. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +12 -2
  50. data/lib/stackone/models/operations/marketing_get_campaign.rb +12 -2
  51. data/lib/stackone/models/operations/marketing_get_email_template.rb +12 -2
  52. data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +12 -2
  53. data/lib/stackone/models/operations/marketing_get_push_template.rb +12 -2
  54. data/lib/stackone/models/operations/marketing_list_campaigns.rb +12 -2
  55. data/lib/stackone/models/operations/marketing_list_email_templates.rb +12 -2
  56. data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +12 -2
  57. data/lib/stackone/models/operations/marketing_list_push_templates.rb +12 -2
  58. data/lib/stackone/models/shared/accountaddress.rb +6 -6
  59. data/lib/stackone/models/shared/answer.rb +7 -7
  60. data/lib/stackone/models/shared/application.rb +92 -9
  61. data/lib/stackone/models/shared/applicationattachment.rb +2 -2
  62. data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +65 -8
  63. data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +15 -15
  64. data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +7 -7
  65. data/lib/stackone/models/shared/atscreateofferrequestdto.rb +41 -10
  66. data/lib/stackone/models/shared/atslocation.rb +3 -3
  67. data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +62 -5
  68. data/lib/stackone/models/shared/attachmenttype.rb +5 -5
  69. data/lib/stackone/models/shared/campaign.rb +11 -11
  70. data/lib/stackone/models/shared/candidate.rb +25 -25
  71. data/lib/stackone/models/shared/candidateemail.rb +3 -3
  72. data/lib/stackone/models/shared/channelsenum.rb +3 -3
  73. data/lib/stackone/models/shared/connectsession.rb +5 -5
  74. data/lib/stackone/models/shared/connectsessiontoken.rb +5 -5
  75. data/lib/stackone/models/shared/content.rb +9 -8
  76. data/lib/stackone/models/shared/costcenters.rb +25 -0
  77. data/lib/stackone/models/shared/countrycodeenum.rb +4 -4
  78. data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
  79. data/lib/stackone/models/shared/department.rb +3 -3
  80. data/lib/stackone/models/shared/documentfileformatenum.rb +40 -0
  81. data/lib/stackone/models/shared/documenttypeenum.rb +3 -3
  82. data/lib/stackone/models/shared/emailmessages.rb +10 -10
  83. data/lib/stackone/models/shared/employee.rb +48 -35
  84. data/lib/stackone/models/shared/employeecustomfields.rb +3 -3
  85. data/lib/stackone/models/shared/employment.rb +25 -18
  86. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +40 -33
  87. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +6 -6
  88. data/lib/stackone/models/shared/hrislocation.rb +7 -7
  89. data/lib/stackone/models/shared/interview.rb +46 -20
  90. data/lib/stackone/models/shared/interviewer.rb +6 -6
  91. data/lib/stackone/models/shared/interviewstage.rb +7 -7
  92. data/lib/stackone/models/shared/job.rb +49 -18
  93. data/lib/stackone/models/shared/{hiringteam.rb → jobhiringteam.rb} +1 -1
  94. data/lib/stackone/models/shared/jobposting.rb +21 -14
  95. data/lib/stackone/models/shared/{compensation.rb → jobpostingcompensation.rb} +23 -23
  96. data/lib/stackone/models/shared/{location.rb → jobpostinglocation.rb} +1 -1
  97. data/lib/stackone/models/shared/jobpostingquestionnaire.rb +34 -0
  98. data/lib/stackone/models/shared/list.rb +3 -3
  99. data/lib/stackone/models/shared/message.rb +7 -7
  100. data/lib/stackone/models/shared/note.rb +7 -7
  101. data/lib/stackone/models/shared/offer.rb +43 -12
  102. data/lib/stackone/models/shared/offerhistory.rb +5 -5
  103. data/lib/stackone/models/shared/pushmessages.rb +5 -5
  104. data/lib/stackone/models/shared/question.rb +73 -0
  105. data/lib/stackone/models/shared/questionmultiplechoiceanswers.rb +28 -0
  106. data/lib/stackone/models/shared/questionnaire.rb +2 -2
  107. data/lib/stackone/models/shared/rejectedreason.rb +33 -5
  108. data/lib/stackone/models/shared/sociallink.rb +3 -3
  109. data/lib/stackone/models/shared/timeoff.rb +6 -6
  110. data/lib/stackone/models/shared/user.rb +8 -8
  111. data/lib/stackone/sdkconfiguration.rb +3 -3
  112. data/lib/stackone_client.rb +9 -9
  113. metadata +10 -10
  114. data/lib/stackone/models/shared/applicationcandidate.rb +0 -31
  115. data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +0 -50
  116. data/lib/stackone/models/shared/jobstatusenum.rb +0 -43
  117. data/lib/stackone/models/shared/offerstatusenum.rb +0 -43
  118. data/lib/stackone/models/shared/rejectedreasontypeenum.rb +0 -40
@@ -9,6 +9,16 @@ require_relative '../shared/templateresult'
9
9
 
10
10
  module StackOne
11
11
  module Operations
12
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
+ class MarketingGetPushTemplateQueryParamProxy < ::StackOne::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+ end
21
+
12
22
 
13
23
  class MarketingGetPushTemplateRequest < ::StackOne::Utils::FieldAugmented
14
24
  extend T::Sig
@@ -28,7 +38,7 @@ module StackOne
28
38
  # The number of results per page
29
39
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
30
40
  # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
31
- field :proxy, T.nilable(T::Hash[Symbol, Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
41
+ field :proxy, T.nilable(Operations::MarketingGetPushTemplateQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
42
  # Indicates that the raw request result is returned
33
43
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
34
44
  # The sync token to select the only updated results
@@ -37,7 +47,7 @@ module StackOne
37
47
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
48
 
39
49
 
40
- sig { params(id: String, x_account_id: String, fields: 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), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
50
+ sig { params(id: String, x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::MarketingGetPushTemplateQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
41
51
  def initialize(id: nil, x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
42
52
  @id = id
43
53
  @x_account_id = x_account_id
@@ -9,6 +9,16 @@ require_relative '../shared/campaignspaginated'
9
9
 
10
10
  module StackOne
11
11
  module Operations
12
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
+ class MarketingListCampaignsQueryParamProxy < ::StackOne::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+ end
21
+
12
22
 
13
23
  class MarketingListCampaignsRequest < ::StackOne::Utils::FieldAugmented
14
24
  extend T::Sig
@@ -26,7 +36,7 @@ module StackOne
26
36
  # The number of results per page
27
37
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
28
38
  # 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': 'form', 'explode': true } }
39
+ field :proxy, T.nilable(Operations::MarketingListCampaignsQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
40
  # Indicates that the raw request result is returned
31
41
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
42
  # The sync token to select the only updated results
@@ -35,7 +45,7 @@ module StackOne
35
45
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
46
 
37
47
 
38
- sig { params(x_account_id: String, fields: 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), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
48
+ sig { params(x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::MarketingListCampaignsQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
39
49
  def initialize(x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
40
50
  @x_account_id = x_account_id
41
51
  @fields = fields
@@ -9,6 +9,16 @@ require_relative '../shared/templatespaginated'
9
9
 
10
10
  module StackOne
11
11
  module Operations
12
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
+ class MarketingListEmailTemplatesQueryParamProxy < ::StackOne::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+ end
21
+
12
22
 
13
23
  class MarketingListEmailTemplatesRequest < ::StackOne::Utils::FieldAugmented
14
24
  extend T::Sig
@@ -26,7 +36,7 @@ module StackOne
26
36
  # The number of results per page
27
37
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
28
38
  # 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': 'form', 'explode': true } }
39
+ field :proxy, T.nilable(Operations::MarketingListEmailTemplatesQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
40
  # Indicates that the raw request result is returned
31
41
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
42
  # The sync token to select the only updated results
@@ -35,7 +45,7 @@ module StackOne
35
45
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
46
 
37
47
 
38
- sig { params(x_account_id: String, fields: 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), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
48
+ sig { params(x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::MarketingListEmailTemplatesQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
39
49
  def initialize(x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
40
50
  @x_account_id = x_account_id
41
51
  @fields = fields
@@ -9,6 +9,16 @@ require_relative '../shared/templatespaginated'
9
9
 
10
10
  module StackOne
11
11
  module Operations
12
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
+ class MarketingListOmniChannelTemplatesQueryParamProxy < ::StackOne::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+ end
21
+
12
22
 
13
23
  class MarketingListOmniChannelTemplatesRequest < ::StackOne::Utils::FieldAugmented
14
24
  extend T::Sig
@@ -26,7 +36,7 @@ module StackOne
26
36
  # The number of results per page
27
37
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
28
38
  # 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': 'form', 'explode': true } }
39
+ field :proxy, T.nilable(Operations::MarketingListOmniChannelTemplatesQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
40
  # Indicates that the raw request result is returned
31
41
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
42
  # The sync token to select the only updated results
@@ -35,7 +45,7 @@ module StackOne
35
45
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
46
 
37
47
 
38
- sig { params(x_account_id: String, fields: 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), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
48
+ sig { params(x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::MarketingListOmniChannelTemplatesQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
39
49
  def initialize(x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
40
50
  @x_account_id = x_account_id
41
51
  @fields = fields
@@ -9,6 +9,16 @@ require_relative '../shared/templatespaginated'
9
9
 
10
10
  module StackOne
11
11
  module Operations
12
+ # Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with "proxy" key
13
+ class MarketingListPushTemplatesQueryParamProxy < ::StackOne::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+
18
+
19
+ def initialize; end
20
+ end
21
+
12
22
 
13
23
  class MarketingListPushTemplatesRequest < ::StackOne::Utils::FieldAugmented
14
24
  extend T::Sig
@@ -26,7 +36,7 @@ module StackOne
26
36
  # The number of results per page
27
37
  field :page_size, T.nilable(String), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } }
28
38
  # 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': 'form', 'explode': true } }
39
+ field :proxy, T.nilable(Operations::MarketingListPushTemplatesQueryParamProxy), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
40
  # Indicates that the raw request result is returned
31
41
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
42
  # The sync token to select the only updated results
@@ -35,7 +45,7 @@ module StackOne
35
45
  field :updated_after, T.nilable(String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
36
46
 
37
47
 
38
- sig { params(x_account_id: String, fields: 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), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
48
+ sig { params(x_account_id: String, fields: T.nilable(String), next_: T.nilable(String), page: T.nilable(String), page_size: T.nilable(String), proxy: T.nilable(Operations::MarketingListPushTemplatesQueryParamProxy), raw: T.nilable(T::Boolean), sync_token: T.nilable(String), updated_after: T.nilable(String)).void }
39
49
  def initialize(x_account_id: nil, fields: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, sync_token: nil, updated_after: nil)
40
50
  @x_account_id = x_account_id
41
51
  @fields = fields
@@ -268,12 +268,12 @@ module StackOne
268
268
  extend T::Sig
269
269
 
270
270
  # The source value of the ISO 3166-1 alpha-2 code of the country.
271
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
271
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
272
272
  # The ISO 3166-1 alpha-2 code of the country.
273
- field :value, Shared::AccountAddressSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AccountAddressSchemasValue, false) } }
273
+ field :value, T.nilable(Shared::AccountAddressSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AccountAddressSchemasValue, true) } }
274
274
 
275
275
 
276
- sig { params(source_value: String, value: Shared::AccountAddressSchemasValue).void }
276
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::AccountAddressSchemasValue)).void }
277
277
  def initialize(source_value: nil, value: nil)
278
278
  @source_value = source_value
279
279
  @value = value
@@ -295,12 +295,12 @@ module StackOne
295
295
  extend T::Sig
296
296
 
297
297
  # The source value of the location type.
298
- field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
298
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
299
299
  # The type of the location.
300
- field :value, Shared::AccountAddressValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AccountAddressValue, false) } }
300
+ field :value, T.nilable(Shared::AccountAddressValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AccountAddressValue, true) } }
301
301
 
302
302
 
303
- sig { params(source_value: String, value: Shared::AccountAddressValue).void }
303
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::AccountAddressValue)).void }
304
304
  def initialize(source_value: nil, value: nil)
305
305
  @source_value = source_value
306
306
  @value = value
@@ -29,12 +29,12 @@ module StackOne
29
29
  extend T::Sig
30
30
 
31
31
  # The source value of the answer type.
32
- field :source_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
32
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
33
33
  # The type of the answer.
34
34
  field :value, T.nilable(Shared::AnswerValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AnswerValue, true) } }
35
35
 
36
36
 
37
- sig { params(source_value: T.nilable(String), value: T.nilable(Shared::AnswerValue)).void }
37
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::AnswerValue)).void }
38
38
  def initialize(source_value: nil, value: nil)
39
39
  @source_value = source_value
40
40
  @value = value
@@ -45,19 +45,19 @@ module StackOne
45
45
  class Answer < ::StackOne::Utils::FieldAugmented
46
46
  extend T::Sig
47
47
 
48
- # Values of the answer
49
- field :values, T::Array[String], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('values') } }
50
48
  # Unique identifier of the answer
51
49
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
52
50
  # Type of the answer
53
51
  field :type, T.nilable(Shared::Type), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
52
+ # Values of the answer
53
+ field :values, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('values') } }
54
54
 
55
55
 
56
- sig { params(values: T::Array[String], id: T.nilable(String), type: T.nilable(Shared::Type)).void }
57
- def initialize(values: nil, id: nil, type: nil)
58
- @values = values
56
+ sig { params(id: T.nilable(String), type: T.nilable(Shared::Type), values: T.nilable(T::Array[String])).void }
57
+ def initialize(id: nil, type: nil, values: nil)
59
58
  @id = id
60
59
  @type = type
60
+ @values = values
61
61
  end
62
62
  end
63
63
  end
@@ -5,21 +5,104 @@
5
5
 
6
6
  require 'sorbet-runtime'
7
7
  require 'faraday'
8
- require_relative '../shared/applicationstatusenumapimodel'
9
- require_relative '../shared/applicationcandidate'
10
8
 
11
9
  module StackOne
12
10
  module Shared
11
+ # ApplicationValue - The status of the application.
12
+ class ApplicationValue < T::Enum
13
+ enums do
14
+ ACTIVE = new('active')
15
+ ASSESSMENT = new('assessment')
16
+ BACKGROUND_CHECK = new('background_check')
17
+ CONVERTED = new('converted')
18
+ DECLINED_BY_CANDIDATE = new('declined_by_candidate')
19
+ HIRED = new('hired')
20
+ INTERVIEW = new('interview')
21
+ LEAD = new('lead')
22
+ OFFER = new('offer')
23
+ REFERENCE_CHECK = new('reference_check')
24
+ REJECTED = new('rejected')
25
+ REVIEW = new('review')
26
+ SCREEN = new('screen')
27
+ NEW = new('new')
28
+ UNMAPPED_VALUE = new('unmapped_value')
29
+ end
30
+ end
13
31
 
14
- class Application < ::StackOne::Utils::FieldAugmented
32
+
33
+
34
+ class ApplicationStatus < ::StackOne::Utils::FieldAugmented
15
35
  extend T::Sig
16
36
 
37
+ # The source value of the application status.
38
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
39
+ # The status of the application.
40
+ field :value, T.nilable(Shared::ApplicationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::ApplicationValue, true) } }
41
+
17
42
 
18
- field :application_status, Shared::ApplicationStatusEnumApiModel, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_status') } }
43
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::ApplicationValue)).void }
44
+ def initialize(source_value: nil, value: nil)
45
+ @source_value = source_value
46
+ @value = value
47
+ end
48
+ end
49
+
50
+
51
+ class ApplicationCandidate < ::StackOne::Utils::FieldAugmented
52
+ extend T::Sig
19
53
 
20
- field :candidate, Shared::ApplicationCandidate, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } }
54
+ # Email of the candidate
55
+ field :email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
56
+ # First name of the candidate
57
+ field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
58
+ # Last name of the candidate
59
+ field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
60
+
61
+
62
+ sig { params(email: T.nilable(String), first_name: T.nilable(String), last_name: T.nilable(String)).void }
63
+ def initialize(email: nil, first_name: nil, last_name: nil)
64
+ @email = email
65
+ @first_name = first_name
66
+ @last_name = last_name
67
+ end
68
+ end
69
+
70
+
71
+ class ApplicationInterviewStage < ::StackOne::Utils::FieldAugmented
72
+ extend T::Sig
73
+
74
+ # Interview Stage created date
75
+ field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
76
+
77
+ field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
78
+
79
+ field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
80
+
81
+ field :order, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order') } }
82
+ # Interview Stage updated date
83
+ field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
84
+
85
+
86
+ sig { params(created_at: T.nilable(DateTime), id: T.nilable(String), name: T.nilable(String), order: T.nilable(Float), updated_at: T.nilable(DateTime)).void }
87
+ def initialize(created_at: nil, id: nil, name: nil, order: nil, updated_at: nil)
88
+ @created_at = created_at
89
+ @id = id
90
+ @name = name
91
+ @order = order
92
+ @updated_at = updated_at
93
+ end
94
+ end
95
+
96
+
97
+ class Application < ::StackOne::Utils::FieldAugmented
98
+ extend T::Sig
99
+
100
+
101
+ field :application_status, T.nilable(Shared::ApplicationStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_status') } }
21
102
 
22
103
  field :attachments, T.nilable(T::Array[Shared::ApplicationAttachment]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('attachments') } }
104
+
105
+ field :candidate, T.nilable(Shared::ApplicationCandidate), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } }
23
106
  # Unique identifier of the candidate
24
107
  field :candidate_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate_id') } }
25
108
  # Date of creation
@@ -27,7 +110,7 @@ module StackOne
27
110
  # Unique identifier of the application
28
111
  field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
29
112
 
30
- field :interview_stage, T.nilable(T::Array[Shared::InterviewStage]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage') } }
113
+ field :interview_stage, T.nilable(Shared::ApplicationInterviewStage), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage') } }
31
114
  # Unique identifier of the interview stage
32
115
  field :interview_stage_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('interview_stage_id') } }
33
116
  # Unique identifier of the job
@@ -50,11 +133,11 @@ module StackOne
50
133
  field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
51
134
 
52
135
 
53
- sig { params(application_status: Shared::ApplicationStatusEnumApiModel, candidate: Shared::ApplicationCandidate, attachments: T.nilable(T::Array[Shared::ApplicationAttachment]), candidate_id: T.nilable(String), created_at: T.nilable(DateTime), id: T.nilable(String), interview_stage: T.nilable(T::Array[Shared::InterviewStage]), 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[Shared::Questionnaire]), rejected_at: T.nilable(DateTime), rejected_reason_ids: T.nilable(T::Array[String]), rejected_reasons: T.nilable(T::Array[Shared::RejectedReason]), result_links: T.nilable(T::Array[Shared::ResultLink]), updated_at: T.nilable(DateTime)).void }
54
- def initialize(application_status: nil, candidate: nil, attachments: nil, candidate_id: nil, created_at: 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, result_links: nil, updated_at: nil)
136
+ sig { params(application_status: T.nilable(Shared::ApplicationStatus), attachments: T.nilable(T::Array[Shared::ApplicationAttachment]), candidate: T.nilable(Shared::ApplicationCandidate), candidate_id: T.nilable(String), created_at: T.nilable(DateTime), id: T.nilable(String), interview_stage: T.nilable(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[Shared::Questionnaire]), rejected_at: T.nilable(DateTime), rejected_reason_ids: T.nilable(T::Array[String]), rejected_reasons: T.nilable(T::Array[Shared::RejectedReason]), result_links: T.nilable(T::Array[Shared::ResultLink]), updated_at: T.nilable(DateTime)).void }
137
+ def initialize(application_status: nil, attachments: nil, candidate: nil, candidate_id: nil, created_at: 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, result_links: nil, updated_at: nil)
55
138
  @application_status = application_status
56
- @candidate = candidate
57
139
  @attachments = attachments
140
+ @candidate = candidate
58
141
  @candidate_id = candidate_id
59
142
  @created_at = created_at
60
143
  @id = id
@@ -22,12 +22,12 @@ module StackOne
22
22
  extend T::Sig
23
23
 
24
24
  # The source value of the content type.
25
- field :source_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
25
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
26
26
  # The content type of the attachment.
27
27
  field :value, T.nilable(Shared::ApplicationAttachmentValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::ApplicationAttachmentValue, true) } }
28
28
 
29
29
 
30
- sig { params(source_value: T.nilable(String), value: T.nilable(Shared::ApplicationAttachmentValue)).void }
30
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::ApplicationAttachmentValue)).void }
31
31
  def initialize(source_value: nil, value: nil)
32
32
  @source_value = source_value
33
33
  @value = value
@@ -5,21 +5,78 @@
5
5
 
6
6
  require 'sorbet-runtime'
7
7
  require 'faraday'
8
- require_relative '../shared/applicationstatusenumapimodel'
9
- require_relative '../shared/applicationcandidate'
10
8
 
11
9
  module StackOne
12
10
  module Shared
11
+ # AtsCreateApplicationRequestDtoValue - The status of the application.
12
+ class AtsCreateApplicationRequestDtoValue < T::Enum
13
+ enums do
14
+ ACTIVE = new('active')
15
+ ASSESSMENT = new('assessment')
16
+ BACKGROUND_CHECK = new('background_check')
17
+ CONVERTED = new('converted')
18
+ DECLINED_BY_CANDIDATE = new('declined_by_candidate')
19
+ HIRED = new('hired')
20
+ INTERVIEW = new('interview')
21
+ LEAD = new('lead')
22
+ OFFER = new('offer')
23
+ REFERENCE_CHECK = new('reference_check')
24
+ REJECTED = new('rejected')
25
+ REVIEW = new('review')
26
+ SCREEN = new('screen')
27
+ NEW = new('new')
28
+ UNMAPPED_VALUE = new('unmapped_value')
29
+ end
30
+ end
13
31
 
14
- class AtsCreateApplicationRequestDto < ::StackOne::Utils::FieldAugmented
32
+
33
+
34
+ class AtsCreateApplicationRequestDtoApplicationStatus < ::StackOne::Utils::FieldAugmented
35
+ extend T::Sig
36
+
37
+ # The source value of the application status.
38
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
39
+ # The status of the application.
40
+ field :value, T.nilable(Shared::AtsCreateApplicationRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AtsCreateApplicationRequestDtoValue, true) } }
41
+
42
+
43
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::AtsCreateApplicationRequestDtoValue)).void }
44
+ def initialize(source_value: nil, value: nil)
45
+ @source_value = source_value
46
+ @value = value
47
+ end
48
+ end
49
+
50
+
51
+ class AtsCreateApplicationRequestDtoCandidate < ::StackOne::Utils::FieldAugmented
15
52
  extend T::Sig
16
53
 
54
+ # Email of the candidate
55
+ field :email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } }
56
+ # First name of the candidate
57
+ field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
58
+ # Last name of the candidate
59
+ field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
60
+
61
+
62
+ sig { params(email: T.nilable(String), first_name: T.nilable(String), last_name: T.nilable(String)).void }
63
+ def initialize(email: nil, first_name: nil, last_name: nil)
64
+ @email = email
65
+ @first_name = first_name
66
+ @last_name = last_name
67
+ end
68
+ end
69
+
70
+
71
+ class AtsCreateApplicationRequestDto < ::StackOne::Utils::FieldAugmented
72
+ extend T::Sig
17
73
 
18
- field :application_status, Shared::ApplicationStatusEnumApiModel, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_status') } }
19
74
 
20
- field :candidate, Shared::ApplicationCandidate, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } }
75
+ field :application_status, T.nilable(Shared::AtsCreateApplicationRequestDtoApplicationStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_status') } }
21
76
 
22
77
  field :attachments, T.nilable(T::Array[Shared::ApplicationAttachment]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('attachments') } }
78
+
79
+ field :candidate, T.nilable(Shared::AtsCreateApplicationRequestDtoCandidate), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } }
23
80
  # Unique identifier of the candidate
24
81
  field :candidate_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate_id') } }
25
82
  # Unique identifier of the job
@@ -30,11 +87,11 @@ module StackOne
30
87
  field :questionnaires, T.nilable(T::Array[Shared::Questionnaire]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('questionnaires') } }
31
88
 
32
89
 
33
- sig { params(application_status: Shared::ApplicationStatusEnumApiModel, candidate: Shared::ApplicationCandidate, attachments: T.nilable(T::Array[Shared::ApplicationAttachment]), candidate_id: T.nilable(String), job_id: T.nilable(String), location_ids: T.nilable(T::Array[String]), questionnaires: T.nilable(T::Array[Shared::Questionnaire])).void }
34
- def initialize(application_status: nil, candidate: nil, attachments: nil, candidate_id: nil, job_id: nil, location_ids: nil, questionnaires: nil)
90
+ sig { params(application_status: T.nilable(Shared::AtsCreateApplicationRequestDtoApplicationStatus), attachments: T.nilable(T::Array[Shared::ApplicationAttachment]), candidate: T.nilable(Shared::AtsCreateApplicationRequestDtoCandidate), candidate_id: T.nilable(String), job_id: T.nilable(String), location_ids: T.nilable(T::Array[String]), questionnaires: T.nilable(T::Array[Shared::Questionnaire])).void }
91
+ def initialize(application_status: nil, attachments: nil, candidate: nil, candidate_id: nil, job_id: nil, location_ids: nil, questionnaires: nil)
35
92
  @application_status = application_status
36
- @candidate = candidate
37
93
  @attachments = attachments
94
+ @candidate = candidate
38
95
  @candidate_id = candidate_id
39
96
  @job_id = job_id
40
97
  @location_ids = location_ids
@@ -12,34 +12,34 @@ module StackOne
12
12
  class AtsCreateCandidateRequestDto < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
- # List of candidate emails
16
- field :emails, T::Array[Shared::CandidateEmail], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
17
- # Candidate first name
18
- field :first_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
19
- # Candidate last name
20
- field :last_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
21
- # Candidate name
22
- field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
23
- # Candidate title
24
- field :title, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
25
15
  # List of candidate application IDs
26
16
  field :application_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_ids') } }
27
17
  # Candidate company
28
18
  field :company, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } }
19
+ # List of candidate emails
20
+ field :emails, T.nilable(T::Array[Shared::CandidateEmail]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
21
+ # Candidate first name
22
+ field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
23
+ # Candidate last name
24
+ field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
25
+ # Candidate name
26
+ field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
29
27
  # Candidate phone number
30
28
  field :phone, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone') } }
29
+ # Candidate title
30
+ field :title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
31
31
 
32
32
 
33
- sig { params(emails: T::Array[Shared::CandidateEmail], first_name: String, last_name: String, name: String, title: String, application_ids: T.nilable(T::Array[String]), company: T.nilable(String), phone: T.nilable(String)).void }
34
- def initialize(emails: nil, first_name: nil, last_name: nil, name: nil, title: nil, application_ids: nil, company: nil, phone: nil)
33
+ sig { params(application_ids: T.nilable(T::Array[String]), company: T.nilable(String), emails: T.nilable(T::Array[Shared::CandidateEmail]), first_name: T.nilable(String), last_name: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), title: T.nilable(String)).void }
34
+ def initialize(application_ids: nil, company: nil, emails: nil, first_name: nil, last_name: nil, name: nil, phone: nil, title: nil)
35
+ @application_ids = application_ids
36
+ @company = company
35
37
  @emails = emails
36
38
  @first_name = first_name
37
39
  @last_name = last_name
38
40
  @name = name
39
- @title = title
40
- @application_ids = application_ids
41
- @company = company
42
41
  @phone = phone
42
+ @title = title
43
43
  end
44
44
  end
45
45
  end
@@ -22,12 +22,12 @@ module StackOne
22
22
  extend T::Sig
23
23
 
24
24
  # The source value of the notes visibility.
25
- field :source_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
25
+ field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
26
26
  # The visibility of the notes.
27
27
  field :value, T.nilable(Shared::AtsCreateNotesRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::AtsCreateNotesRequestDtoValue, true) } }
28
28
 
29
29
 
30
- sig { params(source_value: T.nilable(String), value: T.nilable(Shared::AtsCreateNotesRequestDtoValue)).void }
30
+ sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::AtsCreateNotesRequestDtoValue)).void }
31
31
  def initialize(source_value: nil, value: nil)
32
32
  @source_value = source_value
33
33
  @value = value
@@ -38,18 +38,18 @@ module StackOne
38
38
  class AtsCreateNotesRequestDto < ::StackOne::Utils::FieldAugmented
39
39
  extend T::Sig
40
40
 
41
-
42
- field :content, T::Array[Shared::NoteContentApiModel], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
43
41
  # Unique identifier of the author
44
42
  field :author_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('author_id') } }
43
+
44
+ field :content, T.nilable(T::Array[Shared::NoteContentApiModel]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
45
45
  # Visibility of the note
46
46
  field :visibility, T.nilable(Shared::Visibility), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('visibility') } }
47
47
 
48
48
 
49
- sig { params(content: T::Array[Shared::NoteContentApiModel], author_id: T.nilable(String), visibility: T.nilable(Shared::Visibility)).void }
50
- def initialize(content: nil, author_id: nil, visibility: nil)
51
- @content = content
49
+ sig { params(author_id: T.nilable(String), content: T.nilable(T::Array[Shared::NoteContentApiModel]), visibility: T.nilable(Shared::Visibility)).void }
50
+ def initialize(author_id: nil, content: nil, visibility: nil)
52
51
  @author_id = author_id
52
+ @content = content
53
53
  @visibility = visibility
54
54
  end
55
55
  end