stackone_client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{stackone → stack_one}/accounts.rb +32 -26
  3. data/lib/{stackone → stack_one}/connect_sessions.rb +10 -7
  4. data/lib/{stackone → stack_one}/connectors.rb +15 -12
  5. data/lib/{stackone → stack_one}/hris.rb +109 -89
  6. data/lib/stack_one/models/operations/hris_create_employee_request.rb +27 -0
  7. data/lib/stack_one/models/operations/hris_create_employee_response.rb +33 -0
  8. data/lib/stack_one/models/operations/hris_create_employee_time_off_request_request.rb +30 -0
  9. data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +33 -0
  10. data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +27 -0
  11. data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +33 -0
  12. data/lib/stack_one/models/operations/hris_get_company_request.rb +50 -0
  13. data/lib/stack_one/models/operations/hris_get_company_response.rb +33 -0
  14. data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +20 -0
  15. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +53 -0
  16. data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +33 -0
  17. data/lib/stack_one/models/operations/hris_get_employee_request.rb +56 -0
  18. data/lib/stack_one/models/operations/hris_get_employee_response.rb +33 -0
  19. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +20 -0
  20. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +53 -0
  21. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +33 -0
  22. data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +20 -0
  23. data/lib/stack_one/models/operations/hris_get_employment_request.rb +50 -0
  24. data/lib/stack_one/models/operations/hris_get_employment_response.rb +33 -0
  25. data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +20 -0
  26. data/lib/stack_one/models/operations/hris_get_location_request.rb +50 -0
  27. data/lib/stack_one/models/operations/hris_get_location_response.rb +33 -0
  28. data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +20 -0
  29. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +50 -0
  30. data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +33 -0
  31. data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +20 -0
  32. data/lib/stack_one/models/operations/hris_list_companies_request.rb +47 -0
  33. data/lib/stack_one/models/operations/hris_list_companies_response.rb +33 -0
  34. data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +20 -0
  35. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +50 -0
  36. data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +33 -0
  37. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +20 -0
  38. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +50 -0
  39. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +33 -0
  40. data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +20 -0
  41. data/lib/stack_one/models/operations/hris_list_employees_request.rb +53 -0
  42. data/lib/stack_one/models/operations/hris_list_employees_response.rb +33 -0
  43. data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +20 -0
  44. data/lib/stack_one/models/operations/hris_list_employments_request.rb +47 -0
  45. data/lib/stack_one/models/operations/hris_list_employments_response.rb +33 -0
  46. data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +20 -0
  47. data/lib/stack_one/models/operations/hris_list_locations_request.rb +47 -0
  48. data/lib/stack_one/models/operations/hris_list_locations_response.rb +33 -0
  49. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +20 -0
  50. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +47 -0
  51. data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +33 -0
  52. data/lib/stack_one/models/operations/hris_update_employee_request.rb +30 -0
  53. data/lib/stack_one/models/operations/hris_update_employee_response.rb +33 -0
  54. data/lib/stack_one/models/operations/hris_update_time_off_request_request.rb +30 -0
  55. data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +33 -0
  56. data/lib/stack_one/models/operations/proxy.rb +20 -0
  57. data/lib/stack_one/models/operations/queryparam_proxy.rb +20 -0
  58. data/lib/{stackone/models/operations/stackone_authenticate_connect_session.rb → stack_one/models/operations/stackone_authenticate_connect_session_response.rb} +6 -8
  59. data/lib/{stackone/models/operations/stackone_create_connect_session.rb → stack_one/models/operations/stackone_create_connect_session_response.rb} +6 -8
  60. data/lib/stack_one/models/operations/stackone_delete_account_request.rb +24 -0
  61. data/lib/{stackone/models/operations/stackone_delete_account.rb → stack_one/models/operations/stackone_delete_account_response.rb} +6 -22
  62. data/lib/stack_one/models/operations/stackone_get_account_meta_info_request.rb +24 -0
  63. data/lib/{stackone/models/operations/stackone_get_account_meta_info.rb → stack_one/models/operations/stackone_get_account_meta_info_response.rb} +6 -22
  64. data/lib/stack_one/models/operations/stackone_get_account_request.rb +24 -0
  65. data/lib/{stackone/models/operations/stackone_get_account.rb → stack_one/models/operations/stackone_get_account_response.rb} +6 -22
  66. data/lib/stack_one/models/operations/stackone_get_connector_meta_request.rb +27 -0
  67. data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +33 -0
  68. data/lib/stack_one/models/operations/stackone_list_connectors_meta_request.rb +24 -0
  69. data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +33 -0
  70. data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +27 -0
  71. data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +33 -0
  72. data/lib/stack_one/models/operations/stackone_proxy_request_request.rb +27 -0
  73. data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +30 -0
  74. data/lib/stack_one/models/operations/stackone_update_account_request.rb +27 -0
  75. data/lib/stack_one/models/operations/stackone_update_account_response.rb +33 -0
  76. data/lib/stack_one/models/operations.rb +79 -0
  77. data/lib/stack_one/models/shared/avatar.rb +27 -0
  78. data/lib/stack_one/models/shared/body.rb +20 -0
  79. data/lib/stack_one/models/shared/categories.rb +23 -0
  80. data/lib/stack_one/models/shared/category.rb +23 -0
  81. data/lib/stack_one/models/shared/companiespaginated.rb +33 -0
  82. data/lib/stack_one/models/shared/company.rb +36 -0
  83. data/lib/stack_one/models/shared/companyresult.rb +27 -0
  84. data/lib/stack_one/models/shared/connectorsmeta.rb +39 -0
  85. data/lib/stack_one/models/shared/connectsession.rb +54 -0
  86. data/lib/{stackone → stack_one}/models/shared/connectsessionauthenticate.rb +3 -4
  87. data/lib/stack_one/models/shared/connectsessioncreate.rb +51 -0
  88. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +23 -0
  89. data/lib/stack_one/models/shared/connectsessiontoken.rb +57 -0
  90. data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +23 -0
  91. data/lib/{stackone → stack_one}/models/shared/content.rb +4 -6
  92. data/lib/{stackone → stack_one}/models/shared/costcenters.rb +4 -5
  93. data/lib/stack_one/models/shared/country.rb +27 -0
  94. data/lib/stack_one/models/shared/countrycodeenum.rb +27 -0
  95. data/lib/stack_one/models/shared/createemployeeresult.rb +30 -0
  96. data/lib/stack_one/models/shared/createtimeoffresult.rb +30 -0
  97. data/lib/stack_one/models/shared/credentials.rb +20 -0
  98. data/lib/stack_one/models/shared/document.rb +39 -0
  99. data/lib/stack_one/models/shared/documentapimodel.rb +42 -0
  100. data/lib/stack_one/models/shared/documentapimodel_value.rb +28 -0
  101. data/lib/stack_one/models/shared/documentresult.rb +27 -0
  102. data/lib/stack_one/models/shared/documentspaginated.rb +33 -0
  103. data/lib/stack_one/models/shared/employee.rb +135 -0
  104. data/lib/stack_one/models/shared/employee_country.rb +27 -0
  105. data/lib/stack_one/models/shared/employee_location_type.rb +27 -0
  106. data/lib/stack_one/models/shared/employee_schemas_country.rb +27 -0
  107. data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +33 -0
  108. data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +27 -0
  109. data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +24 -0
  110. data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +20 -0
  111. data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +266 -0
  112. data/lib/stack_one/models/shared/employee_schemas_location_type.rb +27 -0
  113. data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +27 -0
  114. data/lib/stack_one/models/shared/employee_schemas_value.rb +24 -0
  115. data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +20 -0
  116. data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +266 -0
  117. data/lib/stack_one/models/shared/employee_value.rb +21 -0
  118. data/lib/stack_one/models/shared/employeecustomfields.rb +42 -0
  119. data/lib/stack_one/models/shared/employeecustomfields_schemas_value.rb +23 -0
  120. data/lib/stack_one/models/shared/employeecustomfields_type.rb +27 -0
  121. data/lib/stack_one/models/shared/employeecustomfields_value.rb +20 -0
  122. data/lib/stack_one/models/shared/employeeresult.rb +27 -0
  123. data/lib/stack_one/models/shared/employeespaginated.rb +33 -0
  124. data/lib/stack_one/models/shared/employment.rb +57 -0
  125. data/lib/stack_one/models/shared/employment_contract_type.rb +27 -0
  126. data/lib/stack_one/models/shared/employment_employment_contract_type.rb +27 -0
  127. data/lib/stack_one/models/shared/employment_employment_type.rb +27 -0
  128. data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +33 -0
  129. data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +26 -0
  130. data/lib/stack_one/models/shared/employment_schemas_value.rb +33 -0
  131. data/lib/stack_one/models/shared/employment_status.rb +27 -0
  132. data/lib/stack_one/models/shared/employment_type.rb +27 -0
  133. data/lib/stack_one/models/shared/employment_value.rb +21 -0
  134. data/lib/stack_one/models/shared/employmentresult.rb +27 -0
  135. data/lib/stack_one/models/shared/employmentspaginated.rb +33 -0
  136. data/lib/stack_one/models/shared/ethnicity.rb +27 -0
  137. data/lib/stack_one/models/shared/fileformatenum.rb +27 -0
  138. data/lib/stack_one/models/shared/fileformatenum_value.rb +34 -0
  139. data/lib/stack_one/models/shared/gender.rb +27 -0
  140. data/lib/stack_one/models/shared/headers.rb +20 -0
  141. data/lib/stack_one/models/shared/home_location.rb +60 -0
  142. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +117 -0
  143. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb +27 -0
  144. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_country.rb +27 -0
  145. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb +27 -0
  146. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +27 -0
  147. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +27 -0
  148. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb +27 -0
  149. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_gender.rb +27 -0
  150. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +45 -0
  151. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb +27 -0
  152. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +27 -0
  153. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +33 -0
  154. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +27 -0
  155. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +24 -0
  156. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +3841 -0
  157. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +266 -0
  158. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +27 -0
  159. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +24 -0
  160. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +3841 -0
  161. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +266 -0
  162. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +27 -0
  163. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +21 -0
  164. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +45 -0
  165. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +39 -0
  166. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +20 -0
  167. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +27 -0
  168. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +19 -0
  169. data/lib/stack_one/models/shared/hrislocation.rb +60 -0
  170. data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +20 -0
  171. data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb} +1 -96
  172. data/lib/stack_one/models/shared/hrislocationresult.rb +27 -0
  173. data/lib/stack_one/models/shared/hrislocationspaginated.rb +33 -0
  174. data/lib/stack_one/models/shared/images.rb +27 -0
  175. data/lib/stack_one/models/shared/job_description.rb +24 -0
  176. data/lib/stack_one/models/shared/linkedaccount.rb +54 -0
  177. data/lib/stack_one/models/shared/linkedaccountmeta.rb +30 -0
  178. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +23 -0
  179. data/lib/stack_one/models/shared/location_type.rb +27 -0
  180. data/lib/stack_one/models/shared/marital_status.rb +27 -0
  181. data/lib/stack_one/models/shared/metadata.rb +20 -0
  182. data/lib/stack_one/models/shared/method.rb +22 -0
  183. data/lib/{stackone → stack_one}/models/shared/patchaccountdto.rb +1 -2
  184. data/lib/stack_one/models/shared/pay_frequency.rb +27 -0
  185. data/lib/stack_one/models/shared/pay_period.rb +27 -0
  186. data/lib/stack_one/models/shared/proxyrequestbody.rb +36 -0
  187. data/lib/stack_one/models/shared/rawresponse.rb +33 -0
  188. data/lib/stack_one/models/shared/resources.rb +24 -0
  189. data/lib/stack_one/models/shared/response.rb +20 -0
  190. data/lib/stack_one/models/shared/security.rb +27 -0
  191. data/lib/stack_one/models/shared/setup_information.rb +20 -0
  192. data/lib/stack_one/models/shared/state.rb +27 -0
  193. data/lib/stack_one/models/shared/status.rb +27 -0
  194. data/lib/stack_one/models/shared/timeoff.rb +48 -0
  195. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +20 -0
  196. data/lib/stack_one/models/shared/timeoff_status.rb +27 -0
  197. data/lib/stack_one/models/shared/timeoff_type.rb +27 -0
  198. data/lib/stack_one/models/shared/timeoff_value.rb +19 -0
  199. data/lib/stack_one/models/shared/timeoffpaginated.rb +33 -0
  200. data/lib/stack_one/models/shared/timeoffresult.rb +27 -0
  201. data/lib/stack_one/models/shared/type.rb +27 -0
  202. data/lib/{stackone/models/shared/countrycodeenum.rb → stack_one/models/shared/value.rb} +1 -19
  203. data/lib/stack_one/models/shared/work_location.rb +60 -0
  204. data/lib/stack_one/models/shared/workeligibility.rb +42 -0
  205. data/lib/stack_one/models/shared/workeligibility_type.rb +27 -0
  206. data/lib/stack_one/models/shared/workeligibility_value.rb +22 -0
  207. data/lib/stack_one/models/shared.rb +139 -0
  208. data/lib/{stackone → stack_one}/proxy.rb +6 -4
  209. data/lib/{stackone → stack_one}/sdkconfiguration.rb +4 -4
  210. data/lib/{stackone/sdk.rb → stack_one/stackone.rb} +1 -1
  211. data/lib/stackone_client.rb +11 -79
  212. metadata +213 -80
  213. data/lib/stackone/models/operations/hris_create_employee.rb +0 -53
  214. data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +0 -56
  215. data/lib/stackone/models/operations/hris_create_time_off_request.rb +0 -53
  216. data/lib/stackone/models/operations/hris_get_company.rb +0 -88
  217. data/lib/stackone/models/operations/hris_get_employee.rb +0 -94
  218. data/lib/stackone/models/operations/hris_get_employee_document.rb +0 -91
  219. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +0 -91
  220. data/lib/stackone/models/operations/hris_get_employment.rb +0 -88
  221. data/lib/stackone/models/operations/hris_get_location.rb +0 -88
  222. data/lib/stackone/models/operations/hris_get_time_off_request.rb +0 -88
  223. data/lib/stackone/models/operations/hris_list_companies.rb +0 -85
  224. data/lib/stackone/models/operations/hris_list_employee_documents.rb +0 -88
  225. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +0 -88
  226. data/lib/stackone/models/operations/hris_list_employees.rb +0 -91
  227. data/lib/stackone/models/operations/hris_list_employments.rb +0 -85
  228. data/lib/stackone/models/operations/hris_list_locations.rb +0 -85
  229. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +0 -85
  230. data/lib/stackone/models/operations/hris_update_employee.rb +0 -56
  231. data/lib/stackone/models/operations/hris_update_time_off_request.rb +0 -56
  232. data/lib/stackone/models/operations/stackone_get_connector_meta.rb +0 -52
  233. data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +0 -48
  234. data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +0 -51
  235. data/lib/stackone/models/operations/stackone_proxy_request.rb +0 -49
  236. data/lib/stackone/models/operations/stackone_update_account.rb +0 -53
  237. data/lib/stackone/models/shared/companiespaginated.rb +0 -34
  238. data/lib/stackone/models/shared/company.rb +0 -37
  239. data/lib/stackone/models/shared/companyresult.rb +0 -29
  240. data/lib/stackone/models/shared/connectorsmeta.rb +0 -84
  241. data/lib/stackone/models/shared/connectsession.rb +0 -68
  242. data/lib/stackone/models/shared/connectsessioncreate.rb +0 -75
  243. data/lib/stackone/models/shared/connectsessiontoken.rb +0 -71
  244. data/lib/stackone/models/shared/createemployeeresult.rb +0 -31
  245. data/lib/stackone/models/shared/createtimeoffresult.rb +0 -31
  246. data/lib/stackone/models/shared/documentapimodel.rb +0 -44
  247. data/lib/stackone/models/shared/documentresult.rb +0 -29
  248. data/lib/stackone/models/shared/documentspaginated.rb +0 -34
  249. data/lib/stackone/models/shared/documenttypeenum.rb +0 -40
  250. data/lib/stackone/models/shared/employee.rb +0 -1065
  251. data/lib/stackone/models/shared/employeecustomfields.rb +0 -83
  252. data/lib/stackone/models/shared/employeeresult.rb +0 -29
  253. data/lib/stackone/models/shared/employeespaginated.rb +0 -34
  254. data/lib/stackone/models/shared/employment.rb +0 -199
  255. data/lib/stackone/models/shared/employmentresult.rb +0 -29
  256. data/lib/stackone/models/shared/employmentspaginated.rb +0 -34
  257. data/lib/stackone/models/shared/fileformatenum.rb +0 -52
  258. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +0 -8645
  259. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +0 -93
  260. data/lib/stackone/models/shared/hrislocationresult.rb +0 -29
  261. data/lib/stackone/models/shared/hrislocationspaginated.rb +0 -34
  262. data/lib/stackone/models/shared/linkedaccount.rb +0 -75
  263. data/lib/stackone/models/shared/linkedaccountmeta.rb +0 -44
  264. data/lib/stackone/models/shared/proxyrequestbody.rb +0 -69
  265. data/lib/stackone/models/shared/rawresponse.rb +0 -44
  266. data/lib/stackone/models/shared/security.rb +0 -28
  267. data/lib/stackone/models/shared/timeoff.rb +0 -102
  268. data/lib/stackone/models/shared/timeoffpaginated.rb +0 -34
  269. data/lib/stackone/models/shared/timeoffresult.rb +0 -29
  270. data/lib/stackone/models/shared/workeligibility.rb +0 -101
  271. /data/lib/{stackone → stack_one}/utils/metadata_fields.rb +0 -0
  272. /data/lib/{stackone → stack_one}/utils/utils.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15ed9f67376f771d14979088ee92ec81d82128f1e68b80da1dd93b32c72473d8
