nextx-sdk 0.1.0__py3-none-any.whl

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 (370) hide show
  1. nextx_sdk/__init__.py +13 -0
  2. nextx_sdk/_version.py +1 -0
  3. nextx_sdk/api/__init__.py +1 -0
  4. nextx_sdk/api/call/__init__.py +1 -0
  5. nextx_sdk/api/call/agents_list.py +277 -0
  6. nextx_sdk/api/call/call_flows_list.py +248 -0
  7. nextx_sdk/api/call/calls_list.py +568 -0
  8. nextx_sdk/api/call/campaigns_list.py +260 -0
  9. nextx_sdk/api/call/ivr_flows_list.py +233 -0
  10. nextx_sdk/api/call/phone_numbers_list.py +279 -0
  11. nextx_sdk/api/call/queues_list.py +233 -0
  12. nextx_sdk/api/comm/__init__.py +1 -0
  13. nextx_sdk/api/comm/conversations_messages_create.py +229 -0
  14. nextx_sdk/api/crm/__init__.py +1 -0
  15. nextx_sdk/api/crm/activities_list.py +344 -0
  16. nextx_sdk/api/crm/contacts_branch_lookup_get.py +201 -0
  17. nextx_sdk/api/crm/contacts_branch_transfer_targets_list.py +155 -0
  18. nextx_sdk/api/crm/contacts_create.py +230 -0
  19. nextx_sdk/api/crm/contacts_enrichment_suggestions_list.py +201 -0
  20. nextx_sdk/api/crm/contacts_facets_list.py +207 -0
  21. nextx_sdk/api/crm/contacts_get.py +188 -0
  22. nextx_sdk/api/crm/contacts_list.py +640 -0
  23. nextx_sdk/api/crm/contacts_stats_get.py +162 -0
  24. nextx_sdk/api/crm/opportunities_forecast_get.py +467 -0
  25. nextx_sdk/api/crm/opportunities_get.py +188 -0
  26. nextx_sdk/api/crm/opportunities_list.py +564 -0
  27. nextx_sdk/api/crm/opportunities_pipeline_stages_list.py +201 -0
  28. nextx_sdk/api/crm/opportunities_stage_update.py +218 -0
  29. nextx_sdk/api/crm/opportunities_stale_get.py +234 -0
  30. nextx_sdk/api/crm/opportunities_stats_get.py +192 -0
  31. nextx_sdk/api/crm/tasks_create.py +201 -0
  32. nextx_sdk/api/dms/__init__.py +1 -0
  33. nextx_sdk/api/dms/catalog_products_list.py +207 -0
  34. nextx_sdk/api/dms/daily_plans_get.py +188 -0
  35. nextx_sdk/api/dms/daily_plans_list.py +274 -0
  36. nextx_sdk/api/dms/daily_plans_my_visits_list.py +231 -0
  37. nextx_sdk/api/dms/daily_plans_my_week_get.py +162 -0
  38. nextx_sdk/api/dms/daily_plans_suggestions_list.py +197 -0
  39. nextx_sdk/api/dms/daily_plans_today_get.py +162 -0
  40. nextx_sdk/api/dms/daily_plans_unassigned_employees_list.py +201 -0
  41. nextx_sdk/api/dms/orders_list.py +429 -0
  42. nextx_sdk/api/dms/outlets_list.py +533 -0
  43. nextx_sdk/api/dms/routes_list.py +316 -0
  44. nextx_sdk/api/dms/tracking_check_ins_list.py +286 -0
  45. nextx_sdk/api/einvoice/__init__.py +1 -0
  46. nextx_sdk/api/einvoice/invoices_by_reference_code_get.py +212 -0
  47. nextx_sdk/api/einvoice/invoices_get.py +188 -0
  48. nextx_sdk/api/einvoice/invoices_list.py +295 -0
  49. nextx_sdk/api/einvoice/reports_summary_get.py +214 -0
  50. nextx_sdk/api/einvoice/series_list.py +222 -0
  51. nextx_sdk/api/einvoice/settings_list.py +163 -0
  52. nextx_sdk/api/hrm/__init__.py +1 -0
  53. nextx_sdk/api/hrm/attendance_clock_history_daily_get.py +277 -0
  54. nextx_sdk/api/hrm/attendance_clock_history_timeline_get.py +229 -0
  55. nextx_sdk/api/hrm/attendance_devices_list.py +197 -0
  56. nextx_sdk/api/hrm/attendance_raw_punches_list.py +334 -0
  57. nextx_sdk/api/hrm/employees_credentials_list.py +177 -0
  58. nextx_sdk/api/marketing/__init__.py +1 -0
  59. nextx_sdk/api/marketing/email_campaigns_get.py +188 -0
  60. nextx_sdk/api/marketing/email_campaigns_list.py +256 -0
  61. nextx_sdk/api/marketing/email_campaigns_merge_variables_list.py +171 -0
  62. nextx_sdk/api/marketing/email_templates_list.py +233 -0
  63. nextx_sdk/api/marketing/google_integrations_list.py +163 -0
  64. nextx_sdk/api/marketing/reports_overview_get.py +203 -0
  65. nextx_sdk/api/marketing/settings_sender_info_get.py +163 -0
  66. nextx_sdk/api/office/__init__.py +1 -0
  67. nextx_sdk/api/office/approvals_instances_create.py +126 -0
  68. nextx_sdk/api/office/approvals_instances_get.py +172 -0
  69. nextx_sdk/api/office/approvals_instances_list.py +234 -0
  70. nextx_sdk/api/office/approvals_tasks_approve.py +134 -0
  71. nextx_sdk/api/office/approvals_tasks_reject.py +134 -0
  72. nextx_sdk/api/office/tables_records_batch_delete.py +199 -0
  73. nextx_sdk/api/office/tables_records_batch_update.py +199 -0
  74. nextx_sdk/api/office/tables_records_create.py +199 -0
  75. nextx_sdk/api/office/tables_records_delete.py +189 -0
  76. nextx_sdk/api/office/tables_records_get.py +193 -0
  77. nextx_sdk/api/office/tables_records_list.py +195 -0
  78. nextx_sdk/api/office/tables_records_update.py +240 -0
  79. nextx_sdk/api/payment/__init__.py +1 -0
  80. nextx_sdk/api/payment/intents_completed_get.py +234 -0
  81. nextx_sdk/api/payment/intents_get.py +201 -0
  82. nextx_sdk/api/payment/payment_reports_overview_get.py +198 -0
  83. nextx_sdk/api/payment/refunds_list.py +258 -0
  84. nextx_sdk/api/payment/subscriptions_list.py +236 -0
  85. nextx_sdk/api/payment/transactions_get.py +176 -0
  86. nextx_sdk/api/payment/transactions_list.py +310 -0
  87. nextx_sdk/api/sales/__init__.py +1 -0
  88. nextx_sdk/api/sales/customers_list.py +562 -0
  89. nextx_sdk/api/sales/orders_export_get.py +423 -0
  90. nextx_sdk/api/sales/orders_get.py +221 -0
  91. nextx_sdk/api/sales/orders_stats_get.py +383 -0
  92. nextx_sdk/api/sales/products_barcode_lookup_get.py +212 -0
  93. nextx_sdk/api/sales/products_deleted_get.py +233 -0
  94. nextx_sdk/api/sales/products_expiry_report_get.py +274 -0
  95. nextx_sdk/api/sales/products_export_get.py +278 -0
  96. nextx_sdk/api/sales/products_get.py +180 -0
  97. nextx_sdk/api/sales/products_kit_availability_get.py +220 -0
  98. nextx_sdk/api/sales/products_list.py +477 -0
  99. nextx_sdk/api/sales/products_stats_get.py +158 -0
  100. nextx_sdk/api/sales/products_stock_forecast_get.py +246 -0
  101. nextx_sdk/api/sales/products_stock_get.py +193 -0
  102. nextx_sdk/api/sales/products_unknown_lot_report_get.py +285 -0
  103. nextx_sdk/api/sales/sales_orders_list.py +737 -0
  104. nextx_sdk/client.py +263 -0
  105. nextx_sdk/errors.py +14 -0
  106. nextx_sdk/models/__init__.py +517 -0
  107. nextx_sdk/models/agent_list_result.py +128 -0
  108. nextx_sdk/models/agent_summary_dto.py +408 -0
  109. nextx_sdk/models/agents_list_status.py +10 -0
  110. nextx_sdk/models/approval_instance_detail_dto.py +162 -0
  111. nextx_sdk/models/approval_instance_dto.py +300 -0
  112. nextx_sdk/models/approval_task_dto.py +352 -0
  113. nextx_sdk/models/approval_timeline_dto.py +178 -0
  114. nextx_sdk/models/attachment_dto.py +157 -0
  115. nextx_sdk/models/attendance_device_dto.py +542 -0
  116. nextx_sdk/models/attendance_raw_punch_dto.py +422 -0
  117. nextx_sdk/models/audience_filter_dto.py +116 -0
  118. nextx_sdk/models/barcode_product_dto.py +373 -0
  119. nextx_sdk/models/batch_delete_records_request.py +93 -0
  120. nextx_sdk/models/batch_update_item_request.py +84 -0
  121. nextx_sdk/models/batch_update_records_request.py +96 -0
  122. nextx_sdk/models/bookable_class_member_dto.py +195 -0
  123. nextx_sdk/models/bookable_class_subscription_dto.py +155 -0
  124. nextx_sdk/models/branch_dto.py +141 -0
  125. nextx_sdk/models/brand_ref_dto.py +109 -0
  126. nextx_sdk/models/call_flow_list_result.py +128 -0
  127. nextx_sdk/models/call_flow_summary_dto.py +188 -0
  128. nextx_sdk/models/call_list_result.py +128 -0
  129. nextx_sdk/models/call_summary_dto.py +734 -0
  130. nextx_sdk/models/calls_list_direction.py +10 -0
  131. nextx_sdk/models/calls_list_status.py +10 -0
  132. nextx_sdk/models/campaign_list_result.py +128 -0
  133. nextx_sdk/models/campaign_summary_dto.py +300 -0
  134. nextx_sdk/models/campaigns_list_status.py +10 -0
  135. nextx_sdk/models/campaigns_list_type.py +10 -0
  136. nextx_sdk/models/catalog_product_dto.py +308 -0
  137. nextx_sdk/models/catalog_product_paged_dto.py +120 -0
  138. nextx_sdk/models/catalog_product_variant_dto.py +165 -0
  139. nextx_sdk/models/catalog_unit_conversion_dto.py +146 -0
  140. nextx_sdk/models/category_ref_dto.py +89 -0
  141. nextx_sdk/models/check_in_dto.py +1212 -0
  142. nextx_sdk/models/checkin_log_dto.py +515 -0
  143. nextx_sdk/models/checkin_log_dto_paged_result.py +144 -0
  144. nextx_sdk/models/checkin_log_dto_type.py +10 -0
  145. nextx_sdk/models/comment_request.py +70 -0
  146. nextx_sdk/models/completed_intent_dto.py +412 -0
  147. nextx_sdk/models/completed_intent_dto_metadata_type_0.py +64 -0
  148. nextx_sdk/models/contact_branch_lookup_dto.py +277 -0
  149. nextx_sdk/models/contact_channel_origin_dto.py +98 -0
  150. nextx_sdk/models/contact_chat_summary_dto.py +267 -0
  151. nextx_sdk/models/contact_detail_dto.py +1466 -0
  152. nextx_sdk/models/contact_detail_dto_custom_fields_type_0.py +64 -0
  153. nextx_sdk/models/contact_first_touch_dto.py +314 -0
  154. nextx_sdk/models/contact_list_stats_dto.py +172 -0
  155. nextx_sdk/models/contact_list_stats_dto_by_contact_status_type_0.py +64 -0
  156. nextx_sdk/models/contact_list_stats_dto_by_lifecycle_stage_type_0.py +64 -0
  157. nextx_sdk/models/contact_list_stats_dto_by_tier_type_0.py +64 -0
  158. nextx_sdk/models/contact_summary_dto.py +1355 -0
  159. nextx_sdk/models/contact_summary_dto_custom_fields_type_0.py +64 -0
  160. nextx_sdk/models/contacts_facets_list_response_200.py +79 -0
  161. nextx_sdk/models/contacts_facets_list_response_200_additional_property.py +64 -0
  162. nextx_sdk/models/contacts_list_column_filters.py +64 -0
  163. nextx_sdk/models/contract_category_dto.py +157 -0
  164. nextx_sdk/models/contract_relation_dto.py +109 -0
  165. nextx_sdk/models/contract_search_match_dto.py +118 -0
  166. nextx_sdk/models/contract_summary_dto.py +1638 -0
  167. nextx_sdk/models/create_contact_request.py +776 -0
  168. nextx_sdk/models/create_contact_request_custom_fields_type_0.py +64 -0
  169. nextx_sdk/models/create_instance_request.py +126 -0
  170. nextx_sdk/models/create_instance_request_free_approvers_type_0.py +86 -0
  171. nextx_sdk/models/create_record_request.py +57 -0
  172. nextx_sdk/models/create_task_request.py +424 -0
  173. nextx_sdk/models/create_task_request_custom_fields_type_0.py +64 -0
  174. nextx_sdk/models/customer_list_dto.py +678 -0
  175. nextx_sdk/models/customer_list_dto_custom_fields_type_0.py +64 -0
  176. nextx_sdk/models/customer_list_result.py +165 -0
  177. nextx_sdk/models/customer_list_summary_dto.py +113 -0
  178. nextx_sdk/models/customer_profile_dto.py +136 -0
  179. nextx_sdk/models/daily_clock_row.py +228 -0
  180. nextx_sdk/models/daily_plan_dto.py +238 -0
  181. nextx_sdk/models/daily_plan_dto_paged_result.py +144 -0
  182. nextx_sdk/models/daily_plan_suggestion_dto.py +224 -0
  183. nextx_sdk/models/deleted_product_dto.py +352 -0
  184. nextx_sdk/models/delivery_address_dto.py +303 -0
  185. nextx_sdk/models/dms_my_day_plan_dto.py +261 -0
  186. nextx_sdk/models/dms_my_day_stop_dto.py +392 -0
  187. nextx_sdk/models/email_campaign_dto.py +488 -0
  188. nextx_sdk/models/email_campaign_dto_merge_tags_type_0.py +64 -0
  189. nextx_sdk/models/email_merge_variable_dto.py +138 -0
  190. nextx_sdk/models/email_merge_variable_group_dto.py +156 -0
  191. nextx_sdk/models/email_template_list_dto.py +164 -0
  192. nextx_sdk/models/employee_device_credential_dto.py +296 -0
  193. nextx_sdk/models/enrichment_suggestion_dto.py +166 -0
  194. nextx_sdk/models/export_orders_result.py +68 -0
  195. nextx_sdk/models/failure_reason_dto.py +170 -0
  196. nextx_sdk/models/filter_condition.py +98 -0
  197. nextx_sdk/models/filter_condition_dto.py +98 -0
  198. nextx_sdk/models/get_payment_transactions_result.py +144 -0
  199. nextx_sdk/models/google_integration_dto.py +270 -0
  200. nextx_sdk/models/invoice_detail_dto.py +117 -0
  201. nextx_sdk/models/invoice_dto.py +751 -0
  202. nextx_sdk/models/invoice_dto_invoice_context.py +10 -0
  203. nextx_sdk/models/invoice_dto_paged_result.py +144 -0
  204. nextx_sdk/models/invoice_dto_provider_code.py +10 -0
  205. nextx_sdk/models/invoice_dto_status.py +10 -0
  206. nextx_sdk/models/invoice_item_dto.py +193 -0
  207. nextx_sdk/models/invoice_summary_dto.py +225 -0
  208. nextx_sdk/models/invoices_list_status.py +10 -0
  209. nextx_sdk/models/ivr_flow_list_result.py +128 -0
  210. nextx_sdk/models/ivr_flow_summary_dto.py +184 -0
  211. nextx_sdk/models/kit_availability_dto.py +149 -0
  212. nextx_sdk/models/list_records_request.py +198 -0
  213. nextx_sdk/models/location_ref_dto.py +109 -0
  214. nextx_sdk/models/lot_expiry_report_dto.py +434 -0
  215. nextx_sdk/models/member_by_contact_dto.py +199 -0
  216. nextx_sdk/models/member_detail_dto.py +1078 -0
  217. nextx_sdk/models/member_duplicate_check_dto.py +240 -0
  218. nextx_sdk/models/member_lookup_dto.py +181 -0
  219. nextx_sdk/models/member_stats_dto.py +89 -0
  220. nextx_sdk/models/member_summary_dto.py +1346 -0
  221. nextx_sdk/models/member_totals_dto.py +158 -0
  222. nextx_sdk/models/mention_request.py +86 -0
  223. nextx_sdk/models/message_button_dto.py +90 -0
  224. nextx_sdk/models/message_dto.py +735 -0
  225. nextx_sdk/models/message_mention_dto.py +106 -0
  226. nextx_sdk/models/message_reaction_dto.py +129 -0
  227. nextx_sdk/models/move_opportunity_stage_request.py +68 -0
  228. nextx_sdk/models/my_visit_dto.py +318 -0
  229. nextx_sdk/models/my_week_day_dto.py +104 -0
  230. nextx_sdk/models/my_week_route_dto.py +137 -0
  231. nextx_sdk/models/my_week_schedule_dto.py +96 -0
  232. nextx_sdk/models/opportunity_detail_dto.py +684 -0
  233. nextx_sdk/models/opportunity_detail_dto_custom_fields_type_0.py +64 -0
  234. nextx_sdk/models/opportunity_forecast_dto.py +73 -0
  235. nextx_sdk/models/opportunity_forecast_strip_dto.py +89 -0
  236. nextx_sdk/models/opportunity_stats_dto.py +173 -0
  237. nextx_sdk/models/opportunity_summary_dto.py +768 -0
  238. nextx_sdk/models/opportunity_tag_dto.py +109 -0
  239. nextx_sdk/models/order_assignee_dto.py +97 -0
  240. nextx_sdk/models/order_detail_dto.py +1642 -0
  241. nextx_sdk/models/order_detail_dto_custom_fields_type_0.py +64 -0
  242. nextx_sdk/models/order_discount_dto.py +98 -0
  243. nextx_sdk/models/order_item_component_dto.py +317 -0
  244. nextx_sdk/models/order_item_discount_dto.py +98 -0
  245. nextx_sdk/models/order_item_dto.py +713 -0
  246. nextx_sdk/models/order_item_return_lot_dto.py +138 -0
  247. nextx_sdk/models/order_item_tax_dto.py +65 -0
  248. nextx_sdk/models/order_item_tracking_dto.py +175 -0
  249. nextx_sdk/models/order_list_customer_info_dto.py +158 -0
  250. nextx_sdk/models/order_list_dto.py +1157 -0
  251. nextx_sdk/models/order_list_outlet_info_dto.py +250 -0
  252. nextx_sdk/models/order_list_result.py +197 -0
  253. nextx_sdk/models/order_list_summary_dto.py +105 -0
  254. nextx_sdk/models/order_payment_entry_dto.py +136 -0
  255. nextx_sdk/models/order_return_summary_dto.py +188 -0
  256. nextx_sdk/models/order_shipping_plan_dto.py +271 -0
  257. nextx_sdk/models/order_stats_dto.py +105 -0
  258. nextx_sdk/models/order_vat_dto.py +106 -0
  259. nextx_sdk/models/orders_list_column_filters.py +64 -0
  260. nextx_sdk/models/outlet_assigned_rep_dto.py +161 -0
  261. nextx_sdk/models/outlet_dto.py +750 -0
  262. nextx_sdk/models/outlet_dto_outlet_status.py +10 -0
  263. nextx_sdk/models/outlet_dto_paged_result.py +144 -0
  264. nextx_sdk/models/outlet_dto_visit_frequency.py +10 -0
  265. nextx_sdk/models/paged_refunds_result.py +128 -0
  266. nextx_sdk/models/paged_result_of_approval_instance_dto.py +144 -0
  267. nextx_sdk/models/paged_result_of_attendance_raw_punch_dto.py +144 -0
  268. nextx_sdk/models/paged_result_of_check_in_dto.py +144 -0
  269. nextx_sdk/models/paged_result_of_contact_summary_dto.py +144 -0
  270. nextx_sdk/models/paged_result_of_contract_summary_dto.py +144 -0
  271. nextx_sdk/models/paged_result_of_daily_clock_row.py +144 -0
  272. nextx_sdk/models/paged_result_of_deleted_product_dto.py +144 -0
  273. nextx_sdk/models/paged_result_of_email_campaign_dto.py +144 -0
  274. nextx_sdk/models/paged_result_of_email_template_list_dto.py +144 -0
  275. nextx_sdk/models/paged_result_of_lot_expiry_report_dto.py +144 -0
  276. nextx_sdk/models/paged_result_of_member_summary_dto.py +144 -0
  277. nextx_sdk/models/paged_result_of_opportunity_summary_dto.py +144 -0
  278. nextx_sdk/models/paged_result_of_record_dto.py +144 -0
  279. nextx_sdk/models/paged_result_of_unknown_lot_report_dto.py +144 -0
  280. nextx_sdk/models/paged_result_of_workspace_activity_dto.py +144 -0
  281. nextx_sdk/models/paged_subscriptions_result.py +128 -0
  282. nextx_sdk/models/payment_intent_dto.py +374 -0
  283. nextx_sdk/models/payment_overview_dto.py +234 -0
  284. nextx_sdk/models/payment_refund_dto.py +544 -0
  285. nextx_sdk/models/payment_row_dto.py +78 -0
  286. nextx_sdk/models/payment_subscription_dto.py +438 -0
  287. nextx_sdk/models/payment_transaction_detail_dto.py +276 -0
  288. nextx_sdk/models/payment_transaction_dto.py +348 -0
  289. nextx_sdk/models/phone_number_dto.py +320 -0
  290. nextx_sdk/models/phone_number_list_result.py +128 -0
  291. nextx_sdk/models/phone_numbers_list_direction.py +10 -0
  292. nextx_sdk/models/pipeline_stage_distribution_dto.py +125 -0
  293. nextx_sdk/models/pipeline_stage_dto.py +137 -0
  294. nextx_sdk/models/pre_order_child_order_dto.py +176 -0
  295. nextx_sdk/models/problem_details.py +168 -0
  296. nextx_sdk/models/product_branch_stock_detail_dto.py +190 -0
  297. nextx_sdk/models/product_branch_stock_dto.py +182 -0
  298. nextx_sdk/models/product_detail_dto.py +964 -0
  299. nextx_sdk/models/product_detail_dto_custom_fields_type_0.py +64 -0
  300. nextx_sdk/models/product_detail_dto_kit_price_mode.py +10 -0
  301. nextx_sdk/models/product_list_dto.py +887 -0
  302. nextx_sdk/models/product_list_dto_custom_fields_type_0.py +64 -0
  303. nextx_sdk/models/product_list_result.py +165 -0
  304. nextx_sdk/models/product_list_summary_dto.py +81 -0
  305. nextx_sdk/models/product_stats_dto.py +89 -0
  306. nextx_sdk/models/product_unit_conversion_dto.py +191 -0
  307. nextx_sdk/models/products_export_get_attr.py +64 -0
  308. nextx_sdk/models/products_list_attr.py +64 -0
  309. nextx_sdk/models/provider_breakdown_dto.py +102 -0
  310. nextx_sdk/models/provider_config_dto.py +458 -0
  311. nextx_sdk/models/provider_config_dto_config_public_type_0.py +64 -0
  312. nextx_sdk/models/provider_config_dto_invoice_context.py +10 -0
  313. nextx_sdk/models/provider_config_dto_provider_code.py +10 -0
  314. nextx_sdk/models/pt_eligible_member_dto.py +322 -0
  315. nextx_sdk/models/pt_member_service_line_dto.py +98 -0
  316. nextx_sdk/models/queue_list_result.py +128 -0
  317. nextx_sdk/models/queue_summary_dto.py +232 -0
  318. nextx_sdk/models/record_cell_conflict_dto.py +130 -0
  319. nextx_sdk/models/record_color_rule.py +92 -0
  320. nextx_sdk/models/record_dto.py +164 -0
  321. nextx_sdk/models/record_filter.py +166 -0
  322. nextx_sdk/models/record_sort.py +78 -0
  323. nextx_sdk/models/record_update_result.py +144 -0
  324. nextx_sdk/models/reference_type_breakdown_dto.py +86 -0
  325. nextx_sdk/models/report_by_channel_dto.py +126 -0
  326. nextx_sdk/models/report_by_day_dto.py +102 -0
  327. nextx_sdk/models/report_kpi_dto.py +97 -0
  328. nextx_sdk/models/report_overview_dto.py +183 -0
  329. nextx_sdk/models/report_period_dto.py +90 -0
  330. nextx_sdk/models/route_dto.py +394 -0
  331. nextx_sdk/models/route_dto_paged_result.py +144 -0
  332. nextx_sdk/models/route_summary.py +109 -0
  333. nextx_sdk/models/sales_order_dto.py +778 -0
  334. nextx_sdk/models/sales_order_paged_dto.py +141 -0
  335. nextx_sdk/models/sales_order_payment_dto.py +136 -0
  336. nextx_sdk/models/sales_order_totals_dto.py +97 -0
  337. nextx_sdk/models/sales_orders_list_column_filters.py +64 -0
  338. nextx_sdk/models/send_message_request.py +374 -0
  339. nextx_sdk/models/send_message_request_type.py +10 -0
  340. nextx_sdk/models/sender_profile_dto.py +344 -0
  341. nextx_sdk/models/sender_profile_summary_dto.py +109 -0
  342. nextx_sdk/models/series_dto.py +396 -0
  343. nextx_sdk/models/series_dto_form_kind.py +10 -0
  344. nextx_sdk/models/series_dto_invoice_type.py +10 -0
  345. nextx_sdk/models/series_dto_kind.py +10 -0
  346. nextx_sdk/models/series_dto_provider_code.py +10 -0
  347. nextx_sdk/models/series_list_provider_code.py +10 -0
  348. nextx_sdk/models/source_breakdown_dto.py +86 -0
  349. nextx_sdk/models/stale_opportunities_dto.py +145 -0
  350. nextx_sdk/models/stale_opportunity_item_dto.py +206 -0
  351. nextx_sdk/models/stock_forecast_dto.py +185 -0
  352. nextx_sdk/models/subscription_summary_dto.py +416 -0
  353. nextx_sdk/models/supplier_info_ref_dto.py +109 -0
  354. nextx_sdk/models/tag_dto.py +109 -0
  355. nextx_sdk/models/task_detail_dto.py +682 -0
  356. nextx_sdk/models/timeline_event_row.py +262 -0
  357. nextx_sdk/models/unassigned_employee_dto.py +129 -0
  358. nextx_sdk/models/unit_ref_dto.py +109 -0
  359. nextx_sdk/models/unknown_lot_report_dto.py +302 -0
  360. nextx_sdk/models/update_record_request.py +73 -0
  361. nextx_sdk/models/user_ref_dto.py +89 -0
  362. nextx_sdk/models/workspace_activity_dto.py +252 -0
  363. nextx_sdk/nextx.py +43 -0
  364. nextx_sdk/py.typed +1 -0
  365. nextx_sdk/types.py +53 -0
  366. nextx_sdk-0.1.0.dist-info/METADATA +62 -0
  367. nextx_sdk-0.1.0.dist-info/RECORD +370 -0
  368. nextx_sdk-0.1.0.dist-info/WHEEL +4 -0
  369. nextx_sdk-0.1.0.dist-info/entry_points.txt +4 -0
  370. nextx_sdk-0.1.0.dist-info/licenses/LICENSE +21 -0
