stackone_client 0.2.4 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_one/accounts.rb +2 -9
- data/lib/stack_one/ats.rb +44 -1
- data/lib/stack_one/hris.rb +93 -0
- data/lib/stack_one/models/operations/ats_download_application_document_request.rb +33 -0
- data/lib/stack_one/models/operations/ats_download_application_document_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_application_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_department_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_job_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_location_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_get_user_request.rb +4 -23
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +3 -3
- data/lib/stack_one/models/operations/ats_list_users_request.rb +3 -3
- data/lib/stack_one/models/operations/crm_get_account_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_list_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_download_employee_document_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_download_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_company_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_location_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_upload_employee_document_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_upload_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +8 -2
- data/lib/stack_one/models/operations.rb +6 -62
- data/lib/stack_one/models/shared/account.rb +8 -8
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +5 -10
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +5 -28
- data/lib/stack_one/models/shared/content.rb +6 -3
- data/lib/stack_one/models/shared/{fileformatenum_value.rb → content_value.rb} +1 -1
- data/lib/stack_one/models/shared/employee.rb +5 -2
- data/lib/stack_one/models/shared/employee_schemas_preferred_language_value.rb +115 -0
- data/lib/stack_one/models/shared/{fileformatenum.rb → file_format.rb} +4 -4
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_preferred_language.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_preferred_language_value.rb +115 -0
- data/lib/stack_one/models/shared/job.rb +3 -3
- data/lib/stack_one/models/shared/list.rb +8 -8
- data/lib/stack_one/models/shared/note.rb +5 -5
- data/lib/stack_one/models/shared/notecontentapimodel.rb +2 -2
- data/lib/stack_one/models/shared/preferred_language.rb +27 -0
- data/lib/stack_one/models/shared/resultlink.rb +5 -5
- data/lib/stack_one/models/shared/unifieduploadrequestdto.rb +59 -0
- data/lib/stack_one/models/shared/unifieduploadrequestdto_confidential.rb +27 -0
- data/lib/stack_one/models/shared/{atsupdateapplicationrequestdto_application_status.rb → unifieduploadrequestdto_file_format.rb} +6 -6
- data/lib/stack_one/models/shared/unifieduploadrequestdto_schemas_value.rb +1226 -0
- data/lib/stack_one/models/shared/{job_schemas_status.rb → unifieduploadrequestdto_value.rb} +6 -7
- data/lib/stack_one/models/shared/user.rb +6 -6
- data/lib/stack_one/models/shared/userresult.rb +2 -2
- data/lib/stack_one/models/shared/userspaginated.rb +5 -5
- data/lib/stack_one/models/shared.rb +14 -9
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +19 -70
- data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/operations/proxy.rb +0 -20
- data/lib/stack_one/models/operations/queryparam_proxy.rb +0 -20
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_candidate.rb +0 -30
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +0 -32
@@ -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
|
+
# The employee preferred language
|
11
|
+
class HrisCreateEmployeeRequestDtoPreferredLanguage < ::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 ISO639-2 Code of the language
|
17
|
+
field :value, T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasPreferredLanguageValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasPreferredLanguageValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HrisCreateEmployeeRequestDtoSchemasPreferredLanguageValue)).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
|
data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_preferred_language_value.rb
ADDED
@@ -0,0 +1,115 @@
|
|
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
|
+
# HrisCreateEmployeeRequestDtoSchemasPreferredLanguageValue - The ISO639-2 Code of the language
|
11
|
+
class HrisCreateEmployeeRequestDtoSchemasPreferredLanguageValue < T::Enum
|
12
|
+
enums do
|
13
|
+
AAR = new('aar')
|
14
|
+
AFR = new('afr')
|
15
|
+
AMH = new('amh')
|
16
|
+
ARA = new('ara')
|
17
|
+
AYM = new('aym')
|
18
|
+
AZE = new('aze')
|
19
|
+
BEL = new('bel')
|
20
|
+
BUL = new('bul')
|
21
|
+
BIS = new('bis')
|
22
|
+
BEN = new('ben')
|
23
|
+
BOS = new('bos')
|
24
|
+
BYN = new('byn')
|
25
|
+
CAT = new('cat')
|
26
|
+
CHA = new('cha')
|
27
|
+
CES = new('ces')
|
28
|
+
DEU = new('deu')
|
29
|
+
DIV = new('div')
|
30
|
+
DZO = new('dzo')
|
31
|
+
ELL = new('ell')
|
32
|
+
ENG = new('eng')
|
33
|
+
SPA = new('spa')
|
34
|
+
EST = new('est')
|
35
|
+
FAS = new('fas')
|
36
|
+
FAN = new('fan')
|
37
|
+
FUL = new('ful')
|
38
|
+
FIN = new('fin')
|
39
|
+
FIJ = new('fij')
|
40
|
+
FAO = new('fao')
|
41
|
+
FRA = new('fra')
|
42
|
+
GLE = new('gle')
|
43
|
+
GRN = new('grn')
|
44
|
+
GLV = new('glv')
|
45
|
+
HEB = new('heb')
|
46
|
+
HIN = new('hin')
|
47
|
+
HRV = new('hrv')
|
48
|
+
HAT = new('hat')
|
49
|
+
HUN = new('hun')
|
50
|
+
HYE = new('hye')
|
51
|
+
IND = new('ind')
|
52
|
+
ISL = new('isl')
|
53
|
+
ITA = new('ita')
|
54
|
+
JPN = new('jpn')
|
55
|
+
KAT = new('kat')
|
56
|
+
KON = new('kon')
|
57
|
+
KAZ = new('kaz')
|
58
|
+
KAL = new('kal')
|
59
|
+
KHM = new('khm')
|
60
|
+
KOR = new('kor')
|
61
|
+
KUR = new('kur')
|
62
|
+
KIR = new('kir')
|
63
|
+
LAT = new('lat')
|
64
|
+
LTZ = new('ltz')
|
65
|
+
LIN = new('lin')
|
66
|
+
LAO = new('lao')
|
67
|
+
LIT = new('lit')
|
68
|
+
LUB = new('lub')
|
69
|
+
LAV = new('lav')
|
70
|
+
MLG = new('mlg')
|
71
|
+
MAH = new('mah')
|
72
|
+
MRI = new('mri')
|
73
|
+
MKD = new('mkd')
|
74
|
+
MSA = new('msa')
|
75
|
+
MLT = new('mlt')
|
76
|
+
MYA = new('mya')
|
77
|
+
NOB = new('nob')
|
78
|
+
NEP = new('nep')
|
79
|
+
NLD = new('nld')
|
80
|
+
NNO = new('nno')
|
81
|
+
NOR = new('nor')
|
82
|
+
NBL = new('nbl')
|
83
|
+
NYA = new('nya')
|
84
|
+
PAN = new('pan')
|
85
|
+
POL = new('pol')
|
86
|
+
PUS = new('pus')
|
87
|
+
POR = new('por')
|
88
|
+
RAR = new('rar')
|
89
|
+
ROH = new('roh')
|
90
|
+
RUP = new('rup')
|
91
|
+
RON = new('ron')
|
92
|
+
RUS = new('rus')
|
93
|
+
KIN = new('kin')
|
94
|
+
SAG = new('sag')
|
95
|
+
SIN = new('sin')
|
96
|
+
SLK = new('slk')
|
97
|
+
SMO = new('smo')
|
98
|
+
SNA = new('sna')
|
99
|
+
SOM = new('som')
|
100
|
+
SQI = new('sqi')
|
101
|
+
SRP = new('srp')
|
102
|
+
SSW = new('ssw')
|
103
|
+
SWE = new('swe')
|
104
|
+
SWA = new('swa')
|
105
|
+
TAM = new('tam')
|
106
|
+
TGK = new('tgk')
|
107
|
+
THA = new('tha')
|
108
|
+
TIR = new('tir')
|
109
|
+
TIG = new('tig')
|
110
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|
@@ -29,15 +29,15 @@ module StackOne
|
|
29
29
|
field :job_status, T.nilable(::StackOne::Shared::JobStatus), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('job_status') } }
|
30
30
|
|
31
31
|
field :location_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('location_ids') } }
|
32
|
-
|
33
|
-
field :status, T.nilable(::
|
32
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
33
|
+
field :status, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } }
|
34
34
|
|
35
35
|
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
36
36
|
# Date of last update
|
37
37
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
38
38
|
|
39
39
|
|
40
|
-
sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::Confidential), created_at: T.nilable(::DateTime), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), id: T.nilable(::String), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), status: T.nilable(::
|
40
|
+
sig { params(code: T.nilable(::String), confidential: T.nilable(::StackOne::Shared::Confidential), created_at: T.nilable(::DateTime), department_ids: T.nilable(T::Array[::String]), hiring_team: T.nilable(T::Array[::StackOne::Shared::JobHiringTeam]), id: T.nilable(::String), interview_stages: T.nilable(T::Array[::StackOne::Shared::InterviewStage]), job_status: T.nilable(::StackOne::Shared::JobStatus), location_ids: T.nilable(T::Array[::String]), status: T.nilable(::String), title: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
|
41
41
|
def initialize(code: nil, confidential: nil, created_at: nil, department_ids: nil, hiring_team: nil, id: nil, interview_stages: nil, job_status: nil, location_ids: nil, status: nil, title: nil, updated_at: nil)
|
42
42
|
@code = code
|
43
43
|
@confidential = confidential
|
@@ -11,26 +11,26 @@ module StackOne
|
|
11
11
|
class List < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
|
15
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
|
-
|
17
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
18
14
|
# Timestamp when the list was created
|
19
15
|
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
20
16
|
|
17
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
18
|
+
|
21
19
|
field :items, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('items') } }
|
20
|
+
|
21
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
22
22
|
# The list type
|
23
23
|
field :type, T.nilable(::StackOne::Shared::ListType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
24
24
|
# Timestamp when the list was last updated
|
25
25
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(
|
29
|
-
def initialize(
|
30
|
-
@id = id
|
31
|
-
@name = name
|
28
|
+
sig { params(created_at: T.nilable(::DateTime), id: T.nilable(::String), items: T.nilable(T::Array[::String]), name: T.nilable(::String), type: T.nilable(::StackOne::Shared::ListType), updated_at: T.nilable(::DateTime)).void }
|
29
|
+
def initialize(created_at: nil, id: nil, items: nil, name: nil, type: nil, updated_at: nil)
|
32
30
|
@created_at = created_at
|
31
|
+
@id = id
|
33
32
|
@items = items
|
33
|
+
@name = name
|
34
34
|
@type = type
|
35
35
|
@updated_at = updated_at
|
36
36
|
end
|
@@ -11,8 +11,6 @@ module StackOne
|
|
11
11
|
class Note < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
|
15
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
16
14
|
# Unique identifier of the author
|
17
15
|
field :author_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('author_id') } }
|
18
16
|
|
@@ -21,19 +19,21 @@ module StackOne
|
|
21
19
|
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
22
20
|
# Date of Deletion
|
23
21
|
field :deleted_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('deleted_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
22
|
+
|
23
|
+
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
|
24
24
|
# Date of last update
|
25
25
|
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
26
26
|
# Visibility of the note
|
27
27
|
field :visibility, T.nilable(::StackOne::Shared::NoteVisibility), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('visibility') } }
|
28
28
|
|
29
29
|
|
30
|
-
sig { params(
|
31
|
-
def initialize(
|
32
|
-
@id = id
|
30
|
+
sig { params(author_id: T.nilable(::String), content: T.nilable(T::Array[::StackOne::Shared::NoteContentApiModel]), created_at: T.nilable(::DateTime), deleted_at: T.nilable(::DateTime), id: T.nilable(::String), updated_at: T.nilable(::DateTime), visibility: T.nilable(::StackOne::Shared::NoteVisibility)).void }
|
31
|
+
def initialize(author_id: nil, content: nil, created_at: nil, deleted_at: nil, id: nil, updated_at: nil, visibility: nil)
|
33
32
|
@author_id = author_id
|
34
33
|
@content = content
|
35
34
|
@created_at = created_at
|
36
35
|
@deleted_at = deleted_at
|
36
|
+
@id = id
|
37
37
|
@updated_at = updated_at
|
38
38
|
@visibility = visibility
|
39
39
|
end
|
@@ -12,10 +12,10 @@ module StackOne
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# Body of the note
|
15
|
-
field :body, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
|
15
|
+
field :body, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } }
|
16
16
|
|
17
17
|
|
18
|
-
sig { params(body: ::String).void }
|
18
|
+
sig { params(body: T.nilable(::String)).void }
|
19
19
|
def initialize(body: nil)
|
20
20
|
@body = body
|
21
21
|
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
|
+
# The employee preferred language
|
11
|
+
class PreferredLanguage < ::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 ISO639-2 Code of the language
|
17
|
+
field :value, T.nilable(::StackOne::Shared::EmployeeSchemasPreferredLanguageValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::EmployeeSchemasPreferredLanguageValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::EmployeeSchemasPreferredLanguageValue)).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
|
@@ -11,16 +11,16 @@ module StackOne
|
|
11
11
|
class ResultLink < ::StackOne::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The URL of the result link.
|
15
|
-
field :url, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
16
14
|
# The label of the result link.
|
17
15
|
field :label, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
|
16
|
+
# The URL of the result link.
|
17
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(
|
21
|
-
def initialize(
|
22
|
-
@url = url
|
20
|
+
sig { params(label: T.nilable(::String), url: T.nilable(::String)).void }
|
21
|
+
def initialize(label: nil, url: nil)
|
23
22
|
@label = label
|
23
|
+
@url = url
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -0,0 +1,59 @@
|
|
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 UnifiedUploadRequestDto < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The confidentiality level of the file to be uploaded
|
15
|
+
field :confidential, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential') } }
|
16
|
+
# The base64 encoded content of the file to upload
|
17
|
+
field :content, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } }
|
18
|
+
# The comma separated list of fields to return in the response (if empty, all fields are returned)
|
19
|
+
field :fields_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('fields') } }
|
20
|
+
# The file format of the file
|
21
|
+
field :file_format, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoFileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
|
22
|
+
# The filename of the file to upload
|
23
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
|
24
|
+
# The unified cursor
|
25
|
+
field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
26
|
+
# The page number of the results to fetch
|
27
|
+
#
|
28
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
29
|
+
field :page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('page') } }
|
30
|
+
# The number of results per page
|
31
|
+
field :page_size, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('page_size') } }
|
32
|
+
# The location, category or path for the file to be uploaded to
|
33
|
+
field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
|
34
|
+
# Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
|
35
|
+
field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('proxy') } }
|
36
|
+
# Indicates that the raw request result is returned
|
37
|
+
field :raw, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
38
|
+
# Use a string with a date to only select results updated after that given date
|
39
|
+
field :updated_after, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_after') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(confidential: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), content: T.nilable(::String), fields_: T.nilable(::String), file_format: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoFileFormat), name: T.nilable(::String), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), path: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
|
43
|
+
def initialize(confidential: nil, content: nil, fields_: nil, file_format: nil, name: nil, next_: nil, page: nil, page_size: nil, path: nil, proxy: nil, raw: nil, updated_after: nil)
|
44
|
+
@confidential = confidential
|
45
|
+
@content = content
|
46
|
+
@fields_ = fields_
|
47
|
+
@file_format = file_format
|
48
|
+
@name = name
|
49
|
+
@next_ = next_
|
50
|
+
@page = page
|
51
|
+
@page_size = page_size
|
52
|
+
@path = path
|
53
|
+
@proxy = proxy
|
54
|
+
@raw = raw
|
55
|
+
@updated_after = updated_after
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
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
|
+
# The confidentiality level of the file to be uploaded
|
11
|
+
class UnifiedUploadRequestDtoConfidential < ::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
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UnifiedUploadRequestDtoValue, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoValue)).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
|
@@ -7,17 +7,17 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
11
|
-
class
|
10
|
+
# The file format of the file
|
11
|
+
class UnifiedUploadRequestDtoFileFormat < ::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::
|
16
|
+
|
17
|
+
field :value, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoSchemasValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::UnifiedUploadRequestDtoSchemasValue, true) } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::
|
20
|
+
sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoSchemasValue)).void }
|
21
21
|
def initialize(source_value: nil, value: nil)
|
22
22
|
@source_value = source_value
|
23
23
|
@value = value
|