sequenzy 2.1.6 → 2.1.12
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/dist/cjs/api/resources/analytics/types/GetSequenceMetricsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/cjs/api/resources/emailComponents/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/emailComponents/client/Client.js +79 -0
- package/dist/cjs/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +3 -0
- package/dist/cjs/api/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +3 -0
- package/dist/cjs/api/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/emailComponents/types/index.js +1 -0
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/integrations/client/Client.js +3 -3
- package/dist/cjs/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +9 -1
- package/dist/cjs/api/resources/sequences/client/Client.d.ts +52 -3
- package/dist/cjs/api/resources/sequences/client/Client.js +164 -3
- package/dist/cjs/api/resources/sequences/client/requests/ListEnrollmentsSequencesRequest.d.ts +1 -1
- package/dist/cjs/api/resources/sequences/client/requests/SequenceEnrollmentCancelRequest.d.ts +1 -1
- package/dist/cjs/api/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.d.ts +24 -0
- package/dist/cjs/api/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.js +3 -0
- package/dist/cjs/api/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.d.ts +15 -0
- package/dist/cjs/api/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.js +3 -0
- package/dist/cjs/api/resources/sequences/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/sequences/types/GetStatsSequencesResponse.d.ts +1 -0
- package/dist/cjs/api/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/cjs/api/types/Company.d.ts +1 -1
- package/dist/cjs/api/types/IntegrationAttioMapping.d.ts +18 -4
- package/dist/cjs/api/types/IntegrationAttioMappingInbound.d.ts +14 -0
- package/dist/cjs/api/types/IntegrationAttioMappingInbound.js +3 -0
- package/dist/cjs/api/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/cjs/api/types/IntegrationAttioMappingInboundStatus.js +10 -0
- package/dist/cjs/api/types/IntegrationDetailIntegration.d.ts +1 -1
- package/dist/cjs/api/types/IntegrationSummary.d.ts +1 -1
- package/dist/cjs/api/types/SequenceAudience.d.ts +3 -0
- package/dist/cjs/api/types/SequenceAudienceEnrollment.d.ts +2 -0
- package/dist/cjs/api/types/SequenceEnrollmentCancelResponse.d.ts +1 -1
- package/dist/cjs/api/types/SequenceEnrollmentGetResponseEnrollment.d.ts +6 -1
- package/dist/cjs/api/types/SequenceEnrollmentGetResponseEnrollmentStatus.d.ts +2 -0
- package/dist/cjs/api/types/SequenceEnrollmentGetResponseEnrollmentStatus.js +2 -0
- package/dist/cjs/api/types/SequenceEnrollmentListResponseEnrollmentsItem.d.ts +6 -1
- package/dist/cjs/api/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.d.ts +2 -0
- package/dist/cjs/api/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.js +2 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseItem.d.ts +16 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseItem.js +3 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseItemOutcome.d.ts +9 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseItemOutcome.js +12 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseItemStatus.d.ts +7 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseItemStatus.js +10 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResponse.d.ts +9 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResponse.js +3 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResultBase.d.ts +11 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResultBase.js +3 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.d.ts +4 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.js +3 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResultBaseNotFound.d.ts +4 -0
- package/dist/cjs/api/types/SequenceEnrollmentPauseResultBaseNotFound.js +3 -0
- package/dist/cjs/api/types/SequenceEnrollmentResumeResponse.d.ts +13 -0
- package/dist/cjs/api/types/SequenceEnrollmentResumeResponse.js +3 -0
- package/dist/cjs/api/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.d.ts +4 -0
- package/dist/cjs/api/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.js +3 -0
- package/dist/cjs/api/types/SequencePausedEnrollmentCounts.d.ts +10 -0
- package/dist/cjs/api/types/SequencePausedEnrollmentCounts.js +3 -0
- package/dist/cjs/api/types/SequencePausedEnrollmentCountsByCurrentNodeItem.d.ts +6 -0
- package/dist/cjs/api/types/SequencePausedEnrollmentCountsByCurrentNodeItem.js +3 -0
- package/dist/cjs/api/types/SubscriberSequenceEnrollment.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +13 -0
- package/dist/cjs/api/types/index.js +13 -0
- package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponse.js +2 -0
- package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.js +2 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +31 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +33 -0
- package/dist/cjs/serialization/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/emailComponents/types/index.js +1 -0
- package/dist/cjs/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +4 -0
- package/dist/cjs/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.js +4 -0
- package/dist/cjs/serialization/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.js +33 -0
- package/dist/cjs/serialization/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.js +32 -0
- package/dist/cjs/serialization/resources/sequences/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/sequences/client/requests/index.js +5 -1
- package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponse.js +2 -0
- package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.js +2 -0
- package/dist/cjs/serialization/types/IntegrationAttioMapping.d.ts +8 -0
- package/dist/cjs/serialization/types/IntegrationAttioMapping.js +8 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInbound.d.ts +13 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInbound.js +35 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInboundStatus.js +29 -0
- package/dist/cjs/serialization/types/SequenceAudience.d.ts +1 -0
- package/dist/cjs/serialization/types/SequenceAudience.js +1 -0
- package/dist/cjs/serialization/types/SequenceAudienceEnrollment.d.ts +1 -0
- package/dist/cjs/serialization/types/SequenceAudienceEnrollment.js +1 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentGetResponseEnrollment.d.ts +2 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentGetResponseEnrollment.js +2 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentGetResponseEnrollmentStatus.d.ts +1 -1
- package/dist/cjs/serialization/types/SequenceEnrollmentGetResponseEnrollmentStatus.js +1 -1
- package/dist/cjs/serialization/types/SequenceEnrollmentListResponseEnrollmentsItem.d.ts +2 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentListResponseEnrollmentsItem.js +2 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.d.ts +1 -1
- package/dist/cjs/serialization/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.js +1 -1
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseItem.d.ts +18 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseItem.js +40 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseItemOutcome.d.ts +7 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseItemOutcome.js +29 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseItemStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseItemStatus.js +29 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResponse.js +36 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResultBase.d.ts +17 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResultBase.js +39 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.d.ts +10 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.js +32 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResultBaseNotFound.d.ts +10 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentPauseResultBaseNotFound.js +32 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentResumeResponse.d.ts +15 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentResumeResponse.js +39 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.js +32 -0
- package/dist/cjs/serialization/types/SequencePausedEnrollmentCounts.d.ts +11 -0
- package/dist/cjs/serialization/types/SequencePausedEnrollmentCounts.js +33 -0
- package/dist/cjs/serialization/types/SequencePausedEnrollmentCountsByCurrentNodeItem.d.ts +11 -0
- package/dist/cjs/serialization/types/SequencePausedEnrollmentCountsByCurrentNodeItem.js +33 -0
- package/dist/cjs/serialization/types/index.d.ts +13 -0
- package/dist/cjs/serialization/types/index.js +13 -0
- package/dist/esm/api/resources/analytics/types/GetSequenceMetricsResponse.d.ts +1 -0
- package/dist/esm/api/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/esm/api/resources/emailComponents/client/Client.d.ts +21 -0
- package/dist/esm/api/resources/emailComponents/client/Client.js +79 -0
- package/dist/esm/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +12 -0
- package/dist/esm/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +2 -0
- package/dist/esm/api/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +5 -0
- package/dist/esm/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +2 -0
- package/dist/esm/api/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/esm/api/resources/emailComponents/types/index.js +1 -0
- package/dist/esm/api/resources/integrations/client/Client.d.ts +3 -3
- package/dist/esm/api/resources/integrations/client/Client.js +3 -3
- package/dist/esm/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +1 -1
- package/dist/esm/api/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +9 -1
- package/dist/esm/api/resources/sequences/client/Client.d.ts +52 -3
- package/dist/esm/api/resources/sequences/client/Client.js +164 -3
- package/dist/esm/api/resources/sequences/client/requests/ListEnrollmentsSequencesRequest.d.ts +1 -1
- package/dist/esm/api/resources/sequences/client/requests/SequenceEnrollmentCancelRequest.d.ts +1 -1
- package/dist/esm/api/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.d.ts +24 -0
- package/dist/esm/api/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.js +2 -0
- package/dist/esm/api/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.d.ts +15 -0
- package/dist/esm/api/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.js +2 -0
- package/dist/esm/api/resources/sequences/client/requests/index.d.ts +2 -0
- package/dist/esm/api/resources/sequences/types/GetStatsSequencesResponse.d.ts +1 -0
- package/dist/esm/api/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/esm/api/types/Company.d.ts +1 -1
- package/dist/esm/api/types/IntegrationAttioMapping.d.ts +18 -4
- package/dist/esm/api/types/IntegrationAttioMappingInbound.d.ts +14 -0
- package/dist/esm/api/types/IntegrationAttioMappingInbound.js +2 -0
- package/dist/esm/api/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/esm/api/types/IntegrationAttioMappingInboundStatus.js +7 -0
- package/dist/esm/api/types/IntegrationDetailIntegration.d.ts +1 -1
- package/dist/esm/api/types/IntegrationSummary.d.ts +1 -1
- package/dist/esm/api/types/SequenceAudience.d.ts +3 -0
- package/dist/esm/api/types/SequenceAudienceEnrollment.d.ts +2 -0
- package/dist/esm/api/types/SequenceEnrollmentCancelResponse.d.ts +1 -1
- package/dist/esm/api/types/SequenceEnrollmentGetResponseEnrollment.d.ts +6 -1
- package/dist/esm/api/types/SequenceEnrollmentGetResponseEnrollmentStatus.d.ts +2 -0
- package/dist/esm/api/types/SequenceEnrollmentGetResponseEnrollmentStatus.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentListResponseEnrollmentsItem.d.ts +6 -1
- package/dist/esm/api/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.d.ts +2 -0
- package/dist/esm/api/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseItem.d.ts +16 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseItem.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseItemOutcome.d.ts +9 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseItemOutcome.js +9 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseItemStatus.d.ts +7 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseItemStatus.js +7 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResponse.d.ts +9 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResponse.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResultBase.d.ts +11 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResultBase.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.d.ts +4 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResultBaseNotFound.d.ts +4 -0
- package/dist/esm/api/types/SequenceEnrollmentPauseResultBaseNotFound.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentResumeResponse.d.ts +13 -0
- package/dist/esm/api/types/SequenceEnrollmentResumeResponse.js +2 -0
- package/dist/esm/api/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.d.ts +4 -0
- package/dist/esm/api/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.js +2 -0
- package/dist/esm/api/types/SequencePausedEnrollmentCounts.d.ts +10 -0
- package/dist/esm/api/types/SequencePausedEnrollmentCounts.js +2 -0
- package/dist/esm/api/types/SequencePausedEnrollmentCountsByCurrentNodeItem.d.ts +6 -0
- package/dist/esm/api/types/SequencePausedEnrollmentCountsByCurrentNodeItem.js +2 -0
- package/dist/esm/api/types/SubscriberSequenceEnrollment.d.ts +1 -0
- package/dist/esm/api/types/index.d.ts +13 -0
- package/dist/esm/api/types/index.js +13 -0
- package/dist/esm/serialization/resources/analytics/types/GetSequenceMetricsResponse.d.ts +2 -0
- package/dist/esm/serialization/resources/analytics/types/GetSequenceMetricsResponse.js +2 -0
- package/dist/esm/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/esm/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.js +2 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +9 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +5 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/index.js +1 -0
- package/dist/esm/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +11 -0
- package/dist/esm/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +7 -0
- package/dist/esm/serialization/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/esm/serialization/resources/emailComponents/types/index.js +1 -0
- package/dist/esm/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +4 -0
- package/dist/esm/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.js +4 -0
- package/dist/esm/serialization/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.d.ts +11 -0
- package/dist/esm/serialization/resources/sequences/client/requests/SequenceEnrollmentPauseRequest.js +7 -0
- package/dist/esm/serialization/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.d.ts +10 -0
- package/dist/esm/serialization/resources/sequences/client/requests/SequenceEnrollmentResumeRequest.js +6 -0
- package/dist/esm/serialization/resources/sequences/client/requests/index.d.ts +2 -0
- package/dist/esm/serialization/resources/sequences/client/requests/index.js +2 -0
- package/dist/esm/serialization/resources/sequences/types/GetStatsSequencesResponse.d.ts +2 -0
- package/dist/esm/serialization/resources/sequences/types/GetStatsSequencesResponse.js +2 -0
- package/dist/esm/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/esm/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.js +2 -0
- package/dist/esm/serialization/types/IntegrationAttioMapping.d.ts +8 -0
- package/dist/esm/serialization/types/IntegrationAttioMapping.js +8 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInbound.d.ts +13 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInbound.js +9 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInboundStatus.js +3 -0
- package/dist/esm/serialization/types/SequenceAudience.d.ts +1 -0
- package/dist/esm/serialization/types/SequenceAudience.js +1 -0
- package/dist/esm/serialization/types/SequenceAudienceEnrollment.d.ts +1 -0
- package/dist/esm/serialization/types/SequenceAudienceEnrollment.js +1 -0
- package/dist/esm/serialization/types/SequenceEnrollmentGetResponseEnrollment.d.ts +2 -0
- package/dist/esm/serialization/types/SequenceEnrollmentGetResponseEnrollment.js +2 -0
- package/dist/esm/serialization/types/SequenceEnrollmentGetResponseEnrollmentStatus.d.ts +1 -1
- package/dist/esm/serialization/types/SequenceEnrollmentGetResponseEnrollmentStatus.js +1 -1
- package/dist/esm/serialization/types/SequenceEnrollmentListResponseEnrollmentsItem.d.ts +2 -0
- package/dist/esm/serialization/types/SequenceEnrollmentListResponseEnrollmentsItem.js +2 -0
- package/dist/esm/serialization/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.d.ts +1 -1
- package/dist/esm/serialization/types/SequenceEnrollmentListResponseEnrollmentsItemStatus.js +1 -1
- package/dist/esm/serialization/types/SequenceEnrollmentPauseItem.d.ts +18 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseItem.js +14 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseItemOutcome.d.ts +7 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseItemOutcome.js +3 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseItemStatus.d.ts +7 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseItemStatus.js +3 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResponse.d.ts +12 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResponse.js +10 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResultBase.d.ts +17 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResultBase.js +13 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.d.ts +10 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResultBaseNotEnrolledItem.js +6 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResultBaseNotFound.d.ts +10 -0
- package/dist/esm/serialization/types/SequenceEnrollmentPauseResultBaseNotFound.js +6 -0
- package/dist/esm/serialization/types/SequenceEnrollmentResumeResponse.d.ts +15 -0
- package/dist/esm/serialization/types/SequenceEnrollmentResumeResponse.js +13 -0
- package/dist/esm/serialization/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.d.ts +10 -0
- package/dist/esm/serialization/types/SequenceEnrollmentResumeResponseEnqueueErrorsItem.js +6 -0
- package/dist/esm/serialization/types/SequencePausedEnrollmentCounts.d.ts +11 -0
- package/dist/esm/serialization/types/SequencePausedEnrollmentCounts.js +7 -0
- package/dist/esm/serialization/types/SequencePausedEnrollmentCountsByCurrentNodeItem.d.ts +11 -0
- package/dist/esm/serialization/types/SequencePausedEnrollmentCountsByCurrentNodeItem.js +7 -0
- package/dist/esm/serialization/types/index.d.ts +13 -0
- package/dist/esm/serialization/types/index.js +13 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export interface GetSequenceMetricsResponse {
|
|
|
3
3
|
enrollmentCounts?: Sequenzy.SequenceEnrollmentCounts;
|
|
4
4
|
/** Trigger matches where the contact could not be enrolled because they are unsubscribed or bounced. Defaults to the last 30 days when no explicit time range is provided. */
|
|
5
5
|
enrollmentSkipped?: Sequenzy.GetSequenceMetricsResponseEnrollmentSkipped;
|
|
6
|
+
pausedEnrollments?: Sequenzy.SequencePausedEnrollmentCounts;
|
|
6
7
|
/** Echoed back when `period` is provided. */
|
|
7
8
|
period?: string;
|
|
8
9
|
recommendations?: Sequenzy.RecommendationMetrics;
|
|
@@ -6,6 +6,8 @@ export interface GetSequenceMetricsResponseStepsItem {
|
|
|
6
6
|
failedSubscribers?: Sequenzy.GetSequenceMetricsResponseStepsItemFailedSubscribersItem[];
|
|
7
7
|
/** Node ID for this email step */
|
|
8
8
|
nodeId?: string;
|
|
9
|
+
/** Lifetime Poll and NPS summaries for this step, in the same shape as the campaign stats polls. Each subscriber counts once per poll block with their latest answer. Not limited by period, start or end. Omitted when the step has no responses. Pass nodeId as the campaign ID to the poll-responses endpoint to list the individual respondents. */
|
|
10
|
+
polls?: Sequenzy.PollResultsSummary[];
|
|
9
11
|
stats?: Sequenzy.EngagementStats;
|
|
10
12
|
/** Step number (1-indexed) */
|
|
11
13
|
step?: number;
|
|
@@ -54,6 +54,27 @@ export declare class EmailComponentsClient {
|
|
|
54
54
|
*/
|
|
55
55
|
delete(request: Sequenzy.DeleteEmailComponentsRequest, requestOptions?: EmailComponentsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DeleteEmailComponentsResponse>;
|
|
56
56
|
private __delete;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new component with the same description, type and blocks as an existing one. Without a name, the copy is called "<name> (Copy)", or "<name> (Copy 2)" and so on when that name is taken. Duplicating a copy keeps a single "(Copy N)" suffix. The copy is never pinned as a default, so duplicating the default footer gives a regular component.
|
|
59
|
+
*
|
|
60
|
+
* @param {Sequenzy.DuplicateEmailComponentsRequest} request
|
|
61
|
+
* @param {EmailComponentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
64
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
65
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
66
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
67
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
68
|
+
* @throws {@link errors.SequenzyError}
|
|
69
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.emailComponents.duplicate({
|
|
73
|
+
* componentId: "componentId"
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
duplicate(request: Sequenzy.DuplicateEmailComponentsRequest, requestOptions?: EmailComponentsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DuplicateEmailComponentsResponse>;
|
|
77
|
+
private __duplicate;
|
|
57
78
|
/**
|
|
58
79
|
* Returns a single email component by id.
|
|
59
80
|
*
|
|
@@ -183,6 +183,85 @@ class EmailComponentsClient {
|
|
|
183
183
|
}
|
|
184
184
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/email-components/{componentId}");
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Creates a new component with the same description, type and blocks as an existing one. Without a name, the copy is called "<name> (Copy)", or "<name> (Copy 2)" and so on when that name is taken. Duplicating a copy keeps a single "(Copy N)" suffix. The copy is never pinned as a default, so duplicating the default footer gives a regular component.
|
|
188
|
+
*
|
|
189
|
+
* @param {Sequenzy.DuplicateEmailComponentsRequest} request
|
|
190
|
+
* @param {EmailComponentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
193
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
194
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
195
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
196
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
197
|
+
* @throws {@link errors.SequenzyError}
|
|
198
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.emailComponents.duplicate({
|
|
202
|
+
* componentId: "componentId"
|
|
203
|
+
* })
|
|
204
|
+
*/
|
|
205
|
+
duplicate(request, requestOptions) {
|
|
206
|
+
return core.HttpResponsePromise.fromPromise(this.__duplicate(request, requestOptions));
|
|
207
|
+
}
|
|
208
|
+
async __duplicate(request, requestOptions) {
|
|
209
|
+
const { componentId, ..._body } = request;
|
|
210
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
211
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
212
|
+
const _response = await core.fetcher({
|
|
213
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
214
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
215
|
+
environments.SequenzyEnvironment.Default, `email-components/${core.url.encodePathParam(componentId)}/duplicate`),
|
|
216
|
+
method: "POST",
|
|
217
|
+
headers: _headers,
|
|
218
|
+
contentType: "application/json",
|
|
219
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
220
|
+
requestType: "json",
|
|
221
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.DuplicateEmailComponentsRequest.jsonOrThrow(_body, {
|
|
222
|
+
unrecognizedObjectKeys: "strip",
|
|
223
|
+
omitUndefined: true,
|
|
224
|
+
}), requestOptions?.additionalBodyParameters),
|
|
225
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
226
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
227
|
+
abortSignal: requestOptions?.abortSignal,
|
|
228
|
+
fetchFn: this._options?.fetch,
|
|
229
|
+
logging: this._options.logging,
|
|
230
|
+
});
|
|
231
|
+
if (_response.ok) {
|
|
232
|
+
return {
|
|
233
|
+
data: serializers.DuplicateEmailComponentsResponse.parseOrThrow(_response.body, {
|
|
234
|
+
unrecognizedObjectKeys: "passthrough",
|
|
235
|
+
allowUnrecognizedUnionMembers: true,
|
|
236
|
+
allowUnrecognizedEnumValues: true,
|
|
237
|
+
skipValidation: true,
|
|
238
|
+
breadcrumbsPrefix: ["response"],
|
|
239
|
+
}),
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
if (_response.error.reason === "status-code") {
|
|
244
|
+
switch (_response.error.statusCode) {
|
|
245
|
+
case 400:
|
|
246
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
247
|
+
case 401:
|
|
248
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
249
|
+
case 404:
|
|
250
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
251
|
+
case 409:
|
|
252
|
+
throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
|
|
253
|
+
case 503:
|
|
254
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
255
|
+
default:
|
|
256
|
+
throw new errors.SequenzyError({
|
|
257
|
+
statusCode: _response.error.statusCode,
|
|
258
|
+
body: _response.error.body,
|
|
259
|
+
rawResponse: _response.rawResponse,
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/email-components/{componentId}/duplicate");
|
|
264
|
+
}
|
|
186
265
|
/**
|
|
187
266
|
* Returns a single email component by id.
|
|
188
267
|
*
|
package/dist/cjs/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* componentId: "componentId"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface DuplicateEmailComponentsRequest {
|
|
8
|
+
/** ID of the component to copy. */
|
|
9
|
+
componentId: string;
|
|
10
|
+
/** Name for the copy, unique within the company. Omit it to use the default copy name. */
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CreateEmailComponentsRequest } from "./CreateEmailComponentsRequest.js";
|
|
2
2
|
export type { DeleteEmailComponentsRequest } from "./DeleteEmailComponentsRequest.js";
|
|
3
|
+
export type { DuplicateEmailComponentsRequest } from "./DuplicateEmailComponentsRequest.js";
|
|
3
4
|
export type { GetDefaultEmailComponentsRequest } from "./GetDefaultEmailComponentsRequest.js";
|
|
4
5
|
export type { GetEmailComponentsRequest } from "./GetEmailComponentsRequest.js";
|
|
5
6
|
export type { ListEmailComponentsRequest } from "./ListEmailComponentsRequest.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateEmailComponentsRequestComponentType.js";
|
|
2
2
|
export * from "./CreateEmailComponentsResponse.js";
|
|
3
3
|
export * from "./DeleteEmailComponentsResponse.js";
|
|
4
|
+
export * from "./DuplicateEmailComponentsResponse.js";
|
|
4
5
|
export * from "./GetDefaultEmailComponentsRequestSlot.js";
|
|
5
6
|
export * from "./GetDefaultEmailComponentsResponse.js";
|
|
6
7
|
export * from "./GetEmailComponentsResponse.js";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CreateEmailComponentsRequestComponentType.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateEmailComponentsResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./DeleteEmailComponentsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./DuplicateEmailComponentsResponse.js"), exports);
|
|
20
21
|
__exportStar(require("./GetDefaultEmailComponentsRequestSlot.js"), exports);
|
|
21
22
|
__exportStar(require("./GetDefaultEmailComponentsResponse.js"), exports);
|
|
22
23
|
__exportStar(require("./GetEmailComponentsResponse.js"), exports);
|
|
@@ -30,7 +30,7 @@ export declare class IntegrationsClient {
|
|
|
30
30
|
activatePixel(request: Sequenzy.ActivatePixelIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ActivatePixelIntegrationsResponse>;
|
|
31
31
|
private __activatePixel;
|
|
32
32
|
/**
|
|
33
|
-
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio
|
|
33
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
|
|
34
34
|
*
|
|
35
35
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
36
36
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,7 +92,7 @@ export declare class IntegrationsClient {
|
|
|
92
92
|
get(request: Sequenzy.GetIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.IntegrationDetail>;
|
|
93
93
|
private __get;
|
|
94
94
|
/**
|
|
95
|
-
* Reads a connected Attio integration's saved
|
|
95
|
+
* Reads a connected Attio integration's two-way sync settings (every saved map in both directions, syncRemovals, inbound sync health), this company's Sequenzy lists, and live Attio people-lists using the stored access token. Tag names are not included; use the tags API. Call this before updating mappings so you have Attio list ids or slugs. Attio only. Requires the account:read and lists:read scopes.
|
|
96
96
|
*
|
|
97
97
|
* @param {Sequenzy.GetAttioMappingRequest} request
|
|
98
98
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -202,7 +202,7 @@ export declare class IntegrationsClient {
|
|
|
202
202
|
sync(request: Sequenzy.SyncIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SyncIntegrationsResponse>;
|
|
203
203
|
private __sync;
|
|
204
204
|
/**
|
|
205
|
-
* Saves
|
|
205
|
+
* Saves the two-way sync of an already-connected Attio integration using the stored access token. listMap and tagMap push Sequenzy lists and tags to Attio lists; inboundListMap and inboundTagMap pull Attio lists into Sequenzy lists and tags, which creates or updates subscribers and triggers list and tag automations. Saving an inbound map registers an Attio webhook with the stored token and needs the webhook:read-write scope; without it the request fails and nothing is saved. syncRemovals mirrors removals in every mapped direction. Each map is a full replacement when provided; an empty object clears it. Does not require the secret again. Provide at least one field. Idempotent. Attio only. Requires the integrations:manage scope.
|
|
206
206
|
*
|
|
207
207
|
* @param {Sequenzy.UpdateAttioSettingsRequest} request
|
|
208
208
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -106,7 +106,7 @@ class IntegrationsClient {
|
|
|
106
106
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/integrations/{id}/pixel");
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio
|
|
109
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
|
|
110
110
|
*
|
|
111
111
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
112
112
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -327,7 +327,7 @@ class IntegrationsClient {
|
|
|
327
327
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/integrations/{id}");
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
|
-
* Reads a connected Attio integration's saved
|
|
330
|
+
* Reads a connected Attio integration's two-way sync settings (every saved map in both directions, syncRemovals, inbound sync health), this company's Sequenzy lists, and live Attio people-lists using the stored access token. Tag names are not included; use the tags API. Call this before updating mappings so you have Attio list ids or slugs. Attio only. Requires the account:read and lists:read scopes.
|
|
331
331
|
*
|
|
332
332
|
* @param {Sequenzy.GetAttioMappingRequest} request
|
|
333
333
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -759,7 +759,7 @@ class IntegrationsClient {
|
|
|
759
759
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/integrations/{id}/sync");
|
|
760
760
|
}
|
|
761
761
|
/**
|
|
762
|
-
* Saves
|
|
762
|
+
* Saves the two-way sync of an already-connected Attio integration using the stored access token. listMap and tagMap push Sequenzy lists and tags to Attio lists; inboundListMap and inboundTagMap pull Attio lists into Sequenzy lists and tags, which creates or updates subscribers and triggers list and tag automations. Saving an inbound map registers an Attio webhook with the stored token and needs the webhook:read-write scope; without it the request fails and nothing is saved. syncRemovals mirrors removals in every mapped direction. Each map is a full replacement when provided; an empty object clears it. Does not require the secret again. Provide at least one field. Idempotent. Attio only. Requires the integrations:manage scope.
|
|
763
763
|
*
|
|
764
764
|
* @param {Sequenzy.UpdateAttioSettingsRequest} request
|
|
765
765
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -16,6 +16,6 @@ export interface ConnectIntegrationsRequest {
|
|
|
16
16
|
providerAccountId?: string;
|
|
17
17
|
/** PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. */
|
|
18
18
|
settings?: Sequenzy.ConnectIntegrationsRequestSettings;
|
|
19
|
-
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and
|
|
19
|
+
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. */
|
|
20
20
|
webhookSecret?: string;
|
|
21
21
|
}
|
|
@@ -7,8 +7,16 @@
|
|
|
7
7
|
export interface UpdateAttioSettingsRequest {
|
|
8
8
|
/** Attio integration ID. */
|
|
9
9
|
id: string;
|
|
10
|
-
/**
|
|
10
|
+
/** Attio to Sequenzy. Complete Attio list UUID or api slug to Sequenzy list id map. Saved with Attio list UUIDs. Needs webhook:read-write on the Attio token. */
|
|
11
|
+
inboundListMap?: Record<string, string>;
|
|
12
|
+
/** Attio to Sequenzy. Complete Attio list UUID or api slug to Sequenzy tag name map. Needs webhook:read-write on the Attio token. */
|
|
13
|
+
inboundTagMap?: Record<string, string>;
|
|
14
|
+
/** Sequenzy to Attio. Complete Sequenzy list id to Attio list UUID or api slug map. Replaces the saved map. Pass {} to clear every mapping. */
|
|
11
15
|
listMap?: Record<string, string>;
|
|
12
16
|
/** When true, upsert a company from the person's non-free-mail email domain. */
|
|
13
17
|
syncCompanyFromDomain?: boolean;
|
|
18
|
+
/** Mirror removals in every mapped direction. Defaults to false (add-only). */
|
|
19
|
+
syncRemovals?: boolean;
|
|
20
|
+
/** Sequenzy to Attio. Complete Sequenzy tag name to Attio list UUID or api slug map. Tag names are normalized (lowercase, spaces become dashes), at most 255 characters. */
|
|
21
|
+
tagMap?: Record<string, string>;
|
|
14
22
|
}
|
|
@@ -48,7 +48,7 @@ export declare class SequencesClient {
|
|
|
48
48
|
cancelAudienceEnrollment(request: Sequenzy.CancelAudienceEnrollmentSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CancelAudienceEnrollmentSequencesResponse>;
|
|
49
49
|
private __cancelAudienceEnrollment;
|
|
50
50
|
/**
|
|
51
|
-
* Cancels active or
|
|
51
|
+
* Cancels active, waiting, or paused enrollments in one sequence. Target every enrollment with cancelAll, a batch with subscriberIds, one contact with subscriberId, or matching stored entry event property values with fieldValues. Bulk cancellation is capped at 1000 enrollments per request; repeat the request while remainingCount is above zero.
|
|
52
52
|
*
|
|
53
53
|
* @param {Sequenzy.SequenceEnrollmentCancelRequest} request
|
|
54
54
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -439,7 +439,7 @@ export declare class SequencesClient {
|
|
|
439
439
|
enable(request: Sequenzy.EnableSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SequenceActionResponse>;
|
|
440
440
|
private __enable;
|
|
441
441
|
/**
|
|
442
|
-
* Starts a background run that enrolls every active contact matching the audience (everyone, lists, a segment, a filter, or rules) into the sequence, in batches, with no per-request cap. Contacts already active or
|
|
442
|
+
* Starts a background run that enrolls every active contact matching the audience (everyone, lists, a segment, a filter, or rules) into the sequence, in batches, with no per-request cap. Contacts already active, waiting, or paused in the sequence are skipped; one_time sequences also skip contacts who completed or were cancelled before; unsubscribed and bounced contacts are never enrolled. Only one run per sequence can be queued or running at a time. The sequence must be enabled and accepting entrants. This is how a manual-trigger countdown sequence gets its audience; late enrollees skip the steps whose key date already passed.
|
|
443
443
|
*
|
|
444
444
|
* @param {Sequenzy.EnrollAudienceSequencesRequest} request
|
|
445
445
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -748,7 +748,7 @@ export declare class SequencesClient {
|
|
|
748
748
|
listEmailVariations(request: Sequenzy.ListEmailVariationsSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListEmailVariationsSequencesResponse>;
|
|
749
749
|
private __listEmailVariations;
|
|
750
750
|
/**
|
|
751
|
-
* Lists the individual contacts enrolled in one sequence, with the node each one is currently sitting on. Defaults to active and
|
|
751
|
+
* Lists the individual contacts enrolled in one sequence, with the node each one is currently sitting on. Defaults to active, waiting, and paused enrollments, which is everyone still in the sequence. Use this when sequence stats give you enrollmentCounts and you need the actual subscribers behind a number.
|
|
752
752
|
*
|
|
753
753
|
* @param {Sequenzy.ListEnrollmentsSequencesRequest} request
|
|
754
754
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -844,6 +844,34 @@ export declare class SequencesClient {
|
|
|
844
844
|
*/
|
|
845
845
|
pauseEnrollments(request: Sequenzy.PauseEnrollmentsSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SequenceActionResponse>;
|
|
846
846
|
private __pauseEnrollments;
|
|
847
|
+
/**
|
|
848
|
+
* Holds specific contacts on the sequence step they are on. A paused enrollment gets no further steps, keeps its entry event properties and stop-condition snapshots, and still counts as enrolled, so the same contact cannot enter this sequence again while paused. Unsubscribes, bounces, and enrollment cancellation still end it. A wait-for-event step does not react while paused; an event that arrived meanwhile is picked up on resume. Applies immediately with no dry run. An enrollment whose current step is running at that moment is left alone with outcome in_progress; repeat the request shortly. To stop new contacts entering the whole sequence instead, use POST /sequences/{sequenceId}/pause-enrollments.
|
|
849
|
+
*
|
|
850
|
+
* @param {Sequenzy.SequenceEnrollmentPauseRequest} request
|
|
851
|
+
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
852
|
+
*
|
|
853
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
854
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
855
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
856
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
857
|
+
* @throws {@link errors.SequenzyError}
|
|
858
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
859
|
+
*
|
|
860
|
+
* @example
|
|
861
|
+
* await client.sequences.pauseSubscribers({
|
|
862
|
+
* sequenceId: "sequenceId",
|
|
863
|
+
* emails: ["ada@example.com"],
|
|
864
|
+
* reason: "Project blocked"
|
|
865
|
+
* })
|
|
866
|
+
*
|
|
867
|
+
* @example
|
|
868
|
+
* await client.sequences.pauseSubscribers({
|
|
869
|
+
* sequenceId: "sequenceId",
|
|
870
|
+
* subscriberIds: ["sub_abc123", "sub_def456"]
|
|
871
|
+
* })
|
|
872
|
+
*/
|
|
873
|
+
pauseSubscribers(request: Sequenzy.SequenceEnrollmentPauseRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SequenceEnrollmentPauseResponse>;
|
|
874
|
+
private __pauseSubscribers;
|
|
847
875
|
/**
|
|
848
876
|
* Rewrites the first 3 emails of a public gallery sequence for your brand, or for another `website`, and returns them without creating anything. Emails that could not be written are counted in `failedEmailCount`; the call fails only when none could be written. Usually takes 10 to 30 seconds. Requires `sequences:write`.
|
|
849
877
|
*
|
|
@@ -940,6 +968,27 @@ export declare class SequencesClient {
|
|
|
940
968
|
*/
|
|
941
969
|
resumeEnrollments(request: Sequenzy.ResumeEnrollmentsSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SequenceActionResponse>;
|
|
942
970
|
private __resumeEnrollments;
|
|
971
|
+
/**
|
|
972
|
+
* Continues paused contacts from the step they were paused on, with the status they had. Nothing restarts or is skipped. Waits keep their original wall-clock time, like a whole-sequence pause - a wait that ran out while paused continues right away, and one that has not still ends when it would have. Enrollments of the targeted contacts that are not paused are reported with outcome not_paused and left alone. When the sequence itself is disabled, sequenceRunning is false and the resumed contacts continue once it is enabled.
|
|
973
|
+
*
|
|
974
|
+
* @param {Sequenzy.SequenceEnrollmentResumeRequest} request
|
|
975
|
+
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
976
|
+
*
|
|
977
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
978
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
979
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
980
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
981
|
+
* @throws {@link errors.SequenzyError}
|
|
982
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
983
|
+
*
|
|
984
|
+
* @example
|
|
985
|
+
* await client.sequences.resumeSubscribers({
|
|
986
|
+
* sequenceId: "sequenceId",
|
|
987
|
+
* emails: ["ada@example.com"]
|
|
988
|
+
* })
|
|
989
|
+
*/
|
|
990
|
+
resumeSubscribers(request: Sequenzy.SequenceEnrollmentResumeRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SequenceEnrollmentResumeResponse>;
|
|
991
|
+
private __resumeSubscribers;
|
|
943
992
|
/**
|
|
944
993
|
* Immediately invalidates the previous URL and returns the replacement endpoint.
|
|
945
994
|
*
|
|
@@ -168,7 +168,7 @@ class SequencesClient {
|
|
|
168
168
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/audience-enrollments/{runId}/cancel");
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
|
-
* Cancels active or
|
|
171
|
+
* Cancels active, waiting, or paused enrollments in one sequence. Target every enrollment with cancelAll, a batch with subscriberIds, one contact with subscriberId, or matching stored entry event property values with fieldValues. Bulk cancellation is capped at 1000 enrollments per request; repeat the request while remainingCount is above zero.
|
|
172
172
|
*
|
|
173
173
|
* @param {Sequenzy.SequenceEnrollmentCancelRequest} request
|
|
174
174
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1257,7 +1257,7 @@ class SequencesClient {
|
|
|
1257
1257
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/enable");
|
|
1258
1258
|
}
|
|
1259
1259
|
/**
|
|
1260
|
-
* Starts a background run that enrolls every active contact matching the audience (everyone, lists, a segment, a filter, or rules) into the sequence, in batches, with no per-request cap. Contacts already active or
|
|
1260
|
+
* Starts a background run that enrolls every active contact matching the audience (everyone, lists, a segment, a filter, or rules) into the sequence, in batches, with no per-request cap. Contacts already active, waiting, or paused in the sequence are skipped; one_time sequences also skip contacts who completed or were cancelled before; unsubscribed and bounced contacts are never enrolled. Only one run per sequence can be queued or running at a time. The sequence must be enabled and accepting entrants. This is how a manual-trigger countdown sequence gets its audience; late enrollees skip the steps whose key date already passed.
|
|
1261
1261
|
*
|
|
1262
1262
|
* @param {Sequenzy.EnrollAudienceSequencesRequest} request
|
|
1263
1263
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -2376,7 +2376,7 @@ class SequencesClient {
|
|
|
2376
2376
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/sequences/{sequenceId}/emails/{emailId}/variations");
|
|
2377
2377
|
}
|
|
2378
2378
|
/**
|
|
2379
|
-
* Lists the individual contacts enrolled in one sequence, with the node each one is currently sitting on. Defaults to active and
|
|
2379
|
+
* Lists the individual contacts enrolled in one sequence, with the node each one is currently sitting on. Defaults to active, waiting, and paused enrollments, which is everyone still in the sequence. Use this when sequence stats give you enrollmentCounts and you need the actual subscribers behind a number.
|
|
2380
2380
|
*
|
|
2381
2381
|
* @param {Sequenzy.ListEnrollmentsSequencesRequest} request
|
|
2382
2382
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -2695,6 +2695,90 @@ class SequencesClient {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/pause-enrollments");
|
|
2697
2697
|
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Holds specific contacts on the sequence step they are on. A paused enrollment gets no further steps, keeps its entry event properties and stop-condition snapshots, and still counts as enrolled, so the same contact cannot enter this sequence again while paused. Unsubscribes, bounces, and enrollment cancellation still end it. A wait-for-event step does not react while paused; an event that arrived meanwhile is picked up on resume. Applies immediately with no dry run. An enrollment whose current step is running at that moment is left alone with outcome in_progress; repeat the request shortly. To stop new contacts entering the whole sequence instead, use POST /sequences/{sequenceId}/pause-enrollments.
|
|
2700
|
+
*
|
|
2701
|
+
* @param {Sequenzy.SequenceEnrollmentPauseRequest} request
|
|
2702
|
+
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2703
|
+
*
|
|
2704
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
2705
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
2706
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
2707
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
2708
|
+
* @throws {@link errors.SequenzyError}
|
|
2709
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
2710
|
+
*
|
|
2711
|
+
* @example
|
|
2712
|
+
* await client.sequences.pauseSubscribers({
|
|
2713
|
+
* sequenceId: "sequenceId",
|
|
2714
|
+
* emails: ["ada@example.com"],
|
|
2715
|
+
* reason: "Project blocked"
|
|
2716
|
+
* })
|
|
2717
|
+
*
|
|
2718
|
+
* @example
|
|
2719
|
+
* await client.sequences.pauseSubscribers({
|
|
2720
|
+
* sequenceId: "sequenceId",
|
|
2721
|
+
* subscriberIds: ["sub_abc123", "sub_def456"]
|
|
2722
|
+
* })
|
|
2723
|
+
*/
|
|
2724
|
+
pauseSubscribers(request, requestOptions) {
|
|
2725
|
+
return core.HttpResponsePromise.fromPromise(this.__pauseSubscribers(request, requestOptions));
|
|
2726
|
+
}
|
|
2727
|
+
async __pauseSubscribers(request, requestOptions) {
|
|
2728
|
+
const { sequenceId, ..._body } = request;
|
|
2729
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
2730
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
2731
|
+
const _response = await core.fetcher({
|
|
2732
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
2733
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
2734
|
+
environments.SequenzyEnvironment.Default, `sequences/${core.url.encodePathParam(sequenceId)}/enrollments/pause`),
|
|
2735
|
+
method: "POST",
|
|
2736
|
+
headers: _headers,
|
|
2737
|
+
contentType: "application/json",
|
|
2738
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
2739
|
+
requestType: "json",
|
|
2740
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.SequenceEnrollmentPauseRequest.jsonOrThrow(_body, {
|
|
2741
|
+
unrecognizedObjectKeys: "strip",
|
|
2742
|
+
omitUndefined: true,
|
|
2743
|
+
}), requestOptions?.additionalBodyParameters),
|
|
2744
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
2745
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
2746
|
+
abortSignal: requestOptions?.abortSignal,
|
|
2747
|
+
fetchFn: this._options?.fetch,
|
|
2748
|
+
logging: this._options.logging,
|
|
2749
|
+
});
|
|
2750
|
+
if (_response.ok) {
|
|
2751
|
+
return {
|
|
2752
|
+
data: serializers.SequenceEnrollmentPauseResponse.parseOrThrow(_response.body, {
|
|
2753
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2754
|
+
allowUnrecognizedUnionMembers: true,
|
|
2755
|
+
allowUnrecognizedEnumValues: true,
|
|
2756
|
+
skipValidation: true,
|
|
2757
|
+
breadcrumbsPrefix: ["response"],
|
|
2758
|
+
}),
|
|
2759
|
+
rawResponse: _response.rawResponse,
|
|
2760
|
+
};
|
|
2761
|
+
}
|
|
2762
|
+
if (_response.error.reason === "status-code") {
|
|
2763
|
+
switch (_response.error.statusCode) {
|
|
2764
|
+
case 400:
|
|
2765
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
2766
|
+
case 401:
|
|
2767
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2768
|
+
case 403:
|
|
2769
|
+
throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
2770
|
+
case 404:
|
|
2771
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
2772
|
+
default:
|
|
2773
|
+
throw new errors.SequenzyError({
|
|
2774
|
+
statusCode: _response.error.statusCode,
|
|
2775
|
+
body: _response.error.body,
|
|
2776
|
+
rawResponse: _response.rawResponse,
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/enrollments/pause");
|
|
2781
|
+
}
|
|
2698
2782
|
/**
|
|
2699
2783
|
* Rewrites the first 3 emails of a public gallery sequence for your brand, or for another `website`, and returns them without creating anything. Emails that could not be written are counted in `failedEmailCount`; the call fails only when none could be written. Usually takes 10 to 30 seconds. Requires `sequences:write`.
|
|
2700
2784
|
*
|
|
@@ -3014,6 +3098,83 @@ class SequencesClient {
|
|
|
3014
3098
|
}
|
|
3015
3099
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/resume-enrollments");
|
|
3016
3100
|
}
|
|
3101
|
+
/**
|
|
3102
|
+
* Continues paused contacts from the step they were paused on, with the status they had. Nothing restarts or is skipped. Waits keep their original wall-clock time, like a whole-sequence pause - a wait that ran out while paused continues right away, and one that has not still ends when it would have. Enrollments of the targeted contacts that are not paused are reported with outcome not_paused and left alone. When the sequence itself is disabled, sequenceRunning is false and the resumed contacts continue once it is enabled.
|
|
3103
|
+
*
|
|
3104
|
+
* @param {Sequenzy.SequenceEnrollmentResumeRequest} request
|
|
3105
|
+
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3106
|
+
*
|
|
3107
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
3108
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
3109
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
3110
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
3111
|
+
* @throws {@link errors.SequenzyError}
|
|
3112
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
3113
|
+
*
|
|
3114
|
+
* @example
|
|
3115
|
+
* await client.sequences.resumeSubscribers({
|
|
3116
|
+
* sequenceId: "sequenceId",
|
|
3117
|
+
* emails: ["ada@example.com"]
|
|
3118
|
+
* })
|
|
3119
|
+
*/
|
|
3120
|
+
resumeSubscribers(request, requestOptions) {
|
|
3121
|
+
return core.HttpResponsePromise.fromPromise(this.__resumeSubscribers(request, requestOptions));
|
|
3122
|
+
}
|
|
3123
|
+
async __resumeSubscribers(request, requestOptions) {
|
|
3124
|
+
const { sequenceId, ..._body } = request;
|
|
3125
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
3126
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
3127
|
+
const _response = await core.fetcher({
|
|
3128
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
3129
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
3130
|
+
environments.SequenzyEnvironment.Default, `sequences/${core.url.encodePathParam(sequenceId)}/enrollments/resume`),
|
|
3131
|
+
method: "POST",
|
|
3132
|
+
headers: _headers,
|
|
3133
|
+
contentType: "application/json",
|
|
3134
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
3135
|
+
requestType: "json",
|
|
3136
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.SequenceEnrollmentResumeRequest.jsonOrThrow(_body, {
|
|
3137
|
+
unrecognizedObjectKeys: "strip",
|
|
3138
|
+
omitUndefined: true,
|
|
3139
|
+
}), requestOptions?.additionalBodyParameters),
|
|
3140
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
3141
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
3142
|
+
abortSignal: requestOptions?.abortSignal,
|
|
3143
|
+
fetchFn: this._options?.fetch,
|
|
3144
|
+
logging: this._options.logging,
|
|
3145
|
+
});
|
|
3146
|
+
if (_response.ok) {
|
|
3147
|
+
return {
|
|
3148
|
+
data: serializers.SequenceEnrollmentResumeResponse.parseOrThrow(_response.body, {
|
|
3149
|
+
unrecognizedObjectKeys: "passthrough",
|
|
3150
|
+
allowUnrecognizedUnionMembers: true,
|
|
3151
|
+
allowUnrecognizedEnumValues: true,
|
|
3152
|
+
skipValidation: true,
|
|
3153
|
+
breadcrumbsPrefix: ["response"],
|
|
3154
|
+
}),
|
|
3155
|
+
rawResponse: _response.rawResponse,
|
|
3156
|
+
};
|
|
3157
|
+
}
|
|
3158
|
+
if (_response.error.reason === "status-code") {
|
|
3159
|
+
switch (_response.error.statusCode) {
|
|
3160
|
+
case 400:
|
|
3161
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
3162
|
+
case 401:
|
|
3163
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
3164
|
+
case 403:
|
|
3165
|
+
throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3166
|
+
case 404:
|
|
3167
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
3168
|
+
default:
|
|
3169
|
+
throw new errors.SequenzyError({
|
|
3170
|
+
statusCode: _response.error.statusCode,
|
|
3171
|
+
body: _response.error.body,
|
|
3172
|
+
rawResponse: _response.rawResponse,
|
|
3173
|
+
});
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/enrollments/resume");
|
|
3177
|
+
}
|
|
3017
3178
|
/**
|
|
3018
3179
|
* Immediately invalidates the previous URL and returns the replacement endpoint.
|
|
3019
3180
|
*
|
package/dist/cjs/api/resources/sequences/client/requests/ListEnrollmentsSequencesRequest.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface ListEnrollmentsSequencesRequest {
|
|
|
22
22
|
offset?: number;
|
|
23
23
|
/** Result order. Defaults to enrolled_at_desc. Enrollments with no scheduled resume sort last under wait_until ordering. */
|
|
24
24
|
sort?: Sequenzy.ListEnrollmentsSequencesRequestSort;
|
|
25
|
-
/** Comma-separated enrollment statuses: active, waiting, completed, failed, cancelled. Defaults to active,waiting. */
|
|
25
|
+
/** Comma-separated enrollment statuses: active, waiting, paused, completed, failed, cancelled. Defaults to active,waiting,paused. */
|
|
26
26
|
status?: string;
|
|
27
27
|
/** Annotate each returned active or waiting enrollment with whether the sequence stop condition already matches for that contact right now. Stop conditions are re-evaluated when an enrollment next runs a step, not when their event arrives, so a stopped contact keeps reporting waiting until its delay expires. Use this to confirm a stop event registered without waiting the delay out. Caps the page at 100 regardless of limit. */
|
|
28
28
|
stopConditionMatch?: boolean;
|
package/dist/cjs/api/resources/sequences/client/requests/SequenceEnrollmentCancelRequest.d.ts
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
export interface SequenceEnrollmentCancelRequest {
|
|
34
34
|
/** Sequence ID */
|
|
35
35
|
sequenceId: string;
|
|
36
|
-
/** Cancel every active or
|
|
36
|
+
/** Cancel every active, waiting, or paused enrollment in the sequence, regardless of how contacts entered it. Use this when segment-triggered enrollments share no entry field value. Defaults to dry run unless dryRun is explicitly false. */
|
|
37
37
|
cancelAll?: boolean;
|
|
38
38
|
/** When true, returns matching enrollments without cancelling them. cancelAll, subscriberIds, and fieldValues default to dry run unless explicitly false; a single subscriberId cancels immediately. */
|
|
39
39
|
dryRun?: boolean;
|