@trycourier/courier 5.7.0 → 6.0.1
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/CHANGELOG.md +321 -0
- package/CONTRIBUTING.md +30 -0
- package/Client.d.ts +71 -0
- package/Client.js +181 -0
- package/README.md +13 -1
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/SendMessageRequest.d.ts +8 -0
- package/api/client/requests/SendMessageRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/audiences/client/Client.d.ts +43 -0
- package/api/resources/audiences/client/Client.js +304 -0
- package/api/resources/audiences/client/index.d.ts +1 -0
- package/api/resources/audiences/client/index.js +17 -0
- package/api/resources/audiences/client/requests/ListAudienceMembersRequest.d.ts +10 -0
- package/api/resources/audiences/client/requests/ListAudienceMembersRequest.js +5 -0
- package/api/resources/audiences/client/requests/ListAudiencesRequest.d.ts +10 -0
- package/api/resources/audiences/client/requests/ListAudiencesRequest.js +5 -0
- package/api/resources/audiences/client/requests/index.d.ts +2 -0
- package/api/resources/audiences/index.d.ts +2 -0
- package/api/resources/audiences/index.js +18 -0
- package/api/resources/audiences/types/Audience.d.ts +15 -0
- package/api/resources/audiences/types/Audience.js +5 -0
- package/api/resources/audiences/types/AudienceListResponse.d.ts +8 -0
- package/api/resources/audiences/types/AudienceListResponse.js +5 -0
- package/api/resources/audiences/types/AudienceMember.d.ts +10 -0
- package/api/resources/audiences/types/AudienceMember.js +5 -0
- package/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +7 -0
- package/api/resources/audiences/types/AudienceMemberGetResponse.js +5 -0
- package/api/resources/audiences/types/AudienceMemberListResponse.d.ts +8 -0
- package/api/resources/audiences/types/AudienceMemberListResponse.js +5 -0
- package/api/resources/audiences/types/AudiencePutResponse.d.ts +7 -0
- package/api/resources/audiences/types/AudiencePutResponse.js +5 -0
- package/api/resources/audiences/types/AudienceRequest.d.ts +13 -0
- package/api/resources/audiences/types/AudienceRequest.js +5 -0
- package/api/resources/audiences/types/BaseFilterConfig.d.ts +11 -0
- package/api/resources/audiences/types/BaseFilterConfig.js +5 -0
- package/api/resources/audiences/types/ComparisonOperator.d.ts +19 -0
- package/api/resources/audiences/types/ComparisonOperator.js +21 -0
- package/api/resources/audiences/types/Filter.d.ts +5 -0
- package/api/resources/audiences/types/Filter.js +5 -0
- package/api/resources/audiences/types/FilterConfig.d.ts +5 -0
- package/api/resources/audiences/types/FilterConfig.js +5 -0
- package/api/resources/audiences/types/LogicalOperator.d.ts +8 -0
- package/api/resources/audiences/types/LogicalOperator.js +10 -0
- package/api/resources/audiences/types/NestedFilterConfig.d.ts +10 -0
- package/api/resources/audiences/types/NestedFilterConfig.js +5 -0
- package/api/resources/audiences/types/Operator.d.ts +5 -0
- package/api/resources/audiences/types/Operator.js +5 -0
- package/api/resources/audiences/types/SingleFilterConfig.d.ts +13 -0
- package/api/resources/audiences/types/SingleFilterConfig.js +5 -0
- package/api/resources/audiences/types/index.d.ts +15 -0
- package/api/resources/audiences/types/index.js +31 -0
- package/api/resources/auditEvents/client/Client.d.ts +29 -0
- package/api/resources/auditEvents/client/Client.js +155 -0
- package/api/resources/auditEvents/client/index.d.ts +1 -0
- package/api/resources/auditEvents/client/index.js +17 -0
- package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +10 -0
- package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.js +5 -0
- package/api/resources/auditEvents/client/requests/index.d.ts +1 -0
- package/api/resources/auditEvents/index.d.ts +2 -0
- package/api/resources/auditEvents/index.js +18 -0
- package/api/resources/auditEvents/types/Actor.d.ts +7 -0
- package/api/resources/auditEvents/types/Actor.js +5 -0
- package/api/resources/auditEvents/types/AuditEvent.d.ts +12 -0
- package/api/resources/auditEvents/types/AuditEvent.js +5 -0
- package/api/resources/auditEvents/types/GetAuditEventParams.d.ts +6 -0
- package/api/resources/auditEvents/types/GetAuditEventParams.js +5 -0
- package/api/resources/auditEvents/types/ListAuditEventsParams.d.ts +6 -0
- package/api/resources/auditEvents/types/ListAuditEventsParams.js +5 -0
- package/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +8 -0
- package/api/resources/auditEvents/types/ListAuditEventsResponse.js +5 -0
- package/api/resources/auditEvents/types/Target.d.ts +7 -0
- package/api/resources/auditEvents/types/Target.js +5 -0
- package/api/resources/auditEvents/types/index.d.ts +6 -0
- package/api/resources/auditEvents/types/index.js +22 -0
- package/api/resources/authTokens/client/Client.d.ts +29 -0
- package/api/resources/authTokens/client/Client.js +111 -0
- package/api/resources/authTokens/client/index.d.ts +1 -0
- package/api/resources/authTokens/index.d.ts +2 -0
- package/api/resources/authTokens/index.js +18 -0
- package/api/resources/authTokens/types/AuthIssueTokenParameters.d.ts +7 -0
- package/api/resources/authTokens/types/AuthIssueTokenParameters.js +5 -0
- package/api/resources/authTokens/types/AuthIssueTokenResponse.d.ts +6 -0
- package/api/resources/authTokens/types/AuthIssueTokenResponse.js +5 -0
- package/api/resources/authTokens/types/index.d.ts +2 -0
- package/api/resources/authTokens/types/index.js +18 -0
- package/api/resources/automations/client/Client.d.ts +33 -0
- package/api/resources/automations/client/Client.js +158 -0
- package/api/resources/automations/client/index.d.ts +1 -0
- package/api/resources/automations/index.d.ts +2 -0
- package/api/resources/automations/index.js +18 -0
- package/api/resources/automations/types/Automation.d.ts +8 -0
- package/api/resources/automations/types/Automation.js +5 -0
- package/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +7 -0
- package/api/resources/automations/types/AutomationAdHocInvokeParams.js +5 -0
- package/api/resources/automations/types/AutomationCancelStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationCancelStep.js +5 -0
- package/api/resources/automations/types/AutomationDelayStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationDelayStep.js +5 -0
- package/api/resources/automations/types/AutomationInvokeParams.d.ts +11 -0
- package/api/resources/automations/types/AutomationInvokeParams.js +5 -0
- package/api/resources/automations/types/AutomationInvokeResponse.d.ts +6 -0
- package/api/resources/automations/types/AutomationInvokeResponse.js +5 -0
- package/api/resources/automations/types/AutomationInvokeStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationInvokeStep.js +5 -0
- package/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +7 -0
- package/api/resources/automations/types/AutomationInvokeTemplateParams.js +5 -0
- package/api/resources/automations/types/AutomationRunContext.d.ts +11 -0
- package/api/resources/automations/types/AutomationRunContext.js +5 -0
- package/api/resources/automations/types/AutomationSendListStep.d.ts +12 -0
- package/api/resources/automations/types/AutomationSendListStep.js +5 -0
- package/api/resources/automations/types/AutomationSendStep.d.ts +13 -0
- package/api/resources/automations/types/AutomationSendStep.js +5 -0
- package/api/resources/automations/types/AutomationStep.d.ts +7 -0
- package/api/resources/automations/types/AutomationStep.js +5 -0
- package/api/resources/automations/types/AutomationStepAction.d.ts +12 -0
- package/api/resources/automations/types/AutomationStepAction.js +14 -0
- package/api/resources/automations/types/AutomationStepOption.d.ts +5 -0
- package/api/resources/automations/types/AutomationStepOption.js +5 -0
- package/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +10 -0
- package/api/resources/automations/types/AutomationUpdateProfileStep.js +5 -0
- package/api/resources/automations/types/AutomationV2SendStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationV2SendStep.js +5 -0
- package/api/resources/automations/types/MergeAlgorithm.d.ts +10 -0
- package/api/resources/automations/types/MergeAlgorithm.js +12 -0
- package/api/resources/automations/types/Profile.d.ts +4 -0
- package/api/resources/automations/types/Profile.js +5 -0
- package/api/resources/automations/types/index.d.ts +18 -0
- package/api/resources/automations/types/index.js +34 -0
- package/api/resources/brands/client/Client.d.ts +44 -0
- package/api/resources/brands/client/Client.js +264 -0
- package/api/resources/brands/client/index.d.ts +1 -0
- package/api/resources/brands/client/index.js +17 -0
- package/api/resources/brands/client/requests/ListBrandsRequest.d.ts +9 -0
- package/api/resources/brands/client/requests/ListBrandsRequest.js +5 -0
- package/api/resources/brands/client/requests/index.d.ts +1 -0
- package/api/resources/brands/index.d.ts +2 -0
- package/api/resources/brands/index.js +18 -0
- package/api/resources/brands/types/Brand.d.ts +20 -0
- package/api/resources/brands/types/Brand.js +5 -0
- package/api/resources/brands/types/BrandColors.d.ts +8 -0
- package/api/resources/brands/types/BrandColors.js +5 -0
- package/api/resources/brands/types/BrandGetAllResponse.d.ts +8 -0
- package/api/resources/brands/types/BrandGetAllResponse.js +5 -0
- package/api/resources/brands/types/BrandParameters.d.ts +11 -0
- package/api/resources/brands/types/BrandParameters.js +5 -0
- package/api/resources/brands/types/BrandPutParameters.d.ts +11 -0
- package/api/resources/brands/types/BrandPutParameters.js +5 -0
- package/api/resources/brands/types/BrandSettings.d.ts +8 -0
- package/api/resources/brands/types/BrandSettings.js +5 -0
- package/api/resources/brands/types/BrandSnippet.d.ts +8 -0
- package/api/resources/brands/types/BrandSnippet.js +5 -0
- package/api/resources/brands/types/BrandSnippets.d.ts +7 -0
- package/api/resources/brands/types/BrandSnippets.js +5 -0
- package/api/resources/brands/types/BrandsResponse.d.ts +8 -0
- package/api/resources/brands/types/BrandsResponse.js +5 -0
- package/api/resources/brands/types/index.d.ts +9 -0
- package/api/resources/brands/types/index.js +25 -0
- package/api/resources/bulk/client/Client.d.ts +48 -0
- package/api/resources/bulk/client/Client.js +317 -0
- package/api/resources/bulk/client/index.d.ts +1 -0
- package/api/resources/bulk/index.d.ts +2 -0
- package/api/resources/bulk/index.js +18 -0
- package/api/resources/bulk/types/BulkCreateJobParams.d.ts +7 -0
- package/api/resources/bulk/types/BulkCreateJobParams.js +5 -0
- package/api/resources/bulk/types/BulkCreateJobResponse.d.ts +6 -0
- package/api/resources/bulk/types/BulkCreateJobResponse.js +5 -0
- package/api/resources/bulk/types/BulkGetJobParams.d.ts +6 -0
- package/api/resources/bulk/types/BulkGetJobParams.js +5 -0
- package/api/resources/bulk/types/BulkGetJobResponse.d.ts +7 -0
- package/api/resources/bulk/types/BulkGetJobResponse.js +5 -0
- package/api/resources/bulk/types/BulkGetJobUsersParams.d.ts +7 -0
- package/api/resources/bulk/types/BulkGetJobUsersParams.js +5 -0
- package/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +8 -0
- package/api/resources/bulk/types/BulkGetJobUsersResponse.js +5 -0
- package/api/resources/bulk/types/BulkIngestError.d.ts +7 -0
- package/api/resources/bulk/types/BulkIngestError.js +5 -0
- package/api/resources/bulk/types/BulkIngestUsersParams.d.ts +8 -0
- package/api/resources/bulk/types/BulkIngestUsersParams.js +5 -0
- package/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +8 -0
- package/api/resources/bulk/types/BulkIngestUsersResponse.js +5 -0
- package/api/resources/bulk/types/BulkJobStatus.d.ts +10 -0
- package/api/resources/bulk/types/BulkJobStatus.js +12 -0
- package/api/resources/bulk/types/BulkJobUserStatus.d.ts +9 -0
- package/api/resources/bulk/types/BulkJobUserStatus.js +11 -0
- package/api/resources/bulk/types/BulkMessageUserResponse.d.ts +8 -0
- package/api/resources/bulk/types/BulkMessageUserResponse.js +5 -0
- package/api/resources/bulk/types/BulkRunJobParams.d.ts +6 -0
- package/api/resources/bulk/types/BulkRunJobParams.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessage.d.ts +7 -0
- package/api/resources/bulk/types/InboundBulkMessage.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV1.d.ts +13 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV1.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV2.d.ts +4 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV2.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessageUser.d.ts +11 -0
- package/api/resources/bulk/types/InboundBulkMessageUser.js +5 -0
- package/api/resources/bulk/types/JobDetails.d.ts +11 -0
- package/api/resources/bulk/types/JobDetails.js +5 -0
- package/api/resources/bulk/types/index.d.ts +18 -0
- package/api/resources/bulk/types/index.js +34 -0
- package/api/resources/commons/errors/AlreadyExistsError.d.ts +8 -0
- package/api/resources/commons/errors/AlreadyExistsError.js +41 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +8 -0
- package/api/resources/commons/errors/BadRequestError.js +41 -0
- package/api/resources/commons/errors/ConflictError.d.ts +8 -0
- package/api/resources/commons/errors/ConflictError.js +41 -0
- package/api/resources/commons/errors/MessageNotFoundError.d.ts +8 -0
- package/api/resources/commons/errors/MessageNotFoundError.js +41 -0
- package/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/api/resources/commons/errors/NotFoundError.js +41 -0
- package/api/resources/commons/errors/PaymentRequiredError.d.ts +8 -0
- package/api/resources/commons/errors/PaymentRequiredError.js +41 -0
- package/api/resources/commons/errors/index.d.ts +6 -0
- package/api/resources/commons/errors/index.js +22 -0
- package/api/resources/commons/index.d.ts +2 -0
- package/api/resources/commons/index.js +18 -0
- package/api/resources/commons/types/AlreadyExists.d.ts +7 -0
- package/api/resources/commons/types/AlreadyExists.js +5 -0
- package/api/resources/commons/types/BadRequest.d.ts +7 -0
- package/api/resources/commons/types/BadRequest.js +5 -0
- package/api/resources/commons/types/BaseError.d.ts +7 -0
- package/api/resources/commons/types/BaseError.js +5 -0
- package/api/resources/commons/types/ChannelClassification.d.ts +10 -0
- package/api/resources/commons/types/ChannelClassification.js +12 -0
- package/api/resources/commons/types/ChannelPreference.d.ts +7 -0
- package/api/resources/commons/types/ChannelPreference.js +5 -0
- package/api/resources/commons/types/Conflict.d.ts +7 -0
- package/api/resources/commons/types/Conflict.js +5 -0
- package/api/resources/commons/types/Email.d.ts +7 -0
- package/api/resources/commons/types/Email.js +5 -0
- package/api/resources/commons/types/MessageNotFound.d.ts +7 -0
- package/api/resources/commons/types/MessageNotFound.js +5 -0
- package/api/resources/commons/types/NotFound.d.ts +7 -0
- package/api/resources/commons/types/NotFound.js +5 -0
- package/api/resources/commons/types/NotificationPreferenceDetails.d.ts +9 -0
- package/api/resources/commons/types/NotificationPreferenceDetails.js +5 -0
- package/api/resources/commons/types/NotificationPreferences.d.ts +5 -0
- package/api/resources/commons/types/NotificationPreferences.js +5 -0
- package/api/resources/commons/types/Paging.d.ts +7 -0
- package/api/resources/commons/types/Paging.js +5 -0
- package/api/resources/commons/types/PaymentRequired.d.ts +7 -0
- package/api/resources/commons/types/PaymentRequired.js +5 -0
- package/api/resources/commons/types/PreferenceStatus.d.ts +9 -0
- package/api/resources/commons/types/PreferenceStatus.js +11 -0
- package/api/resources/commons/types/RecipientPreferences.d.ts +8 -0
- package/api/resources/commons/types/RecipientPreferences.js +5 -0
- package/api/resources/commons/types/Rule.d.ts +7 -0
- package/api/resources/commons/types/Rule.js +5 -0
- package/api/resources/commons/types/index.d.ts +16 -0
- package/api/resources/commons/types/index.js +32 -0
- package/api/resources/index.d.ts +39 -0
- package/api/resources/index.js +68 -0
- package/api/resources/lists/client/Client.d.ts +63 -0
- package/api/resources/lists/client/Client.js +476 -0
- package/api/resources/lists/client/index.d.ts +1 -0
- package/api/resources/lists/client/index.js +17 -0
- package/api/resources/lists/client/requests/GetAllListsRequest.d.ts +14 -0
- package/api/resources/lists/client/requests/GetAllListsRequest.js +5 -0
- package/api/resources/lists/client/requests/GetListRequest.d.ts +14 -0
- package/api/resources/lists/client/requests/GetListRequest.js +5 -0
- package/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +9 -0
- package/api/resources/lists/client/requests/GetSubscriptionForListRequest.js +5 -0
- package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +9 -0
- package/api/resources/lists/client/requests/SubscribeUserToListRequest.js +5 -0
- package/api/resources/lists/client/requests/index.d.ts +4 -0
- package/api/resources/lists/index.d.ts +2 -0
- package/api/resources/lists/index.js +18 -0
- package/api/resources/lists/types/List.d.ts +9 -0
- package/api/resources/lists/types/List.js +5 -0
- package/api/resources/lists/types/ListFindByRecipientIdParams.d.ts +6 -0
- package/api/resources/lists/types/ListFindByRecipientIdParams.js +5 -0
- package/api/resources/lists/types/ListFindByRecipientIdResponse.d.ts +8 -0
- package/api/resources/lists/types/ListFindByRecipientIdResponse.js +5 -0
- package/api/resources/lists/types/ListGetAllParams.d.ts +7 -0
- package/api/resources/lists/types/ListGetAllParams.js +5 -0
- package/api/resources/lists/types/ListGetAllResponse.d.ts +8 -0
- package/api/resources/lists/types/ListGetAllResponse.js +5 -0
- package/api/resources/lists/types/ListGetSubscriptionsParams.d.ts +6 -0
- package/api/resources/lists/types/ListGetSubscriptionsParams.js +5 -0
- package/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +8 -0
- package/api/resources/lists/types/ListGetSubscriptionsResponse.js +5 -0
- package/api/resources/lists/types/ListPutParams.d.ts +8 -0
- package/api/resources/lists/types/ListPutParams.js +5 -0
- package/api/resources/lists/types/ListSubscriptionRecipient.d.ts +9 -0
- package/api/resources/lists/types/ListSubscriptionRecipient.js +5 -0
- package/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +8 -0
- package/api/resources/lists/types/PutSubscriptionsRecipient.js +5 -0
- package/api/resources/lists/types/RecipientSubscriptionsResponse.d.ts +8 -0
- package/api/resources/lists/types/RecipientSubscriptionsResponse.js +5 -0
- package/api/resources/lists/types/index.d.ts +11 -0
- package/api/resources/lists/types/index.js +27 -0
- package/api/resources/messages/client/Client.d.ts +51 -0
- package/api/resources/messages/client/Client.js +391 -0
- package/api/resources/messages/client/index.d.ts +1 -0
- package/api/resources/messages/client/index.js +17 -0
- package/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +9 -0
- package/api/resources/messages/client/requests/GetMessageHistoryRequest.js +5 -0
- package/api/resources/messages/client/requests/ListMessagesRequest.d.ts +49 -0
- package/api/resources/messages/client/requests/ListMessagesRequest.js +5 -0
- package/api/resources/messages/client/requests/index.d.ts +2 -0
- package/api/resources/messages/index.d.ts +2 -0
- package/api/resources/messages/index.js +18 -0
- package/api/resources/messages/types/ListMessagesResponse.d.ts +10 -0
- package/api/resources/messages/types/ListMessagesResponse.js +5 -0
- package/api/resources/messages/types/MessageDetails.d.ts +30 -0
- package/api/resources/messages/types/MessageDetails.js +5 -0
- package/api/resources/messages/types/MessageHistoryResponse.d.ts +7 -0
- package/api/resources/messages/types/MessageHistoryResponse.js +5 -0
- package/api/resources/messages/types/MessageStatus.d.ts +42 -0
- package/api/resources/messages/types/MessageStatus.js +17 -0
- package/api/resources/messages/types/Reason.d.ts +30 -0
- package/api/resources/messages/types/Reason.js +14 -0
- package/api/resources/messages/types/RenderOutput.d.ts +12 -0
- package/api/resources/messages/types/RenderOutput.js +5 -0
- package/api/resources/messages/types/RenderOutputResponse.d.ts +8 -0
- package/api/resources/messages/types/RenderOutputResponse.js +5 -0
- package/api/resources/messages/types/RenderedMessageBlock.d.ts +9 -0
- package/api/resources/messages/types/RenderedMessageBlock.js +5 -0
- package/api/resources/messages/types/RenderedMessageContent.d.ts +18 -0
- package/api/resources/messages/types/RenderedMessageContent.js +5 -0
- package/api/resources/messages/types/index.d.ts +9 -0
- package/api/resources/messages/types/index.js +25 -0
- package/api/resources/profiles/client/Client.d.ts +64 -0
- package/api/resources/profiles/client/Client.js +428 -0
- package/api/resources/profiles/client/index.d.ts +1 -0
- package/api/resources/profiles/client/index.js +17 -0
- package/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +9 -0
- package/api/resources/profiles/client/requests/GetListSubscriptionsRequest.js +5 -0
- package/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +6 -0
- package/api/resources/profiles/client/requests/MergeProfileRequest.js +5 -0
- package/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +6 -0
- package/api/resources/profiles/client/requests/ReplaceProfileRequest.js +5 -0
- package/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/api/resources/profiles/index.d.ts +2 -0
- package/api/resources/profiles/index.js +18 -0
- package/api/resources/profiles/types/Address.d.ts +11 -0
- package/api/resources/profiles/types/Address.js +5 -0
- package/api/resources/profiles/types/AirshipProfile.d.ts +8 -0
- package/api/resources/profiles/types/AirshipProfile.js +5 -0
- package/api/resources/profiles/types/AirshipProfileAudience.d.ts +6 -0
- package/api/resources/profiles/types/AirshipProfileAudience.js +5 -0
- package/api/resources/profiles/types/DeleteListSubscriptionResponse.d.ts +6 -0
- package/api/resources/profiles/types/DeleteListSubscriptionResponse.js +5 -0
- package/api/resources/profiles/types/DeviceType.d.ts +4 -0
- package/api/resources/profiles/types/DeviceType.js +5 -0
- package/api/resources/profiles/types/Discord.d.ts +5 -0
- package/api/resources/profiles/types/Discord.js +5 -0
- package/api/resources/profiles/types/Expo.d.ts +5 -0
- package/api/resources/profiles/types/Expo.js +5 -0
- package/api/resources/profiles/types/Intercom.d.ts +8 -0
- package/api/resources/profiles/types/Intercom.js +5 -0
- package/api/resources/profiles/types/IntercomeRecipient.d.ts +6 -0
- package/api/resources/profiles/types/IntercomeRecipient.js +5 -0
- package/api/resources/profiles/types/MergeProfileResponse.d.ts +6 -0
- package/api/resources/profiles/types/MergeProfileResponse.js +5 -0
- package/api/resources/profiles/types/MsTeams.d.ts +5 -0
- package/api/resources/profiles/types/MsTeams.js +5 -0
- package/api/resources/profiles/types/MultipleTokens.d.ts +7 -0
- package/api/resources/profiles/types/MultipleTokens.js +5 -0
- package/api/resources/profiles/types/ProfileGetParameters.d.ts +6 -0
- package/api/resources/profiles/types/ProfileGetParameters.js +5 -0
- package/api/resources/profiles/types/ProfileGetResponse.d.ts +8 -0
- package/api/resources/profiles/types/ProfileGetResponse.js +5 -0
- package/api/resources/profiles/types/ReplaceProfileResponse.d.ts +6 -0
- package/api/resources/profiles/types/ReplaceProfileResponse.js +5 -0
- package/api/resources/profiles/types/SendDirectMessage.d.ts +6 -0
- package/api/resources/profiles/types/SendDirectMessage.js +5 -0
- package/api/resources/profiles/types/SendToChannel.d.ts +6 -0
- package/api/resources/profiles/types/SendToChannel.js +5 -0
- package/api/resources/profiles/types/SendToMsTeamsChannel.d.ts +8 -0
- package/api/resources/profiles/types/SendToMsTeamsChannel.js +5 -0
- package/api/resources/profiles/types/SendToMsTeamsUser.d.ts +8 -0
- package/api/resources/profiles/types/SendToMsTeamsUser.js +5 -0
- package/api/resources/profiles/types/SnoozeRule.d.ts +9 -0
- package/api/resources/profiles/types/SnoozeRule.js +5 -0
- package/api/resources/profiles/types/SnoozeRuleType.d.ts +7 -0
- package/api/resources/profiles/types/SnoozeRuleType.js +9 -0
- package/api/resources/profiles/types/SubscribeToListsRequest.d.ts +8 -0
- package/api/resources/profiles/types/SubscribeToListsRequest.js +5 -0
- package/api/resources/profiles/types/SubscribeToListsResponse.d.ts +6 -0
- package/api/resources/profiles/types/SubscribeToListsResponse.js +5 -0
- package/api/resources/profiles/types/Token.d.ts +6 -0
- package/api/resources/profiles/types/Token.js +5 -0
- package/api/resources/profiles/types/UserProfile.d.ts +37 -0
- package/api/resources/profiles/types/UserProfile.js +5 -0
- package/api/resources/profiles/types/index.d.ts +25 -0
- package/api/resources/profiles/types/index.js +41 -0
- package/api/resources/send/index.d.ts +1 -0
- package/api/resources/send/index.js +17 -0
- package/api/resources/send/types/Attachment.d.ts +4 -0
- package/api/resources/send/types/Attachment.js +5 -0
- package/api/resources/send/types/AudienceFilter.d.ts +9 -0
- package/api/resources/send/types/AudienceFilter.js +5 -0
- package/api/resources/send/types/AudienceRecipient.d.ts +10 -0
- package/api/resources/send/types/AudienceRecipient.js +5 -0
- package/api/resources/send/types/BaseMessage.d.ts +37 -0
- package/api/resources/send/types/BaseMessage.js +5 -0
- package/api/resources/send/types/BaseSocialPresence.d.ts +6 -0
- package/api/resources/send/types/BaseSocialPresence.js +5 -0
- package/api/resources/send/types/BrandSettingsEmail.d.ts +10 -0
- package/api/resources/send/types/BrandSettingsEmail.js +5 -0
- package/api/resources/send/types/BrandSettingsInApp.d.ts +14 -0
- package/api/resources/send/types/BrandSettingsInApp.js +5 -0
- package/api/resources/send/types/BrandSettingsSocialPresence.d.ts +12 -0
- package/api/resources/send/types/BrandSettingsSocialPresence.js +5 -0
- package/api/resources/send/types/BrandTemplate.d.ts +12 -0
- package/api/resources/send/types/BrandTemplate.js +5 -0
- package/api/resources/send/types/BrandTemplateOverride.d.ts +9 -0
- package/api/resources/send/types/BrandTemplateOverride.js +5 -0
- package/api/resources/send/types/Channel.d.ts +36 -0
- package/api/resources/send/types/Channel.js +5 -0
- package/api/resources/send/types/ChannelMetadata.d.ts +7 -0
- package/api/resources/send/types/ChannelMetadata.js +5 -0
- package/api/resources/send/types/ChannelSource.d.ts +9 -0
- package/api/resources/send/types/ChannelSource.js +11 -0
- package/api/resources/send/types/Content.d.ts +5 -0
- package/api/resources/send/types/Content.js +5 -0
- package/api/resources/send/types/ContentMessage.d.ts +17 -0
- package/api/resources/send/types/ContentMessage.js +5 -0
- package/api/resources/send/types/Criteria.d.ts +10 -0
- package/api/resources/send/types/Criteria.js +12 -0
- package/api/resources/send/types/Delay.d.ts +7 -0
- package/api/resources/send/types/Delay.js +5 -0
- package/api/resources/send/types/ElementalActionNode.d.ts +23 -0
- package/api/resources/send/types/ElementalActionNode.js +5 -0
- package/api/resources/send/types/ElementalBaseNode.d.ts +9 -0
- package/api/resources/send/types/ElementalBaseNode.js +5 -0
- package/api/resources/send/types/ElementalChannelNode.d.ts +35 -0
- package/api/resources/send/types/ElementalChannelNode.js +5 -0
- package/api/resources/send/types/ElementalContent.d.ts +10 -0
- package/api/resources/send/types/ElementalContent.js +5 -0
- package/api/resources/send/types/ElementalContentSugar.d.ts +12 -0
- package/api/resources/send/types/ElementalContentSugar.js +5 -0
- package/api/resources/send/types/ElementalDividerNode.d.ts +11 -0
- package/api/resources/send/types/ElementalDividerNode.js +5 -0
- package/api/resources/send/types/ElementalGroupNode.d.ts +11 -0
- package/api/resources/send/types/ElementalGroupNode.js +5 -0
- package/api/resources/send/types/ElementalImageNode.d.ts +19 -0
- package/api/resources/send/types/ElementalImageNode.js +5 -0
- package/api/resources/send/types/ElementalMetaNode.d.ts +14 -0
- package/api/resources/send/types/ElementalMetaNode.js +5 -0
- package/api/resources/send/types/ElementalNode.d.ts +31 -0
- package/api/resources/send/types/ElementalNode.js +5 -0
- package/api/resources/send/types/ElementalQuoteNode.d.ts +18 -0
- package/api/resources/send/types/ElementalQuoteNode.js +5 -0
- package/api/resources/send/types/ElementalTextNode.d.ts +32 -0
- package/api/resources/send/types/ElementalTextNode.js +5 -0
- package/api/resources/send/types/EmailFooter.d.ts +7 -0
- package/api/resources/send/types/EmailFooter.js +5 -0
- package/api/resources/send/types/EmailHead.d.ts +7 -0
- package/api/resources/send/types/EmailHead.js +5 -0
- package/api/resources/send/types/EmailHeader.d.ts +9 -0
- package/api/resources/send/types/EmailHeader.js +5 -0
- package/api/resources/send/types/ExpiresInType.d.ts +4 -0
- package/api/resources/send/types/ExpiresInType.js +5 -0
- package/api/resources/send/types/Expiry.d.ts +10 -0
- package/api/resources/send/types/Expiry.js +5 -0
- package/api/resources/send/types/IActionButtonStyle.d.ts +8 -0
- package/api/resources/send/types/IActionButtonStyle.js +10 -0
- package/api/resources/send/types/IAlignment.d.ts +10 -0
- package/api/resources/send/types/IAlignment.js +12 -0
- package/api/resources/send/types/IPreferences.d.ts +5 -0
- package/api/resources/send/types/IPreferences.js +5 -0
- package/api/resources/send/types/IProfilePreferences.d.ts +9 -0
- package/api/resources/send/types/IProfilePreferences.js +5 -0
- package/api/resources/send/types/Icons.d.ts +7 -0
- package/api/resources/send/types/Icons.js +5 -0
- package/api/resources/send/types/InAppPlacement.d.ts +10 -0
- package/api/resources/send/types/InAppPlacement.js +12 -0
- package/api/resources/send/types/InvalidListPatternRecipient.d.ts +7 -0
- package/api/resources/send/types/InvalidListPatternRecipient.js +5 -0
- package/api/resources/send/types/InvalidListRecipient.d.ts +7 -0
- package/api/resources/send/types/InvalidListRecipient.js +5 -0
- package/api/resources/send/types/InvalidUserRecipient.d.ts +7 -0
- package/api/resources/send/types/InvalidUserRecipient.js +5 -0
- package/api/resources/send/types/ListFilter.d.ts +9 -0
- package/api/resources/send/types/ListFilter.js +5 -0
- package/api/resources/send/types/ListPatternRecipient.d.ts +8 -0
- package/api/resources/send/types/ListPatternRecipient.js +5 -0
- package/api/resources/send/types/ListPatternRecipientType.d.ts +5 -0
- package/api/resources/send/types/ListPatternRecipientType.js +5 -0
- package/api/resources/send/types/ListRecipient.d.ts +9 -0
- package/api/resources/send/types/ListRecipient.js +5 -0
- package/api/resources/send/types/ListRecipientType.d.ts +5 -0
- package/api/resources/send/types/ListRecipientType.js +5 -0
- package/api/resources/send/types/Locale.d.ts +6 -0
- package/api/resources/send/types/Locale.js +5 -0
- package/api/resources/send/types/Locales.d.ts +5 -0
- package/api/resources/send/types/Locales.js +5 -0
- package/api/resources/send/types/Logo.d.ts +7 -0
- package/api/resources/send/types/Logo.js +5 -0
- package/api/resources/send/types/Message.d.ts +11 -0
- package/api/resources/send/types/Message.js +5 -0
- package/api/resources/send/types/MessageChannelEmailOverride.d.ts +16 -0
- package/api/resources/send/types/MessageChannelEmailOverride.js +5 -0
- package/api/resources/send/types/MessageChannels.d.ts +5 -0
- package/api/resources/send/types/MessageChannels.js +5 -0
- package/api/resources/send/types/MessageContext.d.ts +11 -0
- package/api/resources/send/types/MessageContext.js +5 -0
- package/api/resources/send/types/MessageData.d.ts +4 -0
- package/api/resources/send/types/MessageData.js +5 -0
- package/api/resources/send/types/MessageMetadata.d.ts +14 -0
- package/api/resources/send/types/MessageMetadata.js +5 -0
- package/api/resources/send/types/MessageProviders.d.ts +5 -0
- package/api/resources/send/types/MessageProviders.js +5 -0
- package/api/resources/send/types/MessageProvidersType.d.ts +17 -0
- package/api/resources/send/types/MessageProvidersType.js +5 -0
- package/api/resources/send/types/MessageRecipient.d.ts +5 -0
- package/api/resources/send/types/MessageRecipient.js +5 -0
- package/api/resources/send/types/Metadata.d.ts +7 -0
- package/api/resources/send/types/Metadata.js +5 -0
- package/api/resources/send/types/Override.d.ts +8 -0
- package/api/resources/send/types/Override.js +10 -0
- package/api/resources/send/types/Preference.d.ts +10 -0
- package/api/resources/send/types/Preference.js +5 -0
- package/api/resources/send/types/Preferences.d.ts +6 -0
- package/api/resources/send/types/Preferences.js +5 -0
- package/api/resources/send/types/Recipient.d.ts +5 -0
- package/api/resources/send/types/Recipient.js +5 -0
- package/api/resources/send/types/Routing.d.ts +20 -0
- package/api/resources/send/types/Routing.js +5 -0
- package/api/resources/send/types/RoutingChannel.d.ts +5 -0
- package/api/resources/send/types/RoutingChannel.js +5 -0
- package/api/resources/send/types/RoutingMethod.d.ts +8 -0
- package/api/resources/send/types/RoutingMethod.js +10 -0
- package/api/resources/send/types/RoutingStrategyChannel.d.ts +11 -0
- package/api/resources/send/types/RoutingStrategyChannel.js +5 -0
- package/api/resources/send/types/RoutingStrategyProvider.d.ts +10 -0
- package/api/resources/send/types/RoutingStrategyProvider.js +5 -0
- package/api/resources/send/types/RuleType.d.ts +9 -0
- package/api/resources/send/types/RuleType.js +11 -0
- package/api/resources/send/types/TemplateMessage.d.ts +12 -0
- package/api/resources/send/types/TemplateMessage.js +5 -0
- package/api/resources/send/types/TextAlign.d.ts +9 -0
- package/api/resources/send/types/TextAlign.js +11 -0
- package/api/resources/send/types/TextStyle.d.ts +10 -0
- package/api/resources/send/types/TextStyle.js +12 -0
- package/api/resources/send/types/Timeout.d.ts +11 -0
- package/api/resources/send/types/Timeout.js +5 -0
- package/api/resources/send/types/Timeouts.d.ts +7 -0
- package/api/resources/send/types/Timeouts.js +5 -0
- package/api/resources/send/types/TrackingOverride.d.ts +6 -0
- package/api/resources/send/types/TrackingOverride.js +5 -0
- package/api/resources/send/types/UserRecipient.d.ts +23 -0
- package/api/resources/send/types/UserRecipient.js +5 -0
- package/api/resources/send/types/UserRecipientType.d.ts +5 -0
- package/api/resources/send/types/UserRecipientType.js +5 -0
- package/api/resources/send/types/Utm.d.ts +10 -0
- package/api/resources/send/types/Utm.js +5 -0
- package/api/resources/send/types/WidgetBackground.d.ts +7 -0
- package/api/resources/send/types/WidgetBackground.js +5 -0
- package/api/resources/send/types/index.d.ts +81 -0
- package/api/resources/send/types/index.js +97 -0
- package/api/resources/templates/client/Client.d.ts +25 -0
- package/api/resources/templates/client/Client.js +112 -0
- package/api/resources/templates/client/index.d.ts +1 -0
- package/api/resources/templates/client/index.js +17 -0
- package/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +9 -0
- package/api/resources/templates/client/requests/ListTemplatesRequest.js +5 -0
- package/api/resources/templates/client/requests/index.d.ts +1 -0
- package/api/resources/templates/index.d.ts +2 -0
- package/api/resources/templates/index.js +18 -0
- package/api/resources/templates/types/ChannelIdentifier.d.ts +4 -0
- package/api/resources/templates/types/ChannelIdentifier.js +5 -0
- package/api/resources/templates/types/ListTemplatesResponse.d.ts +9 -0
- package/api/resources/templates/types/ListTemplatesResponse.js +5 -0
- package/api/resources/templates/types/NotificationTemplates.d.ts +18 -0
- package/api/resources/templates/types/NotificationTemplates.js +5 -0
- package/api/resources/templates/types/RoutingStrategy.d.ts +10 -0
- package/api/resources/templates/types/RoutingStrategy.js +5 -0
- package/api/resources/templates/types/RoutingStrategyMethod.d.ts +8 -0
- package/api/resources/templates/types/RoutingStrategyMethod.js +10 -0
- package/api/resources/templates/types/Tag.d.ts +7 -0
- package/api/resources/templates/types/Tag.js +5 -0
- package/api/resources/templates/types/TagData.d.ts +9 -0
- package/api/resources/templates/types/TagData.js +5 -0
- package/api/resources/templates/types/index.d.ts +7 -0
- package/api/resources/templates/types/index.js +23 -0
- package/api/resources/tenants/client/Client.d.ts +25 -0
- package/api/resources/tenants/client/Client.js +113 -0
- package/api/resources/tenants/client/index.d.ts +1 -0
- package/api/resources/tenants/index.d.ts +2 -0
- package/api/resources/tenants/index.js +18 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantRequest.d.ts +18 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantRequest.js +5 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantResponse.d.ts +20 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantResponse.js +5 -0
- package/api/resources/tenants/types/DefaultPreferences.d.ts +7 -0
- package/api/resources/tenants/types/DefaultPreferences.js +5 -0
- package/api/resources/tenants/types/SubscriptionTopic.d.ts +9 -0
- package/api/resources/tenants/types/SubscriptionTopic.js +5 -0
- package/api/resources/tenants/types/SubscriptionTopicStatus.d.ts +9 -0
- package/api/resources/tenants/types/SubscriptionTopicStatus.js +11 -0
- package/api/resources/tenants/types/TemplateProperty.d.ts +4 -0
- package/api/resources/tenants/types/TemplateProperty.js +5 -0
- package/api/resources/tenants/types/index.d.ts +6 -0
- package/api/resources/tenants/types/index.js +22 -0
- package/api/resources/tokenManagement/client/Client.d.ts +46 -0
- package/api/resources/tokenManagement/client/Client.js +311 -0
- package/api/resources/tokenManagement/client/index.d.ts +1 -0
- package/api/resources/tokenManagement/index.d.ts +2 -0
- package/api/resources/tokenManagement/index.js +18 -0
- package/api/resources/tokenManagement/types/DeleteUserTokenOpts.d.ts +7 -0
- package/api/resources/tokenManagement/types/DeleteUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/Device.d.ts +17 -0
- package/api/resources/tokenManagement/types/Device.js +5 -0
- package/api/resources/tokenManagement/types/ExpiryDate.d.ts +4 -0
- package/api/resources/tokenManagement/types/ExpiryDate.js +5 -0
- package/api/resources/tokenManagement/types/GetAllTokensResponse.d.ts +8 -0
- package/api/resources/tokenManagement/types/GetAllTokensResponse.js +5 -0
- package/api/resources/tokenManagement/types/GetUserTokenOpts.d.ts +7 -0
- package/api/resources/tokenManagement/types/GetUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/GetUserTokenResponse.d.ts +9 -0
- package/api/resources/tokenManagement/types/GetUserTokenResponse.js +5 -0
- package/api/resources/tokenManagement/types/GetUserTokensOpts.d.ts +6 -0
- package/api/resources/tokenManagement/types/GetUserTokensOpts.js +5 -0
- package/api/resources/tokenManagement/types/PatchOp.d.ts +12 -0
- package/api/resources/tokenManagement/types/PatchOp.js +14 -0
- package/api/resources/tokenManagement/types/PatchOperation.d.ts +11 -0
- package/api/resources/tokenManagement/types/PatchOperation.js +5 -0
- package/api/resources/tokenManagement/types/PatchUserTokenOpts.d.ts +7 -0
- package/api/resources/tokenManagement/types/PatchUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/ProviderKey.d.ts +10 -0
- package/api/resources/tokenManagement/types/ProviderKey.js +12 -0
- package/api/resources/tokenManagement/types/PutUserTokenOpts.d.ts +8 -0
- package/api/resources/tokenManagement/types/PutUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/PutUserTokensOpts.d.ts +8 -0
- package/api/resources/tokenManagement/types/PutUserTokensOpts.js +5 -0
- package/api/resources/tokenManagement/types/TokenStatus.d.ts +10 -0
- package/api/resources/tokenManagement/types/TokenStatus.js +12 -0
- package/api/resources/tokenManagement/types/Tracking.d.ts +13 -0
- package/api/resources/tokenManagement/types/Tracking.js +5 -0
- package/api/resources/tokenManagement/types/UserToken.d.ts +17 -0
- package/api/resources/tokenManagement/types/UserToken.js +5 -0
- package/api/resources/tokenManagement/types/index.d.ts +16 -0
- package/api/resources/tokenManagement/types/index.js +32 -0
- package/api/resources/translations/client/Client.d.ts +30 -0
- package/api/resources/translations/client/Client.js +163 -0
- package/api/resources/translations/client/index.d.ts +1 -0
- package/api/resources/translations/client/index.js +2 -0
- package/api/resources/translations/index.d.ts +1 -0
- package/api/resources/translations/index.js +17 -0
- package/api/resources/userPreferences/client/Client.d.ts +36 -0
- package/api/resources/userPreferences/client/Client.js +212 -0
- package/api/resources/userPreferences/client/index.d.ts +1 -0
- package/api/resources/userPreferences/client/index.js +2 -0
- package/api/resources/userPreferences/index.d.ts +2 -0
- package/api/resources/userPreferences/index.js +18 -0
- package/api/resources/userPreferences/types/TopicPreference.d.ts +13 -0
- package/api/resources/userPreferences/types/TopicPreference.js +5 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.d.ts +11 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.js +5 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.d.ts +6 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.js +5 -0
- package/api/resources/userPreferences/types/UserPreferences.d.ts +9 -0
- package/api/resources/userPreferences/types/UserPreferences.js +5 -0
- package/api/resources/userPreferences/types/index.d.ts +4 -0
- package/api/resources/userPreferences/types/index.js +20 -0
- package/api/types/SendMessageResponse.d.ts +14 -0
- package/api/types/SendMessageResponse.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +17 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +26 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +15 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +9 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +38 -0
- package/core/fetcher/Fetcher.js +129 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/index.d.ts +4 -0
- package/core/fetcher/index.js +7 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +18 -0
- package/dist/Client.d.ts +71 -0
- package/dist/Client.js +181 -0
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/SendMessageRequest.d.ts +8 -0
- package/dist/api/client/requests/SendMessageRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/audiences/client/Client.d.ts +43 -0
- package/dist/api/resources/audiences/client/Client.js +304 -0
- package/dist/api/resources/audiences/client/index.d.ts +1 -0
- package/dist/api/resources/audiences/client/index.js +17 -0
- package/dist/api/resources/audiences/client/requests/ListAudienceMembersRequest.d.ts +10 -0
- package/dist/api/resources/audiences/client/requests/ListAudienceMembersRequest.js +5 -0
- package/dist/api/resources/audiences/client/requests/ListAudiencesRequest.d.ts +10 -0
- package/dist/api/resources/audiences/client/requests/ListAudiencesRequest.js +5 -0
- package/dist/api/resources/audiences/client/requests/index.d.ts +2 -0
- package/dist/api/resources/audiences/client/requests/index.js +2 -0
- package/dist/api/resources/audiences/index.d.ts +2 -0
- package/dist/api/resources/audiences/index.js +18 -0
- package/dist/api/resources/audiences/types/Audience.d.ts +15 -0
- package/dist/api/resources/audiences/types/Audience.js +5 -0
- package/dist/api/resources/audiences/types/AudienceListResponse.d.ts +8 -0
- package/dist/api/resources/audiences/types/AudienceListResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudienceMember.d.ts +10 -0
- package/dist/api/resources/audiences/types/AudienceMember.js +5 -0
- package/dist/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +7 -0
- package/dist/api/resources/audiences/types/AudienceMemberGetResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudienceMemberListResponse.d.ts +8 -0
- package/dist/api/resources/audiences/types/AudienceMemberListResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudiencePutResponse.d.ts +7 -0
- package/dist/api/resources/audiences/types/AudiencePutResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudienceRequest.d.ts +13 -0
- package/dist/api/resources/audiences/types/AudienceRequest.js +5 -0
- package/dist/api/resources/audiences/types/BaseFilterConfig.d.ts +11 -0
- package/dist/api/resources/audiences/types/BaseFilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/ComparisonOperator.d.ts +19 -0
- package/dist/api/resources/audiences/types/ComparisonOperator.js +21 -0
- package/dist/api/resources/audiences/types/Filter.d.ts +5 -0
- package/dist/api/resources/audiences/types/Filter.js +5 -0
- package/dist/api/resources/audiences/types/FilterConfig.d.ts +5 -0
- package/dist/api/resources/audiences/types/FilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/LogicalOperator.d.ts +8 -0
- package/dist/api/resources/audiences/types/LogicalOperator.js +10 -0
- package/dist/api/resources/audiences/types/NestedFilterConfig.d.ts +10 -0
- package/dist/api/resources/audiences/types/NestedFilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/Operator.d.ts +5 -0
- package/dist/api/resources/audiences/types/Operator.js +5 -0
- package/dist/api/resources/audiences/types/SingleFilterConfig.d.ts +13 -0
- package/dist/api/resources/audiences/types/SingleFilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/index.d.ts +15 -0
- package/dist/api/resources/audiences/types/index.js +31 -0
- package/dist/api/resources/auditEvents/client/Client.d.ts +29 -0
- package/dist/api/resources/auditEvents/client/Client.js +155 -0
- package/dist/api/resources/auditEvents/client/index.d.ts +1 -0
- package/dist/api/resources/auditEvents/client/index.js +17 -0
- package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +10 -0
- package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.js +5 -0
- package/dist/api/resources/auditEvents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/auditEvents/client/requests/index.js +2 -0
- package/dist/api/resources/auditEvents/index.d.ts +2 -0
- package/dist/api/resources/auditEvents/index.js +18 -0
- package/dist/api/resources/auditEvents/types/Actor.d.ts +7 -0
- package/dist/api/resources/auditEvents/types/Actor.js +5 -0
- package/dist/api/resources/auditEvents/types/AuditEvent.d.ts +12 -0
- package/dist/api/resources/auditEvents/types/AuditEvent.js +5 -0
- package/dist/api/resources/auditEvents/types/GetAuditEventParams.d.ts +6 -0
- package/dist/api/resources/auditEvents/types/GetAuditEventParams.js +5 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsParams.d.ts +6 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsParams.js +5 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +8 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsResponse.js +5 -0
- package/dist/api/resources/auditEvents/types/Target.d.ts +7 -0
- package/dist/api/resources/auditEvents/types/Target.js +5 -0
- package/dist/api/resources/auditEvents/types/index.d.ts +6 -0
- package/dist/api/resources/auditEvents/types/index.js +22 -0
- package/dist/api/resources/authTokens/client/Client.d.ts +29 -0
- package/dist/api/resources/authTokens/client/Client.js +111 -0
- package/dist/api/resources/authTokens/client/index.d.ts +1 -0
- package/dist/api/resources/authTokens/client/index.js +2 -0
- package/dist/api/resources/authTokens/index.d.ts +2 -0
- package/dist/api/resources/authTokens/index.js +18 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenParameters.d.ts +7 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenParameters.js +5 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenResponse.d.ts +6 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenResponse.js +5 -0
- package/dist/api/resources/authTokens/types/index.d.ts +2 -0
- package/dist/api/resources/authTokens/types/index.js +18 -0
- package/dist/api/resources/automations/client/Client.d.ts +33 -0
- package/dist/api/resources/automations/client/Client.js +158 -0
- package/dist/api/resources/automations/client/index.d.ts +1 -0
- package/dist/api/resources/automations/client/index.js +2 -0
- package/dist/api/resources/automations/index.d.ts +2 -0
- package/dist/api/resources/automations/index.js +18 -0
- package/dist/api/resources/automations/types/Automation.d.ts +8 -0
- package/dist/api/resources/automations/types/Automation.js +5 -0
- package/dist/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +7 -0
- package/dist/api/resources/automations/types/AutomationAdHocInvokeParams.js +5 -0
- package/dist/api/resources/automations/types/AutomationCancelStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationCancelStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationDelayStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationDelayStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeParams.d.ts +11 -0
- package/dist/api/resources/automations/types/AutomationInvokeParams.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeResponse.d.ts +6 -0
- package/dist/api/resources/automations/types/AutomationInvokeResponse.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationInvokeStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +7 -0
- package/dist/api/resources/automations/types/AutomationInvokeTemplateParams.js +5 -0
- package/dist/api/resources/automations/types/AutomationRunContext.d.ts +11 -0
- package/dist/api/resources/automations/types/AutomationRunContext.js +5 -0
- package/dist/api/resources/automations/types/AutomationSendListStep.d.ts +12 -0
- package/dist/api/resources/automations/types/AutomationSendListStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationSendStep.d.ts +13 -0
- package/dist/api/resources/automations/types/AutomationSendStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationStep.d.ts +7 -0
- package/dist/api/resources/automations/types/AutomationStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationStepAction.d.ts +12 -0
- package/dist/api/resources/automations/types/AutomationStepAction.js +14 -0
- package/dist/api/resources/automations/types/AutomationStepOption.d.ts +5 -0
- package/dist/api/resources/automations/types/AutomationStepOption.js +5 -0
- package/dist/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +10 -0
- package/dist/api/resources/automations/types/AutomationUpdateProfileStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationV2SendStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationV2SendStep.js +5 -0
- package/dist/api/resources/automations/types/MergeAlgorithm.d.ts +10 -0
- package/dist/api/resources/automations/types/MergeAlgorithm.js +12 -0
- package/dist/api/resources/automations/types/Profile.d.ts +4 -0
- package/dist/api/resources/automations/types/Profile.js +5 -0
- package/dist/api/resources/automations/types/index.d.ts +18 -0
- package/dist/api/resources/automations/types/index.js +34 -0
- package/dist/api/resources/brands/client/Client.d.ts +44 -0
- package/dist/api/resources/brands/client/Client.js +264 -0
- package/dist/api/resources/brands/client/index.d.ts +1 -0
- package/dist/api/resources/brands/client/index.js +17 -0
- package/dist/api/resources/brands/client/requests/ListBrandsRequest.d.ts +9 -0
- package/dist/api/resources/brands/client/requests/ListBrandsRequest.js +5 -0
- package/dist/api/resources/brands/client/requests/index.d.ts +1 -0
- package/dist/api/resources/brands/client/requests/index.js +2 -0
- package/dist/api/resources/brands/index.d.ts +2 -0
- package/dist/api/resources/brands/index.js +18 -0
- package/dist/api/resources/brands/types/Brand.d.ts +20 -0
- package/dist/api/resources/brands/types/Brand.js +5 -0
- package/dist/api/resources/brands/types/BrandColors.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandColors.js +5 -0
- package/dist/api/resources/brands/types/BrandGetAllResponse.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandGetAllResponse.js +5 -0
- package/dist/api/resources/brands/types/BrandParameters.d.ts +11 -0
- package/dist/api/resources/brands/types/BrandParameters.js +5 -0
- package/dist/api/resources/brands/types/BrandPutParameters.d.ts +11 -0
- package/dist/api/resources/brands/types/BrandPutParameters.js +5 -0
- package/dist/api/resources/brands/types/BrandSettings.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandSettings.js +5 -0
- package/dist/api/resources/brands/types/BrandSnippet.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandSnippet.js +5 -0
- package/dist/api/resources/brands/types/BrandSnippets.d.ts +7 -0
- package/dist/api/resources/brands/types/BrandSnippets.js +5 -0
- package/dist/api/resources/brands/types/BrandsResponse.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandsResponse.js +5 -0
- package/dist/api/resources/brands/types/index.d.ts +9 -0
- package/dist/api/resources/brands/types/index.js +25 -0
- package/dist/api/resources/bulk/client/Client.d.ts +48 -0
- package/dist/api/resources/bulk/client/Client.js +317 -0
- package/dist/api/resources/bulk/client/index.d.ts +1 -0
- package/dist/api/resources/bulk/client/index.js +2 -0
- package/dist/api/resources/bulk/index.d.ts +2 -0
- package/dist/api/resources/bulk/index.js +18 -0
- package/dist/api/resources/bulk/types/BulkCreateJobParams.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkCreateJobParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkCreateJobResponse.d.ts +6 -0
- package/dist/api/resources/bulk/types/BulkCreateJobResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobParams.d.ts +6 -0
- package/dist/api/resources/bulk/types/BulkGetJobParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobResponse.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkGetJobResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersParams.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkIngestError.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkIngestError.js +5 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersParams.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkJobStatus.d.ts +10 -0
- package/dist/api/resources/bulk/types/BulkJobStatus.js +12 -0
- package/dist/api/resources/bulk/types/BulkJobUserStatus.d.ts +9 -0
- package/dist/api/resources/bulk/types/BulkJobUserStatus.js +11 -0
- package/dist/api/resources/bulk/types/BulkMessageUserResponse.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkMessageUserResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkRunJobParams.d.ts +6 -0
- package/dist/api/resources/bulk/types/BulkRunJobParams.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessage.d.ts +7 -0
- package/dist/api/resources/bulk/types/InboundBulkMessage.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV1.d.ts +13 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV1.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV2.d.ts +4 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV2.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageUser.d.ts +11 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageUser.js +5 -0
- package/dist/api/resources/bulk/types/JobDetails.d.ts +11 -0
- package/dist/api/resources/bulk/types/JobDetails.js +5 -0
- package/dist/api/resources/bulk/types/index.d.ts +18 -0
- package/dist/api/resources/bulk/types/index.js +34 -0
- package/dist/api/resources/commons/errors/AlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/commons/errors/AlreadyExistsError.js +41 -0
- package/dist/api/resources/commons/errors/BadRequestError.d.ts +8 -0
- package/dist/api/resources/commons/errors/BadRequestError.js +41 -0
- package/dist/api/resources/commons/errors/ConflictError.d.ts +8 -0
- package/dist/api/resources/commons/errors/ConflictError.js +41 -0
- package/dist/api/resources/commons/errors/MessageNotFoundError.d.ts +8 -0
- package/dist/api/resources/commons/errors/MessageNotFoundError.js +41 -0
- package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/dist/api/resources/commons/errors/NotFoundError.js +41 -0
- package/dist/api/resources/commons/errors/PaymentRequiredError.d.ts +8 -0
- package/dist/api/resources/commons/errors/PaymentRequiredError.js +41 -0
- package/dist/api/resources/commons/errors/index.d.ts +6 -0
- package/dist/api/resources/commons/errors/index.js +22 -0
- package/dist/api/resources/commons/index.d.ts +2 -0
- package/dist/api/resources/commons/index.js +18 -0
- package/dist/api/resources/commons/types/AlreadyExists.d.ts +7 -0
- package/dist/api/resources/commons/types/AlreadyExists.js +5 -0
- package/dist/api/resources/commons/types/BadRequest.d.ts +7 -0
- package/dist/api/resources/commons/types/BadRequest.js +5 -0
- package/dist/api/resources/commons/types/BaseError.d.ts +7 -0
- package/dist/api/resources/commons/types/BaseError.js +5 -0
- package/dist/api/resources/commons/types/ChannelClassification.d.ts +10 -0
- package/dist/api/resources/commons/types/ChannelClassification.js +12 -0
- package/dist/api/resources/commons/types/ChannelPreference.d.ts +7 -0
- package/dist/api/resources/commons/types/ChannelPreference.js +5 -0
- package/dist/api/resources/commons/types/Conflict.d.ts +7 -0
- package/dist/api/resources/commons/types/Conflict.js +5 -0
- package/dist/api/resources/commons/types/Email.d.ts +7 -0
- package/dist/api/resources/commons/types/Email.js +5 -0
- package/dist/api/resources/commons/types/MessageNotFound.d.ts +7 -0
- package/dist/api/resources/commons/types/MessageNotFound.js +5 -0
- package/dist/api/resources/commons/types/NotFound.d.ts +7 -0
- package/dist/api/resources/commons/types/NotFound.js +5 -0
- package/dist/api/resources/commons/types/NotificationPreferenceDetails.d.ts +9 -0
- package/dist/api/resources/commons/types/NotificationPreferenceDetails.js +5 -0
- package/dist/api/resources/commons/types/NotificationPreferences.d.ts +5 -0
- package/dist/api/resources/commons/types/NotificationPreferences.js +5 -0
- package/dist/api/resources/commons/types/Paging.d.ts +7 -0
- package/dist/api/resources/commons/types/Paging.js +5 -0
- package/dist/api/resources/commons/types/PaymentRequired.d.ts +7 -0
- package/dist/api/resources/commons/types/PaymentRequired.js +5 -0
- package/dist/api/resources/commons/types/PreferenceStatus.d.ts +9 -0
- package/dist/api/resources/commons/types/PreferenceStatus.js +11 -0
- package/dist/api/resources/commons/types/RecipientPreferences.d.ts +8 -0
- package/dist/api/resources/commons/types/RecipientPreferences.js +5 -0
- package/dist/api/resources/commons/types/Rule.d.ts +7 -0
- package/dist/api/resources/commons/types/Rule.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +16 -0
- package/dist/api/resources/commons/types/index.js +32 -0
- package/dist/api/resources/index.d.ts +39 -0
- package/dist/api/resources/index.js +68 -0
- package/dist/api/resources/lists/client/Client.d.ts +63 -0
- package/dist/api/resources/lists/client/Client.js +476 -0
- package/dist/api/resources/lists/client/index.d.ts +1 -0
- package/dist/api/resources/lists/client/index.js +17 -0
- package/dist/api/resources/lists/client/requests/GetAllListsRequest.d.ts +14 -0
- package/dist/api/resources/lists/client/requests/GetAllListsRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/GetListRequest.d.ts +14 -0
- package/dist/api/resources/lists/client/requests/GetListRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +9 -0
- package/dist/api/resources/lists/client/requests/GetSubscriptionForListRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +9 -0
- package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/index.d.ts +4 -0
- package/dist/api/resources/lists/client/requests/index.js +2 -0
- package/dist/api/resources/lists/index.d.ts +2 -0
- package/dist/api/resources/lists/index.js +18 -0
- package/dist/api/resources/lists/types/List.d.ts +9 -0
- package/dist/api/resources/lists/types/List.js +5 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdParams.d.ts +6 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdParams.js +5 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdResponse.js +5 -0
- package/dist/api/resources/lists/types/ListGetAllParams.d.ts +7 -0
- package/dist/api/resources/lists/types/ListGetAllParams.js +5 -0
- package/dist/api/resources/lists/types/ListGetAllResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/ListGetAllResponse.js +5 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsParams.d.ts +6 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsParams.js +5 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsResponse.js +5 -0
- package/dist/api/resources/lists/types/ListPutParams.d.ts +8 -0
- package/dist/api/resources/lists/types/ListPutParams.js +5 -0
- package/dist/api/resources/lists/types/ListSubscriptionRecipient.d.ts +9 -0
- package/dist/api/resources/lists/types/ListSubscriptionRecipient.js +5 -0
- package/dist/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +8 -0
- package/dist/api/resources/lists/types/PutSubscriptionsRecipient.js +5 -0
- package/dist/api/resources/lists/types/RecipientSubscriptionsResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/RecipientSubscriptionsResponse.js +5 -0
- package/dist/api/resources/lists/types/index.d.ts +11 -0
- package/dist/api/resources/lists/types/index.js +27 -0
- package/dist/api/resources/messages/client/Client.d.ts +51 -0
- package/dist/api/resources/messages/client/Client.js +391 -0
- package/dist/api/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/messages/client/index.js +17 -0
- package/dist/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +9 -0
- package/dist/api/resources/messages/client/requests/GetMessageHistoryRequest.js +5 -0
- package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +49 -0
- package/dist/api/resources/messages/client/requests/ListMessagesRequest.js +5 -0
- package/dist/api/resources/messages/client/requests/index.d.ts +2 -0
- package/dist/api/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/messages/index.js +18 -0
- package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +10 -0
- package/dist/api/resources/messages/types/ListMessagesResponse.js +5 -0
- package/dist/api/resources/messages/types/MessageDetails.d.ts +30 -0
- package/dist/api/resources/messages/types/MessageDetails.js +5 -0
- package/dist/api/resources/messages/types/MessageHistoryResponse.d.ts +7 -0
- package/dist/api/resources/messages/types/MessageHistoryResponse.js +5 -0
- package/dist/api/resources/messages/types/MessageStatus.d.ts +42 -0
- package/dist/api/resources/messages/types/MessageStatus.js +17 -0
- package/dist/api/resources/messages/types/Reason.d.ts +30 -0
- package/dist/api/resources/messages/types/Reason.js +14 -0
- package/dist/api/resources/messages/types/RenderOutput.d.ts +12 -0
- package/dist/api/resources/messages/types/RenderOutput.js +5 -0
- package/dist/api/resources/messages/types/RenderOutputResponse.d.ts +8 -0
- package/dist/api/resources/messages/types/RenderOutputResponse.js +5 -0
- package/dist/api/resources/messages/types/RenderedMessageBlock.d.ts +9 -0
- package/dist/api/resources/messages/types/RenderedMessageBlock.js +5 -0
- package/dist/api/resources/messages/types/RenderedMessageContent.d.ts +18 -0
- package/dist/api/resources/messages/types/RenderedMessageContent.js +5 -0
- package/dist/api/resources/messages/types/index.d.ts +9 -0
- package/dist/api/resources/messages/types/index.js +25 -0
- package/dist/api/resources/profiles/client/Client.d.ts +64 -0
- package/dist/api/resources/profiles/client/Client.js +428 -0
- package/dist/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/api/resources/profiles/client/index.js +17 -0
- package/dist/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +9 -0
- package/dist/api/resources/profiles/client/requests/GetListSubscriptionsRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +6 -0
- package/dist/api/resources/profiles/client/requests/MergeProfileRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +6 -0
- package/dist/api/resources/profiles/client/requests/ReplaceProfileRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/dist/api/resources/profiles/client/requests/index.js +2 -0
- package/dist/api/resources/profiles/index.d.ts +2 -0
- package/dist/api/resources/profiles/index.js +18 -0
- package/dist/api/resources/profiles/types/Address.d.ts +11 -0
- package/dist/api/resources/profiles/types/Address.js +5 -0
- package/dist/api/resources/profiles/types/AirshipProfile.d.ts +8 -0
- package/dist/api/resources/profiles/types/AirshipProfile.js +5 -0
- package/dist/api/resources/profiles/types/AirshipProfileAudience.d.ts +6 -0
- package/dist/api/resources/profiles/types/AirshipProfileAudience.js +5 -0
- package/dist/api/resources/profiles/types/DeleteListSubscriptionResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/DeleteListSubscriptionResponse.js +5 -0
- package/dist/api/resources/profiles/types/DeviceType.d.ts +4 -0
- package/dist/api/resources/profiles/types/DeviceType.js +5 -0
- package/dist/api/resources/profiles/types/Discord.d.ts +5 -0
- package/dist/api/resources/profiles/types/Discord.js +5 -0
- package/dist/api/resources/profiles/types/Expo.d.ts +5 -0
- package/dist/api/resources/profiles/types/Expo.js +5 -0
- package/dist/api/resources/profiles/types/Intercom.d.ts +8 -0
- package/dist/api/resources/profiles/types/Intercom.js +5 -0
- package/dist/api/resources/profiles/types/IntercomeRecipient.d.ts +6 -0
- package/dist/api/resources/profiles/types/IntercomeRecipient.js +5 -0
- package/dist/api/resources/profiles/types/MergeProfileResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/MergeProfileResponse.js +5 -0
- package/dist/api/resources/profiles/types/MsTeams.d.ts +5 -0
- package/dist/api/resources/profiles/types/MsTeams.js +5 -0
- package/dist/api/resources/profiles/types/MultipleTokens.d.ts +7 -0
- package/dist/api/resources/profiles/types/MultipleTokens.js +5 -0
- package/dist/api/resources/profiles/types/ProfileGetParameters.d.ts +6 -0
- package/dist/api/resources/profiles/types/ProfileGetParameters.js +5 -0
- package/dist/api/resources/profiles/types/ProfileGetResponse.d.ts +8 -0
- package/dist/api/resources/profiles/types/ProfileGetResponse.js +5 -0
- package/dist/api/resources/profiles/types/ReplaceProfileResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/ReplaceProfileResponse.js +5 -0
- package/dist/api/resources/profiles/types/SendDirectMessage.d.ts +6 -0
- package/dist/api/resources/profiles/types/SendDirectMessage.js +5 -0
- package/dist/api/resources/profiles/types/SendToChannel.d.ts +6 -0
- package/dist/api/resources/profiles/types/SendToChannel.js +5 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsChannel.d.ts +8 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsChannel.js +5 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsUser.d.ts +8 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsUser.js +5 -0
- package/dist/api/resources/profiles/types/SnoozeRule.d.ts +9 -0
- package/dist/api/resources/profiles/types/SnoozeRule.js +5 -0
- package/dist/api/resources/profiles/types/SnoozeRuleType.d.ts +7 -0
- package/dist/api/resources/profiles/types/SnoozeRuleType.js +9 -0
- package/dist/api/resources/profiles/types/SubscribeToListsRequest.d.ts +8 -0
- package/dist/api/resources/profiles/types/SubscribeToListsRequest.js +5 -0
- package/dist/api/resources/profiles/types/SubscribeToListsResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/SubscribeToListsResponse.js +5 -0
- package/dist/api/resources/profiles/types/Token.d.ts +6 -0
- package/dist/api/resources/profiles/types/Token.js +5 -0
- package/dist/api/resources/profiles/types/UserProfile.d.ts +37 -0
- package/dist/api/resources/profiles/types/UserProfile.js +5 -0
- package/dist/api/resources/profiles/types/index.d.ts +25 -0
- package/dist/api/resources/profiles/types/index.js +41 -0
- package/dist/api/resources/send/index.d.ts +1 -0
- package/dist/api/resources/send/index.js +17 -0
- package/dist/api/resources/send/types/Attachment.d.ts +4 -0
- package/dist/api/resources/send/types/Attachment.js +5 -0
- package/dist/api/resources/send/types/AudienceFilter.d.ts +9 -0
- package/dist/api/resources/send/types/AudienceFilter.js +5 -0
- package/dist/api/resources/send/types/AudienceRecipient.d.ts +10 -0
- package/dist/api/resources/send/types/AudienceRecipient.js +5 -0
- package/dist/api/resources/send/types/BaseMessage.d.ts +37 -0
- package/dist/api/resources/send/types/BaseMessage.js +5 -0
- package/dist/api/resources/send/types/BaseSocialPresence.d.ts +6 -0
- package/dist/api/resources/send/types/BaseSocialPresence.js +5 -0
- package/dist/api/resources/send/types/BrandSettingsEmail.d.ts +10 -0
- package/dist/api/resources/send/types/BrandSettingsEmail.js +5 -0
- package/dist/api/resources/send/types/BrandSettingsInApp.d.ts +14 -0
- package/dist/api/resources/send/types/BrandSettingsInApp.js +5 -0
- package/dist/api/resources/send/types/BrandSettingsSocialPresence.d.ts +12 -0
- package/dist/api/resources/send/types/BrandSettingsSocialPresence.js +5 -0
- package/dist/api/resources/send/types/BrandTemplate.d.ts +12 -0
- package/dist/api/resources/send/types/BrandTemplate.js +5 -0
- package/dist/api/resources/send/types/BrandTemplateOverride.d.ts +9 -0
- package/dist/api/resources/send/types/BrandTemplateOverride.js +5 -0
- package/dist/api/resources/send/types/Channel.d.ts +36 -0
- package/dist/api/resources/send/types/Channel.js +5 -0
- package/dist/api/resources/send/types/ChannelMetadata.d.ts +7 -0
- package/dist/api/resources/send/types/ChannelMetadata.js +5 -0
- package/dist/api/resources/send/types/ChannelSource.d.ts +9 -0
- package/dist/api/resources/send/types/ChannelSource.js +11 -0
- package/dist/api/resources/send/types/Content.d.ts +5 -0
- package/dist/api/resources/send/types/Content.js +5 -0
- package/dist/api/resources/send/types/ContentMessage.d.ts +17 -0
- package/dist/api/resources/send/types/ContentMessage.js +5 -0
- package/dist/api/resources/send/types/Criteria.d.ts +10 -0
- package/dist/api/resources/send/types/Criteria.js +12 -0
- package/dist/api/resources/send/types/Delay.d.ts +7 -0
- package/dist/api/resources/send/types/Delay.js +5 -0
- package/dist/api/resources/send/types/ElementalActionNode.d.ts +23 -0
- package/dist/api/resources/send/types/ElementalActionNode.js +5 -0
- package/dist/api/resources/send/types/ElementalBaseNode.d.ts +9 -0
- package/dist/api/resources/send/types/ElementalBaseNode.js +5 -0
- package/dist/api/resources/send/types/ElementalChannelNode.d.ts +35 -0
- package/dist/api/resources/send/types/ElementalChannelNode.js +5 -0
- package/dist/api/resources/send/types/ElementalContent.d.ts +10 -0
- package/dist/api/resources/send/types/ElementalContent.js +5 -0
- package/dist/api/resources/send/types/ElementalContentSugar.d.ts +12 -0
- package/dist/api/resources/send/types/ElementalContentSugar.js +5 -0
- package/dist/api/resources/send/types/ElementalDividerNode.d.ts +11 -0
- package/dist/api/resources/send/types/ElementalDividerNode.js +5 -0
- package/dist/api/resources/send/types/ElementalGroupNode.d.ts +11 -0
- package/dist/api/resources/send/types/ElementalGroupNode.js +5 -0
- package/dist/api/resources/send/types/ElementalImageNode.d.ts +19 -0
- package/dist/api/resources/send/types/ElementalImageNode.js +5 -0
- package/dist/api/resources/send/types/ElementalMetaNode.d.ts +14 -0
- package/dist/api/resources/send/types/ElementalMetaNode.js +5 -0
- package/dist/api/resources/send/types/ElementalNode.d.ts +31 -0
- package/dist/api/resources/send/types/ElementalNode.js +5 -0
- package/dist/api/resources/send/types/ElementalQuoteNode.d.ts +18 -0
- package/dist/api/resources/send/types/ElementalQuoteNode.js +5 -0
- package/dist/api/resources/send/types/ElementalTextNode.d.ts +32 -0
- package/dist/api/resources/send/types/ElementalTextNode.js +5 -0
- package/dist/api/resources/send/types/EmailFooter.d.ts +7 -0
- package/dist/api/resources/send/types/EmailFooter.js +5 -0
- package/dist/api/resources/send/types/EmailHead.d.ts +7 -0
- package/dist/api/resources/send/types/EmailHead.js +5 -0
- package/dist/api/resources/send/types/EmailHeader.d.ts +9 -0
- package/dist/api/resources/send/types/EmailHeader.js +5 -0
- package/dist/api/resources/send/types/ExpiresInType.d.ts +4 -0
- package/dist/api/resources/send/types/ExpiresInType.js +5 -0
- package/dist/api/resources/send/types/Expiry.d.ts +10 -0
- package/dist/api/resources/send/types/Expiry.js +5 -0
- package/dist/api/resources/send/types/IActionButtonStyle.d.ts +8 -0
- package/dist/api/resources/send/types/IActionButtonStyle.js +10 -0
- package/dist/api/resources/send/types/IAlignment.d.ts +10 -0
- package/dist/api/resources/send/types/IAlignment.js +12 -0
- package/dist/api/resources/send/types/IPreferences.d.ts +5 -0
- package/dist/api/resources/send/types/IPreferences.js +5 -0
- package/dist/api/resources/send/types/IProfilePreferences.d.ts +9 -0
- package/dist/api/resources/send/types/IProfilePreferences.js +5 -0
- package/dist/api/resources/send/types/Icons.d.ts +7 -0
- package/dist/api/resources/send/types/Icons.js +5 -0
- package/dist/api/resources/send/types/InAppPlacement.d.ts +10 -0
- package/dist/api/resources/send/types/InAppPlacement.js +12 -0
- package/dist/api/resources/send/types/InvalidListPatternRecipient.d.ts +7 -0
- package/dist/api/resources/send/types/InvalidListPatternRecipient.js +5 -0
- package/dist/api/resources/send/types/InvalidListRecipient.d.ts +7 -0
- package/dist/api/resources/send/types/InvalidListRecipient.js +5 -0
- package/dist/api/resources/send/types/InvalidUserRecipient.d.ts +7 -0
- package/dist/api/resources/send/types/InvalidUserRecipient.js +5 -0
- package/dist/api/resources/send/types/ListFilter.d.ts +9 -0
- package/dist/api/resources/send/types/ListFilter.js +5 -0
- package/dist/api/resources/send/types/ListPatternRecipient.d.ts +8 -0
- package/dist/api/resources/send/types/ListPatternRecipient.js +5 -0
- package/dist/api/resources/send/types/ListPatternRecipientType.d.ts +5 -0
- package/dist/api/resources/send/types/ListPatternRecipientType.js +5 -0
- package/dist/api/resources/send/types/ListRecipient.d.ts +9 -0
- package/dist/api/resources/send/types/ListRecipient.js +5 -0
- package/dist/api/resources/send/types/ListRecipientType.d.ts +5 -0
- package/dist/api/resources/send/types/ListRecipientType.js +5 -0
- package/dist/api/resources/send/types/Locale.d.ts +6 -0
- package/dist/api/resources/send/types/Locale.js +5 -0
- package/dist/api/resources/send/types/Locales.d.ts +5 -0
- package/dist/api/resources/send/types/Locales.js +5 -0
- package/dist/api/resources/send/types/Logo.d.ts +7 -0
- package/dist/api/resources/send/types/Logo.js +5 -0
- package/dist/api/resources/send/types/Message.d.ts +11 -0
- package/dist/api/resources/send/types/Message.js +5 -0
- package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +16 -0
- package/dist/api/resources/send/types/MessageChannelEmailOverride.js +5 -0
- package/dist/api/resources/send/types/MessageChannels.d.ts +5 -0
- package/dist/api/resources/send/types/MessageChannels.js +5 -0
- package/dist/api/resources/send/types/MessageContext.d.ts +11 -0
- package/dist/api/resources/send/types/MessageContext.js +5 -0
- package/dist/api/resources/send/types/MessageData.d.ts +4 -0
- package/dist/api/resources/send/types/MessageData.js +5 -0
- package/dist/api/resources/send/types/MessageMetadata.d.ts +14 -0
- package/dist/api/resources/send/types/MessageMetadata.js +5 -0
- package/dist/api/resources/send/types/MessageProviders.d.ts +5 -0
- package/dist/api/resources/send/types/MessageProviders.js +5 -0
- package/dist/api/resources/send/types/MessageProvidersType.d.ts +17 -0
- package/dist/api/resources/send/types/MessageProvidersType.js +5 -0
- package/dist/api/resources/send/types/MessageRecipient.d.ts +5 -0
- package/dist/api/resources/send/types/MessageRecipient.js +5 -0
- package/dist/api/resources/send/types/Metadata.d.ts +7 -0
- package/dist/api/resources/send/types/Metadata.js +5 -0
- package/dist/api/resources/send/types/Override.d.ts +8 -0
- package/dist/api/resources/send/types/Override.js +10 -0
- package/dist/api/resources/send/types/Preference.d.ts +10 -0
- package/dist/api/resources/send/types/Preference.js +5 -0
- package/dist/api/resources/send/types/Preferences.d.ts +6 -0
- package/dist/api/resources/send/types/Preferences.js +5 -0
- package/dist/api/resources/send/types/Recipient.d.ts +5 -0
- package/dist/api/resources/send/types/Recipient.js +5 -0
- package/dist/api/resources/send/types/Routing.d.ts +20 -0
- package/dist/api/resources/send/types/Routing.js +5 -0
- package/dist/api/resources/send/types/RoutingChannel.d.ts +5 -0
- package/dist/api/resources/send/types/RoutingChannel.js +5 -0
- package/dist/api/resources/send/types/RoutingMethod.d.ts +8 -0
- package/dist/api/resources/send/types/RoutingMethod.js +10 -0
- package/dist/api/resources/send/types/RoutingStrategyChannel.d.ts +11 -0
- package/dist/api/resources/send/types/RoutingStrategyChannel.js +5 -0
- package/dist/api/resources/send/types/RoutingStrategyProvider.d.ts +10 -0
- package/dist/api/resources/send/types/RoutingStrategyProvider.js +5 -0
- package/dist/api/resources/send/types/RuleType.d.ts +9 -0
- package/dist/api/resources/send/types/RuleType.js +11 -0
- package/dist/api/resources/send/types/TemplateMessage.d.ts +12 -0
- package/dist/api/resources/send/types/TemplateMessage.js +5 -0
- package/dist/api/resources/send/types/TextAlign.d.ts +9 -0
- package/dist/api/resources/send/types/TextAlign.js +11 -0
- package/dist/api/resources/send/types/TextStyle.d.ts +10 -0
- package/dist/api/resources/send/types/TextStyle.js +12 -0
- package/dist/api/resources/send/types/Timeout.d.ts +11 -0
- package/dist/api/resources/send/types/Timeout.js +5 -0
- package/dist/api/resources/send/types/Timeouts.d.ts +7 -0
- package/dist/api/resources/send/types/Timeouts.js +5 -0
- package/dist/api/resources/send/types/TrackingOverride.d.ts +6 -0
- package/dist/api/resources/send/types/TrackingOverride.js +5 -0
- package/dist/api/resources/send/types/UserRecipient.d.ts +23 -0
- package/dist/api/resources/send/types/UserRecipient.js +5 -0
- package/dist/api/resources/send/types/UserRecipientType.d.ts +5 -0
- package/dist/api/resources/send/types/UserRecipientType.js +5 -0
- package/dist/api/resources/send/types/Utm.d.ts +10 -0
- package/dist/api/resources/send/types/Utm.js +5 -0
- package/dist/api/resources/send/types/WidgetBackground.d.ts +7 -0
- package/dist/api/resources/send/types/WidgetBackground.js +5 -0
- package/dist/api/resources/send/types/index.d.ts +81 -0
- package/dist/api/resources/send/types/index.js +97 -0
- package/dist/api/resources/templates/client/Client.d.ts +25 -0
- package/dist/api/resources/templates/client/Client.js +112 -0
- package/dist/api/resources/templates/client/index.d.ts +1 -0
- package/dist/api/resources/templates/client/index.js +17 -0
- package/dist/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +9 -0
- package/dist/api/resources/templates/client/requests/ListTemplatesRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/api/resources/templates/client/requests/index.js +2 -0
- package/dist/api/resources/templates/index.d.ts +2 -0
- package/dist/api/resources/templates/index.js +18 -0
- package/dist/api/resources/templates/types/ChannelIdentifier.d.ts +4 -0
- package/dist/api/resources/templates/types/ChannelIdentifier.js +5 -0
- package/dist/api/resources/templates/types/ListTemplatesResponse.d.ts +9 -0
- package/dist/api/resources/templates/types/ListTemplatesResponse.js +5 -0
- package/dist/api/resources/templates/types/NotificationTemplates.d.ts +18 -0
- package/dist/api/resources/templates/types/NotificationTemplates.js +5 -0
- package/dist/api/resources/templates/types/RoutingStrategy.d.ts +10 -0
- package/dist/api/resources/templates/types/RoutingStrategy.js +5 -0
- package/dist/api/resources/templates/types/RoutingStrategyMethod.d.ts +8 -0
- package/dist/api/resources/templates/types/RoutingStrategyMethod.js +10 -0
- package/dist/api/resources/templates/types/Tag.d.ts +7 -0
- package/dist/api/resources/templates/types/Tag.js +5 -0
- package/dist/api/resources/templates/types/TagData.d.ts +9 -0
- package/dist/api/resources/templates/types/TagData.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +7 -0
- package/dist/api/resources/templates/types/index.js +23 -0
- package/dist/api/resources/tenants/client/Client.d.ts +25 -0
- package/dist/api/resources/tenants/client/Client.js +113 -0
- package/dist/api/resources/tenants/client/index.d.ts +1 -0
- package/dist/api/resources/tenants/client/index.js +2 -0
- package/dist/api/resources/tenants/index.d.ts +2 -0
- package/dist/api/resources/tenants/index.js +18 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantRequest.d.ts +18 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantRequest.js +5 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantResponse.d.ts +20 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantResponse.js +5 -0
- package/dist/api/resources/tenants/types/DefaultPreferences.d.ts +7 -0
- package/dist/api/resources/tenants/types/DefaultPreferences.js +5 -0
- package/dist/api/resources/tenants/types/SubscriptionTopic.d.ts +9 -0
- package/dist/api/resources/tenants/types/SubscriptionTopic.js +5 -0
- package/dist/api/resources/tenants/types/SubscriptionTopicStatus.d.ts +9 -0
- package/dist/api/resources/tenants/types/SubscriptionTopicStatus.js +11 -0
- package/dist/api/resources/tenants/types/TemplateProperty.d.ts +4 -0
- package/dist/api/resources/tenants/types/TemplateProperty.js +5 -0
- package/dist/api/resources/tenants/types/index.d.ts +6 -0
- package/dist/api/resources/tenants/types/index.js +22 -0
- package/dist/api/resources/tokenManagement/client/Client.d.ts +46 -0
- package/dist/api/resources/tokenManagement/client/Client.js +311 -0
- package/dist/api/resources/tokenManagement/client/index.d.ts +1 -0
- package/dist/api/resources/tokenManagement/client/index.js +2 -0
- package/dist/api/resources/tokenManagement/index.d.ts +2 -0
- package/dist/api/resources/tokenManagement/index.js +18 -0
- package/dist/api/resources/tokenManagement/types/DeleteUserTokenOpts.d.ts +7 -0
- package/dist/api/resources/tokenManagement/types/DeleteUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/Device.d.ts +17 -0
- package/dist/api/resources/tokenManagement/types/Device.js +5 -0
- package/dist/api/resources/tokenManagement/types/ExpiryDate.d.ts +4 -0
- package/dist/api/resources/tokenManagement/types/ExpiryDate.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetAllTokensResponse.d.ts +8 -0
- package/dist/api/resources/tokenManagement/types/GetAllTokensResponse.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenOpts.d.ts +7 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenResponse.d.ts +9 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenResponse.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokensOpts.d.ts +6 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokensOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/PatchOp.d.ts +12 -0
- package/dist/api/resources/tokenManagement/types/PatchOp.js +14 -0
- package/dist/api/resources/tokenManagement/types/PatchOperation.d.ts +11 -0
- package/dist/api/resources/tokenManagement/types/PatchOperation.js +5 -0
- package/dist/api/resources/tokenManagement/types/PatchUserTokenOpts.d.ts +7 -0
- package/dist/api/resources/tokenManagement/types/PatchUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/ProviderKey.d.ts +10 -0
- package/dist/api/resources/tokenManagement/types/ProviderKey.js +12 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokenOpts.d.ts +8 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokensOpts.d.ts +8 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokensOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/TokenStatus.d.ts +10 -0
- package/dist/api/resources/tokenManagement/types/TokenStatus.js +12 -0
- package/dist/api/resources/tokenManagement/types/Tracking.d.ts +13 -0
- package/dist/api/resources/tokenManagement/types/Tracking.js +5 -0
- package/dist/api/resources/tokenManagement/types/UserToken.d.ts +17 -0
- package/dist/api/resources/tokenManagement/types/UserToken.js +5 -0
- package/dist/api/resources/tokenManagement/types/index.d.ts +16 -0
- package/dist/api/resources/tokenManagement/types/index.js +32 -0
- package/dist/api/resources/translations/client/Client.d.ts +30 -0
- package/dist/api/resources/translations/client/Client.js +163 -0
- package/dist/api/resources/translations/client/index.d.ts +1 -0
- package/dist/api/resources/translations/client/index.js +2 -0
- package/dist/api/resources/translations/index.d.ts +1 -0
- package/dist/api/resources/translations/index.js +17 -0
- package/dist/api/resources/userPreferences/client/Client.d.ts +36 -0
- package/dist/api/resources/userPreferences/client/Client.js +212 -0
- package/dist/api/resources/userPreferences/client/index.d.ts +1 -0
- package/dist/api/resources/userPreferences/client/index.js +2 -0
- package/dist/api/resources/userPreferences/index.d.ts +2 -0
- package/dist/api/resources/userPreferences/index.js +18 -0
- package/dist/api/resources/userPreferences/types/TopicPreference.d.ts +13 -0
- package/dist/api/resources/userPreferences/types/TopicPreference.js +5 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.d.ts +11 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.js +5 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.d.ts +6 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.js +5 -0
- package/dist/api/resources/userPreferences/types/UserPreferences.d.ts +9 -0
- package/dist/api/resources/userPreferences/types/UserPreferences.js +5 -0
- package/dist/api/resources/userPreferences/types/index.d.ts +4 -0
- package/dist/api/resources/userPreferences/types/index.js +20 -0
- package/dist/api/types/SendMessageResponse.d.ts +14 -0
- package/dist/api/types/SendMessageResponse.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +17 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +9 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +38 -0
- package/dist/core/fetcher/Fetcher.js +129 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/index.d.ts +4 -0
- package/dist/core/fetcher/index.js +7 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +18 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/CourierError.d.ts +12 -0
- package/dist/errors/CourierError.js +32 -0
- package/dist/errors/CourierTimeoutError.d.ts +6 -0
- package/dist/errors/CourierTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/CourierError.d.ts +12 -0
- package/errors/CourierError.js +32 -0
- package/errors/CourierTimeoutError.d.ts +6 -0
- package/errors/CourierTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/package.json +25 -35
- package/lib/audiences/index.d.ts +0 -13
- package/lib/audiences/index.js +0 -108
- package/lib/audiences/types.d.ts +0 -65
- package/lib/audit-events/index.d.ts +0 -6
- package/lib/audit-events/index.js +0 -75
- package/lib/audit-events/types.d.ts +0 -27
- package/lib/automations/index.d.ts +0 -3
- package/lib/automations/index.js +0 -90
- package/lib/automations/types.d.ts +0 -87
- package/lib/brands.d.ts +0 -8
- package/lib/brands.js +0 -119
- package/lib/bulk/index.d.ts +0 -3
- package/lib/bulk/index.js +0 -129
- package/lib/bulk/types.d.ts +0 -84
- package/lib/client.d.ts +0 -2
- package/lib/client.js +0 -163
- package/lib/http-client.d.ts +0 -10
- package/lib/http-client.js +0 -131
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -31
- package/lib/issue-token/index.d.ts +0 -3
- package/lib/issue-token/index.js +0 -55
- package/lib/issue-token/types.d.ts +0 -10
- package/lib/lists/index.d.ts +0 -3
- package/lib/lists/index.js +0 -214
- package/lib/lists/types.d.ts +0 -68
- package/lib/notifications/index.d.ts +0 -3
- package/lib/notifications/index.js +0 -152
- package/lib/notifications/types.d.ts +0 -98
- package/lib/preferences/index.d.ts +0 -3
- package/lib/preferences/index.js +0 -92
- package/lib/preferences/types.d.ts +0 -45
- package/lib/profile.d.ts +0 -9
- package/lib/profile.js +0 -138
- package/lib/send/index.d.ts +0 -2
- package/lib/send/index.js +0 -96
- package/lib/send/types.d.ts +0 -389
- package/lib/tenants/index.d.ts +0 -8
- package/lib/tenants/index.js +0 -99
- package/lib/tenants/types.d.ts +0 -36
- package/lib/token-management/index.d.ts +0 -12
- package/lib/token-management/index.js +0 -127
- package/lib/token-management/types.d.ts +0 -56
- package/lib/types.d.ts +0 -355
- package/lib/users/index.d.ts +0 -9
- package/lib/users/index.js +0 -111
- package/lib/users/types.d.ts +0 -39
- /package/{lib/audiences/types.js → api/client/requests/index.js} +0 -0
- /package/{lib/audit-events/types.js → api/resources/audiences/client/requests/index.js} +0 -0
- /package/{lib/automations/types.js → api/resources/auditEvents/client/requests/index.js} +0 -0
- /package/{lib/bulk/types.js → api/resources/authTokens/client/index.js} +0 -0
- /package/{lib/issue-token/types.js → api/resources/automations/client/index.js} +0 -0
- /package/{lib/lists/types.js → api/resources/brands/client/requests/index.js} +0 -0
- /package/{lib/notifications/types.js → api/resources/bulk/client/index.js} +0 -0
- /package/{lib/preferences/types.js → api/resources/lists/client/requests/index.js} +0 -0
- /package/{lib/send/types.js → api/resources/messages/client/requests/index.js} +0 -0
- /package/{lib/tenants/types.js → api/resources/profiles/client/requests/index.js} +0 -0
- /package/{lib/token-management/types.js → api/resources/templates/client/requests/index.js} +0 -0
- /package/{lib/types.js → api/resources/tenants/client/index.js} +0 -0
- /package/{lib/users/types.js → api/resources/tokenManagement/client/index.js} +0 -0
package/lib/preferences/index.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.preferences = void 0;
|
|
40
|
-
var list = function (options) {
|
|
41
|
-
return function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var res;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/preferences")];
|
|
46
|
-
case 1:
|
|
47
|
-
res = _a.sent();
|
|
48
|
-
return [2 /*return*/, res.data];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}); };
|
|
52
|
-
};
|
|
53
|
-
var get = function (options) {
|
|
54
|
-
return function (recipientId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
|
-
var res;
|
|
56
|
-
return __generator(this, function (_a) {
|
|
57
|
-
switch (_a.label) {
|
|
58
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/preferences/" + recipientId)];
|
|
59
|
-
case 1:
|
|
60
|
-
res = _a.sent();
|
|
61
|
-
return [2 /*return*/, res.data];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}); };
|
|
65
|
-
};
|
|
66
|
-
var put = function (options) {
|
|
67
|
-
return function (recipientId, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
-
var categories, notifications, res;
|
|
69
|
-
var _a, _b;
|
|
70
|
-
return __generator(this, function (_c) {
|
|
71
|
-
switch (_c.label) {
|
|
72
|
-
case 0:
|
|
73
|
-
categories = (_a = params === null || params === void 0 ? void 0 : params.categories) !== null && _a !== void 0 ? _a : {};
|
|
74
|
-
notifications = (_b = params === null || params === void 0 ? void 0 : params.notifications) !== null && _b !== void 0 ? _b : {};
|
|
75
|
-
return [4 /*yield*/, options.httpClient.put("/preferences/" + recipientId, {
|
|
76
|
-
categories: categories,
|
|
77
|
-
notifications: notifications
|
|
78
|
-
})];
|
|
79
|
-
case 1:
|
|
80
|
-
res = _c.sent();
|
|
81
|
-
return [2 /*return*/, res.data];
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
}); };
|
|
85
|
-
};
|
|
86
|
-
exports.preferences = function (options) {
|
|
87
|
-
return {
|
|
88
|
-
get: get(options),
|
|
89
|
-
list: list(options),
|
|
90
|
-
put: put(options)
|
|
91
|
-
};
|
|
92
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare type RuleType = "snooze";
|
|
2
|
-
export interface IRule<T extends RuleType> {
|
|
3
|
-
type: T;
|
|
4
|
-
}
|
|
5
|
-
export interface ISnoozeRule extends IRule<"snooze"> {
|
|
6
|
-
start?: string;
|
|
7
|
-
until: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type ChannelClassification = "direct_message" | "email" | "push";
|
|
10
|
-
export declare type Rule = ISnoozeRule;
|
|
11
|
-
export declare type PreferenceStatus = "OPTED_OUT" | "OPTED_IN";
|
|
12
|
-
export interface ICourierNotificationPreferences {
|
|
13
|
-
[id: string]: {
|
|
14
|
-
status: PreferenceStatus;
|
|
15
|
-
rules?: Rule[];
|
|
16
|
-
channel_preferences?: Array<{
|
|
17
|
-
channel: ChannelClassification;
|
|
18
|
-
}>;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface ICourierPreferencesGetResponse {
|
|
22
|
-
categories?: ICourierNotificationPreferences;
|
|
23
|
-
notifications: ICourierNotificationPreferences;
|
|
24
|
-
}
|
|
25
|
-
export interface ICourierPreferencesListResponse {
|
|
26
|
-
uncategorized: Array<{}>;
|
|
27
|
-
categories: Array<{
|
|
28
|
-
id: string;
|
|
29
|
-
title: string;
|
|
30
|
-
config?: any;
|
|
31
|
-
notifications?: Array<{}>;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
export interface IRecipientPreferences {
|
|
35
|
-
categories?: ICourierNotificationPreferences;
|
|
36
|
-
notifications: ICourierNotificationPreferences;
|
|
37
|
-
}
|
|
38
|
-
export interface ICourierPreferencesPutResponse {
|
|
39
|
-
status: "SUCCESS";
|
|
40
|
-
}
|
|
41
|
-
export interface ICourierClientPreferences {
|
|
42
|
-
get: (recipientId: string) => Promise<ICourierPreferencesGetResponse>;
|
|
43
|
-
list: () => Promise<ICourierPreferencesListResponse>;
|
|
44
|
-
put: (recipientId: string, params: IRecipientPreferences) => Promise<ICourierPreferencesPutResponse>;
|
|
45
|
-
}
|
package/lib/profile.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ICourierRecipientSubscriptionsResponse } from "./lists/types";
|
|
2
|
-
import { ICourierClientConfiguration, ICourierProfileDeleteParameters, ICourierProfileGetParameters, ICourierProfileGetResponse, ICourierProfileListsPostParameters, ICourierProfilePostConfig, ICourierProfilePostParameters, ICourierProfilePostResponse, ICourierProfilePutParameters, ICourierProfilePutResponse } from "./types";
|
|
3
|
-
export declare const replaceProfile: (options: ICourierClientConfiguration) => (params: ICourierProfilePutParameters) => Promise<ICourierProfilePutResponse>;
|
|
4
|
-
export declare const mergeProfile: (options: ICourierClientConfiguration) => (params: ICourierProfilePostParameters, config?: ICourierProfilePostConfig | undefined) => Promise<ICourierProfilePostResponse>;
|
|
5
|
-
export declare const getProfile: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<ICourierProfileGetResponse>;
|
|
6
|
-
export declare const deleteProfile: (options: ICourierClientConfiguration) => (params: ICourierProfileDeleteParameters) => Promise<void>;
|
|
7
|
-
export declare const getRecipientSubscriptions: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<ICourierRecipientSubscriptionsResponse>;
|
|
8
|
-
export declare const addRecipientToLists: (options: ICourierClientConfiguration) => (params: ICourierProfileListsPostParameters) => Promise<ICourierProfilePostResponse>;
|
|
9
|
-
export declare const removeRecipientFromAllLists: (options: ICourierClientConfiguration) => (params: ICourierProfileGetParameters) => Promise<ICourierProfilePostResponse>;
|
package/lib/profile.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.removeRecipientFromAllLists = exports.addRecipientToLists = exports.getRecipientSubscriptions = exports.deleteProfile = exports.getProfile = exports.mergeProfile = exports.replaceProfile = void 0;
|
|
40
|
-
exports.replaceProfile = function (options) {
|
|
41
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var res;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0: return [4 /*yield*/, options.httpClient.put("/profiles/" + params.recipientId, {
|
|
46
|
-
profile: params.profile
|
|
47
|
-
})];
|
|
48
|
-
case 1:
|
|
49
|
-
res = _a.sent();
|
|
50
|
-
return [2 /*return*/, res.data];
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}); };
|
|
54
|
-
};
|
|
55
|
-
exports.mergeProfile = function (options) {
|
|
56
|
-
return function (params, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
-
var res;
|
|
58
|
-
return __generator(this, function (_a) {
|
|
59
|
-
switch (_a.label) {
|
|
60
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/profiles/" + params.recipientId, {
|
|
61
|
-
profile: params.profile
|
|
62
|
-
}, {
|
|
63
|
-
idempotencyExpiry: config === null || config === void 0 ? void 0 : config.idempotencyExpiry,
|
|
64
|
-
idempotencyKey: config === null || config === void 0 ? void 0 : config.idempotencyKey
|
|
65
|
-
})];
|
|
66
|
-
case 1:
|
|
67
|
-
res = _a.sent();
|
|
68
|
-
return [2 /*return*/, res.data];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}); };
|
|
72
|
-
};
|
|
73
|
-
exports.getProfile = function (options) {
|
|
74
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
75
|
-
var res;
|
|
76
|
-
return __generator(this, function (_a) {
|
|
77
|
-
switch (_a.label) {
|
|
78
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + params.recipientId)];
|
|
79
|
-
case 1:
|
|
80
|
-
res = _a.sent();
|
|
81
|
-
return [2 /*return*/, res.data];
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
}); };
|
|
85
|
-
};
|
|
86
|
-
exports.deleteProfile = function (options) {
|
|
87
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
88
|
-
return __generator(this, function (_a) {
|
|
89
|
-
switch (_a.label) {
|
|
90
|
-
case 0: return [4 /*yield*/, options.httpClient.delete("/profiles/" + params.recipientId)];
|
|
91
|
-
case 1:
|
|
92
|
-
_a.sent();
|
|
93
|
-
return [2 /*return*/];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}); };
|
|
97
|
-
};
|
|
98
|
-
exports.getRecipientSubscriptions = function (options) {
|
|
99
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
100
|
-
var res;
|
|
101
|
-
return __generator(this, function (_a) {
|
|
102
|
-
switch (_a.label) {
|
|
103
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + params.recipientId + "/lists")];
|
|
104
|
-
case 1:
|
|
105
|
-
res = _a.sent();
|
|
106
|
-
return [2 /*return*/, res.data];
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}); };
|
|
110
|
-
};
|
|
111
|
-
exports.addRecipientToLists = function (options) {
|
|
112
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
|
-
var res;
|
|
114
|
-
return __generator(this, function (_a) {
|
|
115
|
-
switch (_a.label) {
|
|
116
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/profiles/" + params.recipientId + "/lists", {
|
|
117
|
-
lists: params.lists
|
|
118
|
-
})];
|
|
119
|
-
case 1:
|
|
120
|
-
res = _a.sent();
|
|
121
|
-
return [2 /*return*/, res.data];
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}); };
|
|
125
|
-
};
|
|
126
|
-
exports.removeRecipientFromAllLists = function (options) {
|
|
127
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
-
var res;
|
|
129
|
-
return __generator(this, function (_a) {
|
|
130
|
-
switch (_a.label) {
|
|
131
|
-
case 0: return [4 /*yield*/, options.httpClient.delete("/profiles/" + params.recipientId + "/lists")];
|
|
132
|
-
case 1:
|
|
133
|
-
res = _a.sent();
|
|
134
|
-
return [2 /*return*/, res.data];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}); };
|
|
138
|
-
};
|
package/lib/send/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ICourierClientConfiguration, ICourierSendConfig, ICourierSendMessageParameters, ICourierSendParameters, SendResponse } from "../types";
|
|
2
|
-
export declare const send: (options: ICourierClientConfiguration) => <T extends ICourierSendParameters | ICourierSendMessageParameters>(params: T, config?: ICourierSendConfig | undefined) => Promise<SendResponse<T>>;
|
package/lib/send/index.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.send = void 0;
|
|
40
|
-
var sendCall = function (options, params, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
41
|
-
var res;
|
|
42
|
-
return __generator(this, function (_a) {
|
|
43
|
-
switch (_a.label) {
|
|
44
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/send", {
|
|
45
|
-
brand: params.brand,
|
|
46
|
-
data: params.data,
|
|
47
|
-
event: params.eventId,
|
|
48
|
-
override: params.override,
|
|
49
|
-
preferences: params.preferences,
|
|
50
|
-
profile: params.profile,
|
|
51
|
-
recipient: params.recipientId
|
|
52
|
-
}, {
|
|
53
|
-
idempotencyExpiry: config === null || config === void 0 ? void 0 : config.idempotencyExpiry,
|
|
54
|
-
idempotencyKey: config === null || config === void 0 ? void 0 : config.idempotencyKey
|
|
55
|
-
})];
|
|
56
|
-
case 1:
|
|
57
|
-
res = _a.sent();
|
|
58
|
-
return [2 /*return*/, res.data];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}); };
|
|
62
|
-
var sendMessageCall = function (options, params, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
-
var res;
|
|
64
|
-
return __generator(this, function (_a) {
|
|
65
|
-
switch (_a.label) {
|
|
66
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/send", {
|
|
67
|
-
message: params.message
|
|
68
|
-
}, {
|
|
69
|
-
idempotencyExpiry: config === null || config === void 0 ? void 0 : config.idempotencyExpiry,
|
|
70
|
-
idempotencyKey: config === null || config === void 0 ? void 0 : config.idempotencyKey
|
|
71
|
-
})];
|
|
72
|
-
case 1:
|
|
73
|
-
res = _a.sent();
|
|
74
|
-
return [2 /*return*/, res.data];
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}); };
|
|
78
|
-
exports.send = function (options) {
|
|
79
|
-
return function (params, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
-
var v2Response, v1Response;
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
switch (_a.label) {
|
|
83
|
-
case 0:
|
|
84
|
-
if (!params.message) return [3 /*break*/, 2];
|
|
85
|
-
return [4 /*yield*/, sendMessageCall(options, params, config)];
|
|
86
|
-
case 1:
|
|
87
|
-
v2Response = _a.sent();
|
|
88
|
-
return [2 /*return*/, v2Response];
|
|
89
|
-
case 2: return [4 /*yield*/, sendCall(options, params, config)];
|
|
90
|
-
case 3:
|
|
91
|
-
v1Response = _a.sent();
|
|
92
|
-
return [2 /*return*/, v1Response];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
}); };
|
|
96
|
-
};
|