4
- data.tar.gz: f7f3273b82fecbf7ae86617defe7d654efbe38f9969a36fbae0c0e971948d6e6
3
+ metadata.gz: daf71f95538e83e8977f9e6f8e7249770a8ea4b3d06ae3bb27a86bb51f40c8f0
4
+ data.tar.gz: cf36b4c0ec6befd9c5e0ec96c96198da1e5b0e801df9a5a1d42321fe42725f92
5
5
  SHA512:
6
- metadata.gz: d0b7564a8bae5fbda6aead499f945e7bc6e06c6c60baae4b9a5449c6ecbb20fad2b6652e96f6df5fa42fb352f5d6b3251a706e542b0e019f925c1598403b0177
7
- data.tar.gz: f99eac64c65caaf52d034a4ee4988c5d07fbd6a4069b5139ab3710b7ebb64077050272d889490e10bec1d8aaad71e41cd5d39b1c633ba724a81dccfc9444b006
6
+ metadata.gz: 9bc7a9782f359894f637b6f3cee2f043aed5f5490c083b98a29ccb1ff68f85eb05dcb0540c1d570cf0ee2db9a8f3aec37c400f9066eba112603f1651fb57a38f
7
+ data.tar.gz: ae06252cb16d3c938e9b21ae2c69d00040035b53c9ad9c69b6aba78c583100bc19cbc8863a6c24c9850ea9dce4ecd4c00f63b7a70bed96d699c9df23e071784f
@@ -10,24 +10,26 @@ require 'sorbet-runtime'
10
10
  module StackOne
