spartera_api_sdk 0.4.2 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -3
  3. data/Gemfile.lock +69 -0
  4. data/README.md +324 -336
  5. data/config.json +10 -0
  6. data/docs/APIKeysApi.md +102 -286
  7. data/docs/Alert.md +36 -0
  8. data/docs/AlertsApi.md +163 -177
  9. data/docs/Apikey.md +36 -0
  10. data/docs/Asset.md +110 -0
  11. data/docs/AssetPriceHistoryApi.md +178 -202
  12. data/docs/Assetpricehistory.md +38 -0
  13. data/docs/AssetsApi.md +352 -418
  14. data/docs/CloudProvidersApi.md +233 -49
  15. data/docs/Cloudprovider.md +30 -0
  16. data/docs/CompaniesApi.md +171 -357
  17. data/docs/Company.md +44 -0
  18. data/docs/Connection.md +54 -0
  19. data/docs/ConnectionsApi.md +139 -249
  20. data/docs/Favorite.md +36 -0
  21. data/docs/FavoritesApi.md +183 -199
  22. data/docs/User.md +34 -0
  23. data/docs/UsersApi.md +97 -379
  24. data/example.rb +51 -0
  25. data/git_push.sh +2 -2
  26. data/lib/spartera_api_sdk/api/alerts_api.rb +176 -423
  27. data/lib/spartera_api_sdk/api/api_keys_api.rb +95 -496
  28. data/lib/spartera_api_sdk/api/asset_price_history_api.rb +177 -468
  29. data/lib/spartera_api_sdk/api/assets_api.rb +358 -806
  30. data/lib/spartera_api_sdk/api/cloud_providers_api.rb +199 -74
  31. data/lib/spartera_api_sdk/api/companies_api.rb +146 -660
  32. data/lib/spartera_api_sdk/api/connections_api.rb +139 -466
  33. data/lib/spartera_api_sdk/api/favorites_api.rb +204 -464
  34. data/lib/spartera_api_sdk/api/users_api.rb +95 -619
  35. data/lib/spartera_api_sdk/api_client.rb +4 -8
  36. data/lib/spartera_api_sdk/api_error.rb +2 -2
  37. data/lib/spartera_api_sdk/configuration.rb +12 -4
  38. data/lib/spartera_api_sdk/models/{alerts.rb → alert.rb} +139 -46
  39. data/lib/spartera_api_sdk/models/{api_keys.rb → apikey.rb} +124 -98
  40. data/lib/spartera_api_sdk/models/asset.rb +686 -0
  41. data/lib/spartera_api_sdk/models/{asset_price_history.rb → assetpricehistory.rb} +180 -44
  42. data/lib/spartera_api_sdk/models/{cloud_providers.rb → cloudprovider.rb} +111 -35
  43. data/lib/spartera_api_sdk/models/{companies.rb → company.rb} +105 -90
  44. data/lib/spartera_api_sdk/models/{connections.rb → connection.rb} +186 -69
  45. data/lib/spartera_api_sdk/models/error.rb +76 -3
  46. data/lib/spartera_api_sdk/models/{favorites.rb → favorite.rb} +111 -38
  47. data/lib/spartera_api_sdk/models/inline_object.rb +76 -3
  48. data/lib/spartera_api_sdk/models/inline_object1.rb +76 -3
  49. data/lib/spartera_api_sdk/models/inline_object2.rb +76 -3
  50. data/lib/spartera_api_sdk/models/inline_object3.rb +76 -3
  51. data/lib/spartera_api_sdk/models/{users.rb → user.rb} +108 -112
  52. data/lib/spartera_api_sdk/version.rb +3 -3
  53. data/lib/spartera_api_sdk.rb +11 -150
  54. data/spartera_api_sdk.gemspec +8 -19
  55. data/spec/api/alerts_api_spec.rb +51 -51
  56. data/spec/api/api_keys_api_spec.rb +30 -67
  57. data/spec/api/asset_price_history_api_spec.rb +53 -57
  58. data/spec/api/assets_api_spec.rb +99 -114
  59. data/spec/api/cloud_providers_api_spec.rb +42 -15
  60. data/spec/api/companies_api_spec.rb +47 -99
  61. data/spec/api/connections_api_spec.rb +41 -63
  62. data/spec/api/favorites_api_spec.rb +56 -56
  63. data/spec/api/users_api_spec.rb +29 -88
  64. data/spec/models/{postgen_integrations_spec.rb → alert_spec.rb} +17 -17
  65. data/spec/models/{api_keys_update_spec.rb → apikey_spec.rb} +20 -14
  66. data/spec/models/{endpoints_spec.rb → asset_spec.rb} +83 -69
  67. data/spec/models/{api_keys_spec.rb → assetpricehistory_spec.rb} +19 -25
  68. data/spec/models/{cloud_providers_spec.rb → cloudprovider_spec.rb} +20 -14
  69. data/spec/models/{companies_spec.rb → company_spec.rb} +16 -26
  70. data/spec/models/{posts_input_spec.rb → connection_spec.rb} +27 -51
  71. data/spec/models/error_spec.rb +3 -3
  72. data/spec/models/{favorites_spec.rb → favorite_spec.rb} +23 -17
  73. data/spec/models/inline_object1_spec.rb +3 -3
  74. data/spec/models/inline_object2_spec.rb +3 -3
  75. data/spec/models/inline_object3_spec.rb +3 -3
  76. data/spec/models/inline_object_spec.rb +3 -3
  77. data/spec/models/{api_keys_input_spec.rb → user_spec.rb} +15 -15
  78. data/spec/spec_helper.rb +2 -2
  79. data/test.sh +42 -0
  80. metadata +78 -616
  81. data/CHANGELOG.md +0 -25
  82. data/docs/Alerts.md +0 -30
  83. data/docs/AlertsInput.md +0 -24
  84. data/docs/AlertsUpdate.md +0 -24
  85. data/docs/ApiKeys.md +0 -40
  86. data/docs/ApiKeysInput.md +0 -34
  87. data/docs/ApiKeysUpdate.md +0 -34
  88. data/docs/AssetPriceHistory.md +0 -30
  89. data/docs/AssetPriceHistoryInput.md +0 -24
  90. data/docs/AssetPriceHistoryUpdate.md +0 -24
  91. data/docs/AssetUsecases.md +0 -28
  92. data/docs/AssetUsecasesApi.md +0 -157
  93. data/docs/Assets.md +0 -142
  94. data/docs/AssetsInput.md +0 -128
  95. data/docs/AssetsUpdate.md +0 -128
  96. data/docs/CloudProviders.md +0 -28
  97. data/docs/CloudProvidersInput.md +0 -22
  98. data/docs/CloudProvidersUpdate.md +0 -22
  99. data/docs/Companies.md +0 -46
  100. data/docs/CompaniesInput.md +0 -40
  101. data/docs/CompaniesUpdate.md +0 -40
  102. data/docs/Connections.md +0 -38
  103. data/docs/ConnectionsInput.md +0 -32
  104. data/docs/ConnectionsUpdate.md +0 -32
  105. data/docs/CreateAlerts200Response.md +0 -20
  106. data/docs/CreateAlerts200ResponseData.md +0 -18
  107. data/docs/CreateApiKeys200Response.md +0 -20
  108. data/docs/CreateApiKeys200ResponseData.md +0 -18
  109. data/docs/CreateAssetPriceHistory200Response.md +0 -20
  110. data/docs/CreateAssetPriceHistory200ResponseData.md +0 -18
  111. data/docs/CreateAssetsAnalyze200Response.md +0 -20
  112. data/docs/CreateAssetsAnalyze200ResponseData.md +0 -18
  113. data/docs/CreateConnections200Response.md +0 -20
  114. data/docs/CreateConnections200ResponseData.md +0 -18
  115. data/docs/CreateEndpoints200Response.md +0 -20
  116. data/docs/CreateEndpoints200ResponseData.md +0 -18
  117. data/docs/CreateFavorites200Response.md +0 -20
  118. data/docs/CreateFavorites200ResponseData.md +0 -18
  119. data/docs/CreatePostgenIntegrations200Response.md +0 -20
  120. data/docs/CreatePostgenIntegrations200ResponseData.md +0 -18
  121. data/docs/CreatePosts200Response.md +0 -20
  122. data/docs/CreatePosts200ResponseData.md +0 -18
  123. data/docs/CreateUsers200Response.md +0 -20
  124. data/docs/CreateUsers200ResponseData.md +0 -18
  125. data/docs/DeleteAlerts200Response.md +0 -20
  126. data/docs/DeleteAlerts200ResponseData.md +0 -18
  127. data/docs/DeleteApiKeys200Response.md +0 -20
  128. data/docs/DeleteApiKeys200ResponseData.md +0 -18
  129. data/docs/DeleteAssetPriceHistory200Response.md +0 -20
  130. data/docs/DeleteAssetPriceHistory200ResponseData.md +0 -18
  131. data/docs/DeleteAssets200Response.md +0 -20
  132. data/docs/DeleteAssets200ResponseData.md +0 -18
  133. data/docs/DeleteConnections200Response.md +0 -20
  134. data/docs/DeleteConnections200ResponseData.md +0 -18
  135. data/docs/DeleteEndpoints200Response.md +0 -20
  136. data/docs/DeleteEndpoints200ResponseData.md +0 -18
  137. data/docs/DeleteFavorites200Response.md +0 -20
  138. data/docs/DeleteFavorites200ResponseData.md +0 -18
  139. data/docs/DeletePostgenIntegrations200Response.md +0 -20
  140. data/docs/DeletePostgenIntegrations200ResponseData.md +0 -18
  141. data/docs/DeletePosts200Response.md +0 -20
  142. data/docs/DeletePosts200ResponseData.md +0 -18
  143. data/docs/DeleteUsers200Response.md +0 -20
  144. data/docs/DeleteUsers200ResponseData.md +0 -18
  145. data/docs/Endpoints.md +0 -96
  146. data/docs/EndpointsApi.md +0 -1189
  147. data/docs/EndpointsInput.md +0 -94
  148. data/docs/EndpointsUpdate.md +0 -94
  149. data/docs/Favorites.md +0 -34
  150. data/docs/FavoritesInput.md +0 -28
  151. data/docs/FavoritesUpdate.md +0 -28
  152. data/docs/GetAlertsById200Response.md +0 -20
  153. data/docs/GetApiKeysById200Response.md +0 -20
  154. data/docs/GetAssetPriceHistoryById200Response.md +0 -20
  155. data/docs/GetAssetUsecasesById200Response.md +0 -20
  156. data/docs/GetAssetsByIdAnalyze200Response.md +0 -20
  157. data/docs/GetCloudProvidersById200Response.md +0 -20
  158. data/docs/GetCompaniesById200Response.md +0 -20
  159. data/docs/GetConnectionsById200Response.md +0 -20
  160. data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +0 -20
  161. data/docs/GetFavoritesById200Response.md +0 -20
  162. data/docs/GetIndustriesById200Response.md +0 -20
  163. data/docs/GetJobFunctionsById200Response.md +0 -20
  164. data/docs/GetPostgenIntegrationsById200Response.md +0 -20
  165. data/docs/GetPostsById200Response.md +0 -20
  166. data/docs/GetStorageEnginesById200Response.md +0 -20
  167. data/docs/GetUsersById200Response.md +0 -20
  168. data/docs/Industries.md +0 -32
  169. data/docs/IndustriesApi.md +0 -237
  170. data/docs/InlineObject4.md +0 -20
  171. data/docs/InlineObject5.md +0 -20
  172. data/docs/InlineObject6.md +0 -22
  173. data/docs/InlineObject7.md +0 -20
  174. data/docs/JobFunctions.md +0 -24
  175. data/docs/JobFunctionsApi.md +0 -157
  176. data/docs/JobFunctionsInput.md +0 -18
  177. data/docs/JobFunctionsUpdate.md +0 -18
  178. data/docs/ListApiKeys200Response.md +0 -20
  179. data/docs/ListAssetUsecases200Response.md +0 -20
  180. data/docs/ListAssets200Response.md +0 -20
  181. data/docs/ListCloudProviders200Response.md +0 -20
  182. data/docs/ListCompaniesAnalyticsAssets200Response.md +0 -20
  183. data/docs/ListConnections200Response.md +0 -20
  184. data/docs/ListEndpoints200Response.md +0 -20
  185. data/docs/ListIndustries200Response.md +0 -20
  186. data/docs/ListJobFunctions200Response.md +0 -20
  187. data/docs/ListPostgenIntegrations200Response.md +0 -20
  188. data/docs/ListPosts200Response.md +0 -20
  189. data/docs/ListStorageEngines200Response.md +0 -20
  190. data/docs/ListUsers200Response.md +0 -20
  191. data/docs/PostPublications.md +0 -40
  192. data/docs/PostPublicationsInput.md +0 -34
  193. data/docs/PostPublicationsUpdate.md +0 -34
  194. data/docs/PostgenIntegrations.md +0 -36
  195. data/docs/PostgenIntegrationsApi.md +0 -463
  196. data/docs/PostgenIntegrationsInput.md +0 -30
  197. data/docs/PostgenIntegrationsUpdate.md +0 -30
  198. data/docs/Posts.md +0 -68
  199. data/docs/PostsApi.md +0 -843
  200. data/docs/PostsInput.md +0 -62
  201. data/docs/PostsUpdate.md +0 -62
  202. data/docs/StorageEngines.md +0 -32
  203. data/docs/StorageEnginesApi.md +0 -161
  204. data/docs/UpdateAlerts200Response.md +0 -20
  205. data/docs/UpdateAlerts200ResponseData.md +0 -18
  206. data/docs/UpdateApiKeys200Response.md +0 -20
  207. data/docs/UpdateApiKeys200ResponseData.md +0 -18
  208. data/docs/UpdateAssetPriceHistory200Response.md +0 -20
  209. data/docs/UpdateAssetPriceHistory200ResponseData.md +0 -18
  210. data/docs/UpdateAssets200Response.md +0 -20
  211. data/docs/UpdateAssets200ResponseData.md +0 -18
  212. data/docs/UpdateCompanies200Response.md +0 -20
  213. data/docs/UpdateCompanies200ResponseData.md +0 -18
  214. data/docs/UpdateConnections200Response.md +0 -20
  215. data/docs/UpdateConnections200ResponseData.md +0 -18
  216. data/docs/UpdateEndpoints200Response.md +0 -20
  217. data/docs/UpdateEndpoints200ResponseData.md +0 -18
  218. data/docs/UpdateFavorites200Response.md +0 -20
  219. data/docs/UpdateFavorites200ResponseData.md +0 -18
  220. data/docs/UpdatePostgenIntegrations200Response.md +0 -20
  221. data/docs/UpdatePostgenIntegrations200ResponseData.md +0 -18
  222. data/docs/UpdatePosts200Response.md +0 -20
  223. data/docs/UpdatePosts200ResponseData.md +0 -18
  224. data/docs/UpdateUsers200Response.md +0 -20
  225. data/docs/UpdateUsers200ResponseData.md +0 -18
  226. data/docs/Users.md +0 -36
  227. data/docs/UsersInput.md +0 -30
  228. data/docs/UsersUpdate.md +0 -30
  229. data/lib/spartera_api_sdk/api/asset_usecases_api.rb +0 -190
  230. data/lib/spartera_api_sdk/api/endpoints_api.rb +0 -1613
  231. data/lib/spartera_api_sdk/api/industries_api.rb +0 -284
  232. data/lib/spartera_api_sdk/api/job_functions_api.rb +0 -190
  233. data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +0 -634
  234. data/lib/spartera_api_sdk/api/posts_api.rb +0 -1190
  235. data/lib/spartera_api_sdk/api/storage_engines_api.rb +0 -228
  236. data/lib/spartera_api_sdk/api_model_base.rb +0 -88
  237. data/lib/spartera_api_sdk/models/alerts_input.rb +0 -213
  238. data/lib/spartera_api_sdk/models/alerts_update.rb +0 -179
  239. data/lib/spartera_api_sdk/models/api_keys_input.rb +0 -263
  240. data/lib/spartera_api_sdk/models/api_keys_update.rb +0 -229
  241. data/lib/spartera_api_sdk/models/asset_price_history_input.rb +0 -179
  242. data/lib/spartera_api_sdk/models/asset_price_history_update.rb +0 -179
  243. data/lib/spartera_api_sdk/models/asset_usecases.rb +0 -216
  244. data/lib/spartera_api_sdk/models/assets.rb +0 -1068
  245. data/lib/spartera_api_sdk/models/assets_input.rb +0 -918
  246. data/lib/spartera_api_sdk/models/assets_update.rb +0 -877
  247. data/lib/spartera_api_sdk/models/cloud_providers_input.rb +0 -186
  248. data/lib/spartera_api_sdk/models/cloud_providers_update.rb +0 -169
  249. data/lib/spartera_api_sdk/models/companies_input.rb +0 -327
  250. data/lib/spartera_api_sdk/models/companies_update.rb +0 -293
  251. data/lib/spartera_api_sdk/models/connections_input.rb +0 -287
  252. data/lib/spartera_api_sdk/models/connections_update.rb +0 -253
  253. data/lib/spartera_api_sdk/models/create_alerts200_response.rb +0 -191
  254. data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +0 -165
  255. data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +0 -191
  256. data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +0 -165
  257. data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +0 -191
  258. data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +0 -165
  259. data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +0 -191
  260. data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +0 -165
  261. data/lib/spartera_api_sdk/models/create_connections200_response.rb +0 -191
  262. data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +0 -165
  263. data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +0 -191
  264. data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +0 -165
  265. data/lib/spartera_api_sdk/models/create_favorites200_response.rb +0 -191
  266. data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +0 -165
  267. data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +0 -191
  268. data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +0 -165
  269. data/lib/spartera_api_sdk/models/create_posts200_response.rb +0 -191
  270. data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +0 -165
  271. data/lib/spartera_api_sdk/models/create_users200_response.rb +0 -191
  272. data/lib/spartera_api_sdk/models/create_users200_response_data.rb +0 -165
  273. data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +0 -191
  274. data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +0 -165
  275. data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +0 -191
  276. data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +0 -165
  277. data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +0 -191
  278. data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +0 -165
  279. data/lib/spartera_api_sdk/models/delete_assets200_response.rb +0 -191
  280. data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +0 -165
  281. data/lib/spartera_api_sdk/models/delete_connections200_response.rb +0 -191
  282. data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +0 -165
  283. data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +0 -191
  284. data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +0 -165
  285. data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +0 -191
  286. data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +0 -165
  287. data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +0 -191
  288. data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +0 -165
  289. data/lib/spartera_api_sdk/models/delete_posts200_response.rb +0 -191
  290. data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +0 -165
  291. data/lib/spartera_api_sdk/models/delete_users200_response.rb +0 -191
  292. data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +0 -165
  293. data/lib/spartera_api_sdk/models/endpoints.rb +0 -788
  294. data/lib/spartera_api_sdk/models/endpoints_input.rb +0 -686
  295. data/lib/spartera_api_sdk/models/endpoints_update.rb +0 -635
  296. data/lib/spartera_api_sdk/models/favorites_input.rb +0 -233
  297. data/lib/spartera_api_sdk/models/favorites_update.rb +0 -199
  298. data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +0 -191
  299. data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +0 -191
  300. data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +0 -191
  301. data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +0 -191
  302. data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +0 -191
  303. data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +0 -191
  304. data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +0 -191
  305. data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +0 -191
  306. data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +0 -191
  307. data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +0 -191
  308. data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +0 -191
  309. data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +0 -191
  310. data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +0 -191
  311. data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +0 -191
  312. data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +0 -191
  313. data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +0 -191
  314. data/lib/spartera_api_sdk/models/industries.rb +0 -253
  315. data/lib/spartera_api_sdk/models/inline_object4.rb +0 -156
  316. data/lib/spartera_api_sdk/models/inline_object5.rb +0 -156
  317. data/lib/spartera_api_sdk/models/inline_object6.rb +0 -166
  318. data/lib/spartera_api_sdk/models/inline_object7.rb +0 -156
  319. data/lib/spartera_api_sdk/models/job_functions.rb +0 -213
  320. data/lib/spartera_api_sdk/models/job_functions_input.rb +0 -166
  321. data/lib/spartera_api_sdk/models/job_functions_update.rb +0 -149
  322. data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +0 -193
  323. data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +0 -193
  324. data/lib/spartera_api_sdk/models/list_assets200_response.rb +0 -193
  325. data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +0 -193
  326. data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +0 -193
  327. data/lib/spartera_api_sdk/models/list_connections200_response.rb +0 -193
  328. data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +0 -193
  329. data/lib/spartera_api_sdk/models/list_industries200_response.rb +0 -193
  330. data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +0 -193
  331. data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +0 -193
  332. data/lib/spartera_api_sdk/models/list_posts200_response.rb +0 -193
  333. data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +0 -193
  334. data/lib/spartera_api_sdk/models/list_users200_response.rb +0 -193
  335. data/lib/spartera_api_sdk/models/post_publications.rb +0 -327
  336. data/lib/spartera_api_sdk/models/post_publications_input.rb +0 -280
  337. data/lib/spartera_api_sdk/models/post_publications_update.rb +0 -229
  338. data/lib/spartera_api_sdk/models/postgen_integrations.rb +0 -341
  339. data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +0 -294
  340. data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +0 -209
  341. data/lib/spartera_api_sdk/models/posts.rb +0 -586
  342. data/lib/spartera_api_sdk/models/posts_input.rb +0 -437
  343. data/lib/spartera_api_sdk/models/posts_update.rb +0 -369
  344. data/lib/spartera_api_sdk/models/storage_engines.rb +0 -294
  345. data/lib/spartera_api_sdk/models/update_alerts200_response.rb +0 -191
  346. data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +0 -165
  347. data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +0 -191
  348. data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +0 -165
  349. data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +0 -191
  350. data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +0 -165
  351. data/lib/spartera_api_sdk/models/update_assets200_response.rb +0 -191
  352. data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +0 -165
  353. data/lib/spartera_api_sdk/models/update_companies200_response.rb +0 -191
  354. data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +0 -165
  355. data/lib/spartera_api_sdk/models/update_connections200_response.rb +0 -191
  356. data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +0 -165
  357. data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +0 -191
  358. data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +0 -165
  359. data/lib/spartera_api_sdk/models/update_favorites200_response.rb +0 -191
  360. data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +0 -165
  361. data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +0 -191
  362. data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +0 -165
  363. data/lib/spartera_api_sdk/models/update_posts200_response.rb +0 -191
  364. data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +0 -165
  365. data/lib/spartera_api_sdk/models/update_users200_response.rb +0 -191
  366. data/lib/spartera_api_sdk/models/update_users200_response_data.rb +0 -165
  367. data/lib/spartera_api_sdk/models/users_input.rb +0 -260
  368. data/lib/spartera_api_sdk/models/users_update.rb +0 -243
  369. data/spec/api/asset_usecases_api_spec.rb +0 -61
  370. data/spec/api/endpoints_api_spec.rb +0 -240
  371. data/spec/api/industries_api_spec.rb +0 -76
  372. data/spec/api/job_functions_api_spec.rb +0 -61
  373. data/spec/api/postgen_integrations_api_spec.rb +0 -117
  374. data/spec/api/posts_api_spec.rb +0 -186
  375. data/spec/api/storage_engines_api_spec.rb +0 -63
  376. data/spec/models/alerts_input_spec.rb +0 -54
  377. data/spec/models/alerts_spec.rb +0 -72
  378. data/spec/models/alerts_update_spec.rb +0 -54
  379. data/spec/models/asset_price_history_input_spec.rb +0 -54
  380. data/spec/models/asset_price_history_spec.rb +0 -72
  381. data/spec/models/asset_price_history_update_spec.rb +0 -54
  382. data/spec/models/asset_usecases_spec.rb +0 -66
  383. data/spec/models/assets_input_spec.rb +0 -418
  384. data/spec/models/assets_spec.rb +0 -464
  385. data/spec/models/assets_update_spec.rb +0 -418
  386. data/spec/models/cloud_providers_input_spec.rb +0 -48
  387. data/spec/models/cloud_providers_update_spec.rb +0 -48
  388. data/spec/models/companies_input_spec.rb +0 -106
  389. data/spec/models/companies_update_spec.rb +0 -106
  390. data/spec/models/connections_input_spec.rb +0 -82
  391. data/spec/models/connections_spec.rb +0 -100
  392. data/spec/models/connections_update_spec.rb +0 -82
  393. data/spec/models/create_alerts200_response_data_spec.rb +0 -36
  394. data/spec/models/create_alerts200_response_spec.rb +0 -42
  395. data/spec/models/create_api_keys200_response_data_spec.rb +0 -36
  396. data/spec/models/create_api_keys200_response_spec.rb +0 -42
  397. data/spec/models/create_asset_price_history200_response_data_spec.rb +0 -36
  398. data/spec/models/create_asset_price_history200_response_spec.rb +0 -42
  399. data/spec/models/create_assets_analyze200_response_data_spec.rb +0 -36
  400. data/spec/models/create_assets_analyze200_response_spec.rb +0 -42
  401. data/spec/models/create_connections200_response_data_spec.rb +0 -36
  402. data/spec/models/create_connections200_response_spec.rb +0 -42
  403. data/spec/models/create_endpoints200_response_data_spec.rb +0 -36
  404. data/spec/models/create_endpoints200_response_spec.rb +0 -42
  405. data/spec/models/create_favorites200_response_data_spec.rb +0 -36
  406. data/spec/models/create_favorites200_response_spec.rb +0 -42
  407. data/spec/models/create_postgen_integrations200_response_data_spec.rb +0 -36
  408. data/spec/models/create_postgen_integrations200_response_spec.rb +0 -42
  409. data/spec/models/create_posts200_response_data_spec.rb +0 -36
  410. data/spec/models/create_posts200_response_spec.rb +0 -42
  411. data/spec/models/create_users200_response_data_spec.rb +0 -36
  412. data/spec/models/create_users200_response_spec.rb +0 -42
  413. data/spec/models/delete_alerts200_response_data_spec.rb +0 -36
  414. data/spec/models/delete_alerts200_response_spec.rb +0 -42
  415. data/spec/models/delete_api_keys200_response_data_spec.rb +0 -36
  416. data/spec/models/delete_api_keys200_response_spec.rb +0 -42
  417. data/spec/models/delete_asset_price_history200_response_data_spec.rb +0 -36
  418. data/spec/models/delete_asset_price_history200_response_spec.rb +0 -42
  419. data/spec/models/delete_assets200_response_data_spec.rb +0 -36
  420. data/spec/models/delete_assets200_response_spec.rb +0 -42
  421. data/spec/models/delete_connections200_response_data_spec.rb +0 -36
  422. data/spec/models/delete_connections200_response_spec.rb +0 -42
  423. data/spec/models/delete_endpoints200_response_data_spec.rb +0 -36
  424. data/spec/models/delete_endpoints200_response_spec.rb +0 -42
  425. data/spec/models/delete_favorites200_response_data_spec.rb +0 -36
  426. data/spec/models/delete_favorites200_response_spec.rb +0 -42
  427. data/spec/models/delete_postgen_integrations200_response_data_spec.rb +0 -36
  428. data/spec/models/delete_postgen_integrations200_response_spec.rb +0 -42
  429. data/spec/models/delete_posts200_response_data_spec.rb +0 -36
  430. data/spec/models/delete_posts200_response_spec.rb +0 -42
  431. data/spec/models/delete_users200_response_data_spec.rb +0 -36
  432. data/spec/models/delete_users200_response_spec.rb +0 -42
  433. data/spec/models/endpoints_input_spec.rb +0 -292
  434. data/spec/models/endpoints_update_spec.rb +0 -292
  435. data/spec/models/favorites_input_spec.rb +0 -66
  436. data/spec/models/favorites_update_spec.rb +0 -66
  437. data/spec/models/get_alerts_by_id200_response_spec.rb +0 -42
  438. data/spec/models/get_api_keys_by_id200_response_spec.rb +0 -42
  439. data/spec/models/get_asset_price_history_by_id200_response_spec.rb +0 -42
  440. data/spec/models/get_asset_usecases_by_id200_response_spec.rb +0 -42
  441. data/spec/models/get_assets_by_id_analyze200_response_spec.rb +0 -42
  442. data/spec/models/get_cloud_providers_by_id200_response_spec.rb +0 -42
  443. data/spec/models/get_companies_by_id200_response_spec.rb +0 -42
  444. data/spec/models/get_connections_by_id200_response_spec.rb +0 -42
  445. data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +0 -42
  446. data/spec/models/get_favorites_by_id200_response_spec.rb +0 -42
  447. data/spec/models/get_industries_by_id200_response_spec.rb +0 -42
  448. data/spec/models/get_job_functions_by_id200_response_spec.rb +0 -42
  449. data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +0 -42
  450. data/spec/models/get_posts_by_id200_response_spec.rb +0 -42
  451. data/spec/models/get_storage_engines_by_id200_response_spec.rb +0 -42
  452. data/spec/models/get_users_by_id200_response_spec.rb +0 -42
  453. data/spec/models/industries_spec.rb +0 -78
  454. data/spec/models/inline_object4_spec.rb +0 -42
  455. data/spec/models/inline_object5_spec.rb +0 -42
  456. data/spec/models/inline_object6_spec.rb +0 -48
  457. data/spec/models/inline_object7_spec.rb +0 -42
  458. data/spec/models/job_functions_input_spec.rb +0 -36
  459. data/spec/models/job_functions_spec.rb +0 -54
  460. data/spec/models/job_functions_update_spec.rb +0 -36
  461. data/spec/models/list_api_keys200_response_spec.rb +0 -42
  462. data/spec/models/list_asset_usecases200_response_spec.rb +0 -42
  463. data/spec/models/list_assets200_response_spec.rb +0 -42
  464. data/spec/models/list_cloud_providers200_response_spec.rb +0 -42
  465. data/spec/models/list_companies_analytics_assets200_response_spec.rb +0 -42
  466. data/spec/models/list_connections200_response_spec.rb +0 -42
  467. data/spec/models/list_endpoints200_response_spec.rb +0 -42
  468. data/spec/models/list_industries200_response_spec.rb +0 -42
  469. data/spec/models/list_job_functions200_response_spec.rb +0 -42
  470. data/spec/models/list_postgen_integrations200_response_spec.rb +0 -42
  471. data/spec/models/list_posts200_response_spec.rb +0 -42
  472. data/spec/models/list_storage_engines200_response_spec.rb +0 -42
  473. data/spec/models/list_users200_response_spec.rb +0 -42
  474. data/spec/models/post_publications_input_spec.rb +0 -84
  475. data/spec/models/post_publications_spec.rb +0 -102
  476. data/spec/models/post_publications_update_spec.rb +0 -84
  477. data/spec/models/postgen_integrations_input_spec.rb +0 -72
  478. data/spec/models/postgen_integrations_update_spec.rb +0 -72
  479. data/spec/models/posts_spec.rb +0 -186
  480. data/spec/models/posts_update_spec.rb +0 -168
  481. data/spec/models/storage_engines_spec.rb +0 -82
  482. data/spec/models/update_alerts200_response_data_spec.rb +0 -36
  483. data/spec/models/update_alerts200_response_spec.rb +0 -42
  484. data/spec/models/update_api_keys200_response_data_spec.rb +0 -36
  485. data/spec/models/update_api_keys200_response_spec.rb +0 -42
  486. data/spec/models/update_asset_price_history200_response_data_spec.rb +0 -36
  487. data/spec/models/update_asset_price_history200_response_spec.rb +0 -42
  488. data/spec/models/update_assets200_response_data_spec.rb +0 -36
  489. data/spec/models/update_assets200_response_spec.rb +0 -42
  490. data/spec/models/update_companies200_response_data_spec.rb +0 -36
  491. data/spec/models/update_companies200_response_spec.rb +0 -42
  492. data/spec/models/update_connections200_response_data_spec.rb +0 -36
  493. data/spec/models/update_connections200_response_spec.rb +0 -42
  494. data/spec/models/update_endpoints200_response_data_spec.rb +0 -36
  495. data/spec/models/update_endpoints200_response_spec.rb +0 -42
  496. data/spec/models/update_favorites200_response_data_spec.rb +0 -36
  497. data/spec/models/update_favorites200_response_spec.rb +0 -42
  498. data/spec/models/update_postgen_integrations200_response_data_spec.rb +0 -36
  499. data/spec/models/update_postgen_integrations200_response_spec.rb +0 -42
  500. data/spec/models/update_posts200_response_data_spec.rb +0 -36
  501. data/spec/models/update_posts200_response_spec.rb +0 -42
  502. data/spec/models/update_users200_response_data_spec.rb +0 -36
  503. data/spec/models/update_users200_response_spec.rb +0 -42
  504. data/spec/models/users_input_spec.rb +0 -76
  505. data/spec/models/users_spec.rb +0 -94
  506. data/spec/models/users_update_spec.rb +0 -76
