stackone_client 0.2.2 → 0.2.3
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 +5 -5
- data/lib/stack_one/ats.rb +37 -37
- data/lib/stack_one/connect_sessions.rb +2 -2
- data/lib/stack_one/connectors.rb +2 -2
- data/lib/stack_one/crm.rb +12 -12
- data/lib/stack_one/hris.rb +248 -21
- data/lib/stack_one/marketing.rb +16 -16
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_users_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_account_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_create_employee_document_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_request.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb +30 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +1 -1
- data/lib/stack_one/models/operations/proxy.rb +1 -1
- data/lib/stack_one/models/operations/queryparam_proxy.rb +1 -1
- data/lib/stack_one/models/operations.rb +12 -0
- data/lib/stack_one/models/shared/categories.rb +1 -0
- data/lib/stack_one/models/shared/category.rb +1 -0
- data/lib/stack_one/models/shared/company.rb +3 -3
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +1 -0
- data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +1 -0
- data/lib/stack_one/models/shared/createdocumentresult.rb +30 -0
- data/lib/stack_one/models/shared/createworkeligibilityresult.rb +30 -0
- data/lib/stack_one/models/shared/emailmessages_value.rb +20 -0
- data/lib/stack_one/models/shared/employee.rb +8 -5
- data/lib/stack_one/models/shared/employee_company.rb +36 -0
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +0 -2
- data/lib/stack_one/models/shared/employment_schemas_value.rb +0 -2
- data/lib/stack_one/models/shared/hrisbenefit.rb +3 -3
- data/lib/stack_one/models/shared/hrisbenefit_value.rb +4 -0
- data/lib/stack_one/models/shared/hriscreatedocumentrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreatedocumentrequestdto_value.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +5 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +0 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +8 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +3 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto.rb +42 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb +22 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_value.rb +266 -0
- data/lib/stack_one/models/shared/issued_by.rb +27 -0
- data/lib/stack_one/models/shared/job.rb +2 -2
- data/lib/stack_one/models/shared/{response.rb → job_schemas_status.rb} +1 -1
- data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +1 -0
- data/lib/stack_one/models/shared/jobposting_schemas_value.rb +0 -2
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +1 -0
- data/lib/stack_one/models/shared/message_message_type.rb +2 -2
- data/lib/stack_one/models/shared/message_type.rb +2 -2
- data/lib/stack_one/models/shared/message_value.rb +20 -0
- data/lib/stack_one/models/shared/pushmessages_message_type.rb +2 -2
- data/lib/stack_one/models/shared/pushmessages_value.rb +20 -0
- data/lib/stack_one/models/shared/rawresponse.rb +2 -2
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +8 -0
- data/lib/stack_one/models/shared/timeoff_value.rb +3 -0
- data/lib/stack_one/models/shared/workeligibility.rb +8 -5
- data/lib/stack_one/models/shared/workeligibility_document.rb +39 -0
- data/lib/stack_one/models/shared/workeligibility_issued_by.rb +27 -0
- data/lib/stack_one/models/shared/workeligibility_schemas_value.rb +22 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +2 -2
- data/lib/stack_one/models/shared/workeligibility_value.rb +250 -6
- data/lib/stack_one/models/shared/workeligibilitypaginated.rb +33 -0
- data/lib/stack_one/models/shared/workeligibilityresult.rb +27 -0
- data/lib/stack_one/models/shared.rb +27 -8
- data/lib/stack_one/proxy.rb +1 -1
- data/lib/stack_one/sdkconfiguration.rb +10 -11
- data/lib/stack_one/stackone.rb +21 -20
- data/lib/stack_one/utils/metadata_fields.rb +8 -12
- data/lib/stack_one/utils/t.rb +59 -0
- data/lib/stack_one/utils/utils.rb +8 -13
- data/lib/stackone_client.rb +5 -3
- metadata +35 -3
@@ -7,14 +7,258 @@
|
|
7
7
|
module StackOne
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
10
|
+
# WorkEligibilityValue - The ISO3166-1 Alpha2 Code of the Country
|
11
11
|
class WorkEligibilityValue < T::Enum
|
12
12
|
enums do
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
AF = new('AF')
|
14
|
+
AL = new('AL')
|
15
|
+
DZ = new('DZ')
|
16
|
+
AS = new('AS')
|
17
|
+
AD = new('AD')
|
18
|
+
AO = new('AO')
|
19
|
+
AI = new('AI')
|
20
|
+
AQ = new('AQ')
|
21
|
+
AG = new('AG')
|
22
|
+
AR = new('AR')
|
23
|
+
AM = new('AM')
|
24
|
+
AW = new('AW')
|
25
|
+
AU = new('AU')
|
26
|
+
AT = new('AT')
|
27
|
+
AZ = new('AZ')
|
28
|
+
BS = new('BS')
|
29
|
+
BH = new('BH')
|
30
|
+
BD = new('BD')
|
31
|
+
BB = new('BB')
|
32
|
+
BY = new('BY')
|
33
|
+
BE = new('BE')
|
34
|
+
BZ = new('BZ')
|
35
|
+
BJ = new('BJ')
|
36
|
+
BM = new('BM')
|
37
|
+
BT = new('BT')
|
38
|
+
BO = new('BO')
|
39
|
+
BQ = new('BQ')
|
40
|
+
BA = new('BA')
|
41
|
+
BW = new('BW')
|
42
|
+
BV = new('BV')
|
43
|
+
BR = new('BR')
|
44
|
+
IO = new('IO')
|
45
|
+
BN = new('BN')
|
46
|
+
BG = new('BG')
|
47
|
+
BF = new('BF')
|
48
|
+
BI = new('BI')
|
49
|
+
KH = new('KH')
|
50
|
+
CM = new('CM')
|
51
|
+
CA = new('CA')
|
52
|
+
CV = new('CV')
|
53
|
+
KY = new('KY')
|
54
|
+
CF = new('CF')
|
55
|
+
TD = new('TD')
|
56
|
+
CL = new('CL')
|
57
|
+
CN = new('CN')
|
58
|
+
CX = new('CX')
|
59
|
+
CC = new('CC')
|
60
|
+
CO = new('CO')
|
61
|
+
KM = new('KM')
|
62
|
+
CG = new('CG')
|
63
|
+
CD = new('CD')
|
64
|
+
CK = new('CK')
|
65
|
+
CR = new('CR')
|
66
|
+
HR = new('HR')
|
67
|
+
CU = new('CU')
|
68
|
+
CW = new('CW')
|
69
|
+
CY = new('CY')
|
70
|
+
CZ = new('CZ')
|
71
|
+
CI = new('CI')
|
72
|
+
DK = new('DK')
|
73
|
+
DJ = new('DJ')
|
74
|
+
DM = new('DM')
|
75
|
+
DO = new('DO')
|
76
|
+
EC = new('EC')
|
77
|
+
EG = new('EG')
|
78
|
+
SV = new('SV')
|
79
|
+
GQ = new('GQ')
|
80
|
+
ER = new('ER')
|
81
|
+
EE = new('EE')
|
82
|
+
ET = new('ET')
|
83
|
+
FK = new('FK')
|
84
|
+
FO = new('FO')
|
85
|
+
FJ = new('FJ')
|
86
|
+
FI = new('FI')
|
87
|
+
FR = new('FR')
|
88
|
+
GF = new('GF')
|
89
|
+
PF = new('PF')
|
90
|
+
TF = new('TF')
|
91
|
+
GA = new('GA')
|
92
|
+
GM = new('GM')
|
93
|
+
GE = new('GE')
|
94
|
+
DE = new('DE')
|
95
|
+
GH = new('GH')
|
96
|
+
GI = new('GI')
|
97
|
+
GR = new('GR')
|
98
|
+
GL = new('GL')
|
99
|
+
GD = new('GD')
|
100
|
+
GP = new('GP')
|
101
|
+
GU = new('GU')
|
102
|
+
GT = new('GT')
|
103
|
+
GG = new('GG')
|
104
|
+
GN = new('GN')
|
105
|
+
GW = new('GW')
|
106
|
+
GY = new('GY')
|
107
|
+
HT = new('HT')
|
108
|
+
HM = new('HM')
|
109
|
+
VA = new('VA')
|
110
|
+
HN = new('HN')
|
111
|
+
HK = new('HK')
|
112
|
+
HU = new('HU')
|
113
|
+
IS = new('IS')
|
114
|
+
IN = new('IN')
|
115
|
+
ID = new('ID')
|
116
|
+
IR = new('IR')
|
117
|
+
IQ = new('IQ')
|
118
|
+
IE = new('IE')
|
119
|
+
IM = new('IM')
|
120
|
+
IL = new('IL')
|
121
|
+
IT = new('IT')
|
122
|
+
JM = new('JM')
|
123
|
+
JP = new('JP')
|
124
|
+
JE = new('JE')
|
125
|
+
JO = new('JO')
|
126
|
+
KZ = new('KZ')
|
127
|
+
KE = new('KE')
|
128
|
+
KI = new('KI')
|
129
|
+
KP = new('KP')
|
130
|
+
KR = new('KR')
|
131
|
+
KW = new('KW')
|
132
|
+
KG = new('KG')
|
133
|
+
LA = new('LA')
|
134
|
+
LV = new('LV')
|
135
|
+
LB = new('LB')
|
136
|
+
LS = new('LS')
|
137
|
+
LR = new('LR')
|
138
|
+
LY = new('LY')
|
139
|
+
LI = new('LI')
|
140
|
+
LT = new('LT')
|
141
|
+
LU = new('LU')
|
142
|
+
MO = new('MO')
|
143
|
+
MK = new('MK')
|
144
|
+
MG = new('MG')
|
145
|
+
MW = new('MW')
|
146
|
+
MY = new('MY')
|
147
|
+
MV = new('MV')
|
148
|
+
ML = new('ML')
|
149
|
+
MT = new('MT')
|
150
|
+
MH = new('MH')
|
151
|
+
MQ = new('MQ')
|
152
|
+
MR = new('MR')
|
153
|
+
MU = new('MU')
|
154
|
+
YT = new('YT')
|
155
|
+
MX = new('MX')
|
156
|
+
FM = new('FM')
|
157
|
+
MD = new('MD')
|
158
|
+
MC = new('MC')
|
159
|
+
MN = new('MN')
|
160
|
+
ME = new('ME')
|
161
|
+
MS = new('MS')
|
162
|
+
MA = new('MA')
|
163
|
+
MZ = new('MZ')
|
164
|
+
MM = new('MM')
|
165
|
+
NA = new('NA')
|
166
|
+
NR = new('NR')
|
167
|
+
NP = new('NP')
|
168
|
+
NL = new('NL')
|
169
|
+
NC = new('NC')
|
170
|
+
NZ = new('NZ')
|
171
|
+
NI = new('NI')
|
172
|
+
NE = new('NE')
|
173
|
+
NG = new('NG')
|
174
|
+
NU = new('NU')
|
175
|
+
NF = new('NF')
|
176
|
+
MP = new('MP')
|
177
|
+
NO = new('NO')
|
178
|
+
OM = new('OM')
|
179
|
+
PK = new('PK')
|
180
|
+
PW = new('PW')
|
181
|
+
PS = new('PS')
|
182
|
+
PA = new('PA')
|
183
|
+
PG = new('PG')
|
184
|
+
PY = new('PY')
|
185
|
+
PE = new('PE')
|
186
|
+
PH = new('PH')
|
187
|
+
PN = new('PN')
|
188
|
+
PL = new('PL')
|
189
|
+
PT = new('PT')
|
190
|
+
PR = new('PR')
|
191
|
+
QA = new('QA')
|
192
|
+
RO = new('RO')
|
193
|
+
RU = new('RU')
|
194
|
+
RW = new('RW')
|
195
|
+
RE = new('RE')
|
196
|
+
BL = new('BL')
|
197
|
+
SH = new('SH')
|
198
|
+
KN = new('KN')
|
199
|
+
LC = new('LC')
|
200
|
+
MF = new('MF')
|
201
|
+
PM = new('PM')
|
202
|
+
VC = new('VC')
|
203
|
+
WS = new('WS')
|
204
|
+
SM = new('SM')
|
205
|
+
ST = new('ST')
|
206
|
+
SA = new('SA')
|
207
|
+
SN = new('SN')
|
208
|
+
RS = new('RS')
|
209
|
+
SC = new('SC')
|
210
|
+
SL = new('SL')
|
211
|
+
SG = new('SG')
|
212
|
+
SX = new('SX')
|
213
|
+
SK = new('SK')
|
214
|
+
SI = new('SI')
|
215
|
+
SB = new('SB')
|
216
|
+
SO = new('SO')
|
217
|
+
ZA = new('ZA')
|
218
|
+
GS = new('GS')
|
219
|
+
SS = new('SS')
|
220
|
+
ES = new('ES')
|
221
|
+
LK = new('LK')
|
222
|
+
SD = new('SD')
|
223
|
+
SR = new('SR')
|
224
|
+
SJ = new('SJ')
|
225
|
+
SZ = new('SZ')
|
226
|
+
SE = new('SE')
|
227
|
+
CH = new('CH')
|
228
|
+
SY = new('SY')
|
229
|
+
TW = new('TW')
|
230
|
+
TJ = new('TJ')
|
231
|
+
TZ = new('TZ')
|
232
|
+
TH = new('TH')
|
233
|
+
TL = new('TL')
|
234
|
+
TG = new('TG')
|
235
|
+
TK = new('TK')
|
236
|
+
TO = new('TO')
|
237
|
+
TT = new('TT')
|
238
|
+
TN = new('TN')
|
239
|
+
TR = new('TR')
|
240
|
+
TM = new('TM')
|
241
|
+
TC = new('TC')
|
242
|
+
TV = new('TV')
|
243
|
+
UG = new('UG')
|
244
|
+
UA = new('UA')
|
245
|
+
AE = new('AE')
|
246
|
+
GB = new('GB')
|
247
|
+
US = new('US')
|
248
|
+
UM = new('UM')
|
249
|
+
UY = new('UY')
|
250
|
+
UZ = new('UZ')
|
251
|
+
VU = new('VU')
|
252
|
+
VE = new('VE')
|
253
|
+
VN = new('VN')
|
254
|
+
VG = new('VG')
|
255
|
+
VI = new('VI')
|
256
|
+
WF = new('WF')
|
257
|
+
EH = new('EH')
|
258
|
+
YE = new('YE')
|
259
|
+
ZM = new('ZM')
|
260
|
+
ZW = new('ZW')
|
261
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
18
262
|
end
|
19
263
|
end
|
20
264
|
|
@@ -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 WorkEligibilityPaginated < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, T::Array[::StackOne::Shared::WorkEligibility], { '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::WorkEligibility], 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
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module StackOne
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class WorkEligibilityResult < ::StackOne::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::StackOne::Shared::WorkEligibility, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::StackOne::Shared::WorkEligibility, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
|
21
|
+
def initialize(data: nil, raw: nil)
|
22
|
+
@data = data
|
23
|
+
@raw = raw
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -36,7 +36,6 @@ module StackOne
|
|
36
36
|
autoload :ContentType, 'stack_one/models/shared/content_type.rb'
|
37
37
|
autoload :ApplicationAttachment, 'stack_one/models/shared/applicationattachment.rb'
|
38
38
|
autoload :CandidateResult, 'stack_one/models/shared/candidateresult.rb'
|
39
|
-
autoload :Response, 'stack_one/models/shared/response.rb'
|
40
39
|
autoload :RawResponse, 'stack_one/models/shared/rawresponse.rb'
|
41
40
|
autoload :Candidate, 'stack_one/models/shared/candidate.rb'
|
42
41
|
autoload :SocialLink, 'stack_one/models/shared/sociallink.rb'
|
@@ -94,6 +93,7 @@ module StackOne
|
|
94
93
|
autoload :Confidential, 'stack_one/models/shared/confidential.rb'
|
95
94
|
autoload :JobValue, 'stack_one/models/shared/job_value.rb'
|
96
95
|
autoload :JobStatus, 'stack_one/models/shared/job_status.rb'
|
96
|
+
autoload :JobSchemasStatus, 'stack_one/models/shared/job_schemas_status.rb'
|
97
97
|
autoload :Job, 'stack_one/models/shared/job.rb'
|
98
98
|
autoload :JobHiringTeam, 'stack_one/models/shared/jobhiringteam.rb'
|
99
99
|
autoload :JobPostingResult, 'stack_one/models/shared/jobpostingresult.rb'
|
@@ -206,20 +206,32 @@ module StackOne
|
|
206
206
|
autoload :EmployeeCustomFields, 'stack_one/models/shared/employeecustomfields.rb'
|
207
207
|
autoload :CountryCodeEnumValue, 'stack_one/models/shared/countrycodeenum_value.rb'
|
208
208
|
autoload :CountryCodeEnum, 'stack_one/models/shared/countrycodeenum.rb'
|
209
|
+
autoload :HRISBenefitValue, 'stack_one/models/shared/hrisbenefit_value.rb'
|
210
|
+
autoload :BenefitType, 'stack_one/models/shared/benefit_type.rb'
|
211
|
+
autoload :HRISBenefit, 'stack_one/models/shared/hrisbenefit.rb'
|
212
|
+
autoload :CreateDocumentResult, 'stack_one/models/shared/createdocumentresult.rb'
|
213
|
+
autoload :HrisCreateDocumentRequestDtoValue, 'stack_one/models/shared/hriscreatedocumentrequestdto_value.rb'
|
214
|
+
autoload :HrisCreateDocumentRequestDtoType, 'stack_one/models/shared/hriscreatedocumentrequestdto_type.rb'
|
215
|
+
autoload :HrisCreateDocumentRequestDto, 'stack_one/models/shared/hriscreatedocumentrequestdto.rb'
|
209
216
|
autoload :CreateTimeOffResult, 'stack_one/models/shared/createtimeoffresult.rb'
|
210
217
|
autoload :HrisCreateTimeOffRequestDtoValue, 'stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb'
|
211
218
|
autoload :HrisCreateTimeOffRequestDtoStatus, 'stack_one/models/shared/hriscreatetimeoffrequestdto_status.rb'
|
212
219
|
autoload :HrisCreateTimeOffRequestDtoSchemasValue, 'stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb'
|
213
220
|
autoload :HrisCreateTimeOffRequestDtoType, 'stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb'
|
214
221
|
autoload :HrisCreateTimeOffRequestDto, 'stack_one/models/shared/hriscreatetimeoffrequestdto.rb'
|
222
|
+
autoload :CreateWorkEligibilityResult, 'stack_one/models/shared/createworkeligibilityresult.rb'
|
223
|
+
autoload :Document, 'stack_one/models/shared/document.rb'
|
224
|
+
autoload :HrisCreateWorkEligibilityRequestDtoValue, 'stack_one/models/shared/hriscreateworkeligibilityrequestdto_value.rb'
|
225
|
+
autoload :IssuedBy, 'stack_one/models/shared/issued_by.rb'
|
226
|
+
autoload :HrisCreateWorkEligibilityRequestDtoSchemasValue, 'stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb'
|
227
|
+
autoload :HrisCreateWorkEligibilityRequestDtoType, 'stack_one/models/shared/hriscreateworkeligibilityrequestdto_type.rb'
|
228
|
+
autoload :HrisCreateWorkEligibilityRequestDto, 'stack_one/models/shared/hriscreateworkeligibilityrequestdto.rb'
|
215
229
|
autoload :HRISBenefitResult, 'stack_one/models/shared/hrisbenefitresult.rb'
|
216
|
-
autoload :HRISBenefitValue, 'stack_one/models/shared/hrisbenefit_value.rb'
|
217
|
-
autoload :BenefitType, 'stack_one/models/shared/benefit_type.rb'
|
218
|
-
autoload :HRISBenefit, 'stack_one/models/shared/hrisbenefit.rb'
|
219
230
|
autoload :CompanyResult, 'stack_one/models/shared/companyresult.rb'
|
220
231
|
autoload :Company, 'stack_one/models/shared/company.rb'
|
221
232
|
autoload :EmployeeResult, 'stack_one/models/shared/employeeresult.rb'
|
222
233
|
autoload :Avatar, 'stack_one/models/shared/avatar.rb'
|
234
|
+
autoload :EmployeeCompany, 'stack_one/models/shared/employee_company.rb'
|
223
235
|
autoload :EmployeeValue, 'stack_one/models/shared/employee_value.rb'
|
224
236
|
autoload :EmploymentContractType, 'stack_one/models/shared/employment_contract_type.rb'
|
225
237
|
autoload :EmployeeSchemasValue, 'stack_one/models/shared/employee_schemas_value.rb'
|
@@ -244,10 +256,6 @@ module StackOne
|
|
244
256
|
autoload :EmployeeSchemasLocationType, 'stack_one/models/shared/employee_schemas_location_type.rb'
|
245
257
|
autoload :WorkLocation, 'stack_one/models/shared/work_location.rb'
|
246
258
|
autoload :Employee, 'stack_one/models/shared/employee.rb'
|
247
|
-
autoload :Document, 'stack_one/models/shared/document.rb'
|
248
|
-
autoload :WorkEligibilityValue, 'stack_one/models/shared/workeligibility_value.rb'
|
249
|
-
autoload :WorkEligibilityType, 'stack_one/models/shared/workeligibility_type.rb'
|
250
|
-
autoload :WorkEligibility, 'stack_one/models/shared/workeligibility.rb'
|
251
259
|
autoload :CostCenters, 'stack_one/models/shared/costcenters.rb'
|
252
260
|
autoload :TimeOffResult, 'stack_one/models/shared/timeoffresult.rb'
|
253
261
|
autoload :TimeOffValue, 'stack_one/models/shared/timeoff_value.rb'
|
@@ -255,6 +263,13 @@ module StackOne
|
|
255
263
|
autoload :TimeOffSchemasValue, 'stack_one/models/shared/timeoff_schemas_value.rb'
|
256
264
|
autoload :TimeOffType, 'stack_one/models/shared/timeoff_type.rb'
|
257
265
|
autoload :TimeOff, 'stack_one/models/shared/timeoff.rb'
|
266
|
+
autoload :WorkEligibilityResult, 'stack_one/models/shared/workeligibilityresult.rb'
|
267
|
+
autoload :WorkEligibilityDocument, 'stack_one/models/shared/workeligibility_document.rb'
|
268
|
+
autoload :WorkEligibilityValue, 'stack_one/models/shared/workeligibility_value.rb'
|
269
|
+
autoload :WorkEligibilityIssuedBy, 'stack_one/models/shared/workeligibility_issued_by.rb'
|
270
|
+
autoload :WorkEligibilitySchemasValue, 'stack_one/models/shared/workeligibility_schemas_value.rb'
|
271
|
+
autoload :WorkEligibilityType, 'stack_one/models/shared/workeligibility_type.rb'
|
272
|
+
autoload :WorkEligibility, 'stack_one/models/shared/workeligibility.rb'
|
258
273
|
autoload :EmploymentResult, 'stack_one/models/shared/employmentresult.rb'
|
259
274
|
autoload :HRISLocationResult, 'stack_one/models/shared/hrislocationresult.rb'
|
260
275
|
autoload :HRISLocationValue, 'stack_one/models/shared/hrislocation_value.rb'
|
@@ -265,19 +280,23 @@ module StackOne
|
|
265
280
|
autoload :HRISBenefitsPaginated, 'stack_one/models/shared/hrisbenefitspaginated.rb'
|
266
281
|
autoload :CompaniesPaginated, 'stack_one/models/shared/companiespaginated.rb'
|
267
282
|
autoload :TimeOffPaginated, 'stack_one/models/shared/timeoffpaginated.rb'
|
283
|
+
autoload :WorkEligibilityPaginated, 'stack_one/models/shared/workeligibilitypaginated.rb'
|
268
284
|
autoload :EmployeesPaginated, 'stack_one/models/shared/employeespaginated.rb'
|
269
285
|
autoload :EmploymentsPaginated, 'stack_one/models/shared/employmentspaginated.rb'
|
270
286
|
autoload :HRISLocationsPaginated, 'stack_one/models/shared/hrislocationspaginated.rb'
|
271
287
|
autoload :CreateTemplateResult, 'stack_one/models/shared/createtemplateresult.rb'
|
272
288
|
autoload :MarketingCreateEmailTemplateRequestDto, 'stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb'
|
273
289
|
autoload :MessageContent, 'stack_one/models/shared/message_content.rb'
|
290
|
+
autoload :EmailMessagesValue, 'stack_one/models/shared/emailmessages_value.rb'
|
274
291
|
autoload :MessageType, 'stack_one/models/shared/message_type.rb'
|
275
292
|
autoload :EmailMessages, 'stack_one/models/shared/emailmessages.rb'
|
276
293
|
autoload :MarketingCreateTemplateRequestDto, 'stack_one/models/shared/marketingcreatetemplaterequestdto.rb'
|
294
|
+
autoload :MessageValue, 'stack_one/models/shared/message_value.rb'
|
277
295
|
autoload :MessageMessageType, 'stack_one/models/shared/message_message_type.rb'
|
278
296
|
autoload :Message, 'stack_one/models/shared/message.rb'
|
279
297
|
autoload :MarketingCreatePushTemplateRequestDto, 'stack_one/models/shared/marketingcreatepushtemplaterequestdto.rb'
|
280
298
|
autoload :PushMessagesMessageContent, 'stack_one/models/shared/pushmessages_message_content.rb'
|
299
|
+
autoload :PushMessagesValue, 'stack_one/models/shared/pushmessages_value.rb'
|
281
300
|
autoload :PushMessagesMessageType, 'stack_one/models/shared/pushmessages_message_type.rb'
|
282
301
|
autoload :PushMessages, 'stack_one/models/shared/pushmessages.rb'
|
283
302
|
autoload :CampaignResult, 'stack_one/models/shared/campaignresult.rb'
|
data/lib/stack_one/proxy.rb
CHANGED
@@ -19,7 +19,7 @@ module StackOne
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(proxy_request_body: ::StackOne::Shared::ProxyRequestBody, x_account_id: ::String).returns(
|
22
|
+
sig { params(proxy_request_body: ::StackOne::Shared::ProxyRequestBody, x_account_id: ::String).returns(::StackOne::Operations::StackoneProxyRequestResponse) }
|
23
23
|
def proxy_request(proxy_request_body, x_account_id)
|
24
24
|
# proxy_request - Proxy Request
|
25
25
|
request = ::StackOne::Operations::StackoneProxyRequestRequest.new(
|
@@ -10,7 +10,6 @@ require 'sorbet-runtime'
|
|
10
10
|
module StackOne
|
11
11
|
extend T::Sig
|
12
12
|
|
13
|
-
|
14
13
|
SERVERS = [
|
15
14
|
'https://api.stackone.com',
|
16
15
|
].freeze
|
@@ -20,33 +19,33 @@ module StackOne
|
|
20
19
|
extend T::Sig
|
21
20
|
|
22
21
|
field :client, T.nilable(Faraday::Connection)
|
23
|
-
field :security, Shared::Security
|
22
|
+
field :security, T.nilable(::StackOne::Shared::Security)
|
24
23
|
field :server_url, T.nilable(String)
|
24
|
+
field :server_idx, T.nilable(Integer)
|
25
25
|
field :language, String
|
26
26
|
field :openapi_doc_version, String
|
27
27
|
field :sdk_version, String
|
28
28
|
field :gen_version, String
|
29
29
|
field :user_agent, String
|
30
|
-
|
31
|
-
|
32
|
-
sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
|
30
|
+
|
31
|
+
|
32
|
+
sig { params(client: Faraday::Connection, security: T.nilable(::StackOne::Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
|
33
33
|
def initialize(client, security, server_url, server_idx)
|
34
34
|
@client = client
|
35
35
|
@server_url = server_url
|
36
36
|
@server_idx = server_idx.nil? ? 0 : server_idx
|
37
|
+
raise StandardError, "Invalid server index #{server_idx}" if @server_idx.negative? || @server_idx >= SERVERS.length
|
38
|
+
@security = security
|
37
39
|
@language = 'ruby'
|
38
40
|
@openapi_doc_version = '1.0.0'
|
39
|
-
@sdk_version = '0.2.
|
40
|
-
@gen_version = '2.
|
41
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.
|
41
|
+
@sdk_version = '0.2.3'
|
42
|
+
@gen_version = '2.277.0'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.3 2.277.0 1.0.0 stackone_client'
|
42
44
|
end
|
43
45
|
|
44
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
45
47
|
def get_server_details
|
46
48
|
return [@server_url.delete_suffix('/'), {}] if !@server_url.nil?
|
47
|
-
@server_idx = 0 if @server_idx.nil?
|
48
|
-
|
49
|
-
|
50
49
|
[SERVERS[@server_idx], {}]
|
51
50
|
end
|
52
51
|
end
|
data/lib/stack_one/stackone.rb
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
require 'faraday'
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'sorbet-runtime'
|
9
|
+
|
9
10
|
module StackOne
|
10
11
|
extend T::Sig
|
11
12
|
|
@@ -14,27 +15,25 @@ module StackOne
|
|
14
15
|
|
15
16
|
attr_accessor :accounts, :connect_sessions, :connectors, :ats, :crm, :hris, :marketing, :proxy
|
16
17
|
|
17
|
-
attr_accessor :security, :language, :sdk_version, :gen_version
|
18
|
-
|
19
18
|
sig do
|
20
|
-
params(
|
19
|
+
params(client: Faraday::Request,
|
20
|
+
security: T.nilable(Shared::Security),
|
21
21
|
server_idx: Integer,
|
22
22
|
server_url: String,
|
23
|
-
url_params: T::Hash[Symbol, String]
|
24
|
-
client: Faraday::Request).void
|
23
|
+
url_params: T::Hash[Symbol, String]).void
|
25
24
|
end
|
26
|
-
def initialize(
|
25
|
+
def initialize(client: nil,
|
26
|
+
security: nil,
|
27
27
|
server_idx: nil,
|
28
28
|
server_url: nil,
|
29
|
-
url_params: nil
|
30
|
-
client: nil)
|
29
|
+
url_params: nil)
|
31
30
|
|
32
31
|
## Instantiates the SDK configuring it with the provided parameters.
|
33
|
-
# @param [Shared::Security] security The security details required for authentication
|
34
|
-
# @param [Integer] server_idx The index of the server to use for all operations
|
35
|
-
# @param [String] server_url The server URL to use for all operations
|
36
|
-
# @param [Hash<Symbol, String>] url_params Parameters to optionally template the server URL with
|
37
32
|
# @param [Faraday::Request] client The faraday HTTP client to use for all operations
|
33
|
+
# @param [Shared::Security] security The security details required for authentication
|
34
|
+
# @param [::Integer] server_idx The index of the server to use for all operations
|
35
|
+
# @param [::String] server_url The server URL to use for all operations
|
36
|
+
# @param [::Hash<::Symbol, ::String>] url_params Parameters to optionally template the server URL with
|
38
37
|
|
39
38
|
if client.nil?
|
40
39
|
client = Faraday.new(request: {
|
@@ -52,23 +51,25 @@ module StackOne
|
|
52
51
|
end
|
53
52
|
server_idx = 0 if server_idx.nil?
|
54
53
|
|
55
|
-
|
56
|
-
|
57
54
|
@sdk_configuration = SDKConfiguration.new(client, security, server_url, server_idx)
|
58
55
|
init_sdks
|
59
56
|
end
|
60
57
|
|
61
|
-
sig { params(
|
62
|
-
def config_server_url(
|
63
|
-
|
64
|
-
|
65
|
-
|
58
|
+
sig { params(server_url: String).void }
|
59
|
+
def config_server_url(server_url)
|
60
|
+
@sdk_configuration.server_url = server_url
|
61
|
+
init_sdks
|
62
|
+
end
|
63
|
+
|
64
|
+
sig { params(server_idx: Integer).void }
|
65
|
+
def config_server(server_idx)
|
66
|
+
raise StandardError, "Invalid server index #{server_idx}" if server_idx.negative? || server_idx >= SERVERS.length
|
67
|
+
@sdk_configuration.server_idx = server_idx
|
66
68
|
init_sdks
|
67
69
|
end
|
68
70
|
|
69
71
|
sig { params(security: ::StackOne::Shared::Security).void }
|
70
72
|
def config_security(security)
|
71
|
-
@security = security
|
72
73
|
@sdk_configuration.security = security
|
73
74
|
end
|
74
75
|
|
@@ -62,28 +62,24 @@ module StackOne
|
|
62
62
|
end
|
63
63
|
fields.each do |field|
|
64
64
|
field_type = field.type
|
65
|
-
if
|
66
|
-
|
67
|
-
if type2.raw_type == NilClass
|
68
|
-
field_type = field.type.types[0]
|
69
|
-
field_type = field_type.raw_type if field_type.respond_to? :raw_type
|
70
|
-
end
|
65
|
+
if T.nilable? field_type
|
66
|
+
field_type = T.nilable_of(field_type)
|
71
67
|
end
|
72
68
|
|
73
|
-
|
74
69
|
key = "#{field.name}="
|
75
70
|
lookup = field.metadata.fetch(:format_json, {}).fetch(:letter_case, nil).call
|
76
71
|
value = d[lookup]
|
77
72
|
next if value.nil?
|
78
73
|
|
79
|
-
if
|
80
|
-
inner_type = field_type
|
74
|
+
if T.arr? field_type
|
75
|
+
inner_type = T.arr_of(field_type)
|
81
76
|
unmarshalled_array = value.map { |f| unmarshal_single(inner_type, f) }
|
82
77
|
to_build.send(key, unmarshalled_array)
|
83
|
-
elsif
|
84
|
-
|
78
|
+
elsif T.hash? field_type
|
79
|
+
val_type = T.hash_of(field_type)
|
80
|
+
|
85
81
|
# rubocop:disable Style/HashTransformValues
|
86
|
-
unmarshalled_hash = value.map { |k, v| [k, unmarshal_single(val_type
|
82
|
+
unmarshalled_hash = value.map { |k, v| [k, unmarshal_single(val_type, v)] }.to_h
|
87
83
|
# rubocop:enable Style/HashTransformValues
|
88
84
|
to_build.send(key, unmarshalled_hash)
|
89
85
|
else
|
@@ -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
|
+
module T
|
7
|
+
def self.arr?(t)
|
8
|
+
if t.respond_to? :underlying_class
|
9
|
+
return t.underlying_class == ::Array
|
10
|
+
end
|
11
|
+
false
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.arr_of(t)
|
15
|
+
get_raw_type(t.type)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.hash?(t)
|
19
|
+
if t.respond_to? :underlying_class
|
20
|
+
return t.underlying_class == ::Hash
|
21
|
+
end
|
22
|
+
false
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.hash_of(t)
|
26
|
+
get_raw_type(t.values)
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.nilable?(t)
|
30
|
+
t.respond_to? :unwrap_nilable
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.nilable_of(t)
|
34
|
+
if t.respond_to? :unwrap_nilable
|
35
|
+
return simplify_type t.unwrap_nilable
|
36
|
+
end
|
37
|
+
nil
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.simplifiable?(t)
|
41
|
+
return t.is_a? T::Types::Simple
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.simplify_type(t)
|
45
|
+
if t.is_a? T::Types::Simple
|
46
|
+
return t.raw_type
|
47
|
+
end
|
48
|
+
t
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.get_raw_type(t)
|
52
|
+
if t.respond_to? :raw_type
|
53
|
+
return t.raw_type
|
54
|
+
elsif t.respond_to? :raw_a
|
55
|
+
return T::Boolean if t.raw_a in [TrueClass, FalseClass]
|
56
|
+
end
|
57
|
+
t
|
58
|
+
end
|
59
|
+
end
|