11
11
  extend T::Sig
12
12
  class Accounts
13
-
14
13
  extend T::Sig
14
+
15
+
15
16
  sig { params(sdk_config: SDKConfiguration).void }
16
17
  def initialize(sdk_config)
17
18
  @sdk_configuration = sdk_config
18
19
  end
19
20
 
20
- sig { params(id: String).returns(Utils::FieldAugmented) }
21
+
22
+ sig { params(id: ::String).returns(Utils::FieldAugmented) }
21
23
  def delete_account(id)
22
24
  # delete_account - Delete Account
23
- request = Operations::StackoneDeleteAccountRequest.new(
25
+ request = ::StackOne::Operations::StackoneDeleteAccountRequest.new(
24
26
 
25
27
  id: id
26
28
  )
27
29
  url, params = @sdk_configuration.get_server_details
28
30
  base_url = Utils.template_url(url, params)
29
31
  url = Utils.generate_url(
30
- Operations::StackoneDeleteAccountRequest,
32
+ ::StackOne::Operations::StackoneDeleteAccountRequest,
31
33
  base_url,
32
34
  '/accounts/{id}',
33
35
  request
@@ -43,12 +45,12 @@ module StackOne
43
45
 
44
46
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
45
47
 
46
- res = Operations::StackoneDeleteAccountResponse.new(
48
+ res = ::StackOne::Operations::StackoneDeleteAccountResponse.new(
47
49
  status_code: r.status, content_type: content_type, raw_response: r
48
50
  )
49
51
  if r.status == 200
50
52
  if Utils.match_content_type(content_type, 'application/json')
51
- out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccount)
53
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccount)
52
54
  res.linked_account = out
53
55
  end
54
56
  elsif [400, 403, 404, 429, 500, 501].include?(r.status)
@@ -56,17 +58,18 @@ module StackOne
56
58
  res
57
59
  end
58
60
 
59
- sig { params(id: String).returns(Utils::FieldAugmented) }
61
+
62
+ sig { params(id: ::String).returns(Utils::FieldAugmented) }
60
63
  def get_account(id)
61
64
  # get_account - Get Account
62
- request = Operations::StackoneGetAccountRequest.new(
65
+ request = ::StackOne::Operations::StackoneGetAccountRequest.new(
63
66
 
64
67
  id: id
65
68
  )
66
69
  url, params = @sdk_configuration.get_server_details
67
70
  base_url = Utils.template_url(url, params)
68
71
  url = Utils.generate_url(
69
- Operations::StackoneGetAccountRequest,
72
+ ::StackOne::Operations::StackoneGetAccountRequest,
70
73
  base_url,
71
74
  '/accounts/{id}',
72
75
  request
@@ -82,12 +85,12 @@ module StackOne
82
85
 
83
86
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
84
87
 
85
- res = Operations::StackoneGetAccountResponse.new(
88
+ res = ::StackOne::Operations::StackoneGetAccountResponse.new(
86
89
  status_code: r.status, content_type: content_type, raw_response: r
87
90
  )
88
91
  if r.status == 200
89
92
  if Utils.match_content_type(content_type, 'application/json')
90
- out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccount)
93
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccount)
91
94
  res.linked_account = out
92
95
  end
93
96
  elsif [400, 403, 429, 500, 501].include?(r.status)
@@ -95,17 +98,18 @@ module StackOne
95
98
  res
96
99
  end
97
100
 
98
- sig { params(id: String).returns(Utils::FieldAugmented) }
101
+
102
+ sig { params(id: ::String).returns(Utils::FieldAugmented) }
99
103
  def get_account_meta_info(id)
100
104
  # get_account_meta_info - Get meta information of the account
101
- request = Operations::StackoneGetAccountMetaInfoRequest.new(
105
+ request = ::StackOne::Operations::StackoneGetAccountMetaInfoRequest.new(
102
106
 
103
107
  id: id
104
108
  )
105
109
  url, params = @sdk_configuration.get_server_details
106
110
  base_url = Utils.template_url(url, params)
107
111
  url = Utils.generate_url(
108
- Operations::StackoneGetAccountMetaInfoRequest,
112
+ ::StackOne::Operations::StackoneGetAccountMetaInfoRequest,
109
113
  base_url,
110
114
  '/accounts/{id}/meta',
111
115
  request
@@ -121,12 +125,12 @@ module StackOne
121
125
 
122
126
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
123
127
 
124
- res = Operations::StackoneGetAccountMetaInfoResponse.new(
128
+ res = ::StackOne::Operations::StackoneGetAccountMetaInfoResponse.new(
125
129
  status_code: r.status, content_type: content_type, raw_response: r
126
130
  )
127
131
  if r.status == 200
128
132
  if Utils.match_content_type(content_type, 'application/json')
129
- out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccountMeta)
133
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccountMeta)
130
134
  res.linked_account_meta = out
131
135
  end
132
136
  elsif [400, 403, 404, 429, 500, 501].include?(r.status)
@@ -134,10 +138,11 @@ module StackOne
134
138
  res
135
139
  end
136
140
 
137
- sig { params(origin_owner_id: T.nilable(String), provider: T.nilable(String)).returns(Utils::FieldAugmented) }
141
+
142
+ sig { params(origin_owner_id: T.nilable(::String), provider: T.nilable(::String)).returns(Utils::FieldAugmented) }
138
143
  def list_linked_accounts(origin_owner_id = nil, provider = nil)
139
144
  # list_linked_accounts - List Accounts
140
- request = Operations::StackoneListLinkedAccountsRequest.new(
145
+ request = ::StackOne::Operations::StackoneListLinkedAccountsRequest.new(
141
146
 
142
147
  origin_owner_id: origin_owner_id,
143
148
  provider: provider
@@ -146,7 +151,7 @@ module StackOne
146
151
  base_url = Utils.template_url(url, params)
147
152
  url = "#{base_url}/accounts"
148
153
  headers = {}
149
- query_params = Utils.get_query_params(Operations::StackoneListLinkedAccountsRequest, request)
154
+ query_params = Utils.get_query_params(::StackOne::Operations::StackoneListLinkedAccountsRequest, request)
150
155
  headers['Accept'] = 'application/json'
151
156
  headers['user-agent'] = @sdk_configuration.user_agent
152
157
 
@@ -158,12 +163,12 @@ module StackOne
158
163
 
159
164
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
160
165
 
161
- res = Operations::StackoneListLinkedAccountsResponse.new(
166
+ res = ::StackOne::Operations::StackoneListLinkedAccountsResponse.new(
162
167
  status_code: r.status, content_type: content_type, raw_response: r
163
168
  )
164
169
  if r.status == 200
165
170
  if Utils.match_content_type(content_type, 'application/json')
166
- out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::LinkedAccount])
171
+ out = Utils.unmarshal_complex(r.env.response_body, T::Array[::StackOne::Shared::LinkedAccount])
167
172
  res.linked_accounts = out
168
173
  end
169
174
  elsif [400, 403, 429, 500, 501].include?(r.status)
@@ -171,10 +176,11 @@ module StackOne
171
176
  res
172
177
  end
173
178
 
174
- sig { params(patch_account_dto: Shared::PatchAccountDto, id: String).returns(Utils::FieldAugmented) }
179
+
180
+ sig { params(patch_account_dto: ::StackOne::Shared::PatchAccountDto, id: ::String).returns(Utils::FieldAugmented) }
175
181
  def update_account(patch_account_dto, id)
176
182
  # update_account - Update Account
177
- request = Operations::StackoneUpdateAccountRequest.new(
183
+ request = ::StackOne::Operations::StackoneUpdateAccountRequest.new(
178
184
 
179
185
  patch_account_dto: patch_account_dto,
180
186
  id: id
@@ -182,7 +188,7 @@ module StackOne
182
188
  url, params = @sdk_configuration.get_server_details
183
189
  base_url = Utils.template_url(url, params)
184
190
  url = Utils.generate_url(
185
- Operations::StackoneUpdateAccountRequest,
191
+ ::StackOne::Operations::StackoneUpdateAccountRequest,
186
192
  base_url,
187
193
  '/accounts/{id}',
188
194
  request
@@ -208,12 +214,12 @@ module StackOne
208
214
 
209
215
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
210
216
 
211
- res = Operations::StackoneUpdateAccountResponse.new(
217
+ res = ::StackOne::Operations::StackoneUpdateAccountResponse.new(
212
218
  status_code: r.status, content_type: content_type, raw_response: r
213
219
  )
214
220
  if r.status == 200
215
221
  if Utils.match_content_type(content_type, 'application/json')
216
- out = Utils.unmarshal_complex(r.env.response_body, Shared::LinkedAccount)
222
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::LinkedAccount)
217
223
  res.linked_account = out
218
224
  end
219
225
  elsif [400, 403, 429, 500, 501].include?(r.status)
@@ -10,14 +10,16 @@ require 'sorbet-runtime'
10
10
  module StackOne
11
11
  extend T::Sig
12
12
  class ConnectSessions
13
-
14
13
  extend T::Sig
14
+
15
+
15
16
  sig { params(sdk_config: SDKConfiguration).void }
16
17
  def initialize(sdk_config)
17
18
  @sdk_configuration = sdk_config
18
19
  end
19
20
 
20
- sig { params(request: Shared::ConnectSessionAuthenticate).returns(Utils::FieldAugmented) }
21
+
22
+ sig { params(request: ::StackOne::Shared::ConnectSessionAuthenticate).returns(Utils::FieldAugmented) }
21
23
  def authenticate_connect_session(request)
22
24
  # authenticate_connect_session - Authenticate Connect Session
23
25
  url, params = @sdk_configuration.get_server_details
@@ -44,12 +46,12 @@ module StackOne
44
46
 
45
47
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
46
48
 
47
- res = Operations::StackoneAuthenticateConnectSessionResponse.new(
49
+ res = ::StackOne::Operations::StackoneAuthenticateConnectSessionResponse.new(
48
50
  status_code: r.status, content_type: content_type, raw_response: r
49
51
  )
50
52
  if r.status == 201
51
53
  if Utils.match_content_type(content_type, 'application/json')
52
- out = Utils.unmarshal_complex(r.env.response_body, Shared::ConnectSession)
54
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectSession)
53
55
  res.connect_session = out
54
56
  end
55
57
  elsif [400, 403, 429, 500, 501].include?(r.status)
@@ -57,7 +59,8 @@ module StackOne
57
59
  res
58
60
  end
59
61
 
60
- sig { params(request: Shared::ConnectSessionCreate).returns(Utils::FieldAugmented) }
62
+
63
+ sig { params(request: ::StackOne::Shared::ConnectSessionCreate).returns(Utils::FieldAugmented) }
61
64
  def create_connect_session(request)
62
65
  # create_connect_session - Create Connect Session
63
66
  url, params = @sdk_configuration.get_server_details
@@ -84,12 +87,12 @@ module StackOne
84
87
 
85
88
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
86
89
 
87
- res = Operations::StackoneCreateConnectSessionResponse.new(
90
+ res = ::StackOne::Operations::StackoneCreateConnectSessionResponse.new(
88
91
  status_code: r.status, content_type: content_type, raw_response: r
89
92
  )
90
93
  if r.status == 201
91
94
  if Utils.match_content_type(content_type, 'application/json')
92
- out = Utils.unmarshal_complex(r.env.response_body, Shared::ConnectSessionToken)
95
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectSessionToken)
93
96
  res.connect_session_token = out
94
97
  end
95
98
  elsif [400, 403, 429, 500, 501].include?(r.status)
@@ -10,17 +10,19 @@ require 'sorbet-runtime'
10
10
  module StackOne
11
11
  extend T::Sig
12
12
  class Connectors
13
-
14
13
  extend T::Sig
14
+
15
+
15
16
  sig { params(sdk_config: SDKConfiguration).void }
16
17
  def initialize(sdk_config)
17
18
  @sdk_configuration = sdk_config
18
19
  end
19
20
 
20
- sig { params(provider: String, include: T.nilable(String)).returns(Utils::FieldAugmented) }
21
+
22
+ sig { params(provider: ::String, include: T.nilable(::String)).returns(Utils::FieldAugmented) }
21
23
  def get_connector_meta(provider, include = nil)
22
24
  # get_connector_meta - Get Connector Meta information for the given provider key
23
- request = Operations::StackoneGetConnectorMetaRequest.new(
25
+ request = ::StackOne::Operations::StackoneGetConnectorMetaRequest.new(
24
26
 
25
27
  provider: provider,
26
28
  include: include
@@ -28,13 +30,13 @@ module StackOne
28
30
  url, params = @sdk_configuration.get_server_details
29
31
  base_url = Utils.template_url(url, params)
30
32
  url = Utils.generate_url(
31
- Operations::StackoneGetConnectorMetaRequest,
33
+ ::StackOne::Operations::StackoneGetConnectorMetaRequest,
32
34
  base_url,
33
35
  '/connectors/meta/{provider}',
34
36
  request
35
37
  )
36
38
  headers = {}
37
- query_params = Utils.get_query_params(Operations::StackoneGetConnectorMetaRequest, request)
39
+ query_params = Utils.get_query_params(::StackOne::Operations::StackoneGetConnectorMetaRequest, request)
38
40
  headers['Accept'] = 'application/json'
39
41
  headers['user-agent'] = @sdk_configuration.user_agent
40
42
 
@@ -46,12 +48,12 @@ module StackOne
46
48
 
47
49
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
48
50
 
49
- res = Operations::StackoneGetConnectorMetaResponse.new(
51
+ res = ::StackOne::Operations::StackoneGetConnectorMetaResponse.new(
50
52
  status_code: r.status, content_type: content_type, raw_response: r
51
53
  )
52
54
  if r.status == 200
53
55
  if Utils.match_content_type(content_type, 'application/json')
54
- out = Utils.unmarshal_complex(r.env.response_body, Shared::ConnectorsMeta)
56
+ out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ConnectorsMeta)
55
57
  res.connectors_meta = out
56
58
  end
57
59
  elsif [400, 403, 404, 429, 500, 501].include?(r.status)
@@ -59,10 +61,11 @@ module StackOne
59
61
  res
60
62
  end
61
63
 
62
- sig { params(include: T.nilable(String)).returns(Utils::FieldAugmented) }
64
+
65
+ sig { params(include: T.nilable(::String)).returns(Utils::FieldAugmented) }
63
66
  def list_connectors_meta(include = nil)
64
67
  # list_connectors_meta - List Connectors Meta Information for all providers
65
- request = Operations::StackoneListConnectorsMetaRequest.new(
68
+ request = ::StackOne::Operations::StackoneListConnectorsMetaRequest.new(
66
69
 
67
70
  include: include
68
71
  )
@@ -70,7 +73,7 @@ module StackOne
70
73
  base_url = Utils.template_url(url, params)
71
74
  url = "#{base_url}/connectors/meta"
72
75
  headers = {}
73
- query_params = Utils.get_query_params(Operations::StackoneListConnectorsMetaRequest, request)
76
+ query_params = Utils.get_query_params(::StackOne::Operations::StackoneListConnectorsMetaRequest, request)
74
77
  headers['Accept'] = 'application/json'
75
78
  headers['user-agent'] = @sdk_configuration.user_agent
76
79
 
@@ -82,12 +85,12 @@ module StackOne
82
85
 
83
86
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
84
87
 
85
- res = Operations::StackoneListConnectorsMetaResponse.new(
88
+ res = ::StackOne::Operations::StackoneListConnectorsMetaResponse.new(
86
89
  status_code: r.status, content_type: content_type, raw_response: r
87
90
  )
88
91
  if r.status == 200
89
92
  if Utils.match_content_type(content_type, 'application/json')
90
- out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::ConnectorsMeta])
93
+ out = Utils.unmarshal_complex(r.env.response_body, T::Array[::StackOne::Shared::ConnectorsMeta])
91
94
  res.connectors_metas = out
92
95
  end
93
96
  elsif [400, 403, 429, 500, 501].include?(r.status)