nextx_sdk/__init__.py ADDED
@@ -0,0 +1,13 @@
1
+
2
+ """ A client library for accessing NextX Open Platform API """
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
9
+
10
+ from ._version import VERSION
11
+ from .nextx import PROD_URL, SANDBOX_URL, create_client
12
+
13
+ __all__ = (*__all__, "VERSION", "PROD_URL", "SANDBOX_URL", "create_client")
nextx_sdk/_version.py ADDED
@@ -0,0 +1 @@
1
+ VERSION = "0.1.0"
@@ -0,0 +1 @@
1
+ """ Contains methods for accessing the API """
@@ -0,0 +1 @@
1
+ """ Contains endpoint functions for accessing the API """
@@ -0,0 +1,277 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response, UNSET
9
+ from ... import errors
10
+
11
+ from ...models.agent_list_result import AgentListResult
12
+ from ...models.agents_list_status import AgentsListStatus
13
+ from ...models.agents_list_status import check_agents_list_status
14
+ from ...types import UNSET, Unset
15
+ from typing import cast
16
+ from uuid import UUID
17
+
18
+
19
+
20
+ def _get_kwargs(
21
+ *,
22
+ page_number: int | Unset = 1,
23
+ page_size: int | Unset = 20,
24
+ status: AgentsListStatus | Unset = UNSET,
25
+ queue_id: UUID | Unset = UNSET,
26
+ is_active: bool | Unset = UNSET,
27
+ search: str | Unset = UNSET,
28
+
29
+ ) -> dict[str, Any]:
30
+
31
+
32
+
33
+
34
+ params: dict[str, Any] = {}
35
+
36
+ params["pageNumber"] = page_number
37
+
38
+ params["pageSize"] = page_size
39
+
40
+ json_status: str | Unset = UNSET
41
+ if not isinstance(status, Unset):
42
+ json_status = status
43
+
44
+ params["status"] = json_status
45
+
46
+ json_queue_id: str | Unset = UNSET
47
+ if not isinstance(queue_id, Unset):
48
+ json_queue_id = str(queue_id)
49
+ params["queueId"] = json_queue_id
50
+
51
+ params["isActive"] = is_active
52
+
53
+ params["search"] = search
54
+
55
+
56
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
57
+
58
+
59
+ _kwargs: dict[str, Any] = {
60
+ "method": "get",
61
+ "url": "/api/v1/call/agents",
62
+ "params": params,
63
+ }
64
+
65
+
66
+ return _kwargs
67
+
68
+
69
+
70
+ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> AgentListResult | None:
71
+ if response.status_code == 200:
72
+ response_200 = AgentListResult.from_dict(response.json())
73
+
74
+
75
+
76
+ return response_200
77
+
78
+ if client.raise_on_unexpected_status:
79
+ raise errors.UnexpectedStatus(response.status_code, response.content)
80
+ else:
81
+ return None
82
+
83
+
84
+ def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[AgentListResult]:
85
+ return Response(
86
+ status_code=HTTPStatus(response.status_code),
87
+ content=response.content,
88
+ headers=response.headers,
89
+ parsed=_parse_response(client=client, response=response),
90
+ )
91
+
92
+
93
+ def sync_detailed(
94
+ *,
95
+ client: AuthenticatedClient | Client,
96
+ page_number: int | Unset = 1,
97
+ page_size: int | Unset = 20,
98
+ status: AgentsListStatus | Unset = UNSET,
99
+ queue_id: UUID | Unset = UNSET,
100
+ is_active: bool | Unset = UNSET,
101
+ search: str | Unset = UNSET,
102
+
103
+ ) -> Response[AgentListResult]:
104
+ """ Danh sách agents
105
+
106
+ Danh sách có phân trang, kèm trạng thái trực tuyến hiện tại của từng agent. sip_password không trả
107
+ về.
108
+
109
+ Args:
110
+ page_number (int | Unset): Default: 1.
111
+ page_size (int | Unset): Default: 20.
112
+ status (AgentsListStatus | Unset):
113
+ queue_id (UUID | Unset):
114
+ is_active (bool | Unset):
115
+ search (str | Unset):
116
+
117
+ Raises:
118
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
119
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
120
+
121
+ Returns:
122
+ Response[AgentListResult]
123
+ """
124
+
125
+
126
+ kwargs = _get_kwargs(
127
+ page_number=page_number,
128
+ page_size=page_size,
129
+ status=status,
130
+ queue_id=queue_id,
131
+ is_active=is_active,
132
+ search=search,
133
+
134
+ )
135
+
136
+ response = client.get_httpx_client().request(
137
+ **kwargs,
138
+ )
139
+
140
+ return _build_response(client=client, response=response)
141
+
142
+ def sync(
143
+ *,
144
+ client: AuthenticatedClient | Client,
145
+ page_number: int | Unset = 1,
146
+ page_size: int | Unset = 20,
147
+ status: AgentsListStatus | Unset = UNSET,
148
+ queue_id: UUID | Unset = UNSET,
149
+ is_active: bool | Unset = UNSET,
150
+ search: str | Unset = UNSET,
151
+
152
+ ) -> AgentListResult | None:
153
+ """ Danh sách agents
154
+
155
+ Danh sách có phân trang, kèm trạng thái trực tuyến hiện tại của từng agent. sip_password không trả
156
+ về.
157
+
158
+ Args:
159
+ page_number (int | Unset): Default: 1.
160
+ page_size (int | Unset): Default: 20.
161
+ status (AgentsListStatus | Unset):
162
+ queue_id (UUID | Unset):
163
+ is_active (bool | Unset):
164
+ search (str | Unset):
165
+
166
+ Raises:
167
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
168
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
169
+
170
+ Returns:
171
+ AgentListResult
172
+ """
173
+
174
+
175
+ return sync_detailed(
176
+ client=client,
177
+ page_number=page_number,
178
+ page_size=page_size,
179
+ status=status,
180
+ queue_id=queue_id,
181
+ is_active=is_active,
182
+ search=search,
183
+
184
+ ).parsed
185
+
186
+ async def asyncio_detailed(
187
+ *,
188
+ client: AuthenticatedClient | Client,
189
+ page_number: int | Unset = 1,
190
+ page_size: int | Unset = 20,
191
+ status: AgentsListStatus | Unset = UNSET,
192
+ queue_id: UUID | Unset = UNSET,
193
+ is_active: bool | Unset = UNSET,
194
+ search: str | Unset = UNSET,
195
+
196
+ ) -> Response[AgentListResult]:
197
+ """ Danh sách agents
198
+
199
+ Danh sách có phân trang, kèm trạng thái trực tuyến hiện tại của từng agent. sip_password không trả
200
+ về.
201
+
202
+ Args:
203
+ page_number (int | Unset): Default: 1.
204
+ page_size (int | Unset): Default: 20.
205
+ status (AgentsListStatus | Unset):
206
+ queue_id (UUID | Unset):
207
+ is_active (bool | Unset):
208
+ search (str | Unset):
209
+
210
+ Raises:
211
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
212
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
213
+
214
+ Returns:
215
+ Response[AgentListResult]
216
+ """
217
+
218
+
219
+ kwargs = _get_kwargs(
220
+ page_number=page_number,
221
+ page_size=page_size,
222
+ status=status,
223
+ queue_id=queue_id,
224
+ is_active=is_active,
225
+ search=search,
226
+
227
+ )
228
+
229
+ response = await client.get_async_httpx_client().request(
230
+ **kwargs
231
+ )
232
+
233
+ return _build_response(client=client, response=response)
234
+
235
+ async def asyncio(
236
+ *,
237
+ client: AuthenticatedClient | Client,
238
+ page_number: int | Unset = 1,
239
+ page_size: int | Unset = 20,
240
+ status: AgentsListStatus | Unset = UNSET,
241
+ queue_id: UUID | Unset = UNSET,
242
+ is_active: bool | Unset = UNSET,
243
+ search: str | Unset = UNSET,
244
+
245
+ ) -> AgentListResult | None:
246
+ """ Danh sách agents
247
+
248
+ Danh sách có phân trang, kèm trạng thái trực tuyến hiện tại của từng agent. sip_password không trả
249
+ về.
250
+
251
+ Args:
252
+ page_number (int | Unset): Default: 1.
253
+ page_size (int | Unset): Default: 20.
254
+ status (AgentsListStatus | Unset):
255
+ queue_id (UUID | Unset):
256
+ is_active (bool | Unset):
257
+ search (str | Unset):
258
+
259
+ Raises:
260
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
261
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
262
+
263
+ Returns:
264
+ AgentListResult
265
+ """
266
+
267
+
268
+ return (await asyncio_detailed(
269
+ client=client,
270
+ page_number=page_number,
271
+ page_size=page_size,
272
+ status=status,
273
+ queue_id=queue_id,
274
+ is_active=is_active,
275
+ search=search,
276
+
277
+ )).parsed
@@ -0,0 +1,248 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response, UNSET
9
+ from ... import errors
10
+
11
+ from ...models.call_flow_list_result import CallFlowListResult
12
+ from ...types import UNSET, Unset
13
+ from typing import cast
14
+
15
+
16
+
17
+ def _get_kwargs(
18
+ *,
19
+ status: str | Unset = UNSET,
20
+ trigger_type: str | Unset = UNSET,
21
+ search: str | Unset = UNSET,
22
+ page_number: int | Unset = 1,
23
+ page_size: int | Unset = 20,
24
+
25
+ ) -> dict[str, Any]:
26
+
27
+
28
+
29
+
30
+ params: dict[str, Any] = {}
31
+
32
+ params["status"] = status
33
+
34
+ params["triggerType"] = trigger_type
35
+
36
+ params["search"] = search
37
+
38
+ params["pageNumber"] = page_number
39
+
40
+ params["pageSize"] = page_size
41
+
42
+
43
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
44
+
45
+
46
+ _kwargs: dict[str, Any] = {
47
+ "method": "get",
48
+ "url": "/api/v1/call/call-flows",
49
+ "params": params,
50
+ }
51
+
52
+
53
+ return _kwargs
54
+
55
+
56
+
57
+ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> CallFlowListResult | None:
58
+ if response.status_code == 200:
59
+ response_200 = CallFlowListResult.from_dict(response.json())
60
+
61
+
62
+
63
+ return response_200
64
+
65
+ if client.raise_on_unexpected_status:
66
+ raise errors.UnexpectedStatus(response.status_code, response.content)
67
+ else:
68
+ return None
69
+
70
+
71
+ def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[CallFlowListResult]:
72
+ return Response(
73
+ status_code=HTTPStatus(response.status_code),
74
+ content=response.content,
75
+ headers=response.headers,
76
+ parsed=_parse_response(client=client, response=response),
77
+ )
78
+
79
+
80
+ def sync_detailed(
81
+ *,
82
+ client: AuthenticatedClient | Client,
83
+ status: str | Unset = UNSET,
84
+ trigger_type: str | Unset = UNSET,
85
+ search: str | Unset = UNSET,
86
+ page_number: int | Unset = 1,
87
+ page_size: int | Unset = 20,
88
+
89
+ ) -> Response[CallFlowListResult]:
90
+ """ Danh sách call flows
91
+
92
+ PagedResult với triggerType filter.
93
+
94
+ Args:
95
+ status (str | Unset):
96
+ trigger_type (str | Unset):
97
+ search (str | Unset):
98
+ page_number (int | Unset): Default: 1.
99
+ page_size (int | Unset): Default: 20.
100
+
101
+ Raises:
102
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
103
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
104
+
105
+ Returns:
106
+ Response[CallFlowListResult]
107
+ """
108
+
109
+
110
+ kwargs = _get_kwargs(
111
+ status=status,
112
+ trigger_type=trigger_type,
113
+ search=search,
114
+ page_number=page_number,
115
+ page_size=page_size,
116
+
117
+ )
118
+
119
+ response = client.get_httpx_client().request(
120
+ **kwargs,
121
+ )
122
+
123
+ return _build_response(client=client, response=response)
124
+
125
+ def sync(
126
+ *,
127
+ client: AuthenticatedClient | Client,
128
+ status: str | Unset = UNSET,
129
+ trigger_type: str | Unset = UNSET,
130
+ search: str | Unset = UNSET,
131
+ page_number: int | Unset = 1,
132
+ page_size: int | Unset = 20,
133
+
134
+ ) -> CallFlowListResult | None:
135
+ """ Danh sách call flows
136
+
137
+ PagedResult với triggerType filter.
138
+
139
+ Args:
140
+ status (str | Unset):
141
+ trigger_type (str | Unset):
142
+ search (str | Unset):
143
+ page_number (int | Unset): Default: 1.
144
+ page_size (int | Unset): Default: 20.
145
+
146
+ Raises:
147
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
148
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
149
+
150
+ Returns:
151
+ CallFlowListResult
152
+ """
153
+
154
+
155
+ return sync_detailed(
156
+ client=client,
157
+ status=status,
158
+ trigger_type=trigger_type,
159
+ search=search,
160
+ page_number=page_number,
161
+ page_size=page_size,
162
+
163
+ ).parsed
164
+
165
+ async def asyncio_detailed(
166
+ *,
167
+ client: AuthenticatedClient | Client,
168
+ status: str | Unset = UNSET,
169
+ trigger_type: str | Unset = UNSET,
170
+ search: str | Unset = UNSET,
171
+ page_number: int | Unset = 1,
172
+ page_size: int | Unset = 20,
173
+
174
+ ) -> Response[CallFlowListResult]:
175
+ """ Danh sách call flows
176
+
177
+ PagedResult với triggerType filter.
178
+
179
+ Args:
180
+ status (str | Unset):
181
+ trigger_type (str | Unset):
182
+ search (str | Unset):
183
+ page_number (int | Unset): Default: 1.
184
+ page_size (int | Unset): Default: 20.
185
+
186
+ Raises:
187
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
188
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
189
+
190
+ Returns:
191
+ Response[CallFlowListResult]
192
+ """
193
+
194
+
195
+ kwargs = _get_kwargs(
196
+ status=status,
197
+ trigger_type=trigger_type,
198
+ search=search,
199
+ page_number=page_number,
200
+ page_size=page_size,
201
+
202
+ )
203
+
204
+ response = await client.get_async_httpx_client().request(
205
+ **kwargs
206
+ )
207
+
208
+ return _build_response(client=client, response=response)
209
+
210
+ async def asyncio(
211
+ *,
212
+ client: AuthenticatedClient | Client,
213
+ status: str | Unset = UNSET,
214
+ trigger_type: str | Unset = UNSET,
215
+ search: str | Unset = UNSET,
216
+ page_number: int | Unset = 1,
217
+ page_size: int | Unset = 20,
218
+
219
+ ) -> CallFlowListResult | None:
220
+ """ Danh sách call flows
221
+
222
+ PagedResult với triggerType filter.
223
+
224
+ Args:
225
+ status (str | Unset):
226
+ trigger_type (str | Unset):
227
+ search (str | Unset):
228
+ page_number (int | Unset): Default: 1.
229
+ page_size (int | Unset): Default: 20.
230
+
231
+ Raises:
232
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
233
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
234
+
235
+ Returns:
236
+ CallFlowListResult
237
+ """
238
+
239
+
240
+ return (await asyncio_detailed(
241
+ client=client,
242
+ status=status,
243
+ trigger_type=trigger_type,
244
+ search=search,
245
+ page_number=page_number,
246
+ page_size=page_size,
247
+
248
+ )).parsed