data/docs/CompaniesApi.md CHANGED
@@ -4,23 +4,22 @@ All URIs are relative to *https://api.spartera.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**get_companies_by_id**](CompaniesApi.md#get_companies_by_id) | **GET** /companies/{company_id} | Get details of the requestor's own company |
8
- | [**list_companies**](CompaniesApi.md#list_companies) | **GET** /companies/{company_id}/requests/plan | Get the total number of requests allocated in the company's current subscription plan. |
9
- | [**list_companies_analytics_assets**](CompaniesApi.md#list_companies_analytics_assets) | **GET** /companies/{company_id}/analytics/assets | Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include |
10
- | [**list_companies_analytics_customers**](CompaniesApi.md#list_companies_analytics_customers) | **GET** /companies/{company_id}/analytics/customers | Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by |
11
- | [**list_companies_analytics_dashboard**](CompaniesApi.md#list_companies_analytics_dashboard) | **GET** /companies/{company_id}/analytics/dashboard | Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter) |
12
- | [**list_companies_analytics_metrics**](CompaniesApi.md#list_companies_analytics_metrics) | **GET** /companies/{company_id}/analytics/metrics | Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s |
13
- | [**list_companies_analytics_sales**](CompaniesApi.md#list_companies_analytics_sales) | **GET** /companies/{company_id}/analytics/sales | Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics |
14
- | [**list_companies_objects**](CompaniesApi.md#list_companies_objects) | **GET** /companies/{company_id}/objects | Get all objects (connections, assets) of a single company |
15
- | [**list_companies_requests_usage**](CompaniesApi.md#list_companies_requests_usage) | **GET** /companies/{company_id}/requests/usage | Get company request usage data for a specific month. |
16
- | [**update_companies**](CompaniesApi.md#update_companies) | **PATCH** /companies/{company_id} | Update an existing company by ID |
7
+ | [**companies_company_id_analytics_assets_get**](CompaniesApi.md#companies_company_id_analytics_assets_get) | **GET** /companies/{company_id}/analytics/assets | Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include |
8
+ | [**companies_company_id_analytics_customers_get**](CompaniesApi.md#companies_company_id_analytics_customers_get) | **GET** /companies/{company_id}/analytics/customers | Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by |
9
+ | [**companies_company_id_analytics_dashboard_get**](CompaniesApi.md#companies_company_id_analytics_dashboard_get) | **GET** /companies/{company_id}/analytics/dashboard | Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter) |
10
+ | [**companies_company_id_analytics_sales_get**](CompaniesApi.md#companies_company_id_analytics_sales_get) | **GET** /companies/{company_id}/analytics/sales | Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics |
11
+ | [**companies_company_id_get**](CompaniesApi.md#companies_company_id_get) | **GET** /companies/{company_id} | Get details of the requestor's own company |
12
+ | [**companies_company_id_objects_get**](CompaniesApi.md#companies_company_id_objects_get) | **GET** /companies/{company_id}/objects | Get all objects (connections, assets) of a single company |
13
+ | [**companies_company_id_patch**](CompaniesApi.md#companies_company_id_patch) | **PATCH** /companies/{company_id} | Update an existing company by ID |
14
+ | [**companies_company_id_requests_plan_get**](CompaniesApi.md#companies_company_id_requests_plan_get) | **GET** /companies/{company_id}/requests/plan | Get the total number of requests allocated in the company's current subscription plan. |
15
+ | [**companies_company_id_requests_usage_get**](CompaniesApi.md#companies_company_id_requests_usage_get) | **GET** /companies/{company_id}/requests/usage | Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included. |
17
16
 
18
17
 
19
- ## get_companies_by_id
18
+ ## companies_company_id_analytics_assets_get
20
19
 
21
- > <GetCompaniesById200Response> get_companies_by_id(company_id)
20
+ > Object companies_company_id_analytics_assets_get(company_id)
22
21
 
23
- Get details of the requestor's own company
22
+ Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
24
23
 
25
24
  ### Examples
26
25
 
@@ -29,39 +28,37 @@ require 'time'
29
28
  require 'spartera_api_sdk'
30
29
  # setup authorization
31
30
  SparteraApiSdk.configure do |config|
32
- # Configure API key authorization: ApiKeyAuth
33
- config.api_key['x-api-key'] = 'YOUR API KEY'
34
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
- # config.api_key_prefix['x-api-key'] = 'Bearer'
31
+ # Configure Bearer authorization (JWT): bearerAuth
32
+ config.access_token = 'YOUR_BEARER_TOKEN'
36
33
  end
37
34
 
38
35
  api_instance = SparteraApiSdk::CompaniesApi.new
39
- company_id = 'company_id_example' # String | Unique identifier for the Company
36
+ company_id = 'company_id_example' # String |
40
37
 
41
38
  begin
42
- # Get details of the requestor's own company
43
- result = api_instance.get_companies_by_id(company_id)
39
+ # Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
40
+ result = api_instance.companies_company_id_analytics_assets_get(company_id)
44
41
  p result
45
42
  rescue SparteraApiSdk::ApiError => e
46
- puts "Error when calling CompaniesApi->get_companies_by_id: #{e}"
43
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_assets_get: #{e}"
47
44
  end
48
45
  ```
49
46
 
50
- #### Using the get_companies_by_id_with_http_info variant
47
+ #### Using the companies_company_id_analytics_assets_get_with_http_info variant
51
48
 
52
49
  This returns an Array which contains the response data, status code and headers.
53
50
 
54
- > <Array(<GetCompaniesById200Response>, Integer, Hash)> get_companies_by_id_with_http_info(company_id)
51
+ > <Array(Object, Integer, Hash)> companies_company_id_analytics_assets_get_with_http_info(company_id)
55
52
 
56
53
  ```ruby
57
54
  begin
58
- # Get details of the requestor's own company
59
- data, status_code, headers = api_instance.get_companies_by_id_with_http_info(company_id)
55
+ # Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
56
+ data, status_code, headers = api_instance.companies_company_id_analytics_assets_get_with_http_info(company_id)
60
57
  p status_code # => 2xx
61
58
  p headers # => { ... }
62
- p data # => <GetCompaniesById200Response>
59
+ p data # => Object
63
60
  rescue SparteraApiSdk::ApiError => e
64
- puts "Error when calling CompaniesApi->get_companies_by_id_with_http_info: #{e}"
61
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_assets_get_with_http_info: #{e}"
65
62
  end
66
63
  ```
67
64
 
@@ -69,15 +66,15 @@ end
69
66
 
70
67
  | Name | Type | Description | Notes |
71
68
  | ---- | ---- | ----------- | ----- |
72
- | **company_id** | **String** | Unique identifier for the Company | |
69
+ | **company_id** | **String** | | |
73
70
 
74
71
  ### Return type
75
72
 
76
- [**GetCompaniesById200Response**](GetCompaniesById200Response.md)
73
+ **Object**
77
74
 
78
75
  ### Authorization
79
76
 
80
- [ApiKeyAuth](../README.md#ApiKeyAuth)
77
+ [bearerAuth](../README.md#bearerAuth)
81
78
 
82
79
  ### HTTP request headers
83
80
 
@@ -85,11 +82,11 @@ end
85
82
  - **Accept**: application/json
86
83
 
87
84
 
88
- ## list_companies
85
+ ## companies_company_id_analytics_customers_get
89
86
 
90
- > <ListCompaniesAnalyticsAssets200Response> list_companies(company_id, opts)
87
+ > Object companies_company_id_analytics_customers_get(company_id)
91
88
 
92
- Get the total number of requests allocated in the company's current subscription plan.
89
+ Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
93
90
 
94
91
  ### Examples
95
92
 
@@ -98,46 +95,37 @@ require 'time'
98
95
  require 'spartera_api_sdk'
99
96
  # setup authorization
100
97
  SparteraApiSdk.configure do |config|
101
- # Configure API key authorization: ApiKeyAuth
102
- config.api_key['x-api-key'] = 'YOUR API KEY'
103
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
104
- # config.api_key_prefix['x-api-key'] = 'Bearer'
98
+ # Configure Bearer authorization (JWT): bearerAuth
99
+ config.access_token = 'YOUR_BEARER_TOKEN'
105
100
  end
106
101
 
107
102
  api_instance = SparteraApiSdk::CompaniesApi.new
108
- company_id = 'company_id_example' # String | Unique identifier for the Company
109
- opts = {
110
- page: 56, # Integer | Page number for pagination
111
- limit: 56, # Integer | Number of items per page
112
- sort_by: 'sort_by_example', # String | Field to sort by
113
- sort_order: 'asc', # String | Sort order (ascending or descending)
114
- search: 'search_example' # String | Search term to filter results
115
- }
103
+ company_id = 'company_id_example' # String |
116
104
 
117
105
  begin
118
- # Get the total number of requests allocated in the company's current subscription plan.
119
- result = api_instance.list_companies(company_id, opts)
106
+ # Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
107
+ result = api_instance.companies_company_id_analytics_customers_get(company_id)
120
108
  p result
121
109
  rescue SparteraApiSdk::ApiError => e
122
- puts "Error when calling CompaniesApi->list_companies: #{e}"
110
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_customers_get: #{e}"
123
111
  end
124
112
  ```
125
113
 
126
- #### Using the list_companies_with_http_info variant
114
+ #### Using the companies_company_id_analytics_customers_get_with_http_info variant
127
115
 
128
116
  This returns an Array which contains the response data, status code and headers.
129
117
 
130
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_with_http_info(company_id, opts)
118
+ > <Array(Object, Integer, Hash)> companies_company_id_analytics_customers_get_with_http_info(company_id)
131
119
 
132
120
  ```ruby
133
121
  begin
134
- # Get the total number of requests allocated in the company's current subscription plan.
135
- data, status_code, headers = api_instance.list_companies_with_http_info(company_id, opts)
122
+ # Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
123
+ data, status_code, headers = api_instance.companies_company_id_analytics_customers_get_with_http_info(company_id)
136
124
  p status_code # => 2xx
137
125
  p headers # => { ... }
138
- p data # => <ListCompaniesAnalyticsAssets200Response>
126
+ p data # => Object
139
127
  rescue SparteraApiSdk::ApiError => e
140
- puts "Error when calling CompaniesApi->list_companies_with_http_info: #{e}"
128
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_customers_get_with_http_info: #{e}"
141
129
  end
142
130
  ```
143
131
 
@@ -145,20 +133,15 @@ end
145
133
 
146
134
  | Name | Type | Description | Notes |
147
135
  | ---- | ---- | ----------- | ----- |
148
- | **company_id** | **String** | Unique identifier for the Company | |
149
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
150
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
151
- | **sort_by** | **String** | Field to sort by | [optional] |
152
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
153
- | **search** | **String** | Search term to filter results | [optional] |
136
+ | **company_id** | **String** | | |
154
137
 
155
138
  ### Return type
156
139
 
157
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
140
+ **Object**
158
141
 
159
142
  ### Authorization
160
143
 
161
- [ApiKeyAuth](../README.md#ApiKeyAuth)
144
+ [bearerAuth](../README.md#bearerAuth)
162
145
 
163
146
  ### HTTP request headers
164
147
 
@@ -166,11 +149,11 @@ end
166
149
  - **Accept**: application/json
167
150
 
168
151
 
169
- ## list_companies_analytics_assets
152
+ ## companies_company_id_analytics_dashboard_get
170
153
 
171
- > <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_assets(company_id, opts)
154
+ > Object companies_company_id_analytics_dashboard_get(company_id)
172
155
 
173
- Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
156
+ Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
174
157
 
175
158
  ### Examples
176
159
 
@@ -179,46 +162,37 @@ require 'time'
179
162
  require 'spartera_api_sdk'
180
163
  # setup authorization
181
164
  SparteraApiSdk.configure do |config|
182
- # Configure API key authorization: ApiKeyAuth
183
- config.api_key['x-api-key'] = 'YOUR API KEY'
184
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
185
- # config.api_key_prefix['x-api-key'] = 'Bearer'
165
+ # Configure Bearer authorization (JWT): bearerAuth
166
+ config.access_token = 'YOUR_BEARER_TOKEN'
186
167
  end
187
168
 
188
169
  api_instance = SparteraApiSdk::CompaniesApi.new
189
- company_id = 'company_id_example' # String | Unique identifier for the Company
190
- opts = {
191
- page: 56, # Integer | Page number for pagination
192
- limit: 56, # Integer | Number of items per page
193
- sort_by: 'sort_by_example', # String | Field to sort by
194
- sort_order: 'asc', # String | Sort order (ascending or descending)
195
- search: 'search_example' # String | Search term to filter results
196
- }
170
+ company_id = 'company_id_example' # String |
197
171
 
198
172
  begin
199
- # Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
200
- result = api_instance.list_companies_analytics_assets(company_id, opts)
173
+ # Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
174
+ result = api_instance.companies_company_id_analytics_dashboard_get(company_id)
201
175
  p result
202
176
  rescue SparteraApiSdk::ApiError => e
203
- puts "Error when calling CompaniesApi->list_companies_analytics_assets: #{e}"
177
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_dashboard_get: #{e}"
204
178
  end
205
179
  ```
206
180
 
207
- #### Using the list_companies_analytics_assets_with_http_info variant
181
+ #### Using the companies_company_id_analytics_dashboard_get_with_http_info variant
208
182
 
209
183
  This returns an Array which contains the response data, status code and headers.
210
184
 
211
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_assets_with_http_info(company_id, opts)
185
+ > <Array(Object, Integer, Hash)> companies_company_id_analytics_dashboard_get_with_http_info(company_id)
212
186
 
213
187
  ```ruby
214
188
  begin
215
- # Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
216
- data, status_code, headers = api_instance.list_companies_analytics_assets_with_http_info(company_id, opts)
189
+ # Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
190
+ data, status_code, headers = api_instance.companies_company_id_analytics_dashboard_get_with_http_info(company_id)
217
191
  p status_code # => 2xx
218
192
  p headers # => { ... }
219
- p data # => <ListCompaniesAnalyticsAssets200Response>
193
+ p data # => Object
220
194
  rescue SparteraApiSdk::ApiError => e
221
- puts "Error when calling CompaniesApi->list_companies_analytics_assets_with_http_info: #{e}"
195
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_dashboard_get_with_http_info: #{e}"
222
196
  end
223
197
  ```
224
198
 
@@ -226,20 +200,15 @@ end
226
200
 
227
201
  | Name | Type | Description | Notes |
228
202
  | ---- | ---- | ----------- | ----- |
229
- | **company_id** | **String** | Unique identifier for the Company | |
230
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
231
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
232
- | **sort_by** | **String** | Field to sort by | [optional] |
233
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
234
- | **search** | **String** | Search term to filter results | [optional] |
203
+ | **company_id** | **String** | | |
235
204
 
236
205
  ### Return type
237
206
 
238
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
207
+ **Object**
239
208
 
240
209
  ### Authorization
241
210
 
242
- [ApiKeyAuth](../README.md#ApiKeyAuth)
211
+ [bearerAuth](../README.md#bearerAuth)
243
212
 
244
213
  ### HTTP request headers
245
214
 
@@ -247,11 +216,11 @@ end
247
216
  - **Accept**: application/json
248
217
 
249
218
 
250
- ## list_companies_analytics_customers
219
+ ## companies_company_id_analytics_sales_get
251
220
 
252
- > <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_customers(company_id, opts)
221
+ > Object companies_company_id_analytics_sales_get(company_id)
253
222
 
254
- Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
223
+ Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
255
224
 
256
225
  ### Examples
257
226
 
@@ -260,46 +229,37 @@ require 'time'
260
229
  require 'spartera_api_sdk'
261
230
  # setup authorization
262
231
  SparteraApiSdk.configure do |config|
263
- # Configure API key authorization: ApiKeyAuth
264
- config.api_key['x-api-key'] = 'YOUR API KEY'
265
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
266
- # config.api_key_prefix['x-api-key'] = 'Bearer'
232
+ # Configure Bearer authorization (JWT): bearerAuth
233
+ config.access_token = 'YOUR_BEARER_TOKEN'
267
234
  end
268
235
 
269
236
  api_instance = SparteraApiSdk::CompaniesApi.new
270
- company_id = 'company_id_example' # String | Unique identifier for the Company
271
- opts = {
272
- page: 56, # Integer | Page number for pagination
273
- limit: 56, # Integer | Number of items per page
274
- sort_by: 'sort_by_example', # String | Field to sort by
275
- sort_order: 'asc', # String | Sort order (ascending or descending)
276
- search: 'search_example' # String | Search term to filter results
277
- }
237
+ company_id = 'company_id_example' # String |
278
238
 
279
239
  begin
280
- # Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
281
- result = api_instance.list_companies_analytics_customers(company_id, opts)
240
+ # Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
241
+ result = api_instance.companies_company_id_analytics_sales_get(company_id)
282
242
  p result
283
243
  rescue SparteraApiSdk::ApiError => e
284
- puts "Error when calling CompaniesApi->list_companies_analytics_customers: #{e}"
244
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_sales_get: #{e}"
285
245
  end
286
246
  ```
287
247
 
288
- #### Using the list_companies_analytics_customers_with_http_info variant
248
+ #### Using the companies_company_id_analytics_sales_get_with_http_info variant
289
249
 
290
250
  This returns an Array which contains the response data, status code and headers.
291
251
 
292
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_customers_with_http_info(company_id, opts)
252
+ > <Array(Object, Integer, Hash)> companies_company_id_analytics_sales_get_with_http_info(company_id)
293
253
 
294
254
  ```ruby
295
255
  begin
296
- # Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
297
- data, status_code, headers = api_instance.list_companies_analytics_customers_with_http_info(company_id, opts)
256
+ # Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
257
+ data, status_code, headers = api_instance.companies_company_id_analytics_sales_get_with_http_info(company_id)
298
258
  p status_code # => 2xx
299
259
  p headers # => { ... }
300
- p data # => <ListCompaniesAnalyticsAssets200Response>
260
+ p data # => Object
301
261
  rescue SparteraApiSdk::ApiError => e
302
- puts "Error when calling CompaniesApi->list_companies_analytics_customers_with_http_info: #{e}"
262
+ puts "Error when calling CompaniesApi->companies_company_id_analytics_sales_get_with_http_info: #{e}"
303
263
  end
304
264
  ```
305
265
 
@@ -307,20 +267,15 @@ end
307
267
 
308
268
  | Name | Type | Description | Notes |
309
269
  | ---- | ---- | ----------- | ----- |
310
- | **company_id** | **String** | Unique identifier for the Company | |
311
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
312
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
313
- | **sort_by** | **String** | Field to sort by | [optional] |
314
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
315
- | **search** | **String** | Search term to filter results | [optional] |
270
+ | **company_id** | **String** | | |
316
271
 
317
272
  ### Return type
318
273
 
319
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
274
+ **Object**
320
275
 
321
276
  ### Authorization
322
277
 
323
- [ApiKeyAuth](../README.md#ApiKeyAuth)
278
+ [bearerAuth](../README.md#bearerAuth)
324
279
 
325
280
  ### HTTP request headers
326
281
 
@@ -328,11 +283,11 @@ end
328
283
  - **Accept**: application/json
329
284
 
330
285
 
331
- ## list_companies_analytics_dashboard
286
+ ## companies_company_id_get
332
287
 
333
- > <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_dashboard(company_id, opts)
288
+ > Object companies_company_id_get(company_id)
334
289
 
335
- Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
290
+ Get details of the requestor's own company
336
291
 
337
292
  ### Examples
338
293
 
@@ -341,46 +296,37 @@ require 'time'
341
296
  require 'spartera_api_sdk'
342
297
  # setup authorization
343
298
  SparteraApiSdk.configure do |config|
344
- # Configure API key authorization: ApiKeyAuth
345
- config.api_key['x-api-key'] = 'YOUR API KEY'
346
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
347
- # config.api_key_prefix['x-api-key'] = 'Bearer'
299
+ # Configure Bearer authorization (JWT): bearerAuth
300
+ config.access_token = 'YOUR_BEARER_TOKEN'
348
301
  end
349
302
 
350
303
  api_instance = SparteraApiSdk::CompaniesApi.new
351
- company_id = 'company_id_example' # String | Unique identifier for the Company
352
- opts = {
353
- page: 56, # Integer | Page number for pagination
354
- limit: 56, # Integer | Number of items per page
355
- sort_by: 'sort_by_example', # String | Field to sort by
356
- sort_order: 'asc', # String | Sort order (ascending or descending)
357
- search: 'search_example' # String | Search term to filter results
358
- }
304
+ company_id = 'company_id_example' # String |
359
305
 
360
306
  begin
361
- # Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
362
- result = api_instance.list_companies_analytics_dashboard(company_id, opts)
307
+ # Get details of the requestor's own company
308
+ result = api_instance.companies_company_id_get(company_id)
363
309
  p result
364
310
  rescue SparteraApiSdk::ApiError => e
365
- puts "Error when calling CompaniesApi->list_companies_analytics_dashboard: #{e}"
311
+ puts "Error when calling CompaniesApi->companies_company_id_get: #{e}"
366
312
  end
367
313
  ```
368
314
 
369
- #### Using the list_companies_analytics_dashboard_with_http_info variant
315
+ #### Using the companies_company_id_get_with_http_info variant
370
316
 
371
317
  This returns an Array which contains the response data, status code and headers.
372
318
 
373
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_dashboard_with_http_info(company_id, opts)
319
+ > <Array(Object, Integer, Hash)> companies_company_id_get_with_http_info(company_id)
374
320
 
375
321
  ```ruby
376
322
  begin
377
- # Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
378
- data, status_code, headers = api_instance.list_companies_analytics_dashboard_with_http_info(company_id, opts)
323
+ # Get details of the requestor's own company
324
+ data, status_code, headers = api_instance.companies_company_id_get_with_http_info(company_id)
379
325
  p status_code # => 2xx
380
326
  p headers # => { ... }
381
- p data # => <ListCompaniesAnalyticsAssets200Response>
327
+ p data # => Object
382
328
  rescue SparteraApiSdk::ApiError => e
383
- puts "Error when calling CompaniesApi->list_companies_analytics_dashboard_with_http_info: #{e}"
329
+ puts "Error when calling CompaniesApi->companies_company_id_get_with_http_info: #{e}"
384
330
  end
385
331
  ```
386
332
 
@@ -388,20 +334,15 @@ end
388
334
 
389
335
  | Name | Type | Description | Notes |
390
336
  | ---- | ---- | ----------- | ----- |
391
- | **company_id** | **String** | Unique identifier for the Company | |
392
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
393
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
394
- | **sort_by** | **String** | Field to sort by | [optional] |
395
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
396
- | **search** | **String** | Search term to filter results | [optional] |
337
+ | **company_id** | **String** | | |
397
338
 
398
339
  ### Return type
399
340
 
400
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
341
+ **Object**
401
342
 
402
343
  ### Authorization
403
344
 
404
- [ApiKeyAuth](../README.md#ApiKeyAuth)
345
+ [bearerAuth](../README.md#bearerAuth)
405
346
 
406
347
  ### HTTP request headers
407
348
 
@@ -409,11 +350,11 @@ end
409
350
  - **Accept**: application/json
410
351
 
411
352
 
412
- ## list_companies_analytics_metrics
353
+ ## companies_company_id_objects_get
413
354
 
414
- > <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_metrics(company_id, opts)
355
+ > Object companies_company_id_objects_get(company_id)
415
356
 
416
- Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
357
+ Get all objects (connections, assets) of a single company
417
358
 
418
359
  ### Examples
419
360
 
@@ -422,46 +363,37 @@ require 'time'
422
363
  require 'spartera_api_sdk'
423
364
  # setup authorization
424
365
  SparteraApiSdk.configure do |config|
425
- # Configure API key authorization: ApiKeyAuth
426
- config.api_key['x-api-key'] = 'YOUR API KEY'
427
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
428
- # config.api_key_prefix['x-api-key'] = 'Bearer'
366
+ # Configure Bearer authorization (JWT): bearerAuth
367
+ config.access_token = 'YOUR_BEARER_TOKEN'
429
368
  end
430
369
 
431
370
  api_instance = SparteraApiSdk::CompaniesApi.new
432
- company_id = 'company_id_example' # String | Unique identifier for the Company
433
- opts = {
434
- page: 56, # Integer | Page number for pagination
435
- limit: 56, # Integer | Number of items per page
436
- sort_by: 'sort_by_example', # String | Field to sort by
437
- sort_order: 'asc', # String | Sort order (ascending or descending)
438
- search: 'search_example' # String | Search term to filter results
439
- }
371
+ company_id = 'company_id_example' # String |
440
372
 
441
373
  begin
442
- # Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
443
- result = api_instance.list_companies_analytics_metrics(company_id, opts)
374
+ # Get all objects (connections, assets) of a single company
375
+ result = api_instance.companies_company_id_objects_get(company_id)
444
376
  p result
445
377
  rescue SparteraApiSdk::ApiError => e
446
- puts "Error when calling CompaniesApi->list_companies_analytics_metrics: #{e}"
378
+ puts "Error when calling CompaniesApi->companies_company_id_objects_get: #{e}"
447
379
  end
448
380
  ```
449
381
 
450
- #### Using the list_companies_analytics_metrics_with_http_info variant
382
+ #### Using the companies_company_id_objects_get_with_http_info variant
451
383
 
452
384
  This returns an Array which contains the response data, status code and headers.
453
385
 
454
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_metrics_with_http_info(company_id, opts)
386
+ > <Array(Object, Integer, Hash)> companies_company_id_objects_get_with_http_info(company_id)
455
387
 
456
388
  ```ruby
457
389
  begin
458
- # Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
459
- data, status_code, headers = api_instance.list_companies_analytics_metrics_with_http_info(company_id, opts)
390
+ # Get all objects (connections, assets) of a single company
391
+ data, status_code, headers = api_instance.companies_company_id_objects_get_with_http_info(company_id)
460
392
  p status_code # => 2xx
461
393
  p headers # => { ... }
462
- p data # => <ListCompaniesAnalyticsAssets200Response>
394
+ p data # => Object
463
395
  rescue SparteraApiSdk::ApiError => e
464
- puts "Error when calling CompaniesApi->list_companies_analytics_metrics_with_http_info: #{e}"
396
+ puts "Error when calling CompaniesApi->companies_company_id_objects_get_with_http_info: #{e}"
465
397
  end
466
398
  ```
467
399
 
@@ -469,20 +401,15 @@ end
469
401
 
470
402
  | Name | Type | Description | Notes |
471
403
  | ---- | ---- | ----------- | ----- |
472
- | **company_id** | **String** | Unique identifier for the Company | |
473
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
474
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
475
- | **sort_by** | **String** | Field to sort by | [optional] |
476
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
477
- | **search** | **String** | Search term to filter results | [optional] |
404
+ | **company_id** | **String** | | |
478
405
 
479
406
  ### Return type
480
407
 
481
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
408
+ **Object**
482
409
 
483
410
  ### Authorization
484
411
 
485
- [ApiKeyAuth](../README.md#ApiKeyAuth)
412
+ [bearerAuth](../README.md#bearerAuth)
486
413
 
487
414
  ### HTTP request headers
488
415
 
@@ -490,11 +417,11 @@ end
490
417
  - **Accept**: application/json
491
418
 
492
419
 
493
- ## list_companies_analytics_sales
420
+ ## companies_company_id_patch
494
421
 
495
- > <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_sales(company_id, opts)
422
+ > Object companies_company_id_patch(company_id)
496
423
 
497
- Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
424
+ Update an existing company by ID
498
425
 
499
426
  ### Examples
500
427
 
@@ -503,46 +430,37 @@ require 'time'
503
430
  require 'spartera_api_sdk'
504
431
  # setup authorization
505
432
  SparteraApiSdk.configure do |config|
506
- # Configure API key authorization: ApiKeyAuth
507
- config.api_key['x-api-key'] = 'YOUR API KEY'
508
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
509
- # config.api_key_prefix['x-api-key'] = 'Bearer'
433
+ # Configure Bearer authorization (JWT): bearerAuth
434
+ config.access_token = 'YOUR_BEARER_TOKEN'
510
435
  end
511
436
 
512
437
  api_instance = SparteraApiSdk::CompaniesApi.new
513
- company_id = 'company_id_example' # String | Unique identifier for the Company
514
- opts = {
515
- page: 56, # Integer | Page number for pagination
516
- limit: 56, # Integer | Number of items per page
517
- sort_by: 'sort_by_example', # String | Field to sort by
518
- sort_order: 'asc', # String | Sort order (ascending or descending)
519
- search: 'search_example' # String | Search term to filter results
520
- }
438
+ company_id = 'company_id_example' # String |
521
439
 
522
440
  begin
523
- # Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
524
- result = api_instance.list_companies_analytics_sales(company_id, opts)
441
+ # Update an existing company by ID
442
+ result = api_instance.companies_company_id_patch(company_id)
525
443
  p result
526
444
  rescue SparteraApiSdk::ApiError => e
527
- puts "Error when calling CompaniesApi->list_companies_analytics_sales: #{e}"
445
+ puts "Error when calling CompaniesApi->companies_company_id_patch: #{e}"
528
446
  end
529
447
  ```
530
448
 
531
- #### Using the list_companies_analytics_sales_with_http_info variant
449
+ #### Using the companies_company_id_patch_with_http_info variant
532
450
 
533
451
  This returns an Array which contains the response data, status code and headers.
534
452
 
535
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_sales_with_http_info(company_id, opts)
453
+ > <Array(Object, Integer, Hash)> companies_company_id_patch_with_http_info(company_id)
536
454
 
537
455
  ```ruby
538
456
  begin
539
- # Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
540
- data, status_code, headers = api_instance.list_companies_analytics_sales_with_http_info(company_id, opts)
457
+ # Update an existing company by ID
458
+ data, status_code, headers = api_instance.companies_company_id_patch_with_http_info(company_id)
541
459
  p status_code # => 2xx
542
460
  p headers # => { ... }
543
- p data # => <ListCompaniesAnalyticsAssets200Response>
461
+ p data # => Object
544
462
  rescue SparteraApiSdk::ApiError => e
545
- puts "Error when calling CompaniesApi->list_companies_analytics_sales_with_http_info: #{e}"
463
+ puts "Error when calling CompaniesApi->companies_company_id_patch_with_http_info: #{e}"
546
464
  end
547
465
  ```
548
466
 
@@ -550,20 +468,15 @@ end
550
468
 
551
469
  | Name | Type | Description | Notes |
552
470
  | ---- | ---- | ----------- | ----- |
553
- | **company_id** | **String** | Unique identifier for the Company | |
554
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
555
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
556
- | **sort_by** | **String** | Field to sort by | [optional] |
557
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
558
- | **search** | **String** | Search term to filter results | [optional] |
471
+ | **company_id** | **String** | | |
559
472
 
560
473
  ### Return type
561
474
 
562
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
475
+ **Object**
563
476
 
564
477
  ### Authorization
565
478
 
566
- [ApiKeyAuth](../README.md#ApiKeyAuth)
479
+ [bearerAuth](../README.md#bearerAuth)
567
480
 
568
481
  ### HTTP request headers
569
482
 
@@ -571,11 +484,11 @@ end
571
484
  - **Accept**: application/json
572
485
 
573
486
 
574
- ## list_companies_objects
487
+ ## companies_company_id_requests_plan_get
575
488
 
576
- > <ListCompaniesAnalyticsAssets200Response> list_companies_objects(company_id, opts)
489
+ > Object companies_company_id_requests_plan_get(company_id)
577
490
 
578
- Get all objects (connections, assets) of a single company
491
+ Get the total number of requests allocated in the company's current subscription plan.
579
492
 
580
493
  ### Examples
581
494
 
@@ -584,46 +497,37 @@ require 'time'
584
497
  require 'spartera_api_sdk'
585
498
  # setup authorization
586
499
  SparteraApiSdk.configure do |config|
587
- # Configure API key authorization: ApiKeyAuth
588
- config.api_key['x-api-key'] = 'YOUR API KEY'
589
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
590
- # config.api_key_prefix['x-api-key'] = 'Bearer'
500
+ # Configure Bearer authorization (JWT): bearerAuth
501
+ config.access_token = 'YOUR_BEARER_TOKEN'
591
502
  end
592
503
 
593
504
  api_instance = SparteraApiSdk::CompaniesApi.new
594
- company_id = 'company_id_example' # String | Unique identifier for the Company
595
- opts = {
596
- page: 56, # Integer | Page number for pagination
597
- limit: 56, # Integer | Number of items per page
598
- sort_by: 'sort_by_example', # String | Field to sort by
599
- sort_order: 'asc', # String | Sort order (ascending or descending)
600
- search: 'search_example' # String | Search term to filter results
601
- }
505
+ company_id = 'company_id_example' # String |
602
506
 
603
507
  begin
604
- # Get all objects (connections, assets) of a single company
605
- result = api_instance.list_companies_objects(company_id, opts)
508
+ # Get the total number of requests allocated in the company's current subscription plan.
509
+ result = api_instance.companies_company_id_requests_plan_get(company_id)
606
510
  p result
607
511
  rescue SparteraApiSdk::ApiError => e
608
- puts "Error when calling CompaniesApi->list_companies_objects: #{e}"
512
+ puts "Error when calling CompaniesApi->companies_company_id_requests_plan_get: #{e}"
609
513
  end
610
514
  ```
611
515
 
612
- #### Using the list_companies_objects_with_http_info variant
516
+ #### Using the companies_company_id_requests_plan_get_with_http_info variant
613
517
 
614
518
  This returns an Array which contains the response data, status code and headers.
615
519
 
616
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_objects_with_http_info(company_id, opts)
520
+ > <Array(Object, Integer, Hash)> companies_company_id_requests_plan_get_with_http_info(company_id)
617
521
 
618
522
  ```ruby
619
523
  begin
620
- # Get all objects (connections, assets) of a single company
621
- data, status_code, headers = api_instance.list_companies_objects_with_http_info(company_id, opts)
524
+ # Get the total number of requests allocated in the company's current subscription plan.
525
+ data, status_code, headers = api_instance.companies_company_id_requests_plan_get_with_http_info(company_id)
622
526
  p status_code # => 2xx
623
527
  p headers # => { ... }
624
- p data # => <ListCompaniesAnalyticsAssets200Response>
528
+ p data # => Object
625
529
  rescue SparteraApiSdk::ApiError => e
626
- puts "Error when calling CompaniesApi->list_companies_objects_with_http_info: #{e}"
530
+ puts "Error when calling CompaniesApi->companies_company_id_requests_plan_get_with_http_info: #{e}"
627
531
  end
628
532
  ```
629
533
 
@@ -631,20 +535,15 @@ end
631
535
 
632
536
  | Name | Type | Description | Notes |
633
537
  | ---- | ---- | ----------- | ----- |
634
- | **company_id** | **String** | Unique identifier for the Company | |
635
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
636
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
637
- | **sort_by** | **String** | Field to sort by | [optional] |
638
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
639
- | **search** | **String** | Search term to filter results | [optional] |
538
+ | **company_id** | **String** | | |
640
539
 
641
540
  ### Return type
642
541
 
643
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
542
+ **Object**
644
543
 
645
544
  ### Authorization
646
545
 
647
- [ApiKeyAuth](../README.md#ApiKeyAuth)
546
+ [bearerAuth](../README.md#bearerAuth)
648
547
 
649
548
  ### HTTP request headers
650
549
 
@@ -652,11 +551,11 @@ end
652
551
  - **Accept**: application/json
653
552
 
654
553
 
655
- ## list_companies_requests_usage
554
+ ## companies_company_id_requests_usage_get
656
555
 
657
- > <ListCompaniesAnalyticsAssets200Response> list_companies_requests_usage(company_id, opts)
556
+ > Object companies_company_id_requests_usage_get(company_id)
658
557
 
659
- Get company request usage data for a specific month.
558
+ Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
660
559
 
661
560
  ### Examples
662
561
 
@@ -665,46 +564,37 @@ require 'time'
665
564
  require 'spartera_api_sdk'
666
565
  # setup authorization
667
566
  SparteraApiSdk.configure do |config|
668
- # Configure API key authorization: ApiKeyAuth
669
- config.api_key['x-api-key'] = 'YOUR API KEY'
670
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
671
- # config.api_key_prefix['x-api-key'] = 'Bearer'
567
+ # Configure Bearer authorization (JWT): bearerAuth
568
+ config.access_token = 'YOUR_BEARER_TOKEN'
672
569
  end
673
570
 
674
571
  api_instance = SparteraApiSdk::CompaniesApi.new
675
- company_id = 'company_id_example' # String | Unique identifier for the Company
676
- opts = {
677
- page: 56, # Integer | Page number for pagination
678
- limit: 56, # Integer | Number of items per page
679
- sort_by: 'sort_by_example', # String | Field to sort by
680
- sort_order: 'asc', # String | Sort order (ascending or descending)
681
- search: 'search_example' # String | Search term to filter results
682
- }
572
+ company_id = 'company_id_example' # String |
683
573
 
684
574
  begin
685
- # Get company request usage data for a specific month.
686
- result = api_instance.list_companies_requests_usage(company_id, opts)
575
+ # Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
576
+ result = api_instance.companies_company_id_requests_usage_get(company_id)
687
577
  p result
688
578
  rescue SparteraApiSdk::ApiError => e
689
- puts "Error when calling CompaniesApi->list_companies_requests_usage: #{e}"
579
+ puts "Error when calling CompaniesApi->companies_company_id_requests_usage_get: #{e}"
690
580
  end
691
581
  ```
692
582
 
693
- #### Using the list_companies_requests_usage_with_http_info variant
583
+ #### Using the companies_company_id_requests_usage_get_with_http_info variant
694
584
 
695
585
  This returns an Array which contains the response data, status code and headers.
696
586
 
697
- > <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_requests_usage_with_http_info(company_id, opts)
587
+ > <Array(Object, Integer, Hash)> companies_company_id_requests_usage_get_with_http_info(company_id)
698
588
 
699
589
  ```ruby
700
590
  begin
701
- # Get company request usage data for a specific month.
702
- data, status_code, headers = api_instance.list_companies_requests_usage_with_http_info(company_id, opts)
591
+ # Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
592
+ data, status_code, headers = api_instance.companies_company_id_requests_usage_get_with_http_info(company_id)
703
593
  p status_code # => 2xx
704
594
  p headers # => { ... }
705
- p data # => <ListCompaniesAnalyticsAssets200Response>
595
+ p data # => Object
706
596
  rescue SparteraApiSdk::ApiError => e
707
- puts "Error when calling CompaniesApi->list_companies_requests_usage_with_http_info: #{e}"
597
+ puts "Error when calling CompaniesApi->companies_company_id_requests_usage_get_with_http_info: #{e}"
708
598
  end
709
599
  ```
710
600
 
@@ -712,94 +602,18 @@ end
712
602
 
713
603
  | Name | Type | Description | Notes |
714
604
  | ---- | ---- | ----------- | ----- |
715
- | **company_id** | **String** | Unique identifier for the Company | |
716
- | **page** | **Integer** | Page number for pagination | [optional][default to 1] |
717
- | **limit** | **Integer** | Number of items per page | [optional][default to 20] |
718
- | **sort_by** | **String** | Field to sort by | [optional] |
719
- | **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to &#39;desc&#39;] |
720
- | **search** | **String** | Search term to filter results | [optional] |
605
+ | **company_id** | **String** | | |
721
606
 
722
607
  ### Return type
723
608
 
724
- [**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
609
+ **Object**
725
610
 
726
611
  ### Authorization
727
612
 
728
- [ApiKeyAuth](../README.md#ApiKeyAuth)
613
+ [bearerAuth](../README.md#bearerAuth)
729
614
 
730
615
  ### HTTP request headers
731
616
 
732
617
  - **Content-Type**: Not defined
733
618
  - **Accept**: application/json
734
619
 
735
-
736
- ## update_companies
737
-
738
- > <UpdateCompanies200Response> update_companies(company_id, companies_update)
739
-
740
- Update an existing company by ID
741
-
742
- ### Examples
743
-
744
- ```ruby
745
- require 'time'
746
- require 'spartera_api_sdk'
747
- # setup authorization
748
- SparteraApiSdk.configure do |config|
749
- # Configure API key authorization: ApiKeyAuth
750
- config.api_key['x-api-key'] = 'YOUR API KEY'
751
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
752
- # config.api_key_prefix['x-api-key'] = 'Bearer'
753
- end
754
-
755
- api_instance = SparteraApiSdk::CompaniesApi.new
756
- company_id = 'company_id_example' # String | Unique identifier for the Company
757
- companies_update = SparteraApiSdk::CompaniesUpdate.new # CompaniesUpdate |
758
-
759
- begin
760
- # Update an existing company by ID
761
- result = api_instance.update_companies(company_id, companies_update)
762
- p result
763
- rescue SparteraApiSdk::ApiError => e
764
- puts "Error when calling CompaniesApi->update_companies: #{e}"
765
- end
766
- ```
767
-
768
- #### Using the update_companies_with_http_info variant
769
-
770
- This returns an Array which contains the response data, status code and headers.
771
-
772
- > <Array(<UpdateCompanies200Response>, Integer, Hash)> update_companies_with_http_info(company_id, companies_update)
773
-
774
- ```ruby
775
- begin
776
- # Update an existing company by ID
777
- data, status_code, headers = api_instance.update_companies_with_http_info(company_id, companies_update)
778
- p status_code # => 2xx
779
- p headers # => { ... }
780
- p data # => <UpdateCompanies200Response>
781
- rescue SparteraApiSdk::ApiError => e
782
- puts "Error when calling CompaniesApi->update_companies_with_http_info: #{e}"
783
- end
784
- ```
785
-
786
- ### Parameters
787
-
788
- | Name | Type | Description | Notes |
789
- | ---- | ---- | ----------- | ----- |
790
- | **company_id** | **String** | Unique identifier for the Company | |
791
- | **companies_update** | [**CompaniesUpdate**](CompaniesUpdate.md) | | |
792
-
793
- ### Return type
794
-
795
- [**UpdateCompanies200Response**](UpdateCompanies200Response.md)
796
-
797
- ### Authorization
798
-
799
- [ApiKeyAuth](../README.md#ApiKeyAuth)
800
-
801
- ### HTTP request headers
802
-
803
- - **Content-Type**: application/json
804
- - **Accept**: application/json
805
-