@tellescope/sdk 2.0.0-beta.1 → 2.0.0-beta.3
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.
- package/CLAUDE.md +24 -0
- package/env.example +6 -0
- package/lib/cjs/sdk.d.ts +375 -4
- package/lib/cjs/sdk.d.ts.map +1 -1
- package/lib/cjs/sdk.js +5 -0
- package/lib/cjs/sdk.js.map +1 -1
- package/lib/cjs/tests/api_tests/ai_conversations.test.d.ts +14 -5
- package/lib/cjs/tests/api_tests/ai_conversations.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/ai_conversations.test.js +163 -149
- package/lib/cjs/tests/api_tests/ai_conversations.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.d.ts +22 -0
- package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.js +518 -0
- package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/appointment_link_expiration.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/appointment_link_expiration.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/appointment_link_expiration.test.js +135 -73
- package/lib/cjs/tests/api_tests/appointment_link_expiration.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.js +240 -174
- package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/availability_block_buffer.test.d.ts +22 -0
- package/lib/cjs/tests/api_tests/availability_block_buffer.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/availability_block_buffer.test.js +311 -0
- package/lib/cjs/tests/api_tests/availability_block_buffer.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/beluga_manual_sync.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/beluga_manual_sync.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/beluga_manual_sync.test.js +235 -192
- package/lib/cjs/tests/api_tests/beluga_manual_sync.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.js +351 -264
- package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/booking_prevent_upcoming_duplicate.test.d.ts +22 -0
- package/lib/cjs/tests/api_tests/booking_prevent_upcoming_duplicate.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/booking_prevent_upcoming_duplicate.test.js +506 -0
- package/lib/cjs/tests/api_tests/booking_prevent_upcoming_duplicate.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/bulk_assignment.test.d.ts +16 -5
- package/lib/cjs/tests/api_tests/bulk_assignment.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/bulk_assignment.test.js +336 -243
- package/lib/cjs/tests/api_tests/bulk_assignment.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/calendar_event_references_update.test.d.ts +13 -5
- package/lib/cjs/tests/api_tests/calendar_event_references_update.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/calendar_event_references_update.test.js +131 -108
- package/lib/cjs/tests/api_tests/calendar_event_references_update.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.d.ts +15 -5
- package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.js +240 -252
- package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/chats_analytics.test.d.ts +14 -5
- package/lib/cjs/tests/api_tests/chats_analytics.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/chats_analytics.test.js +190 -189
- package/lib/cjs/tests/api_tests/chats_analytics.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/concurrent_build_threads.test.d.ts +23 -5
- package/lib/cjs/tests/api_tests/concurrent_build_threads.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/concurrent_build_threads.test.js +121 -118
- package/lib/cjs/tests/api_tests/concurrent_build_threads.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/configurations_public_read.test.d.ts +21 -5
- package/lib/cjs/tests/api_tests/configurations_public_read.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/configurations_public_read.test.js +235 -119
- package/lib/cjs/tests/api_tests/configurations_public_read.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.js +356 -0
- package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/create_note_action.test.d.ts +18 -5
- package/lib/cjs/tests/api_tests/create_note_action.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/create_note_action.test.js +218 -173
- package/lib/cjs/tests/api_tests/create_note_action.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.d.ts +17 -4
- package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.js +144 -205
- package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/custom_aggregation.test.d.ts +15 -5
- package/lib/cjs/tests/api_tests/custom_aggregation.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/custom_aggregation.test.js +284 -223
- package/lib/cjs/tests/api_tests/custom_aggregation.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/database_cascade_delete.test.d.ts +13 -5
- package/lib/cjs/tests/api_tests/database_cascade_delete.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/database_cascade_delete.test.js +218 -242
- package/lib/cjs/tests/api_tests/database_cascade_delete.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts +21 -5
- package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.js +168 -112
- package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/elation_user_id.test.d.ts +17 -5
- package/lib/cjs/tests/api_tests/elation_user_id.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/elation_user_id.test.js +121 -54
- package/lib/cjs/tests/api_tests/elation_user_id.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/enduser_fields_sync.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/enduser_fields_sync.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/enduser_fields_sync.test.js +3 -1
- package/lib/cjs/tests/api_tests/enduser_fields_sync.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/enduser_observations_auto_review.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/enduser_observations_auto_review.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/enduser_observations_auto_review.test.js +3 -1
- package/lib/cjs/tests/api_tests/enduser_observations_auto_review.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/file_download_unicode_names.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/file_download_unicode_names.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/file_download_unicode_names.test.js +193 -143
- package/lib/cjs/tests/api_tests/file_download_unicode_names.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.js +532 -0
- package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/form_submitted_trigger.test.d.ts +25 -5
- package/lib/cjs/tests/api_tests/form_submitted_trigger.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/form_submitted_trigger.test.js +395 -366
- package/lib/cjs/tests/api_tests/form_submitted_trigger.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/form_translations.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/form_translations.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/form_translations.test.js +269 -189
- package/lib/cjs/tests/api_tests/form_translations.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/form_vital_reading.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/form_vital_reading.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/form_vital_reading.test.js +461 -0
- package/lib/cjs/tests/api_tests/form_vital_reading.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/formsort_header_auth.test.d.ts +29 -5
- package/lib/cjs/tests/api_tests/formsort_header_auth.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/formsort_header_auth.test.js +179 -162
- package/lib/cjs/tests/api_tests/formsort_header_auth.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/gcal_sync_retry.test.d.ts +12 -6
- package/lib/cjs/tests/api_tests/gcal_sync_retry.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/gcal_sync_retry.test.js +98 -84
- package/lib/cjs/tests/api_tests/gcal_sync_retry.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/get_some_projection.test.d.ts +20 -5
- package/lib/cjs/tests/api_tests/get_some_projection.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/get_some_projection.test.js +342 -298
- package/lib/cjs/tests/api_tests/get_some_projection.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.js +294 -223
- package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/integrations_redacted.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/integrations_redacted.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/integrations_redacted.test.js +307 -213
- package/lib/cjs/tests/api_tests/integrations_redacted.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.js +179 -178
- package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/journey_statistics_cache.test.d.ts +26 -0
- package/lib/cjs/tests/api_tests/journey_statistics_cache.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/journey_statistics_cache.test.js +232 -0
- package/lib/cjs/tests/api_tests/journey_statistics_cache.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/journey_step_manual_count.test.d.ts +34 -0
- package/lib/cjs/tests/api_tests/journey_step_manual_count.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/journey_step_manual_count.test.js +243 -0
- package/lib/cjs/tests/api_tests/journey_step_manual_count.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/load_team_chat.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/load_team_chat.test.js +181 -124
- package/lib/cjs/tests/api_tests/load_team_chat.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/load_threads_autobuild.test.d.ts +24 -5
- package/lib/cjs/tests/api_tests/load_threads_autobuild.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/load_threads_autobuild.test.js +261 -227
- package/lib/cjs/tests/api_tests/load_threads_autobuild.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/load_threads_care_team.test.d.ts +9 -1
- package/lib/cjs/tests/api_tests/load_threads_care_team.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/load_threads_care_team.test.js +118 -32
- package/lib/cjs/tests/api_tests/load_threads_care_team.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/managed_content_file_access.test.d.ts +15 -5
- package/lib/cjs/tests/api_tests/managed_content_file_access.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/managed_content_file_access.test.js +285 -311
- package/lib/cjs/tests/api_tests/managed_content_file_access.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/mdb_sort.test.d.ts +20 -5
- package/lib/cjs/tests/api_tests/mdb_sort.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/mdb_sort.test.js +361 -305
- package/lib/cjs/tests/api_tests/mdb_sort.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/mdi_manual_sync.test.d.ts +27 -0
- package/lib/cjs/tests/api_tests/mdi_manual_sync.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/mdi_manual_sync.test.js +395 -0
- package/lib/cjs/tests/api_tests/mdi_manual_sync.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.js +259 -209
- package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/mdi_webhooks.test.d.ts +12 -5
- package/lib/cjs/tests/api_tests/mdi_webhooks.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/mdi_webhooks.test.js +67 -61
- package/lib/cjs/tests/api_tests/mdi_webhooks.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/message_assignment_trigger.test.d.ts +23 -14
- package/lib/cjs/tests/api_tests/message_assignment_trigger.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/message_assignment_trigger.test.js +258 -306
- package/lib/cjs/tests/api_tests/message_assignment_trigger.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/metriport_push_form_response.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/metriport_push_form_response.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/metriport_push_form_response.test.js +301 -238
- package/lib/cjs/tests/api_tests/metriport_push_form_response.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/organization_api_keys.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/organization_api_keys.test.js +226 -59
- package/lib/cjs/tests/api_tests/organization_api_keys.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.d.ts +19 -5
- package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.js +335 -222
- package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/organization_signup.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/organization_signup.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/organization_signup.test.js +221 -52
- package/lib/cjs/tests/api_tests/organization_signup.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/out_of_office_endpoint.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/out_of_office_endpoint.test.js +109 -1
- package/lib/cjs/tests/api_tests/out_of_office_endpoint.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.d.ts +6 -6
- package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.js +309 -361
- package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.js +246 -165
- package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.d.ts +15 -5
- package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.js +130 -47
- package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/phone_embed_leave_message.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/phone_embed_leave_message.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/phone_embed_leave_message.test.js +571 -0
- package/lib/cjs/tests/api_tests/phone_embed_leave_message.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.js +180 -132
- package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/programs.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/programs.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/programs.test.js +474 -51
- package/lib/cjs/tests/api_tests/programs.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/public_form_case_insensitive_match.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/public_form_case_insensitive_match.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/public_form_case_insensitive_match.test.js +733 -0
- package/lib/cjs/tests/api_tests/public_form_case_insensitive_match.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/security/add-to-journey-foreign-enduserid.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/security/add-to-journey-foreign-enduserid.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/add-to-journey-foreign-enduserid.test.js +3 -1
- package/lib/cjs/tests/api_tests/security/add-to-journey-foreign-enduserid.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.d.ts +10 -5
- package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.js +401 -282
- package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/appointment-reschedule-ownership.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/security/appointment-reschedule-ownership.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/appointment-reschedule-ownership.test.js +3 -1
- package/lib/cjs/tests/api_tests/security/appointment-reschedule-ownership.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.d.ts +9 -5
- package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.js +228 -211
- package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts +13 -8
- package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.js +270 -254
- package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts +16 -6
- package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js +167 -142
- package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts +10 -5
- package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.js +296 -221
- package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts +12 -5
- package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js +221 -216
- package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts +11 -5
- package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js +300 -203
- package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.d.ts +11 -5
- package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.js +415 -275
- package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.d.ts +11 -5
- package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.js +347 -228
- package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/file-link-session-confinement.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/security/file-link-session-confinement.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/file-link-session-confinement.test.js +3 -1
- package/lib/cjs/tests/api_tests/security/file-link-session-confinement.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/form-logic-js-execution.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/security/form-logic-js-execution.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/form-logic-js-execution.test.js +3 -1
- package/lib/cjs/tests/api_tests/security/form-logic-js-execution.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/formsort_webhook_auth_field_lock.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/formsort_webhook_auth_field_lock.test.js +424 -39
- package/lib/cjs/tests/api_tests/security/formsort_webhook_auth_field_lock.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts +18 -7
- package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.js +164 -75
- package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts +15 -9
- package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js +99 -102
- package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.d.ts +11 -5
- package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.js +132 -89
- package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts +12 -5
- package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.js +190 -138
- package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.d.ts +18 -16
- package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.js +164 -124
- package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.js +3 -1
- package/lib/cjs/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/sanitize-user-html-with-iframes.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/sanitize-user-html-with-iframes.test.js +122 -2
- package/lib/cjs/tests/api_tests/security/sanitize-user-html-with-iframes.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts +11 -5
- package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.js +288 -274
- package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.d.ts +17 -10
- package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.js +173 -138
- package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js +310 -265
- package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/security/webhook-timeout.test.d.ts +9 -5
- package/lib/cjs/tests/api_tests/security/webhook-timeout.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/security/webhook-timeout.test.js +108 -83
- package/lib/cjs/tests/api_tests/security/webhook-timeout.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/session_for_join_link.test.d.ts +10 -0
- package/lib/cjs/tests/api_tests/session_for_join_link.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/session_for_join_link.test.js +147 -0
- package/lib/cjs/tests/api_tests/session_for_join_link.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/set_fields_order_templates.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/set_fields_order_templates.test.js +191 -88
- package/lib/cjs/tests/api_tests/set_fields_order_templates.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/stedi_approval.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/stedi_approval.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/stedi_approval.test.js +206 -137
- package/lib/cjs/tests/api_tests/stedi_approval.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/stripe_checkout_items.test.d.ts +17 -0
- package/lib/cjs/tests/api_tests/stripe_checkout_items.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/stripe_checkout_items.test.js +219 -0
- package/lib/cjs/tests/api_tests/stripe_checkout_items.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/stripe_multiple_customer_ids.test.d.ts +5 -0
- package/lib/cjs/tests/api_tests/stripe_multiple_customer_ids.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/stripe_multiple_customer_ids.test.js +396 -0
- package/lib/cjs/tests/api_tests/stripe_multiple_customer_ids.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/ticket_stage_archive.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/ticket_stage_archive.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/ticket_stage_archive.test.js +344 -0
- package/lib/cjs/tests/api_tests/ticket_stage_archive.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.js +165 -149
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_from_queue.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_from_queue.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_from_queue.test.js +3 -1
- package/lib/cjs/tests/api_tests/tickets_bulk_assign_from_queue.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/totp_mfa.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/totp_mfa.test.js +37 -31
- package/lib/cjs/tests/api_tests/totp_mfa.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/translations.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/translations.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/translations.test.js +104 -75
- package/lib/cjs/tests/api_tests/translations.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/trigger_contains_matching.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/trigger_contains_matching.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/trigger_contains_matching.test.js +3 -1
- package/lib/cjs/tests/api_tests/trigger_contains_matching.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.d.ts +21 -4
- package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.js +238 -370
- package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/user_logs_restore_deleted.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/user_logs_restore_deleted.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/user_logs_restore_deleted.test.js +3 -1
- package/lib/cjs/tests/api_tests/user_logs_restore_deleted.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/user_preferences.test.d.ts +30 -0
- package/lib/cjs/tests/api_tests/user_preferences.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/user_preferences.test.js +279 -0
- package/lib/cjs/tests/api_tests/user_preferences.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/vital_review_trigger_action.test.d.ts +3 -1
- package/lib/cjs/tests/api_tests/vital_review_trigger_action.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/vital_review_trigger_action.test.js +3 -1
- package/lib/cjs/tests/api_tests/vital_review_trigger_action.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/vitl_push.test.d.ts +7 -0
- package/lib/cjs/tests/api_tests/vitl_push.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/vitl_push.test.js +341 -0
- package/lib/cjs/tests/api_tests/vitl_push.test.js.map +1 -0
- package/lib/cjs/tests/api_tests/webhook_error_handling.test.d.ts +17 -5
- package/lib/cjs/tests/api_tests/webhook_error_handling.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/webhook_error_handling.test.js +204 -195
- package/lib/cjs/tests/api_tests/webhook_error_handling.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.d.ts +15 -5
- package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.js +154 -179
- package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.js.map +1 -1
- package/lib/cjs/tests/api_tests/welle_partner_token.test.d.ts +6 -5
- package/lib/cjs/tests/api_tests/welle_partner_token.test.d.ts.map +1 -1
- package/lib/cjs/tests/api_tests/welle_partner_token.test.js +393 -251
- package/lib/cjs/tests/api_tests/welle_partner_token.test.js.map +1 -1
- package/lib/cjs/tests/setup_isolated.d.ts +55 -0
- package/lib/cjs/tests/setup_isolated.d.ts.map +1 -1
- package/lib/cjs/tests/setup_isolated.js +119 -1
- package/lib/cjs/tests/setup_isolated.js.map +1 -1
- package/lib/cjs/tests/tests.d.ts.map +1 -1
- package/lib/cjs/tests/tests.js +385 -535
- package/lib/cjs/tests/tests.js.map +1 -1
- package/lib/cjs/tests/unit_tests/date_string_validation.test.d.ts +2 -0
- package/lib/cjs/tests/unit_tests/date_string_validation.test.d.ts.map +1 -0
- package/lib/cjs/tests/unit_tests/date_string_validation.test.js +112 -0
- package/lib/cjs/tests/unit_tests/date_string_validation.test.js.map +1 -0
- package/lib/cjs/tests/unit_tests/isolated_suite_discovery.test.d.ts +2 -0
- package/lib/cjs/tests/unit_tests/isolated_suite_discovery.test.d.ts.map +1 -0
- package/lib/cjs/tests/unit_tests/isolated_suite_discovery.test.js +201 -0
- package/lib/cjs/tests/unit_tests/isolated_suite_discovery.test.js.map +1 -0
- package/lib/cjs/tests/unit_tests/programs_conditional_logic.test.d.ts +3 -0
- package/lib/cjs/tests/unit_tests/programs_conditional_logic.test.d.ts.map +1 -0
- package/lib/cjs/tests/unit_tests/programs_conditional_logic.test.js +120 -0
- package/lib/cjs/tests/unit_tests/programs_conditional_logic.test.js.map +1 -0
- package/lib/cjs/tests/webhooks_tests.js +44 -34
- package/lib/cjs/tests/webhooks_tests.js.map +1 -1
- package/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/esm/sdk.d.ts +375 -4
- package/lib/esm/sdk.d.ts.map +1 -1
- package/lib/esm/sdk.js +5 -0
- package/lib/esm/sdk.js.map +1 -1
- package/lib/esm/tests/api_tests/ai_conversations.test.d.ts +14 -5
- package/lib/esm/tests/api_tests/ai_conversations.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/ai_conversations.test.js +161 -148
- package/lib/esm/tests/api_tests/ai_conversations.test.js.map +1 -1
- package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.d.ts +22 -0
- package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.js +510 -0
- package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.js.map +1 -0
- package/lib/esm/tests/api_tests/appointment_link_expiration.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/appointment_link_expiration.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/appointment_link_expiration.test.js +132 -71
- package/lib/esm/tests/api_tests/appointment_link_expiration.test.js.map +1 -1
- package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.js +238 -173
- package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.js.map +1 -1
- package/lib/esm/tests/api_tests/availability_block_buffer.test.d.ts +22 -0
- package/lib/esm/tests/api_tests/availability_block_buffer.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/availability_block_buffer.test.js +306 -0
- package/lib/esm/tests/api_tests/availability_block_buffer.test.js.map +1 -0
- package/lib/esm/tests/api_tests/beluga_manual_sync.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/beluga_manual_sync.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/beluga_manual_sync.test.js +232 -190
- package/lib/esm/tests/api_tests/beluga_manual_sync.test.js.map +1 -1
- package/lib/esm/tests/api_tests/beluga_trigger_refill.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/beluga_trigger_refill.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/beluga_trigger_refill.test.js +348 -262
- package/lib/esm/tests/api_tests/beluga_trigger_refill.test.js.map +1 -1
- package/lib/esm/tests/api_tests/booking_prevent_upcoming_duplicate.test.d.ts +22 -0
- package/lib/esm/tests/api_tests/booking_prevent_upcoming_duplicate.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/booking_prevent_upcoming_duplicate.test.js +501 -0
- package/lib/esm/tests/api_tests/booking_prevent_upcoming_duplicate.test.js.map +1 -0
- package/lib/esm/tests/api_tests/bulk_assignment.test.d.ts +16 -5
- package/lib/esm/tests/api_tests/bulk_assignment.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/bulk_assignment.test.js +333 -241
- package/lib/esm/tests/api_tests/bulk_assignment.test.js.map +1 -1
- package/lib/esm/tests/api_tests/calendar_event_references_update.test.d.ts +13 -5
- package/lib/esm/tests/api_tests/calendar_event_references_update.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/calendar_event_references_update.test.js +129 -107
- package/lib/esm/tests/api_tests/calendar_event_references_update.test.js.map +1 -1
- package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.d.ts +15 -5
- package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.js +238 -251
- package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.js.map +1 -1
- package/lib/esm/tests/api_tests/chats_analytics.test.d.ts +14 -5
- package/lib/esm/tests/api_tests/chats_analytics.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/chats_analytics.test.js +188 -188
- package/lib/esm/tests/api_tests/chats_analytics.test.js.map +1 -1
- package/lib/esm/tests/api_tests/concurrent_build_threads.test.d.ts +23 -5
- package/lib/esm/tests/api_tests/concurrent_build_threads.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/concurrent_build_threads.test.js +119 -117
- package/lib/esm/tests/api_tests/concurrent_build_threads.test.js.map +1 -1
- package/lib/esm/tests/api_tests/configurations_public_read.test.d.ts +21 -5
- package/lib/esm/tests/api_tests/configurations_public_read.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/configurations_public_read.test.js +233 -118
- package/lib/esm/tests/api_tests/configurations_public_read.test.js.map +1 -1
- package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.js +351 -0
- package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.js.map +1 -0
- package/lib/esm/tests/api_tests/create_note_action.test.d.ts +18 -5
- package/lib/esm/tests/api_tests/create_note_action.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/create_note_action.test.js +216 -172
- package/lib/esm/tests/api_tests/create_note_action.test.js.map +1 -1
- package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.d.ts +17 -4
- package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.js +141 -203
- package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.js.map +1 -1
- package/lib/esm/tests/api_tests/custom_aggregation.test.d.ts +15 -5
- package/lib/esm/tests/api_tests/custom_aggregation.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/custom_aggregation.test.js +282 -222
- package/lib/esm/tests/api_tests/custom_aggregation.test.js.map +1 -1
- package/lib/esm/tests/api_tests/database_cascade_delete.test.d.ts +13 -5
- package/lib/esm/tests/api_tests/database_cascade_delete.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/database_cascade_delete.test.js +216 -241
- package/lib/esm/tests/api_tests/database_cascade_delete.test.js.map +1 -1
- package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts +21 -5
- package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.js +165 -110
- package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.js.map +1 -1
- package/lib/esm/tests/api_tests/elation_user_id.test.d.ts +17 -5
- package/lib/esm/tests/api_tests/elation_user_id.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/elation_user_id.test.js +119 -53
- package/lib/esm/tests/api_tests/elation_user_id.test.js.map +1 -1
- package/lib/esm/tests/api_tests/enduser_fields_sync.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/enduser_fields_sync.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/enduser_fields_sync.test.js +2 -0
- package/lib/esm/tests/api_tests/enduser_fields_sync.test.js.map +1 -1
- package/lib/esm/tests/api_tests/enduser_observations_auto_review.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/enduser_observations_auto_review.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/enduser_observations_auto_review.test.js +2 -0
- package/lib/esm/tests/api_tests/enduser_observations_auto_review.test.js.map +1 -1
- package/lib/esm/tests/api_tests/file_download_unicode_names.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/file_download_unicode_names.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/file_download_unicode_names.test.js +190 -141
- package/lib/esm/tests/api_tests/file_download_unicode_names.test.js.map +1 -1
- package/lib/esm/tests/api_tests/form_intake_email_normalization.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/form_intake_email_normalization.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/form_intake_email_normalization.test.js +527 -0
- package/lib/esm/tests/api_tests/form_intake_email_normalization.test.js.map +1 -0
- package/lib/esm/tests/api_tests/form_submitted_trigger.test.d.ts +25 -5
- package/lib/esm/tests/api_tests/form_submitted_trigger.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/form_submitted_trigger.test.js +393 -365
- package/lib/esm/tests/api_tests/form_submitted_trigger.test.js.map +1 -1
- package/lib/esm/tests/api_tests/form_translations.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/form_translations.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/form_translations.test.js +268 -189
- package/lib/esm/tests/api_tests/form_translations.test.js.map +1 -1
- package/lib/esm/tests/api_tests/form_vital_reading.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/form_vital_reading.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/form_vital_reading.test.js +456 -0
- package/lib/esm/tests/api_tests/form_vital_reading.test.js.map +1 -0
- package/lib/esm/tests/api_tests/formsort_header_auth.test.d.ts +29 -5
- package/lib/esm/tests/api_tests/formsort_header_auth.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/formsort_header_auth.test.js +177 -161
- package/lib/esm/tests/api_tests/formsort_header_auth.test.js.map +1 -1
- package/lib/esm/tests/api_tests/gcal_sync_retry.test.d.ts +12 -6
- package/lib/esm/tests/api_tests/gcal_sync_retry.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/gcal_sync_retry.test.js +96 -83
- package/lib/esm/tests/api_tests/gcal_sync_retry.test.js.map +1 -1
- package/lib/esm/tests/api_tests/get_some_projection.test.d.ts +20 -5
- package/lib/esm/tests/api_tests/get_some_projection.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/get_some_projection.test.js +339 -296
- package/lib/esm/tests/api_tests/get_some_projection.test.js.map +1 -1
- package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.js +292 -222
- package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.js.map +1 -1
- package/lib/esm/tests/api_tests/integrations_redacted.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/integrations_redacted.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/integrations_redacted.test.js +304 -211
- package/lib/esm/tests/api_tests/integrations_redacted.test.js.map +1 -1
- package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.js +177 -154
- package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.js.map +1 -1
- package/lib/esm/tests/api_tests/journey_statistics_cache.test.d.ts +26 -0
- package/lib/esm/tests/api_tests/journey_statistics_cache.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/journey_statistics_cache.test.js +227 -0
- package/lib/esm/tests/api_tests/journey_statistics_cache.test.js.map +1 -0
- package/lib/esm/tests/api_tests/journey_step_manual_count.test.d.ts +34 -0
- package/lib/esm/tests/api_tests/journey_step_manual_count.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/journey_step_manual_count.test.js +238 -0
- package/lib/esm/tests/api_tests/journey_step_manual_count.test.js.map +1 -0
- package/lib/esm/tests/api_tests/load_team_chat.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/load_team_chat.test.js +181 -124
- package/lib/esm/tests/api_tests/load_team_chat.test.js.map +1 -1
- package/lib/esm/tests/api_tests/load_threads_autobuild.test.d.ts +24 -5
- package/lib/esm/tests/api_tests/load_threads_autobuild.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/load_threads_autobuild.test.js +259 -226
- package/lib/esm/tests/api_tests/load_threads_autobuild.test.js.map +1 -1
- package/lib/esm/tests/api_tests/load_threads_care_team.test.d.ts +9 -1
- package/lib/esm/tests/api_tests/load_threads_care_team.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/load_threads_care_team.test.js +117 -31
- package/lib/esm/tests/api_tests/load_threads_care_team.test.js.map +1 -1
- package/lib/esm/tests/api_tests/managed_content_file_access.test.d.ts +15 -5
- package/lib/esm/tests/api_tests/managed_content_file_access.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/managed_content_file_access.test.js +283 -287
- package/lib/esm/tests/api_tests/managed_content_file_access.test.js.map +1 -1
- package/lib/esm/tests/api_tests/mdb_sort.test.d.ts +20 -5
- package/lib/esm/tests/api_tests/mdb_sort.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/mdb_sort.test.js +358 -303
- package/lib/esm/tests/api_tests/mdb_sort.test.js.map +1 -1
- package/lib/esm/tests/api_tests/mdi_manual_sync.test.d.ts +27 -0
- package/lib/esm/tests/api_tests/mdi_manual_sync.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/mdi_manual_sync.test.js +390 -0
- package/lib/esm/tests/api_tests/mdi_manual_sync.test.js.map +1 -0
- package/lib/esm/tests/api_tests/mdi_trigger_refill.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/mdi_trigger_refill.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/mdi_trigger_refill.test.js +257 -208
- package/lib/esm/tests/api_tests/mdi_trigger_refill.test.js.map +1 -1
- package/lib/esm/tests/api_tests/mdi_webhooks.test.d.ts +12 -5
- package/lib/esm/tests/api_tests/mdi_webhooks.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/mdi_webhooks.test.js +65 -60
- package/lib/esm/tests/api_tests/mdi_webhooks.test.js.map +1 -1
- package/lib/esm/tests/api_tests/message_assignment_trigger.test.d.ts +23 -14
- package/lib/esm/tests/api_tests/message_assignment_trigger.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/message_assignment_trigger.test.js +256 -305
- package/lib/esm/tests/api_tests/message_assignment_trigger.test.js.map +1 -1
- package/lib/esm/tests/api_tests/metriport_push_form_response.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/metriport_push_form_response.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/metriport_push_form_response.test.js +298 -236
- package/lib/esm/tests/api_tests/metriport_push_form_response.test.js.map +1 -1
- package/lib/esm/tests/api_tests/organization_api_keys.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/organization_api_keys.test.js +226 -59
- package/lib/esm/tests/api_tests/organization_api_keys.test.js.map +1 -1
- package/lib/esm/tests/api_tests/organization_settings_duplicates.test.d.ts +19 -5
- package/lib/esm/tests/api_tests/organization_settings_duplicates.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/organization_settings_duplicates.test.js +332 -220
- package/lib/esm/tests/api_tests/organization_settings_duplicates.test.js.map +1 -1
- package/lib/esm/tests/api_tests/organization_signup.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/organization_signup.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/organization_signup.test.js +220 -51
- package/lib/esm/tests/api_tests/organization_signup.test.js.map +1 -1
- package/lib/esm/tests/api_tests/out_of_office_endpoint.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/out_of_office_endpoint.test.js +109 -1
- package/lib/esm/tests/api_tests/out_of_office_endpoint.test.js.map +1 -1
- package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.d.ts +6 -6
- package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.js +308 -361
- package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.js.map +1 -1
- package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.js +243 -163
- package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.js.map +1 -1
- package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.d.ts +15 -5
- package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.js +127 -45
- package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.js.map +1 -1
- package/lib/esm/tests/api_tests/phone_embed_leave_message.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/phone_embed_leave_message.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/phone_embed_leave_message.test.js +566 -0
- package/lib/esm/tests/api_tests/phone_embed_leave_message.test.js.map +1 -0
- package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.js +177 -130
- package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.js.map +1 -1
- package/lib/esm/tests/api_tests/programs.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/programs.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/programs.test.js +473 -50
- package/lib/esm/tests/api_tests/programs.test.js.map +1 -1
- package/lib/esm/tests/api_tests/public_form_case_insensitive_match.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/public_form_case_insensitive_match.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/public_form_case_insensitive_match.test.js +728 -0
- package/lib/esm/tests/api_tests/public_form_case_insensitive_match.test.js.map +1 -0
- package/lib/esm/tests/api_tests/security/add-to-journey-foreign-enduserid.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/security/add-to-journey-foreign-enduserid.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/add-to-journey-foreign-enduserid.test.js +2 -0
- package/lib/esm/tests/api_tests/security/add-to-journey-foreign-enduserid.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.d.ts +10 -5
- package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.js +399 -281
- package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/appointment-reschedule-ownership.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/security/appointment-reschedule-ownership.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/appointment-reschedule-ownership.test.js +2 -0
- package/lib/esm/tests/api_tests/security/appointment-reschedule-ownership.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.d.ts +9 -5
- package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.js +225 -209
- package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts +13 -8
- package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.js +268 -253
- package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts +16 -6
- package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js +165 -141
- package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts +10 -5
- package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.js +294 -220
- package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts +12 -5
- package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js +219 -215
- package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts +11 -5
- package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js +298 -202
- package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/enduser-cross-create.test.d.ts +11 -5
- package/lib/esm/tests/api_tests/security/enduser-cross-create.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/enduser-cross-create.test.js +413 -274
- package/lib/esm/tests/api_tests/security/enduser-cross-create.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.d.ts +11 -5
- package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.js +345 -227
- package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/file-link-session-confinement.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/security/file-link-session-confinement.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/file-link-session-confinement.test.js +2 -0
- package/lib/esm/tests/api_tests/security/file-link-session-confinement.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/form-logic-js-execution.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/security/form-logic-js-execution.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/form-logic-js-execution.test.js +2 -0
- package/lib/esm/tests/api_tests/security/form-logic-js-execution.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/formsort_webhook_auth_field_lock.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/formsort_webhook_auth_field_lock.test.js +424 -39
- package/lib/esm/tests/api_tests/security/formsort_webhook_auth_field_lock.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts +18 -7
- package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.js +162 -74
- package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts +15 -9
- package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js +96 -100
- package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.d.ts +11 -5
- package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.js +129 -87
- package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts +12 -5
- package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.js +187 -136
- package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/register_business_id_injection.test.d.ts +18 -16
- package/lib/esm/tests/api_tests/security/register_business_id_injection.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/register_business_id_injection.test.js +162 -123
- package/lib/esm/tests/api_tests/security/register_business_id_injection.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.js +2 -0
- package/lib/esm/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/sanitize-user-html-with-iframes.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/sanitize-user-html-with-iframes.test.js +122 -2
- package/lib/esm/tests/api_tests/security/sanitize-user-html-with-iframes.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts +11 -5
- package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.js +285 -272
- package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.d.ts +17 -10
- package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.js +171 -137
- package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js +307 -263
- package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js.map +1 -1
- package/lib/esm/tests/api_tests/security/webhook-timeout.test.d.ts +9 -5
- package/lib/esm/tests/api_tests/security/webhook-timeout.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/security/webhook-timeout.test.js +105 -81
- package/lib/esm/tests/api_tests/security/webhook-timeout.test.js.map +1 -1
- package/lib/esm/tests/api_tests/session_for_join_link.test.d.ts +10 -0
- package/lib/esm/tests/api_tests/session_for_join_link.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/session_for_join_link.test.js +142 -0
- package/lib/esm/tests/api_tests/session_for_join_link.test.js.map +1 -0
- package/lib/esm/tests/api_tests/set_fields_order_templates.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/set_fields_order_templates.test.js +191 -88
- package/lib/esm/tests/api_tests/set_fields_order_templates.test.js.map +1 -1
- package/lib/esm/tests/api_tests/stedi_approval.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/stedi_approval.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/stedi_approval.test.js +204 -136
- package/lib/esm/tests/api_tests/stedi_approval.test.js.map +1 -1
- package/lib/esm/tests/api_tests/stripe_checkout_items.test.d.ts +17 -0
- package/lib/esm/tests/api_tests/stripe_checkout_items.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/stripe_checkout_items.test.js +214 -0
- package/lib/esm/tests/api_tests/stripe_checkout_items.test.js.map +1 -0
- package/lib/esm/tests/api_tests/stripe_multiple_customer_ids.test.d.ts +5 -0
- package/lib/esm/tests/api_tests/stripe_multiple_customer_ids.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/stripe_multiple_customer_ids.test.js +388 -0
- package/lib/esm/tests/api_tests/stripe_multiple_customer_ids.test.js.map +1 -0
- package/lib/esm/tests/api_tests/ticket_stage_archive.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/ticket_stage_archive.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/ticket_stage_archive.test.js +339 -0
- package/lib/esm/tests/api_tests/ticket_stage_archive.test.js.map +1 -0
- package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.js +162 -147
- package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.js.map +1 -1
- package/lib/esm/tests/api_tests/tickets_bulk_assign_from_queue.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/tickets_bulk_assign_from_queue.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/tickets_bulk_assign_from_queue.test.js +2 -0
- package/lib/esm/tests/api_tests/tickets_bulk_assign_from_queue.test.js.map +1 -1
- package/lib/esm/tests/api_tests/totp_mfa.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/totp_mfa.test.js +37 -31
- package/lib/esm/tests/api_tests/totp_mfa.test.js.map +1 -1
- package/lib/esm/tests/api_tests/translations.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/translations.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/translations.test.js +102 -74
- package/lib/esm/tests/api_tests/translations.test.js.map +1 -1
- package/lib/esm/tests/api_tests/trigger_contains_matching.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/trigger_contains_matching.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/trigger_contains_matching.test.js +2 -0
- package/lib/esm/tests/api_tests/trigger_contains_matching.test.js.map +1 -1
- package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.d.ts +21 -4
- package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.js +236 -369
- package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.js.map +1 -1
- package/lib/esm/tests/api_tests/user_logs_restore_deleted.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/user_logs_restore_deleted.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/user_logs_restore_deleted.test.js +2 -0
- package/lib/esm/tests/api_tests/user_logs_restore_deleted.test.js.map +1 -1
- package/lib/esm/tests/api_tests/user_preferences.test.d.ts +30 -0
- package/lib/esm/tests/api_tests/user_preferences.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/user_preferences.test.js +274 -0
- package/lib/esm/tests/api_tests/user_preferences.test.js.map +1 -0
- package/lib/esm/tests/api_tests/vital_review_trigger_action.test.d.ts +3 -1
- package/lib/esm/tests/api_tests/vital_review_trigger_action.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/vital_review_trigger_action.test.js +2 -0
- package/lib/esm/tests/api_tests/vital_review_trigger_action.test.js.map +1 -1
- package/lib/esm/tests/api_tests/vitl_push.test.d.ts +7 -0
- package/lib/esm/tests/api_tests/vitl_push.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/vitl_push.test.js +333 -0
- package/lib/esm/tests/api_tests/vitl_push.test.js.map +1 -0
- package/lib/esm/tests/api_tests/webhook_error_handling.test.d.ts +17 -5
- package/lib/esm/tests/api_tests/webhook_error_handling.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/webhook_error_handling.test.js +202 -194
- package/lib/esm/tests/api_tests/webhook_error_handling.test.js.map +1 -1
- package/lib/esm/tests/api_tests/webhook_raw_json_number.test.d.ts +15 -5
- package/lib/esm/tests/api_tests/webhook_raw_json_number.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/webhook_raw_json_number.test.js +152 -178
- package/lib/esm/tests/api_tests/webhook_raw_json_number.test.js.map +1 -1
- package/lib/esm/tests/api_tests/welle_partner_token.test.d.ts +6 -5
- package/lib/esm/tests/api_tests/welle_partner_token.test.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/welle_partner_token.test.js +391 -250
- package/lib/esm/tests/api_tests/welle_partner_token.test.js.map +1 -1
- package/lib/esm/tests/setup_isolated.d.ts +55 -0
- package/lib/esm/tests/setup_isolated.d.ts.map +1 -1
- package/lib/esm/tests/setup_isolated.js +114 -0
- package/lib/esm/tests/setup_isolated.js.map +1 -1
- package/lib/esm/tests/tests.d.ts.map +1 -1
- package/lib/esm/tests/tests.js +386 -536
- package/lib/esm/tests/tests.js.map +1 -1
- package/lib/esm/tests/unit_tests/date_string_validation.test.d.ts +2 -0
- package/lib/esm/tests/unit_tests/date_string_validation.test.d.ts.map +1 -0
- package/lib/esm/tests/unit_tests/date_string_validation.test.js +108 -0
- package/lib/esm/tests/unit_tests/date_string_validation.test.js.map +1 -0
- package/lib/esm/tests/unit_tests/isolated_suite_discovery.test.d.ts +2 -0
- package/lib/esm/tests/unit_tests/isolated_suite_discovery.test.d.ts.map +1 -0
- package/lib/esm/tests/unit_tests/isolated_suite_discovery.test.js +174 -0
- package/lib/esm/tests/unit_tests/isolated_suite_discovery.test.js.map +1 -0
- package/lib/esm/tests/unit_tests/programs_conditional_logic.test.d.ts +3 -0
- package/lib/esm/tests/unit_tests/programs_conditional_logic.test.d.ts.map +1 -0
- package/lib/esm/tests/unit_tests/programs_conditional_logic.test.js +117 -0
- package/lib/esm/tests/unit_tests/programs_conditional_logic.test.js.map +1 -0
- package/lib/esm/tests/webhooks_tests.js +44 -34
- package/lib/esm/tests/webhooks_tests.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -11
- package/src/sdk.ts +14 -2
- package/src/tests/api_tests/ai_conversations.test.ts +170 -138
- package/src/tests/api_tests/ai_conversations_agent_message.test.ts +491 -0
- package/src/tests/api_tests/appointment_link_expiration.test.ts +94 -35
- package/src/tests/api_tests/appointment_no_showed_trigger.test.ts +181 -128
- package/src/tests/api_tests/availability_block_buffer.test.ts +286 -0
- package/src/tests/api_tests/beluga_manual_sync.test.ts +103 -53
- package/src/tests/api_tests/beluga_trigger_refill.test.ts +131 -46
- package/src/tests/api_tests/booking_prevent_upcoming_duplicate.test.ts +541 -0
- package/src/tests/api_tests/bulk_assignment.test.ts +307 -220
- package/src/tests/api_tests/calendar_event_references_update.test.ts +97 -54
- package/src/tests/api_tests/calendar_event_webhook_template.test.ts +198 -158
- package/src/tests/api_tests/chats_analytics.test.ts +161 -123
- package/src/tests/api_tests/concurrent_build_threads.test.ts +80 -69
- package/src/tests/api_tests/configurations_public_read.test.ts +154 -67
- package/src/tests/api_tests/copied_form_response_no_enduser_sync.test.ts +307 -0
- package/src/tests/api_tests/create_note_action.test.ts +149 -70
- package/src/tests/api_tests/create_user_notifications_trigger.test.ts +116 -144
- package/src/tests/api_tests/custom_aggregation.test.ts +163 -92
- package/src/tests/api_tests/database_cascade_delete.test.ts +101 -87
- package/src/tests/api_tests/dont_sync_to_elation_form_submission.test.ts +122 -51
- package/src/tests/api_tests/elation_user_id.test.ts +105 -42
- package/src/tests/api_tests/enduser_fields_sync.test.ts +4 -0
- package/src/tests/api_tests/enduser_observations_auto_review.test.ts +4 -0
- package/src/tests/api_tests/file_download_unicode_names.test.ts +171 -122
- package/src/tests/api_tests/form_intake_email_normalization.test.ts +489 -0
- package/src/tests/api_tests/form_submitted_trigger.test.ts +152 -86
- package/src/tests/api_tests/form_translations.test.ts +117 -48
- package/src/tests/api_tests/form_vital_reading.test.ts +393 -0
- package/src/tests/api_tests/formsort_header_auth.test.ts +147 -97
- package/src/tests/api_tests/gcal_sync_retry.test.ts +71 -49
- package/src/tests/api_tests/get_some_projection.test.ts +333 -169
- package/src/tests/api_tests/group_event_attendee_self_update.test.ts +103 -52
- package/src/tests/api_tests/integrations_redacted.test.ts +161 -84
- package/src/tests/api_tests/journey_delete_cancels_actions.test.ts +93 -64
- package/src/tests/api_tests/journey_statistics_cache.test.ts +237 -0
- package/src/tests/api_tests/journey_step_manual_count.test.ts +220 -0
- package/src/tests/api_tests/load_team_chat.test.ts +62 -6
- package/src/tests/api_tests/load_threads_autobuild.test.ts +163 -67
- package/src/tests/api_tests/load_threads_care_team.test.ts +107 -0
- package/src/tests/api_tests/managed_content_file_access.test.ts +132 -108
- package/src/tests/api_tests/mdb_sort.test.ts +247 -161
- package/src/tests/api_tests/mdi_manual_sync.test.ts +277 -0
- package/src/tests/api_tests/mdi_trigger_refill.test.ts +132 -78
- package/src/tests/api_tests/mdi_webhooks.test.ts +52 -22
- package/src/tests/api_tests/message_assignment_trigger.test.ts +129 -155
- package/src/tests/api_tests/metriport_push_form_response.test.ts +109 -49
- package/src/tests/api_tests/organization_api_keys.test.ts +170 -2
- package/src/tests/api_tests/organization_settings_duplicates.test.ts +291 -181
- package/src/tests/api_tests/organization_signup.test.ts +174 -5
- package/src/tests/api_tests/out_of_office_endpoint.test.ts +98 -0
- package/src/tests/api_tests/outbound_chat_sent_trigger.test.ts +163 -175
- package/src/tests/api_tests/phone_calls_cold_transfer.test.ts +195 -133
- package/src/tests/api_tests/phone_calls_conference_hold.test.ts +112 -42
- package/src/tests/api_tests/phone_embed_leave_message.test.ts +541 -0
- package/src/tests/api_tests/phone_tree_enduser_condition.test.ts +81 -32
- package/src/tests/api_tests/programs.test.ts +701 -0
- package/src/tests/api_tests/public_form_case_insensitive_match.test.ts +632 -0
- package/src/tests/api_tests/security/add-to-journey-foreign-enduserid.test.ts +4 -0
- package/src/tests/api_tests/security/ai-conversations-rbac.test.ts +248 -128
- package/src/tests/api_tests/security/appointment-reschedule-ownership.test.ts +4 -0
- package/src/tests/api_tests/security/automated-actions-process-gate.test.ts +47 -42
- package/src/tests/api_tests/security/booking-info-idor-token-mint.test.ts +53 -45
- package/src/tests/api_tests/security/cascade-role-rename-cross-tenant.test.ts +100 -73
- package/src/tests/api_tests/security/data-sync-redaction-bypass.test.ts +125 -59
- package/src/tests/api_tests/security/develop-health-benefit-verification-rbac.test.ts +131 -103
- package/src/tests/api_tests/security/enduser-ai-summary-trust-gate.test.ts +161 -68
- package/src/tests/api_tests/security/enduser-cross-create.test.ts +200 -61
- package/src/tests/api_tests/security/enduser-write-restrictions.test.ts +179 -61
- package/src/tests/api_tests/security/file-link-session-confinement.test.ts +4 -0
- package/src/tests/api_tests/security/form-logic-js-execution.test.ts +4 -0
- package/src/tests/api_tests/security/formsort_webhook_auth_field_lock.test.ts +225 -0
- package/src/tests/api_tests/security/globalunique-conflict-redaction.test.ts +163 -44
- package/src/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.ts +78 -70
- package/src/tests/api_tests/security/load-inbox-redaction.test.ts +79 -44
- package/src/tests/api_tests/security/proxy-image-unauth-ssrf.test.ts +95 -52
- package/src/tests/api_tests/security/register_business_id_injection.test.ts +132 -93
- package/src/tests/api_tests/security/rich-text-answer-sanitized-on-write.test.ts +4 -0
- package/src/tests/api_tests/security/sanitize-user-html-with-iframes.test.ts +127 -0
- package/src/tests/api_tests/security/schema-adminonly-enforcement.test.ts +42 -37
- package/src/tests/api_tests/security/self-admin-role-assignment.test.ts +92 -54
- package/src/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.ts +76 -34
- package/src/tests/api_tests/security/webhook-timeout.test.ts +67 -36
- package/src/tests/api_tests/session_for_join_link.test.ts +99 -0
- package/src/tests/api_tests/set_fields_order_templates.test.ts +94 -9
- package/src/tests/api_tests/stedi_approval.test.ts +156 -90
- package/src/tests/api_tests/stripe_checkout_items.test.ts +186 -0
- package/src/tests/api_tests/ticket_stage_archive.test.ts +314 -0
- package/src/tests/api_tests/tickets_bulk_assign_care_team.test.ts +138 -103
- package/src/tests/api_tests/tickets_bulk_assign_from_queue.test.ts +4 -0
- package/src/tests/api_tests/totp_mfa.test.ts +10 -5
- package/src/tests/api_tests/translations.test.ts +69 -46
- package/src/tests/api_tests/trigger_contains_matching.test.ts +4 -0
- package/src/tests/api_tests/trigger_set_fields_date_difference.test.ts +198 -256
- package/src/tests/api_tests/user_logs_restore_deleted.test.ts +4 -0
- package/src/tests/api_tests/user_preferences.test.ts +227 -0
- package/src/tests/api_tests/vital_review_trigger_action.test.ts +455 -0
- package/src/tests/api_tests/vitl_push.test.ts +323 -0
- package/src/tests/api_tests/webhook_error_handling.test.ts +121 -60
- package/src/tests/api_tests/webhook_raw_json_number.test.ts +127 -109
- package/src/tests/api_tests/welle_partner_token.test.ts +217 -90
- package/src/tests/setup_isolated.ts +147 -0
- package/src/tests/tests.ts +165 -177
- package/src/tests/{api_tests → unit_tests}/date_string_validation.test.ts +2 -23
- package/src/tests/unit_tests/isolated_suite_discovery.test.ts +178 -0
- package/src/tests/unit_tests/programs_conditional_logic.test.ts +189 -0
- package/src/tests/webhooks_tests.ts +6 -1
- package/test_generated.pdf +0 -0
|
@@ -54,10 +54,10 @@ var host = process.env.API_URL || 'http://localhost:8080';
|
|
|
54
54
|
var load_team_chat_tests = function (_a) {
|
|
55
55
|
var sdk = _a.sdk, sdkNonAdmin = _a.sdkNonAdmin;
|
|
56
56
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
-
var enduserForCareTeam, enduserNotOnCareTeam, roomWithUserInIds, roomWhereUserIsCreator, roomWithCareTeamAccess, roomNoAccessForNonAdmin, roomNoAccessForAdmin, roomNoCareTeamAccess, closedRoom, externalRoom, roomWithEndusers, roomWithEmptyAboutEnduserId, firstBatch, lastRoom_1, assignedEnduserAccessRole, noEnduserAccessRole, enduserAccessTestEmail, enduserAccessTestUser,
|
|
58
|
-
var
|
|
59
|
-
return __generator(this, function (
|
|
60
|
-
switch (
|
|
57
|
+
var enduserForCareTeam, enduserNotOnCareTeam, SENT_AT_BASE, sent_at, roomWithUserInIds, roomWhereUserIsCreator, roomWithCareTeamAccess, roomNoAccessForNonAdmin, roomNoAccessForAdmin, roomNoCareTeamAccess, closedRoom, externalRoom, roomWithEndusers, roomWithEmptyAboutEnduserId, firstBatch, lastRoom_1, FIXTURE_ROOM_IDS, fixture_order, orderBeforeRename, _b, renamedTitle, assignedEnduserAccessRole, noEnduserAccessRole, enduserAccessTestEmail, enduserAccessTestUser, _c, enduserNotAssignedToTestUser, roomWithUnassignedEnduser, sdkAssignedAccess, _d, sdkNoEnduserAccess, _e, accessTagTestTag, accessTagRole, accessTagTestEmail, accessTagTestUser, _f, enduserWithAccessTag, roomWithAccessTagEnduser, sdkAccessTagUser, _g;
|
|
58
|
+
var _h, _j, _k;
|
|
59
|
+
return __generator(this, function (_l) {
|
|
60
|
+
switch (_l.label) {
|
|
61
61
|
case 0:
|
|
62
62
|
(0, testing_1.log_header)("Load Team Chat Tests");
|
|
63
63
|
return [4 /*yield*/, sdk.api.endusers.createOne({
|
|
@@ -66,118 +66,131 @@ var load_team_chat_tests = function (_a) {
|
|
|
66
66
|
assignedTo: [sdkNonAdmin.userInfo.id], // Non-admin is on care team
|
|
67
67
|
})];
|
|
68
68
|
case 1:
|
|
69
|
-
enduserForCareTeam =
|
|
69
|
+
enduserForCareTeam = _l.sent();
|
|
70
70
|
return [4 /*yield*/, sdk.api.endusers.createOne({
|
|
71
71
|
fname: 'NoCareTeam',
|
|
72
72
|
lname: 'TestPatient',
|
|
73
73
|
})
|
|
74
|
-
//
|
|
75
|
-
//
|
|
74
|
+
// load_team_chat orders and keyset-pages on recentMessageSentAt, and a room that has never had a
|
|
75
|
+
// message (no recentMessageSentAt) is not returned at all — so every fixture room below sets one.
|
|
76
|
+
// Distinct, descending values make the ordering and pagination assertions deterministic.
|
|
76
77
|
];
|
|
77
78
|
case 2:
|
|
78
|
-
enduserNotOnCareTeam =
|
|
79
|
+
enduserNotOnCareTeam = _l.sent();
|
|
80
|
+
SENT_AT_BASE = Date.now();
|
|
81
|
+
sent_at = function (secondsAgo) { return SENT_AT_BASE - secondsAgo * 1000; };
|
|
79
82
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
80
83
|
type: 'internal',
|
|
81
84
|
userIds: [sdkNonAdmin.userInfo.id],
|
|
82
85
|
title: 'Room with user in userIds',
|
|
86
|
+
recentMessageSentAt: sent_at(1),
|
|
83
87
|
})
|
|
84
88
|
// Room 2: Non-admin is creator
|
|
85
89
|
];
|
|
86
90
|
case 3:
|
|
87
|
-
roomWithUserInIds =
|
|
91
|
+
roomWithUserInIds = _l.sent();
|
|
88
92
|
return [4 /*yield*/, sdkNonAdmin.api.chat_rooms.createOne({
|
|
89
93
|
type: 'internal',
|
|
90
94
|
userIds: [],
|
|
91
95
|
title: 'Room where user is creator',
|
|
96
|
+
recentMessageSentAt: sent_at(2),
|
|
92
97
|
})
|
|
93
98
|
// Room 3: aboutEnduserId with care team access
|
|
94
99
|
];
|
|
95
100
|
case 4:
|
|
96
|
-
roomWhereUserIsCreator =
|
|
101
|
+
roomWhereUserIsCreator = _l.sent();
|
|
97
102
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
98
103
|
type: 'internal',
|
|
99
104
|
userIds: [],
|
|
100
105
|
aboutEnduserId: enduserForCareTeam.id,
|
|
101
106
|
title: 'Room with care team access',
|
|
107
|
+
recentMessageSentAt: sent_at(3),
|
|
102
108
|
})
|
|
103
109
|
// Room 4: No access for non-admin (different creator, not in userIds, no care team)
|
|
104
110
|
];
|
|
105
111
|
case 5:
|
|
106
|
-
roomWithCareTeamAccess =
|
|
112
|
+
roomWithCareTeamAccess = _l.sent();
|
|
107
113
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
108
114
|
type: 'internal',
|
|
109
115
|
userIds: [],
|
|
110
116
|
title: 'Room with no access for non-admin',
|
|
117
|
+
recentMessageSentAt: sent_at(4),
|
|
111
118
|
})
|
|
112
119
|
// Room 4b: No access for admin (non-admin is creator, admin not in userIds, not on care team)
|
|
113
120
|
];
|
|
114
121
|
case 6:
|
|
115
|
-
roomNoAccessForNonAdmin =
|
|
122
|
+
roomNoAccessForNonAdmin = _l.sent();
|
|
116
123
|
return [4 /*yield*/, sdkNonAdmin.api.chat_rooms.createOne({
|
|
117
124
|
type: 'internal',
|
|
118
125
|
userIds: [],
|
|
119
126
|
title: 'Room with no access for admin',
|
|
127
|
+
recentMessageSentAt: sent_at(5),
|
|
120
128
|
})
|
|
121
129
|
// Room 5: aboutEnduserId but non-admin NOT on care team
|
|
122
130
|
];
|
|
123
131
|
case 7:
|
|
124
|
-
roomNoAccessForAdmin =
|
|
132
|
+
roomNoAccessForAdmin = _l.sent();
|
|
125
133
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
126
134
|
type: 'internal',
|
|
127
135
|
userIds: [],
|
|
128
136
|
aboutEnduserId: enduserNotOnCareTeam.id,
|
|
129
137
|
title: 'Room without care team access',
|
|
138
|
+
recentMessageSentAt: sent_at(6),
|
|
130
139
|
})
|
|
131
140
|
// Room 6: Closed room (has endedAt)
|
|
132
141
|
];
|
|
133
142
|
case 8:
|
|
134
|
-
roomNoCareTeamAccess =
|
|
143
|
+
roomNoCareTeamAccess = _l.sent();
|
|
135
144
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
136
145
|
type: 'internal',
|
|
137
146
|
userIds: [sdkNonAdmin.userInfo.id],
|
|
138
147
|
title: 'Closed room',
|
|
148
|
+
recentMessageSentAt: sent_at(7),
|
|
139
149
|
endedAt: new Date(),
|
|
140
150
|
})
|
|
141
151
|
// Room 7: External type (should be excluded)
|
|
142
152
|
];
|
|
143
153
|
case 9:
|
|
144
|
-
closedRoom =
|
|
154
|
+
closedRoom = _l.sent();
|
|
145
155
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
146
156
|
type: 'external',
|
|
147
157
|
userIds: [sdkNonAdmin.userInfo.id],
|
|
148
158
|
title: 'External room',
|
|
159
|
+
recentMessageSentAt: sent_at(8),
|
|
149
160
|
})
|
|
150
161
|
// Room 8: Room with enduserIds (should be excluded - not a team chat)
|
|
151
162
|
];
|
|
152
163
|
case 10:
|
|
153
|
-
externalRoom =
|
|
164
|
+
externalRoom = _l.sent();
|
|
154
165
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
155
166
|
type: 'internal',
|
|
156
167
|
userIds: [sdkNonAdmin.userInfo.id],
|
|
157
168
|
enduserIds: [enduserForCareTeam.id],
|
|
158
169
|
title: 'Room with endusers',
|
|
170
|
+
recentMessageSentAt: sent_at(9),
|
|
159
171
|
})
|
|
160
172
|
// Room 9: Room with empty string aboutEnduserId (should not crash, user in userIds can see it)
|
|
161
173
|
];
|
|
162
174
|
case 11:
|
|
163
|
-
roomWithEndusers =
|
|
175
|
+
roomWithEndusers = _l.sent();
|
|
164
176
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
165
177
|
type: 'internal',
|
|
166
178
|
userIds: [sdkNonAdmin.userInfo.id],
|
|
167
179
|
aboutEnduserId: '',
|
|
168
180
|
title: 'Room with empty aboutEnduserId',
|
|
181
|
+
recentMessageSentAt: sent_at(10),
|
|
169
182
|
})
|
|
170
183
|
// Wait for timestamps to settle
|
|
171
184
|
];
|
|
172
185
|
case 12:
|
|
173
|
-
roomWithEmptyAboutEnduserId =
|
|
186
|
+
roomWithEmptyAboutEnduserId = _l.sent();
|
|
174
187
|
// Wait for timestamps to settle
|
|
175
188
|
return [4 /*yield*/, (0, testing_1.wait)(undefined, 500)
|
|
176
189
|
// Test 1: Basic loading - rooms where user is in userIds
|
|
177
190
|
];
|
|
178
191
|
case 13:
|
|
179
192
|
// Wait for timestamps to settle
|
|
180
|
-
|
|
193
|
+
_l.sent();
|
|
181
194
|
// Test 1: Basic loading - rooms where user is in userIds
|
|
182
195
|
return [4 /*yield*/, (0, testing_1.async_test)("Loads room where user is in userIds", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
183
196
|
onResult: function (r) { return r.chat_rooms.some(function (room) { return room.id === roomWithUserInIds.id; }); }
|
|
@@ -186,7 +199,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
186
199
|
];
|
|
187
200
|
case 14:
|
|
188
201
|
// Test 1: Basic loading - rooms where user is in userIds
|
|
189
|
-
|
|
202
|
+
_l.sent();
|
|
190
203
|
// Test 2: Creator access
|
|
191
204
|
return [4 /*yield*/, (0, testing_1.async_test)("Loads room where user is creator", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
192
205
|
onResult: function (r) { return r.chat_rooms.some(function (room) { return room.id === roomWhereUserIsCreator.id; }); }
|
|
@@ -195,7 +208,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
195
208
|
];
|
|
196
209
|
case 15:
|
|
197
210
|
// Test 2: Creator access
|
|
198
|
-
|
|
211
|
+
_l.sent();
|
|
199
212
|
// Test 3: Care team access
|
|
200
213
|
return [4 /*yield*/, (0, testing_1.async_test)("Loads room where user is on care team for aboutEnduserId", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
201
214
|
onResult: function (r) { return r.chat_rooms.some(function (room) { return room.id === roomWithCareTeamAccess.id; }); }
|
|
@@ -204,7 +217,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
204
217
|
];
|
|
205
218
|
case 16:
|
|
206
219
|
// Test 3: Care team access
|
|
207
|
-
|
|
220
|
+
_l.sent();
|
|
208
221
|
// Test 4: Returns endusers for aboutEnduserId
|
|
209
222
|
return [4 /*yield*/, (0, testing_1.async_test)("Returns endusers for aboutEnduserId display", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
210
223
|
onResult: function (r) { return r.endusers.some(function (e) { return e.id === enduserForCareTeam.id; }); }
|
|
@@ -213,7 +226,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
213
226
|
];
|
|
214
227
|
case 17:
|
|
215
228
|
// Test 4: Returns endusers for aboutEnduserId
|
|
216
|
-
|
|
229
|
+
_l.sent();
|
|
217
230
|
// Test 5: Access exclusion - no access room should be excluded for non-admin
|
|
218
231
|
return [4 /*yield*/, (0, testing_1.async_test)("Excludes rooms user has no access to", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
219
232
|
onResult: function (r) { return !r.chat_rooms.some(function (room) { return room.id === roomNoAccessForNonAdmin.id; }); }
|
|
@@ -222,7 +235,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
222
235
|
];
|
|
223
236
|
case 18:
|
|
224
237
|
// Test 5: Access exclusion - no access room should be excluded for non-admin
|
|
225
|
-
|
|
238
|
+
_l.sent();
|
|
226
239
|
// Test 6: No care team access exclusion
|
|
227
240
|
return [4 /*yield*/, (0, testing_1.async_test)("Excludes rooms where user is not on care team for aboutEnduserId", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
228
241
|
onResult: function (r) { return !r.chat_rooms.some(function (room) { return room.id === roomNoCareTeamAccess.id; }); }
|
|
@@ -231,7 +244,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
231
244
|
];
|
|
232
245
|
case 19:
|
|
233
246
|
// Test 6: No care team access exclusion
|
|
234
|
-
|
|
247
|
+
_l.sent();
|
|
235
248
|
// Test 7: Closed rooms excluded by default
|
|
236
249
|
return [4 /*yield*/, (0, testing_1.async_test)("Excludes closed rooms by default", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
237
250
|
onResult: function (r) { return !r.chat_rooms.some(function (room) { return room.id === closedRoom.id; }); }
|
|
@@ -240,7 +253,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
240
253
|
];
|
|
241
254
|
case 20:
|
|
242
255
|
// Test 7: Closed rooms excluded by default
|
|
243
|
-
|
|
256
|
+
_l.sent();
|
|
244
257
|
// Test 8: Closed rooms included with showClosed=true
|
|
245
258
|
return [4 /*yield*/, (0, testing_1.async_test)("Includes closed rooms when showClosed=true", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({ showClosed: true }); }, {
|
|
246
259
|
onResult: function (r) { return r.chat_rooms.some(function (room) { return room.id === closedRoom.id; }); }
|
|
@@ -249,7 +262,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
249
262
|
];
|
|
250
263
|
case 21:
|
|
251
264
|
// Test 8: Closed rooms included with showClosed=true
|
|
252
|
-
|
|
265
|
+
_l.sent();
|
|
253
266
|
// Test 9: External type excluded
|
|
254
267
|
return [4 /*yield*/, (0, testing_1.async_test)("Excludes external type rooms", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
255
268
|
onResult: function (r) { return !r.chat_rooms.some(function (room) { return room.id === externalRoom.id; }); }
|
|
@@ -258,7 +271,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
258
271
|
];
|
|
259
272
|
case 22:
|
|
260
273
|
// Test 9: External type excluded
|
|
261
|
-
|
|
274
|
+
_l.sent();
|
|
262
275
|
// Test 10: Rooms with enduserIds excluded
|
|
263
276
|
return [4 /*yield*/, (0, testing_1.async_test)("Excludes rooms with enduserIds (not team chats)", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
264
277
|
onResult: function (r) { return !r.chat_rooms.some(function (room) { return room.id === roomWithEndusers.id; }); }
|
|
@@ -267,7 +280,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
267
280
|
];
|
|
268
281
|
case 23:
|
|
269
282
|
// Test 10: Rooms with enduserIds excluded
|
|
270
|
-
|
|
283
|
+
_l.sent();
|
|
271
284
|
// Test 10b: Room with empty string aboutEnduserId works (doesn't crash)
|
|
272
285
|
return [4 /*yield*/, (0, testing_1.async_test)("Handles room with empty string aboutEnduserId gracefully", function () { return sdkNonAdmin.api.chat_rooms.load_team_chat({}); }, {
|
|
273
286
|
onResult: function (r) { return r.chat_rooms.some(function (room) { return room.id === roomWithEmptyAboutEnduserId.id; }); }
|
|
@@ -277,7 +290,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
277
290
|
];
|
|
278
291
|
case 24:
|
|
279
292
|
// Test 10b: Room with empty string aboutEnduserId works (doesn't crash)
|
|
280
|
-
|
|
293
|
+
_l.sent();
|
|
281
294
|
// Test 11: Admin also filtered to rooms they're involved in
|
|
282
295
|
// (Admins who need all rooms can use standard GET endpoints)
|
|
283
296
|
return [4 /*yield*/, (0, testing_1.async_test)("Admin does NOT see rooms they're not involved in", function () { return sdk.api.chat_rooms.load_team_chat({}); }, {
|
|
@@ -288,7 +301,7 @@ var load_team_chat_tests = function (_a) {
|
|
|
288
301
|
case 25:
|
|
289
302
|
// Test 11: Admin also filtered to rooms they're involved in
|
|
290
303
|
// (Admins who need all rooms can use standard GET endpoints)
|
|
291
|
-
|
|
304
|
+
_l.sent();
|
|
292
305
|
// Test 12: Pagination with limit
|
|
293
306
|
return [4 /*yield*/, (0, testing_1.async_test)("Respects limit parameter", function () { return sdk.api.chat_rooms.load_team_chat({ limit: 2 }); }, {
|
|
294
307
|
onResult: function (r) { return r.chat_rooms.length <= 2; }
|
|
@@ -297,13 +310,15 @@ var load_team_chat_tests = function (_a) {
|
|
|
297
310
|
];
|
|
298
311
|
case 26:
|
|
299
312
|
// Test 12: Pagination with limit
|
|
300
|
-
|
|
313
|
+
_l.sent();
|
|
301
314
|
return [4 /*yield*/, sdk.api.chat_rooms.load_team_chat({ limit: 2 })];
|
|
302
315
|
case 27:
|
|
303
|
-
firstBatch =
|
|
316
|
+
firstBatch = _l.sent();
|
|
304
317
|
if (!(firstBatch.chat_rooms.length === 2)) return [3 /*break*/, 29];
|
|
305
318
|
lastRoom_1 = firstBatch.chat_rooms[firstBatch.chat_rooms.length - 1];
|
|
306
|
-
return [4 /*yield*/, (0, testing_1.async_test)("Pagination with lastUpdatedAt returns older rooms",
|
|
319
|
+
return [4 /*yield*/, (0, testing_1.async_test)("Pagination with lastUpdatedAt returns older rooms",
|
|
320
|
+
// the cursor parameter keeps its name and Date type, but now carries recentMessageSentAt
|
|
321
|
+
function () { return sdk.api.chat_rooms.load_team_chat({ lastUpdatedAt: new Date(lastRoom_1.recentMessageSentAt) }); }, {
|
|
307
322
|
onResult: function (r) {
|
|
308
323
|
// Should not contain any rooms from first batch
|
|
309
324
|
var firstBatchIds = firstBatch.chat_rooms.map(function (room) { return room.id; });
|
|
@@ -311,29 +326,69 @@ var load_team_chat_tests = function (_a) {
|
|
|
311
326
|
}
|
|
312
327
|
})];
|
|
313
328
|
case 28:
|
|
314
|
-
|
|
315
|
-
|
|
329
|
+
_l.sent();
|
|
330
|
+
_l.label = 29;
|
|
316
331
|
case 29:
|
|
317
|
-
// Test 14: Sorted by
|
|
318
|
-
return [4 /*yield*/, (0, testing_1.async_test)("Results sorted by
|
|
332
|
+
// Test 14: Sorted by recentMessageSentAt descending
|
|
333
|
+
return [4 /*yield*/, (0, testing_1.async_test)("Results sorted by recentMessageSentAt descending", function () { return sdk.api.chat_rooms.load_team_chat({}); }, {
|
|
319
334
|
onResult: function (r) {
|
|
335
|
+
if (r.chat_rooms.length === 0)
|
|
336
|
+
return false;
|
|
337
|
+
for (var _i = 0, _a = r.chat_rooms; _i < _a.length; _i++) {
|
|
338
|
+
var room = _a[_i];
|
|
339
|
+
if (room.recentMessageSentAt === undefined)
|
|
340
|
+
return false; // never-messaged rooms are excluded
|
|
341
|
+
}
|
|
320
342
|
for (var i = 1; i < r.chat_rooms.length; i++) {
|
|
321
|
-
|
|
322
|
-
var curr = new Date(r.chat_rooms[i].updatedAt).getTime();
|
|
323
|
-
if (prev < curr)
|
|
343
|
+
if (r.chat_rooms[i - 1].recentMessageSentAt < r.chat_rooms[i].recentMessageSentAt)
|
|
324
344
|
return false;
|
|
325
345
|
}
|
|
326
346
|
return true;
|
|
327
347
|
}
|
|
328
348
|
})
|
|
329
|
-
//
|
|
330
|
-
//
|
|
331
|
-
// ============================================
|
|
332
|
-
// Create a role with "Assigned" enduser access and chat_rooms access
|
|
349
|
+
// Test 14b: a write that is not a message must not re-order a room. updatedAt is bumped by any
|
|
350
|
+
// write (it was the old sort key); recentMessageSentAt is not.
|
|
333
351
|
];
|
|
334
352
|
case 30:
|
|
335
|
-
// Test 14: Sorted by
|
|
336
|
-
|
|
353
|
+
// Test 14: Sorted by recentMessageSentAt descending
|
|
354
|
+
_l.sent();
|
|
355
|
+
FIXTURE_ROOM_IDS = [
|
|
356
|
+
roomWithUserInIds.id, roomWithCareTeamAccess.id, roomNoAccessForNonAdmin.id,
|
|
357
|
+
roomNoCareTeamAccess.id, roomWithEmptyAboutEnduserId.id,
|
|
358
|
+
];
|
|
359
|
+
fixture_order = function (rooms) { return (rooms.map(function (room) { return room.id; }).filter(function (id) { return FIXTURE_ROOM_IDS.includes(id); }).join(',')); };
|
|
360
|
+
_b = fixture_order;
|
|
361
|
+
return [4 /*yield*/, sdk.api.chat_rooms.load_team_chat({})];
|
|
362
|
+
case 31:
|
|
363
|
+
orderBeforeRename = _b.apply(void 0, [(_l.sent()).chat_rooms]);
|
|
364
|
+
renamedTitle = 'Room with empty aboutEnduserId (renamed)';
|
|
365
|
+
// the oldest fixture room by recentMessageSentAt: before this change, the rename put it first
|
|
366
|
+
return [4 /*yield*/, sdk.api.chat_rooms.updateOne(roomWithEmptyAboutEnduserId.id, { title: renamedTitle })];
|
|
367
|
+
case 32:
|
|
368
|
+
// the oldest fixture room by recentMessageSentAt: before this change, the rename put it first
|
|
369
|
+
_l.sent();
|
|
370
|
+
return [4 /*yield*/, (0, testing_1.wait)(undefined, 500)];
|
|
371
|
+
case 33:
|
|
372
|
+
_l.sent();
|
|
373
|
+
return [4 /*yield*/, (0, testing_1.async_test)("A non-message update does not re-order a room", function () { return sdk.api.chat_rooms.load_team_chat({}); }, {
|
|
374
|
+
onResult: function (r) {
|
|
375
|
+
var renamed = r.chat_rooms.find(function (room) { return room.id === roomWithEmptyAboutEnduserId.id; });
|
|
376
|
+
var orderAfterRename = fixture_order(r.chat_rooms);
|
|
377
|
+
return ((renamed === null || renamed === void 0 ? void 0 : renamed.title) === renamedTitle // the write did land
|
|
378
|
+
&& (renamed === null || renamed === void 0 ? void 0 : renamed.recentMessageSentAt) === sent_at(10) // and left the sort key alone
|
|
379
|
+
&& orderAfterRename === orderBeforeRename
|
|
380
|
+
// still last of the fixture rooms, not first
|
|
381
|
+
&& r.chat_rooms.map(function (room) { return room.id; }).indexOf(roomWithEmptyAboutEnduserId.id)
|
|
382
|
+
> r.chat_rooms.map(function (room) { return room.id; }).indexOf(roomWithUserInIds.id));
|
|
383
|
+
}
|
|
384
|
+
})
|
|
385
|
+
// ============================================
|
|
386
|
+
// Enduser Access Control Tests
|
|
387
|
+
// ============================================
|
|
388
|
+
// Create a role with "Assigned" enduser access and chat_rooms access
|
|
389
|
+
];
|
|
390
|
+
case 34:
|
|
391
|
+
_l.sent();
|
|
337
392
|
return [4 /*yield*/, sdk.api.role_based_access_permissions.createOne({
|
|
338
393
|
role: 'Assigned Enduser Access',
|
|
339
394
|
permissions: {
|
|
@@ -343,8 +398,8 @@ var load_team_chat_tests = function (_a) {
|
|
|
343
398
|
})
|
|
344
399
|
// Create a role with no enduser access but chat_rooms access
|
|
345
400
|
];
|
|
346
|
-
case
|
|
347
|
-
assignedEnduserAccessRole =
|
|
401
|
+
case 35:
|
|
402
|
+
assignedEnduserAccessRole = _l.sent();
|
|
348
403
|
return [4 /*yield*/, sdk.api.role_based_access_permissions.createOne({
|
|
349
404
|
role: 'No Enduser Access',
|
|
350
405
|
permissions: {
|
|
@@ -354,56 +409,57 @@ var load_team_chat_tests = function (_a) {
|
|
|
354
409
|
})
|
|
355
410
|
// Create test user for enduser access tests
|
|
356
411
|
];
|
|
357
|
-
case
|
|
358
|
-
noEnduserAccessRole =
|
|
412
|
+
case 36:
|
|
413
|
+
noEnduserAccessRole = _l.sent();
|
|
359
414
|
enduserAccessTestEmail = 'team.chat.enduser.access.test@tellescope.com';
|
|
360
415
|
return [4 /*yield*/, sdk.api.users.getOne({ email: enduserAccessTestEmail }).catch(function () { return null; })];
|
|
361
|
-
case
|
|
362
|
-
|
|
363
|
-
if (
|
|
416
|
+
case 37:
|
|
417
|
+
_c = (_l.sent());
|
|
418
|
+
if (_c) return [3 /*break*/, 39];
|
|
364
419
|
return [4 /*yield*/, sdk.api.users.createOne({ email: enduserAccessTestEmail, notificationEmailsDisabled: true, verifiedEmail: true })];
|
|
365
|
-
case
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
case
|
|
369
|
-
enduserAccessTestUser =
|
|
420
|
+
case 38:
|
|
421
|
+
_c = (_l.sent());
|
|
422
|
+
_l.label = 39;
|
|
423
|
+
case 39:
|
|
424
|
+
enduserAccessTestUser = _c;
|
|
370
425
|
return [4 /*yield*/, sdk.api.endusers.createOne({
|
|
371
426
|
fname: 'NotAssigned',
|
|
372
427
|
lname: 'ToTestUser',
|
|
373
428
|
})
|
|
374
429
|
// Create a room aboutEnduserId pointing to the unassigned enduser, but add test user to userIds
|
|
375
430
|
];
|
|
376
|
-
case
|
|
377
|
-
enduserNotAssignedToTestUser =
|
|
431
|
+
case 40:
|
|
432
|
+
enduserNotAssignedToTestUser = _l.sent();
|
|
378
433
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
379
434
|
type: 'internal',
|
|
380
435
|
userIds: [enduserAccessTestUser.id],
|
|
381
436
|
aboutEnduserId: enduserNotAssignedToTestUser.id,
|
|
382
437
|
title: 'Room with unassigned enduser',
|
|
438
|
+
recentMessageSentAt: sent_at(11),
|
|
383
439
|
})];
|
|
384
|
-
case
|
|
385
|
-
roomWithUnassignedEnduser =
|
|
440
|
+
case 41:
|
|
441
|
+
roomWithUnassignedEnduser = _l.sent();
|
|
386
442
|
return [4 /*yield*/, (0, testing_1.wait)(undefined, 500)
|
|
387
443
|
// Test 15: User with "Assigned" enduser access - only sees endusers they're assigned to
|
|
388
444
|
];
|
|
389
|
-
case
|
|
390
|
-
|
|
445
|
+
case 42:
|
|
446
|
+
_l.sent();
|
|
391
447
|
// Test 15: User with "Assigned" enduser access - only sees endusers they're assigned to
|
|
392
448
|
return [4 /*yield*/, sdk.api.users.updateOne(enduserAccessTestUser.id, { roles: [assignedEnduserAccessRole.role] }, { replaceObjectFields: true })];
|
|
393
|
-
case
|
|
449
|
+
case 43:
|
|
394
450
|
// Test 15: User with "Assigned" enduser access - only sees endusers they're assigned to
|
|
395
|
-
|
|
451
|
+
_l.sent();
|
|
396
452
|
return [4 /*yield*/, (0, testing_1.wait)(undefined, 2000)]; // role change triggers logout
|
|
397
|
-
case
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
453
|
+
case 44:
|
|
454
|
+
_l.sent(); // role change triggers logout
|
|
455
|
+
_d = sdk_1.Session.bind;
|
|
456
|
+
_h = {
|
|
401
457
|
host: host
|
|
402
458
|
};
|
|
403
459
|
return [4 /*yield*/, sdk.api.users.generate_auth_token({ id: enduserAccessTestUser.id })];
|
|
404
|
-
case
|
|
405
|
-
sdkAssignedAccess = new (
|
|
406
|
-
|
|
460
|
+
case 45:
|
|
461
|
+
sdkAssignedAccess = new (_d.apply(sdk_1.Session, [void 0, (_h.authToken = (_l.sent()).authToken,
|
|
462
|
+
_h)]))();
|
|
407
463
|
// User can see the chat room (via userIds) but should NOT see the enduser (not assigned)
|
|
408
464
|
return [4 /*yield*/, (0, testing_1.async_test)("Assigned enduser access: sees room but not unassigned enduser", function () { return sdkAssignedAccess.api.chat_rooms.load_team_chat({}); }, {
|
|
409
465
|
onResult: function (r) {
|
|
@@ -414,16 +470,16 @@ var load_team_chat_tests = function (_a) {
|
|
|
414
470
|
})
|
|
415
471
|
// Now assign user to an enduser and verify they CAN see that enduser
|
|
416
472
|
];
|
|
417
|
-
case
|
|
473
|
+
case 46:
|
|
418
474
|
// User can see the chat room (via userIds) but should NOT see the enduser (not assigned)
|
|
419
|
-
|
|
475
|
+
_l.sent();
|
|
420
476
|
// Now assign user to an enduser and verify they CAN see that enduser
|
|
421
477
|
return [4 /*yield*/, sdk.api.endusers.updateOne(enduserForCareTeam.id, {
|
|
422
478
|
assignedTo: __spreadArray(__spreadArray([], (enduserForCareTeam.assignedTo || []), true), [enduserAccessTestUser.id], false)
|
|
423
479
|
})];
|
|
424
|
-
case
|
|
480
|
+
case 47:
|
|
425
481
|
// Now assign user to an enduser and verify they CAN see that enduser
|
|
426
|
-
|
|
482
|
+
_l.sent();
|
|
427
483
|
return [4 /*yield*/, (0, testing_1.async_test)("Assigned enduser access: sees enduser when assigned", function () { return sdkAssignedAccess.api.chat_rooms.load_team_chat({}); }, {
|
|
428
484
|
onResult: function (r) {
|
|
429
485
|
// Should see enduserForCareTeam (now assigned) but not enduserNotAssignedToTestUser
|
|
@@ -434,24 +490,24 @@ var load_team_chat_tests = function (_a) {
|
|
|
434
490
|
})
|
|
435
491
|
// Test 16: User with no enduser access - sees no endusers
|
|
436
492
|
];
|
|
437
|
-
case
|
|
438
|
-
|
|
493
|
+
case 48:
|
|
494
|
+
_l.sent();
|
|
439
495
|
// Test 16: User with no enduser access - sees no endusers
|
|
440
496
|
return [4 /*yield*/, sdk.api.users.updateOne(enduserAccessTestUser.id, { roles: [noEnduserAccessRole.role] }, { replaceObjectFields: true })];
|
|
441
|
-
case
|
|
497
|
+
case 49:
|
|
442
498
|
// Test 16: User with no enduser access - sees no endusers
|
|
443
|
-
|
|
499
|
+
_l.sent();
|
|
444
500
|
return [4 /*yield*/, (0, testing_1.wait)(undefined, 2000)]; // role change triggers logout
|
|
445
|
-
case
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
501
|
+
case 50:
|
|
502
|
+
_l.sent(); // role change triggers logout
|
|
503
|
+
_e = sdk_1.Session.bind;
|
|
504
|
+
_j = {
|
|
449
505
|
host: host
|
|
450
506
|
};
|
|
451
507
|
return [4 /*yield*/, sdk.api.users.generate_auth_token({ id: enduserAccessTestUser.id })];
|
|
452
|
-
case
|
|
453
|
-
sdkNoEnduserAccess = new (
|
|
454
|
-
|
|
508
|
+
case 51:
|
|
509
|
+
sdkNoEnduserAccess = new (_e.apply(sdk_1.Session, [void 0, (_j.authToken = (_l.sent()).authToken,
|
|
510
|
+
_j)]))();
|
|
455
511
|
return [4 /*yield*/, (0, testing_1.async_test)("No enduser access: sees rooms but no endusers", function () { return sdkNoEnduserAccess.api.chat_rooms.load_team_chat({}); }, {
|
|
456
512
|
onResult: function (r) {
|
|
457
513
|
var hasRoom = r.chat_rooms.some(function (room) { return room.id === roomWithUnassignedEnduser.id; });
|
|
@@ -461,8 +517,8 @@ var load_team_chat_tests = function (_a) {
|
|
|
461
517
|
})
|
|
462
518
|
// Test 17: Admin (All access) sees all endusers
|
|
463
519
|
];
|
|
464
|
-
case
|
|
465
|
-
|
|
520
|
+
case 52:
|
|
521
|
+
_l.sent();
|
|
466
522
|
// Test 17: Admin (All access) sees all endusers
|
|
467
523
|
return [4 /*yield*/, (0, testing_1.async_test)("Admin (All access): sees all endusers", function () { return sdk.api.chat_rooms.load_team_chat({}); }, {
|
|
468
524
|
onResult: function (r) {
|
|
@@ -474,9 +530,9 @@ var load_team_chat_tests = function (_a) {
|
|
|
474
530
|
})
|
|
475
531
|
// Test 18: Access tags grant enduser visibility (not on care team, but matching access tag)
|
|
476
532
|
];
|
|
477
|
-
case
|
|
533
|
+
case 53:
|
|
478
534
|
// Test 17: Admin (All access) sees all endusers
|
|
479
|
-
|
|
535
|
+
_l.sent();
|
|
480
536
|
accessTagTestTag = 'access-tag-test-team-chat';
|
|
481
537
|
// Enable access tags at the organization level
|
|
482
538
|
return [4 /*yield*/, sdk.api.organizations.updateOne(sdk.userInfo.businessId, {
|
|
@@ -484,9 +540,9 @@ var load_team_chat_tests = function (_a) {
|
|
|
484
540
|
})
|
|
485
541
|
// Create a role with Assigned enduser access (which uses access tags)
|
|
486
542
|
];
|
|
487
|
-
case
|
|
543
|
+
case 54:
|
|
488
544
|
// Enable access tags at the organization level
|
|
489
|
-
|
|
545
|
+
_l.sent();
|
|
490
546
|
return [4 /*yield*/, sdk.api.role_based_access_permissions.createOne({
|
|
491
547
|
role: 'Access Tag Enduser Access',
|
|
492
548
|
permissions: {
|
|
@@ -496,24 +552,24 @@ var load_team_chat_tests = function (_a) {
|
|
|
496
552
|
})
|
|
497
553
|
// Create a user with the access tag
|
|
498
554
|
];
|
|
499
|
-
case
|
|
500
|
-
accessTagRole =
|
|
555
|
+
case 55:
|
|
556
|
+
accessTagRole = _l.sent();
|
|
501
557
|
accessTagTestEmail = 'team.chat.access.tag.test@tellescope.com';
|
|
502
558
|
return [4 /*yield*/, sdk.api.users.getOne({ email: accessTagTestEmail }).catch(function () { return null; })];
|
|
503
|
-
case
|
|
504
|
-
|
|
505
|
-
if (
|
|
559
|
+
case 56:
|
|
560
|
+
_f = (_l.sent());
|
|
561
|
+
if (_f) return [3 /*break*/, 58];
|
|
506
562
|
return [4 /*yield*/, sdk.api.users.createOne({
|
|
507
563
|
email: accessTagTestEmail,
|
|
508
564
|
notificationEmailsDisabled: true,
|
|
509
565
|
verifiedEmail: true,
|
|
510
566
|
tags: [accessTagTestTag],
|
|
511
567
|
})];
|
|
512
|
-
case
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
case
|
|
516
|
-
accessTagTestUser =
|
|
568
|
+
case 57:
|
|
569
|
+
_f = (_l.sent());
|
|
570
|
+
_l.label = 58;
|
|
571
|
+
case 58:
|
|
572
|
+
accessTagTestUser = _f;
|
|
517
573
|
// Ensure user has the tag and role
|
|
518
574
|
return [4 /*yield*/, sdk.api.users.updateOne(accessTagTestUser.id, {
|
|
519
575
|
tags: [accessTagTestTag],
|
|
@@ -521,9 +577,9 @@ var load_team_chat_tests = function (_a) {
|
|
|
521
577
|
}, { replaceObjectFields: true })
|
|
522
578
|
// Create an enduser with matching access tag (but user is NOT in assignedTo)
|
|
523
579
|
];
|
|
524
|
-
case
|
|
580
|
+
case 59:
|
|
525
581
|
// Ensure user has the tag and role
|
|
526
|
-
|
|
582
|
+
_l.sent();
|
|
527
583
|
return [4 /*yield*/, sdk.api.endusers.createOne({
|
|
528
584
|
fname: 'AccessTag',
|
|
529
585
|
lname: 'TestEnduser',
|
|
@@ -532,29 +588,30 @@ var load_team_chat_tests = function (_a) {
|
|
|
532
588
|
})
|
|
533
589
|
// Create a room about the enduser with access tag, add user to userIds
|
|
534
590
|
];
|
|
535
|
-
case
|
|
536
|
-
enduserWithAccessTag =
|
|
591
|
+
case 60:
|
|
592
|
+
enduserWithAccessTag = _l.sent();
|
|
537
593
|
return [4 /*yield*/, sdk.api.chat_rooms.createOne({
|
|
538
594
|
type: 'internal',
|
|
539
595
|
userIds: [accessTagTestUser.id],
|
|
540
596
|
aboutEnduserId: enduserWithAccessTag.id,
|
|
541
597
|
title: 'Room with access tag enduser',
|
|
598
|
+
recentMessageSentAt: sent_at(12),
|
|
542
599
|
})];
|
|
543
|
-
case
|
|
544
|
-
roomWithAccessTagEnduser =
|
|
600
|
+
case 61:
|
|
601
|
+
roomWithAccessTagEnduser = _l.sent();
|
|
545
602
|
return [4 /*yield*/, (0, testing_1.wait)(undefined, 2000)
|
|
546
603
|
// Re-authenticate to get the updated JWT with eat (enableAccessTags) flag
|
|
547
604
|
]; // role change triggers logout
|
|
548
|
-
case
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
605
|
+
case 62:
|
|
606
|
+
_l.sent(); // role change triggers logout
|
|
607
|
+
_g = sdk_1.Session.bind;
|
|
608
|
+
_k = {
|
|
552
609
|
host: host
|
|
553
610
|
};
|
|
554
611
|
return [4 /*yield*/, sdk.api.users.generate_auth_token({ id: accessTagTestUser.id })];
|
|
555
|
-
case
|
|
556
|
-
sdkAccessTagUser = new (
|
|
557
|
-
|
|
612
|
+
case 63:
|
|
613
|
+
sdkAccessTagUser = new (_g.apply(sdk_1.Session, [void 0, (_k.authToken = (_l.sent()).authToken,
|
|
614
|
+
_k)]))();
|
|
558
615
|
return [4 /*yield*/, (0, testing_1.async_test)("Access tags: user sees enduser via matching access tag (not assigned)", function () { return sdkAccessTagUser.api.chat_rooms.load_team_chat({}); }, {
|
|
559
616
|
onResult: function (r) {
|
|
560
617
|
var hasRoom = r.chat_rooms.some(function (room) { return room.id === roomWithAccessTagEnduser.id; });
|
|
@@ -566,15 +623,15 @@ var load_team_chat_tests = function (_a) {
|
|
|
566
623
|
})
|
|
567
624
|
// Cleanup - disable access tags before deleting test data
|
|
568
625
|
];
|
|
569
|
-
case
|
|
570
|
-
|
|
626
|
+
case 64:
|
|
627
|
+
_l.sent();
|
|
571
628
|
// Cleanup - disable access tags before deleting test data
|
|
572
629
|
return [4 /*yield*/, sdk.api.organizations.updateOne(sdk.userInfo.businessId, {
|
|
573
630
|
settings: { endusers: { enableAccessTags: false } }
|
|
574
631
|
})];
|
|
575
|
-
case
|
|
632
|
+
case 65:
|
|
576
633
|
// Cleanup - disable access tags before deleting test data
|
|
577
|
-
|
|
634
|
+
_l.sent();
|
|
578
635
|
return [4 /*yield*/, Promise.all([
|
|
579
636
|
sdk.api.chat_rooms.deleteOne(roomWithUserInIds.id),
|
|
580
637
|
sdk.api.chat_rooms.deleteOne(roomWhereUserIsCreator.id),
|
|
@@ -598,8 +655,8 @@ var load_team_chat_tests = function (_a) {
|
|
|
598
655
|
sdk.api.users.deleteOne(enduserAccessTestUser.id),
|
|
599
656
|
sdk.api.users.deleteOne(accessTagTestUser.id),
|
|
600
657
|
])];
|
|
601
|
-
case
|
|
602
|
-
|
|
658
|
+
case 66:
|
|
659
|
+
_l.sent();
|
|
603
660
|
return [2 /*return*/];
|
|
604
661
|
}
|
|
605
662
|
});
|