@getbrevo/brevo 5.0.0 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +12 -0
- package/dist/cjs/Client.js +67 -0
- package/dist/cjs/api/resources/account/exports.d.ts +2 -0
- package/dist/cjs/api/resources/account/exports.js +21 -0
- package/dist/cjs/api/resources/account/types/GetAccountActivityResponse.d.ts +1 -1
- package/dist/cjs/api/resources/account/types/GetAccountResponse.d.ts +7 -7
- package/dist/cjs/api/resources/balance/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/balance/client/Client.js +20 -11
- package/dist/cjs/api/resources/balance/client/requests/GetContactBalancesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidActiveBalanceRequest.d.ts +2 -0
- package/dist/cjs/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.ts +10 -6
- package/dist/cjs/api/resources/balance/client/requests/GetSubscriptionBalancesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/balance/client/requests/PostLoyaltyBalanceProgramsPidBalanceDefinitionsRequest.d.ts +10 -1
- package/dist/cjs/api/resources/balance/client/requests/UpdateBalanceDefinitionRequest.d.ts +10 -1
- package/dist/cjs/api/resources/balance/exports.d.ts +2 -0
- package/dist/cjs/api/resources/balance/exports.js +21 -0
- package/dist/cjs/api/resources/balance/types/CreateBalanceOrderResponse.d.ts +6 -6
- package/dist/cjs/api/resources/balance/types/GetBalanceDefinitionListResponse.d.ts +1 -1
- package/dist/cjs/api/resources/balance/types/GetContactBalancesResponse.d.ts +8 -8
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestStatus.d.ts +8 -0
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestStatus.js +11 -0
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestTransactionType.d.ts +5 -0
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestTransactionType.js +8 -0
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.d.ts +15 -15
- package/dist/cjs/api/resources/balance/types/GetSubscriptionBalancesResponse.d.ts +3 -3
- package/dist/cjs/api/resources/balance/types/PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.d.ts +9 -9
- package/dist/cjs/api/resources/balance/types/index.d.ts +2 -1
- package/dist/cjs/api/resources/balance/types/index.js +2 -1
- package/dist/cjs/api/resources/companies/client/Client.d.ts +28 -0
- package/dist/cjs/api/resources/companies/client/Client.js +107 -0
- package/dist/cjs/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.d.ts +10 -0
- package/dist/cjs/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.js +3 -0
- package/dist/cjs/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.d.ts +33 -0
- package/dist/cjs/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.js +12 -0
- package/dist/cjs/api/resources/companies/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/companies/client/requests/index.js +3 -1
- package/dist/cjs/api/resources/companies/exports.d.ts +2 -0
- package/dist/cjs/api/resources/companies/exports.js +21 -0
- package/dist/cjs/api/resources/companies/types/GetCompaniesResponse.d.ts +1 -1
- package/dist/cjs/api/resources/companies/types/GetCrmAttributesCompaniesResponseItem.d.ts +5 -5
- package/dist/cjs/api/resources/companies/types/PostCompaniesImportResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +15 -45
- package/dist/cjs/api/resources/contacts/client/Client.js +15 -45
- package/dist/cjs/api/resources/contacts/client/requests/AddContactToListRequest.d.ts +0 -24
- package/dist/cjs/api/resources/contacts/client/requests/ImportContactsRequest.d.ts +4 -4
- package/dist/cjs/api/resources/contacts/client/requests/RemoveContactFromListRequest.d.ts +0 -32
- package/dist/cjs/api/resources/contacts/client/requests/RequestContactExportRequest.d.ts +7 -7
- package/dist/cjs/api/resources/contacts/client/requests/UpdateBatchContactsRequest.d.ts +10 -10
- package/dist/cjs/api/resources/contacts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/exports.js +21 -0
- package/dist/cjs/api/resources/contacts/types/CreateContactResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/types/GetAttributesResponse.d.ts +4 -4
- package/dist/cjs/api/resources/contacts/types/GetContactInfoResponse.d.ts +13 -13
- package/dist/cjs/api/resources/contacts/types/GetContactStatsResponse.d.ts +11 -11
- package/dist/cjs/api/resources/contacts/types/GetFolderListsResponse.d.ts +2 -2
- package/dist/cjs/api/resources/contacts/types/GetFoldersResponse.d.ts +2 -2
- package/dist/cjs/api/resources/contacts/types/GetListResponse.d.ts +2 -2
- package/dist/cjs/api/resources/contacts/types/GetListsResponse.d.ts +2 -2
- package/dist/cjs/api/resources/contacts/types/GetSegmentsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/exports.d.ts +2 -0
- package/dist/cjs/api/resources/conversations/exports.js +21 -0
- package/dist/cjs/api/resources/conversations/types/PutConversationsVisitorGroupResponse.d.ts +2 -2
- package/dist/cjs/api/resources/coupons/exports.d.ts +2 -0
- package/dist/cjs/api/resources/coupons/exports.js +21 -0
- package/dist/cjs/api/resources/customObjects/client/Client.d.ts +6 -14
- package/dist/cjs/api/resources/customObjects/client/Client.js +6 -14
- package/dist/cjs/api/resources/customObjects/client/requests/UpsertrecordsRequest.d.ts +6 -6
- package/dist/cjs/api/resources/customObjects/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customObjects/exports.js +21 -0
- package/dist/cjs/api/resources/customObjects/types/BatchDeleteObjectRecordsResponse.d.ts +2 -2
- package/dist/cjs/api/resources/customObjects/types/GetrecordsResponse.d.ts +9 -9
- package/dist/cjs/api/resources/customObjects/types/UpsertrecordsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/deals/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/deals/client/Client.js +2 -0
- package/dist/cjs/api/resources/deals/exports.d.ts +2 -0
- package/dist/cjs/api/resources/deals/exports.js +21 -0
- package/dist/cjs/api/resources/deals/types/GetCrmAttributesDealsResponseItem.d.ts +5 -5
- package/dist/cjs/api/resources/deals/types/GetCrmDealsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/deals/types/PostCrmDealsImportResponse.d.ts +1 -1
- package/dist/cjs/api/resources/domains/client/requests/AuthenticateDomainRequest.d.ts +0 -5
- package/dist/cjs/api/resources/domains/client/requests/CreateDomainRequest.d.ts +0 -10
- package/dist/cjs/api/resources/domains/client/requests/GetDomainConfigurationRequest.d.ts +0 -5
- package/dist/cjs/api/resources/domains/exports.d.ts +2 -0
- package/dist/cjs/api/resources/domains/exports.js +21 -0
- package/dist/cjs/api/resources/domains/types/CreateDomainResponse.d.ts +2 -2
- package/dist/cjs/api/resources/domains/types/GetDomainsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/ecommerce/client/Client.d.ts +2 -4
- package/dist/cjs/api/resources/ecommerce/client/Client.js +2 -4
- package/dist/cjs/api/resources/ecommerce/client/requests/CreateBatchOrderRequest.d.ts +1 -2
- package/dist/cjs/api/resources/ecommerce/client/requests/CreateProductAlertRequest.d.ts +3 -3
- package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateBatchCategoryRequest.d.ts +4 -4
- package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateBatchProductsRequest.d.ts +15 -11
- package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateProductRequest.d.ts +5 -1
- package/dist/cjs/api/resources/ecommerce/exports.d.ts +2 -0
- package/dist/cjs/api/resources/ecommerce/exports.js +21 -0
- package/dist/cjs/api/resources/ecommerce/types/CreateBatchOrderResponse.d.ts +1 -1
- package/dist/cjs/api/resources/ecommerce/types/CreateUpdateBatchCategoryResponse.d.ts +2 -2
- package/dist/cjs/api/resources/ecommerce/types/CreateUpdateBatchProductsResponse.d.ts +2 -2
- package/dist/cjs/api/resources/ecommerce/types/CreateUpdateCategoryResponse.d.ts +1 -1
- package/dist/cjs/api/resources/ecommerce/types/CreateUpdateProductResponse.d.ts +1 -1
- package/dist/cjs/api/resources/ecommerce/types/GetEcommerceAttributionProductsConversionSourceConversionSourceIdResponse.d.ts +7 -7
- package/dist/cjs/api/resources/emailCampaigns/client/Client.d.ts +2 -5
- package/dist/cjs/api/resources/emailCampaigns/client/Client.js +4 -6
- package/dist/cjs/api/resources/emailCampaigns/client/requests/CreateEmailCampaignRequest.d.ts +9 -9
- package/dist/cjs/api/resources/emailCampaigns/client/requests/GetEmailCampaignRequest.d.ts +2 -0
- package/dist/cjs/api/resources/emailCampaigns/client/requests/UpdateEmailCampaignRequest.d.ts +9 -9
- package/dist/cjs/api/resources/emailCampaigns/exports.d.ts +2 -0
- package/dist/cjs/api/resources/emailCampaigns/exports.js +21 -0
- package/dist/cjs/api/resources/emailCampaigns/types/GetAbTestCampaignResultResponse.d.ts +8 -8
- package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignResponse.d.ts +32 -25
- package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignResponse.js +3 -0
- package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.d.ts +2 -0
- package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.js +2 -0
- package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.d.ts +34 -27
- package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.js +3 -0
- package/dist/cjs/api/resources/emailCampaigns/types/UploadImageToGalleryResponse.d.ts +1 -1
- package/dist/cjs/api/resources/event/client/Client.d.ts +36 -0
- package/dist/cjs/api/resources/event/client/Client.js +125 -0
- package/dist/cjs/api/resources/event/client/requests/CreateEventRequest.d.ts +10 -10
- package/dist/cjs/api/resources/event/client/requests/GetEventsRequest.d.ts +20 -0
- package/dist/cjs/api/resources/event/client/requests/GetEventsRequest.js +3 -0
- package/dist/cjs/api/resources/event/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/event/exports.d.ts +2 -0
- package/dist/cjs/api/resources/event/exports.js +21 -0
- package/dist/cjs/api/resources/event/index.d.ts +1 -0
- package/dist/cjs/api/resources/event/index.js +1 -0
- package/dist/cjs/api/resources/event/types/CreateBatchEventsRequestItem.d.ts +59 -0
- package/dist/cjs/api/resources/event/types/CreateBatchEventsRequestItem.js +3 -0
- package/dist/cjs/api/resources/event/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/event/types/index.js +17 -0
- package/dist/cjs/api/resources/externalFeeds/client/requests/GetExternalFeedByUuidRequest.d.ts +0 -10
- package/dist/cjs/api/resources/externalFeeds/exports.d.ts +2 -0
- package/dist/cjs/api/resources/externalFeeds/exports.js +21 -0
- package/dist/cjs/api/resources/externalFeeds/types/GetAllExternalFeedsResponse.d.ts +4 -4
- package/dist/cjs/api/resources/externalFeeds/types/GetExternalFeedByUuidResponse.d.ts +4 -4
- package/dist/cjs/api/resources/files/exports.d.ts +2 -0
- package/dist/cjs/api/resources/files/exports.js +21 -0
- package/dist/cjs/api/resources/files/types/GetCrmFilesIdResponse.d.ts +1 -1
- package/dist/cjs/api/resources/inboundParsing/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/inboundParsing/client/Client.js +1 -0
- package/dist/cjs/api/resources/inboundParsing/exports.d.ts +2 -0
- package/dist/cjs/api/resources/inboundParsing/exports.js +21 -0
- package/dist/cjs/api/resources/inboundParsing/types/GetInboundEmailEventsByUuidResponse.d.ts +14 -14
- package/dist/cjs/api/resources/inboundParsing/types/GetInboundEmailEventsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +1 -0
- package/dist/cjs/api/resources/masterAccount/client/requests/InviteAdminUserRequest.d.ts +2 -2
- package/dist/cjs/api/resources/masterAccount/client/requests/PutCorporateSubAccountIdPlanRequest.d.ts +9 -9
- package/dist/cjs/api/resources/masterAccount/client/requests/PutCorporateSubAccountsPlanRequest.d.ts +8 -8
- package/dist/cjs/api/resources/masterAccount/client/requests/PutCorporateUserEmailPermissionsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/masterAccount/exports.d.ts +2 -0
- package/dist/cjs/api/resources/masterAccount/exports.js +21 -0
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateGroupIdResponse.d.ts +12 -12
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateInvitedUsersListResponse.d.ts +11 -11
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateIpResponseItem.d.ts +3 -3
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateMasterAccountResponse.d.ts +31 -31
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateSubAccountIdResponse.d.ts +37 -37
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateSubAccountResponse.d.ts +4 -4
- package/dist/cjs/api/resources/masterAccount/types/GetCorporateUserPermissionResponse.d.ts +10 -10
- package/dist/cjs/api/resources/masterAccount/types/GetSubAccountGroupsResponseItem.d.ts +2 -2
- package/dist/cjs/api/resources/masterAccount/types/InviteAdminUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/masterAccount/types/PostCorporateGroupResponse.d.ts +1 -1
- package/dist/cjs/api/resources/masterAccount/types/PutCorporateUserInvitationActionEmailResponse.d.ts +1 -1
- package/dist/cjs/api/resources/notes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/notes/exports.js +21 -0
- package/dist/cjs/api/resources/notes/types/PostCrmNotesResponse.d.ts +1 -1
- package/dist/cjs/api/resources/payments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/payments/exports.js +21 -0
- package/dist/cjs/api/resources/payments/types/CreatePaymentRequestResponse.d.ts +1 -1
- package/dist/cjs/api/resources/payments/types/GetPaymentRequestResponse.d.ts +3 -3
- package/dist/cjs/api/resources/process/client/requests/GetProcessRequest.d.ts +0 -15
- package/dist/cjs/api/resources/process/exports.d.ts +2 -0
- package/dist/cjs/api/resources/process/exports.js +21 -0
- package/dist/cjs/api/resources/process/types/GetProcessResponse.d.ts +16 -16
- package/dist/cjs/api/resources/process/types/GetProcessesResponse.d.ts +16 -16
- package/dist/cjs/api/resources/program/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/program/client/Client.js +69 -1
- package/dist/cjs/api/resources/program/client/requests/DeleteContactSubscriptionRequest.d.ts +13 -0
- package/dist/cjs/api/resources/program/client/requests/DeleteContactSubscriptionRequest.js +3 -0
- package/dist/cjs/api/resources/program/client/requests/GetParameterSubscriptionInfoRequest.d.ts +2 -0
- package/dist/cjs/api/resources/program/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/program/exports.d.ts +2 -0
- package/dist/cjs/api/resources/program/exports.js +21 -0
- package/dist/cjs/api/resources/program/types/GetLpListResponse.d.ts +1 -1
- package/dist/cjs/api/resources/program/types/GetParameterSubscriptionInfoResponse.d.ts +28 -28
- package/dist/cjs/api/resources/program/types/SubscribeMemberToASubscriptionResponse.d.ts +5 -5
- package/dist/cjs/api/resources/program/types/SubscribeToLoyaltyProgramResponse.d.ts +7 -7
- package/dist/cjs/api/resources/reward/client/requests/RedeemVoucherRequest.d.ts +26 -26
- package/dist/cjs/api/resources/reward/exports.d.ts +2 -0
- package/dist/cjs/api/resources/reward/exports.js +21 -0
- package/dist/cjs/api/resources/reward/types/CreateRewardResponse.d.ts +8 -8
- package/dist/cjs/api/resources/reward/types/CreateVoucherResponse.d.ts +11 -11
- package/dist/cjs/api/resources/reward/types/GetCodeCountResponse.d.ts +1 -1
- package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidOffersResponse.d.ts +11 -11
- package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidRewardsRidResponse.d.ts +81 -81
- package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidVouchersResponse.d.ts +15 -15
- package/dist/cjs/api/resources/reward/types/ValidateRewardResponse.d.ts +1 -1
- package/dist/cjs/api/resources/senders/client/requests/CreateSenderRequest.d.ts +1 -13
- package/dist/cjs/api/resources/senders/client/requests/GetIpsFromSenderRequest.d.ts +0 -5
- package/dist/cjs/api/resources/senders/client/requests/GetSendersRequest.d.ts +0 -3
- package/dist/cjs/api/resources/senders/client/requests/UpdateSenderRequest.d.ts +1 -1
- package/dist/cjs/api/resources/senders/exports.d.ts +2 -0
- package/dist/cjs/api/resources/senders/exports.js +21 -0
- package/dist/cjs/api/resources/senders/types/CreateSenderResponse.d.ts +2 -2
- package/dist/cjs/api/resources/senders/types/GetSendersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/smsCampaigns/client/requests/CreateSmsCampaignRequest.d.ts +1 -1
- package/dist/cjs/api/resources/smsCampaigns/client/requests/UpdateSmsCampaignRequest.d.ts +1 -1
- package/dist/cjs/api/resources/smsCampaigns/exports.d.ts +2 -0
- package/dist/cjs/api/resources/smsCampaigns/exports.js +21 -0
- package/dist/cjs/api/resources/smsCampaigns/types/GetSmsCampaignResponse.d.ts +1 -1
- package/dist/cjs/api/resources/smsCampaigns/types/GetSmsCampaignsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/smsTemplates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/smsTemplates/exports.js +21 -0
- package/dist/cjs/api/resources/smsTemplates/types/GetSmsTemplatesResponse.d.ts +17 -17
- package/dist/cjs/api/resources/tasks/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tasks/exports.js +21 -0
- package/dist/cjs/api/resources/tasks/types/GetCrmTasksResponse.d.ts +1 -1
- package/dist/cjs/api/resources/tasks/types/GetCrmTasktypesResponse.d.ts +2 -2
- package/dist/cjs/api/resources/tier/client/requests/CreateTierForTierGroupRequest.d.ts +3 -3
- package/dist/cjs/api/resources/tier/client/requests/CreateTierGroupRequest.d.ts +11 -0
- package/dist/cjs/api/resources/tier/client/requests/UpdateTierGroupRequest.d.ts +11 -0
- package/dist/cjs/api/resources/tier/client/requests/UpdateTierRequest.d.ts +3 -3
- package/dist/cjs/api/resources/tier/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tier/exports.js +21 -0
- package/dist/cjs/api/resources/tier/types/AddSubscriptionToTierResponse.d.ts +7 -7
- package/dist/cjs/api/resources/tier/types/GetListOfTierGroupsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/tier/types/GetLoyaltyProgramTierResponse.d.ts +1 -1
- package/dist/cjs/api/resources/transactionalEmails/client/Client.d.ts +2 -6
- package/dist/cjs/api/resources/transactionalEmails/client/Client.js +2 -6
- package/dist/cjs/api/resources/transactionalEmails/client/requests/CreateSmtpTemplateRequest.d.ts +3 -3
- package/dist/cjs/api/resources/transactionalEmails/client/requests/GetScheduledEmailByIdRequest.d.ts +0 -7
- package/dist/cjs/api/resources/transactionalEmails/client/requests/SendTransacEmailRequest.d.ts +21 -21
- package/dist/cjs/api/resources/transactionalEmails/client/requests/UpdateSmtpTemplateRequest.d.ts +3 -3
- package/dist/cjs/api/resources/transactionalEmails/exports.d.ts +2 -0
- package/dist/cjs/api/resources/transactionalEmails/exports.js +21 -0
- package/dist/cjs/api/resources/transactionalEmails/types/GetAggregatedSmtpReportResponse.d.ts +13 -13
- package/dist/cjs/api/resources/transactionalEmails/types/GetEmailEventReportResponse.d.ts +8 -8
- package/dist/cjs/api/resources/transactionalEmails/types/GetSmtpReportResponse.d.ts +1 -1
- package/dist/cjs/api/resources/transactionalEmails/types/GetSmtpTemplatesResponse.d.ts +2 -2
- package/dist/cjs/api/resources/transactionalEmails/types/GetTransacBlockedContactsResponse.d.ts +4 -4
- package/dist/cjs/api/resources/transactionalEmails/types/GetTransacEmailContentResponse.d.ts +1 -1
- package/dist/cjs/api/resources/transactionalEmails/types/GetTransacEmailsListResponse.d.ts +5 -5
- package/dist/cjs/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesResponse.d.ts +6 -6
- package/dist/cjs/api/resources/transactionalEmails/types/SendTransacEmailResponse.d.ts +2 -2
- package/dist/cjs/api/resources/transactionalSms/client/Client.d.ts +5 -9
- package/dist/cjs/api/resources/transactionalSms/client/Client.js +5 -9
- package/dist/cjs/api/resources/transactionalSms/exports.d.ts +2 -0
- package/dist/cjs/api/resources/transactionalSms/exports.js +21 -0
- package/dist/cjs/api/resources/transactionalSms/types/GetSmsEventsResponse.d.ts +8 -8
- package/dist/cjs/api/resources/transactionalSms/types/GetTransacAggregatedSmsReportResponse.d.ts +11 -11
- package/dist/cjs/api/resources/transactionalSms/types/GetTransacSmsReportResponse.d.ts +12 -12
- package/dist/cjs/api/resources/transactionalSms/types/SendTransacSmsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/transactionalWhatsApp/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/transactionalWhatsApp/client/Client.js +2 -1
- package/dist/cjs/api/resources/transactionalWhatsApp/exports.d.ts +2 -0
- package/dist/cjs/api/resources/transactionalWhatsApp/exports.js +21 -0
- package/dist/cjs/api/resources/transactionalWhatsApp/types/GetWhatsappEventReportResponse.d.ts +4 -4
- package/dist/cjs/api/resources/user/exports.d.ts +2 -0
- package/dist/cjs/api/resources/user/exports.js +21 -0
- package/dist/cjs/api/resources/user/types/EditUserPermissionResponse.d.ts +2 -2
- package/dist/cjs/api/resources/user/types/GetInvitedUsersListResponse.d.ts +4 -4
- package/dist/cjs/api/resources/user/types/InviteuserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/PutRevokeUserPermissionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/PutresendcancelinvitationResponse.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +7 -13
- package/dist/cjs/api/resources/webhooks/client/Client.js +7 -13
- package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequest.d.ts +6 -4
- package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequest.js +1 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.ts +6 -4
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.js +1 -0
- package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/exports.js +21 -0
- package/dist/cjs/api/resources/whatsAppCampaigns/client/Client.d.ts +19 -44
- package/dist/cjs/api/resources/whatsAppCampaigns/client/Client.js +19 -44
- package/dist/cjs/api/resources/whatsAppCampaigns/client/requests/CreateWhatsAppCampaignRequest.d.ts +3 -3
- package/dist/cjs/api/resources/whatsAppCampaigns/client/requests/UpdateWhatsAppCampaignRequest.d.ts +3 -3
- package/dist/cjs/api/resources/whatsAppCampaigns/exports.d.ts +2 -0
- package/dist/cjs/api/resources/whatsAppCampaigns/exports.js +21 -0
- package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignResponse.d.ts +15 -15
- package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignsResponse.d.ts +6 -6
- package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppConfigResponse.d.ts +6 -6
- package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppTemplatesResponse.d.ts +3 -3
- package/dist/cjs/api/types/BalanceDefinition.d.ts +20 -20
- package/dist/cjs/api/types/BalanceLimit.d.ts +8 -8
- package/dist/cjs/api/types/BatchAcceptedResponse.d.ts +9 -0
- package/dist/cjs/api/types/BatchAcceptedResponse.js +3 -0
- package/dist/cjs/api/types/BatchEventsResponse.d.ts +26 -0
- package/dist/cjs/api/types/BatchEventsResponse.js +3 -0
- package/dist/cjs/api/types/Company.d.ts +4 -4
- package/dist/cjs/api/types/ContactErrorModel.d.ts +1 -1
- package/dist/cjs/api/types/ConversationsMessage.d.ts +53 -53
- package/dist/cjs/api/types/CreateUpdateFolder.d.ts +1 -1
- package/dist/cjs/api/types/Deal.d.ts +4 -4
- package/dist/cjs/api/types/ErrorModel.d.ts +1 -1
- package/dist/cjs/api/types/FileData.d.ts +7 -7
- package/dist/cjs/api/types/GetCampaignStats.d.ts +7 -7
- package/dist/cjs/api/types/GetCategoryDetails.d.ts +1 -1
- package/dist/cjs/api/types/GetContactDetails.d.ts +2 -2
- package/dist/cjs/api/types/GetCouponCollection.d.ts +3 -3
- package/dist/cjs/api/types/GetEventsList.d.ts +32 -0
- package/dist/cjs/api/types/GetEventsList.js +3 -0
- package/dist/cjs/api/types/GetExtendedCampaignOverview.d.ts +32 -25
- package/dist/cjs/api/types/GetExtendedCampaignOverview.js +3 -0
- package/dist/cjs/api/types/GetExtendedCampaignStats.d.ts +4 -4
- package/dist/cjs/api/types/GetProductDetails.d.ts +14 -10
- package/dist/cjs/api/types/GetSmsCampaignOverview.d.ts +1 -1
- package/dist/cjs/api/types/GetSmtpTemplateOverview.d.ts +4 -4
- package/dist/cjs/api/types/GetWebhook.d.ts +4 -4
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +48 -0
- package/dist/cjs/api/types/InternalServerErrorBody.js +46 -0
- package/dist/cjs/api/types/Inviteuser.d.ts +2 -2
- package/dist/cjs/api/types/LoyaltyProgram.d.ts +12 -12
- package/dist/cjs/api/types/NodeResponse.d.ts +8 -8
- package/dist/cjs/api/types/Note.d.ts +6 -6
- package/dist/cjs/api/types/NoteData.d.ts +3 -3
- package/dist/cjs/api/types/Order.d.ts +30 -20
- package/dist/cjs/api/types/Pipeline.d.ts +5 -5
- package/dist/cjs/api/types/PostContactInfo.d.ts +4 -4
- package/dist/cjs/api/types/PostSendFailed.d.ts +3 -3
- package/dist/cjs/api/types/Redeem.d.ts +14 -14
- package/dist/cjs/api/types/RuleConditionResponse.d.ts +5 -5
- package/dist/cjs/api/types/SendReport.d.ts +1 -1
- package/dist/cjs/api/types/SendTestEmail.d.ts +1 -1
- package/dist/cjs/api/types/SendTransacSms.d.ts +10 -6
- package/dist/cjs/api/types/Task.d.ts +4 -4
- package/dist/cjs/api/types/Tier.d.ts +16 -16
- package/dist/cjs/api/types/TierGroup.d.ts +8 -8
- package/dist/cjs/api/types/Transaction.d.ts +15 -15
- package/dist/cjs/api/types/UpdateCampaignStatus.d.ts +2 -1
- package/dist/cjs/api/types/UpdateCampaignStatus.js +1 -0
- package/dist/cjs/api/types/ValueResponse.d.ts +8 -8
- package/dist/cjs/api/types/VariablesItems.d.ts +3 -3
- package/dist/cjs/api/types/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/Fetcher.js +8 -2
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/core/runtime/runtime.js +8 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +12 -0
- package/dist/esm/Client.mjs +34 -0
- package/dist/esm/api/resources/account/exports.d.mts +2 -0
- package/dist/esm/api/resources/account/exports.mjs +3 -0
- package/dist/esm/api/resources/account/types/GetAccountActivityResponse.d.mts +1 -1
- package/dist/esm/api/resources/account/types/GetAccountResponse.d.mts +7 -7
- package/dist/esm/api/resources/balance/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/balance/client/Client.mjs +20 -11
- package/dist/esm/api/resources/balance/client/requests/GetContactBalancesRequest.d.mts +2 -0
- package/dist/esm/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidActiveBalanceRequest.d.mts +2 -0
- package/dist/esm/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.mts +10 -6
- package/dist/esm/api/resources/balance/client/requests/GetSubscriptionBalancesRequest.d.mts +2 -0
- package/dist/esm/api/resources/balance/client/requests/PostLoyaltyBalanceProgramsPidBalanceDefinitionsRequest.d.mts +10 -1
- package/dist/esm/api/resources/balance/client/requests/UpdateBalanceDefinitionRequest.d.mts +10 -1
- package/dist/esm/api/resources/balance/exports.d.mts +2 -0
- package/dist/esm/api/resources/balance/exports.mjs +3 -0
- package/dist/esm/api/resources/balance/types/CreateBalanceOrderResponse.d.mts +6 -6
- package/dist/esm/api/resources/balance/types/GetBalanceDefinitionListResponse.d.mts +1 -1
- package/dist/esm/api/resources/balance/types/GetContactBalancesResponse.d.mts +8 -8
- package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestStatus.d.mts +8 -0
- package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestStatus.mjs +8 -0
- package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestTransactionType.d.mts +5 -0
- package/dist/esm/api/resources/balance/types/{GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.mjs → GetLoyaltyBalanceProgramsPidTransactionHistoryRequestTransactionType.mjs} +3 -4
- package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.d.mts +15 -15
- package/dist/esm/api/resources/balance/types/GetSubscriptionBalancesResponse.d.mts +3 -3
- package/dist/esm/api/resources/balance/types/PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.d.mts +9 -9
- package/dist/esm/api/resources/balance/types/index.d.mts +2 -1
- package/dist/esm/api/resources/balance/types/index.mjs +2 -1
- package/dist/esm/api/resources/companies/client/Client.d.mts +28 -0
- package/dist/esm/api/resources/companies/client/Client.mjs +107 -0
- package/dist/esm/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.d.mts +10 -0
- package/dist/esm/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.mjs +2 -0
- package/dist/esm/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.d.mts +33 -0
- package/dist/esm/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.mjs +9 -0
- package/dist/esm/api/resources/companies/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/companies/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/companies/exports.d.mts +2 -0
- package/dist/esm/api/resources/companies/exports.mjs +3 -0
- package/dist/esm/api/resources/companies/types/GetCompaniesResponse.d.mts +1 -1
- package/dist/esm/api/resources/companies/types/GetCrmAttributesCompaniesResponseItem.d.mts +5 -5
- package/dist/esm/api/resources/companies/types/PostCompaniesImportResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/client/Client.d.mts +15 -45
- package/dist/esm/api/resources/contacts/client/Client.mjs +15 -45
- package/dist/esm/api/resources/contacts/client/requests/AddContactToListRequest.d.mts +0 -24
- package/dist/esm/api/resources/contacts/client/requests/ImportContactsRequest.d.mts +4 -4
- package/dist/esm/api/resources/contacts/client/requests/RemoveContactFromListRequest.d.mts +0 -32
- package/dist/esm/api/resources/contacts/client/requests/RequestContactExportRequest.d.mts +7 -7
- package/dist/esm/api/resources/contacts/client/requests/UpdateBatchContactsRequest.d.mts +10 -10
- package/dist/esm/api/resources/contacts/exports.d.mts +2 -0
- package/dist/esm/api/resources/contacts/exports.mjs +3 -0
- package/dist/esm/api/resources/contacts/types/CreateContactResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/types/GetAttributesResponse.d.mts +4 -4
- package/dist/esm/api/resources/contacts/types/GetContactInfoResponse.d.mts +13 -13
- package/dist/esm/api/resources/contacts/types/GetContactStatsResponse.d.mts +11 -11
- package/dist/esm/api/resources/contacts/types/GetFolderListsResponse.d.mts +2 -2
- package/dist/esm/api/resources/contacts/types/GetFoldersResponse.d.mts +2 -2
- package/dist/esm/api/resources/contacts/types/GetListResponse.d.mts +2 -2
- package/dist/esm/api/resources/contacts/types/GetListsResponse.d.mts +2 -2
- package/dist/esm/api/resources/contacts/types/GetSegmentsResponse.d.mts +3 -3
- package/dist/esm/api/resources/conversations/exports.d.mts +2 -0
- package/dist/esm/api/resources/conversations/exports.mjs +3 -0
- package/dist/esm/api/resources/conversations/types/PutConversationsVisitorGroupResponse.d.mts +2 -2
- package/dist/esm/api/resources/coupons/exports.d.mts +2 -0
- package/dist/esm/api/resources/coupons/exports.mjs +3 -0
- package/dist/esm/api/resources/customObjects/client/Client.d.mts +6 -14
- package/dist/esm/api/resources/customObjects/client/Client.mjs +6 -14
- package/dist/esm/api/resources/customObjects/client/requests/UpsertrecordsRequest.d.mts +6 -6
- package/dist/esm/api/resources/customObjects/exports.d.mts +2 -0
- package/dist/esm/api/resources/customObjects/exports.mjs +3 -0
- package/dist/esm/api/resources/customObjects/types/BatchDeleteObjectRecordsResponse.d.mts +2 -2
- package/dist/esm/api/resources/customObjects/types/GetrecordsResponse.d.mts +9 -9
- package/dist/esm/api/resources/customObjects/types/UpsertrecordsResponse.d.mts +3 -3
- package/dist/esm/api/resources/deals/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/deals/client/Client.mjs +2 -0
- package/dist/esm/api/resources/deals/exports.d.mts +2 -0
- package/dist/esm/api/resources/deals/exports.mjs +3 -0
- package/dist/esm/api/resources/deals/types/GetCrmAttributesDealsResponseItem.d.mts +5 -5
- package/dist/esm/api/resources/deals/types/GetCrmDealsResponse.d.mts +1 -1
- package/dist/esm/api/resources/deals/types/PostCrmDealsImportResponse.d.mts +1 -1
- package/dist/esm/api/resources/domains/client/requests/AuthenticateDomainRequest.d.mts +0 -5
- package/dist/esm/api/resources/domains/client/requests/CreateDomainRequest.d.mts +0 -10
- package/dist/esm/api/resources/domains/client/requests/GetDomainConfigurationRequest.d.mts +0 -5
- package/dist/esm/api/resources/domains/exports.d.mts +2 -0
- package/dist/esm/api/resources/domains/exports.mjs +3 -0
- package/dist/esm/api/resources/domains/types/CreateDomainResponse.d.mts +2 -2
- package/dist/esm/api/resources/domains/types/GetDomainsResponse.d.mts +1 -1
- package/dist/esm/api/resources/ecommerce/client/Client.d.mts +2 -4
- package/dist/esm/api/resources/ecommerce/client/Client.mjs +2 -4
- package/dist/esm/api/resources/ecommerce/client/requests/CreateBatchOrderRequest.d.mts +1 -2
- package/dist/esm/api/resources/ecommerce/client/requests/CreateProductAlertRequest.d.mts +3 -3
- package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateBatchCategoryRequest.d.mts +4 -4
- package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateBatchProductsRequest.d.mts +15 -11
- package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateProductRequest.d.mts +5 -1
- package/dist/esm/api/resources/ecommerce/exports.d.mts +2 -0
- package/dist/esm/api/resources/ecommerce/exports.mjs +3 -0
- package/dist/esm/api/resources/ecommerce/types/CreateBatchOrderResponse.d.mts +1 -1
- package/dist/esm/api/resources/ecommerce/types/CreateUpdateBatchCategoryResponse.d.mts +2 -2
- package/dist/esm/api/resources/ecommerce/types/CreateUpdateBatchProductsResponse.d.mts +2 -2
- package/dist/esm/api/resources/ecommerce/types/CreateUpdateCategoryResponse.d.mts +1 -1
- package/dist/esm/api/resources/ecommerce/types/CreateUpdateProductResponse.d.mts +1 -1
- package/dist/esm/api/resources/ecommerce/types/GetEcommerceAttributionProductsConversionSourceConversionSourceIdResponse.d.mts +7 -7
- package/dist/esm/api/resources/emailCampaigns/client/Client.d.mts +2 -5
- package/dist/esm/api/resources/emailCampaigns/client/Client.mjs +4 -6
- package/dist/esm/api/resources/emailCampaigns/client/requests/CreateEmailCampaignRequest.d.mts +9 -9
- package/dist/esm/api/resources/emailCampaigns/client/requests/GetEmailCampaignRequest.d.mts +2 -0
- package/dist/esm/api/resources/emailCampaigns/client/requests/UpdateEmailCampaignRequest.d.mts +9 -9
- package/dist/esm/api/resources/emailCampaigns/exports.d.mts +2 -0
- package/dist/esm/api/resources/emailCampaigns/exports.mjs +3 -0
- package/dist/esm/api/resources/emailCampaigns/types/GetAbTestCampaignResultResponse.d.mts +8 -8
- package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignResponse.d.mts +32 -25
- package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignResponse.mjs +3 -0
- package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.d.mts +2 -0
- package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.mjs +2 -0
- package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.d.mts +34 -27
- package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.mjs +3 -0
- package/dist/esm/api/resources/emailCampaigns/types/UploadImageToGalleryResponse.d.mts +1 -1
- package/dist/esm/api/resources/event/client/Client.d.mts +36 -0
- package/dist/esm/api/resources/event/client/Client.mjs +125 -0
- package/dist/esm/api/resources/event/client/requests/CreateEventRequest.d.mts +10 -10
- package/dist/esm/api/resources/event/client/requests/GetEventsRequest.d.mts +20 -0
- package/dist/esm/api/resources/event/client/requests/GetEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/event/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/event/exports.d.mts +2 -0
- package/dist/esm/api/resources/event/exports.mjs +3 -0
- package/dist/esm/api/resources/event/index.d.mts +1 -0
- package/dist/esm/api/resources/event/index.mjs +1 -0
- package/dist/esm/api/resources/event/types/CreateBatchEventsRequestItem.d.mts +59 -0
- package/dist/esm/api/resources/event/types/CreateBatchEventsRequestItem.mjs +2 -0
- package/dist/esm/api/resources/event/types/index.d.mts +1 -0
- package/dist/esm/api/resources/event/types/index.mjs +1 -0
- package/dist/esm/api/resources/externalFeeds/client/requests/GetExternalFeedByUuidRequest.d.mts +0 -10
- package/dist/esm/api/resources/externalFeeds/exports.d.mts +2 -0
- package/dist/esm/api/resources/externalFeeds/exports.mjs +3 -0
- package/dist/esm/api/resources/externalFeeds/types/GetAllExternalFeedsResponse.d.mts +4 -4
- package/dist/esm/api/resources/externalFeeds/types/GetExternalFeedByUuidResponse.d.mts +4 -4
- package/dist/esm/api/resources/files/exports.d.mts +2 -0
- package/dist/esm/api/resources/files/exports.mjs +3 -0
- package/dist/esm/api/resources/files/types/GetCrmFilesIdResponse.d.mts +1 -1
- package/dist/esm/api/resources/inboundParsing/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/inboundParsing/client/Client.mjs +1 -0
- package/dist/esm/api/resources/inboundParsing/exports.d.mts +2 -0
- package/dist/esm/api/resources/inboundParsing/exports.mjs +3 -0
- package/dist/esm/api/resources/inboundParsing/types/GetInboundEmailEventsByUuidResponse.d.mts +14 -14
- package/dist/esm/api/resources/inboundParsing/types/GetInboundEmailEventsResponse.d.mts +1 -1
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/masterAccount/client/requests/InviteAdminUserRequest.d.mts +2 -2
- package/dist/esm/api/resources/masterAccount/client/requests/PutCorporateSubAccountIdPlanRequest.d.mts +9 -9
- package/dist/esm/api/resources/masterAccount/client/requests/PutCorporateSubAccountsPlanRequest.d.mts +8 -8
- package/dist/esm/api/resources/masterAccount/client/requests/PutCorporateUserEmailPermissionsRequest.d.mts +2 -2
- package/dist/esm/api/resources/masterAccount/exports.d.mts +2 -0
- package/dist/esm/api/resources/masterAccount/exports.mjs +3 -0
- package/dist/esm/api/resources/masterAccount/types/GetCorporateGroupIdResponse.d.mts +12 -12
- package/dist/esm/api/resources/masterAccount/types/GetCorporateInvitedUsersListResponse.d.mts +11 -11
- package/dist/esm/api/resources/masterAccount/types/GetCorporateIpResponseItem.d.mts +3 -3
- package/dist/esm/api/resources/masterAccount/types/GetCorporateMasterAccountResponse.d.mts +31 -31
- package/dist/esm/api/resources/masterAccount/types/GetCorporateSubAccountIdResponse.d.mts +37 -37
- package/dist/esm/api/resources/masterAccount/types/GetCorporateSubAccountResponse.d.mts +4 -4
- package/dist/esm/api/resources/masterAccount/types/GetCorporateUserPermissionResponse.d.mts +10 -10
- package/dist/esm/api/resources/masterAccount/types/GetSubAccountGroupsResponseItem.d.mts +2 -2
- package/dist/esm/api/resources/masterAccount/types/InviteAdminUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/masterAccount/types/PostCorporateGroupResponse.d.mts +1 -1
- package/dist/esm/api/resources/masterAccount/types/PutCorporateUserInvitationActionEmailResponse.d.mts +1 -1
- package/dist/esm/api/resources/notes/exports.d.mts +2 -0
- package/dist/esm/api/resources/notes/exports.mjs +3 -0
- package/dist/esm/api/resources/notes/types/PostCrmNotesResponse.d.mts +1 -1
- package/dist/esm/api/resources/payments/exports.d.mts +2 -0
- package/dist/esm/api/resources/payments/exports.mjs +3 -0
- package/dist/esm/api/resources/payments/types/CreatePaymentRequestResponse.d.mts +1 -1
- package/dist/esm/api/resources/payments/types/GetPaymentRequestResponse.d.mts +3 -3
- package/dist/esm/api/resources/process/client/requests/GetProcessRequest.d.mts +0 -15
- package/dist/esm/api/resources/process/exports.d.mts +2 -0
- package/dist/esm/api/resources/process/exports.mjs +3 -0
- package/dist/esm/api/resources/process/types/GetProcessResponse.d.mts +16 -16
- package/dist/esm/api/resources/process/types/GetProcessesResponse.d.mts +16 -16
- package/dist/esm/api/resources/program/client/Client.d.mts +21 -0
- package/dist/esm/api/resources/program/client/Client.mjs +69 -1
- package/dist/esm/api/resources/program/client/requests/DeleteContactSubscriptionRequest.d.mts +13 -0
- package/dist/esm/api/resources/program/client/requests/DeleteContactSubscriptionRequest.mjs +2 -0
- package/dist/esm/api/resources/program/client/requests/GetParameterSubscriptionInfoRequest.d.mts +2 -0
- package/dist/esm/api/resources/program/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/program/exports.d.mts +2 -0
- package/dist/esm/api/resources/program/exports.mjs +3 -0
- package/dist/esm/api/resources/program/types/GetLpListResponse.d.mts +1 -1
- package/dist/esm/api/resources/program/types/GetParameterSubscriptionInfoResponse.d.mts +28 -28
- package/dist/esm/api/resources/program/types/SubscribeMemberToASubscriptionResponse.d.mts +5 -5
- package/dist/esm/api/resources/program/types/SubscribeToLoyaltyProgramResponse.d.mts +7 -7
- package/dist/esm/api/resources/reward/client/requests/RedeemVoucherRequest.d.mts +26 -26
- package/dist/esm/api/resources/reward/exports.d.mts +2 -0
- package/dist/esm/api/resources/reward/exports.mjs +3 -0
- package/dist/esm/api/resources/reward/types/CreateRewardResponse.d.mts +8 -8
- package/dist/esm/api/resources/reward/types/CreateVoucherResponse.d.mts +11 -11
- package/dist/esm/api/resources/reward/types/GetCodeCountResponse.d.mts +1 -1
- package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidOffersResponse.d.mts +11 -11
- package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidRewardsRidResponse.d.mts +81 -81
- package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidVouchersResponse.d.mts +15 -15
- package/dist/esm/api/resources/reward/types/ValidateRewardResponse.d.mts +1 -1
- package/dist/esm/api/resources/senders/client/requests/CreateSenderRequest.d.mts +1 -13
- package/dist/esm/api/resources/senders/client/requests/GetIpsFromSenderRequest.d.mts +0 -5
- package/dist/esm/api/resources/senders/client/requests/GetSendersRequest.d.mts +0 -3
- package/dist/esm/api/resources/senders/client/requests/UpdateSenderRequest.d.mts +1 -1
- package/dist/esm/api/resources/senders/exports.d.mts +2 -0
- package/dist/esm/api/resources/senders/exports.mjs +3 -0
- package/dist/esm/api/resources/senders/types/CreateSenderResponse.d.mts +2 -2
- package/dist/esm/api/resources/senders/types/GetSendersResponse.d.mts +1 -1
- package/dist/esm/api/resources/smsCampaigns/client/requests/CreateSmsCampaignRequest.d.mts +1 -1
- package/dist/esm/api/resources/smsCampaigns/client/requests/UpdateSmsCampaignRequest.d.mts +1 -1
- package/dist/esm/api/resources/smsCampaigns/exports.d.mts +2 -0
- package/dist/esm/api/resources/smsCampaigns/exports.mjs +3 -0
- package/dist/esm/api/resources/smsCampaigns/types/GetSmsCampaignResponse.d.mts +1 -1
- package/dist/esm/api/resources/smsCampaigns/types/GetSmsCampaignsResponse.d.mts +3 -3
- package/dist/esm/api/resources/smsTemplates/exports.d.mts +2 -0
- package/dist/esm/api/resources/smsTemplates/exports.mjs +3 -0
- package/dist/esm/api/resources/smsTemplates/types/GetSmsTemplatesResponse.d.mts +17 -17
- package/dist/esm/api/resources/tasks/exports.d.mts +2 -0
- package/dist/esm/api/resources/tasks/exports.mjs +3 -0
- package/dist/esm/api/resources/tasks/types/GetCrmTasksResponse.d.mts +1 -1
- package/dist/esm/api/resources/tasks/types/GetCrmTasktypesResponse.d.mts +2 -2
- package/dist/esm/api/resources/tier/client/requests/CreateTierForTierGroupRequest.d.mts +3 -3
- package/dist/esm/api/resources/tier/client/requests/CreateTierGroupRequest.d.mts +11 -0
- package/dist/esm/api/resources/tier/client/requests/UpdateTierGroupRequest.d.mts +11 -0
- package/dist/esm/api/resources/tier/client/requests/UpdateTierRequest.d.mts +3 -3
- package/dist/esm/api/resources/tier/exports.d.mts +2 -0
- package/dist/esm/api/resources/tier/exports.mjs +3 -0
- package/dist/esm/api/resources/tier/types/AddSubscriptionToTierResponse.d.mts +7 -7
- package/dist/esm/api/resources/tier/types/GetListOfTierGroupsResponse.d.mts +1 -1
- package/dist/esm/api/resources/tier/types/GetLoyaltyProgramTierResponse.d.mts +1 -1
- package/dist/esm/api/resources/transactionalEmails/client/Client.d.mts +2 -6
- package/dist/esm/api/resources/transactionalEmails/client/Client.mjs +2 -6
- package/dist/esm/api/resources/transactionalEmails/client/requests/CreateSmtpTemplateRequest.d.mts +3 -3
- package/dist/esm/api/resources/transactionalEmails/client/requests/GetScheduledEmailByIdRequest.d.mts +0 -7
- package/dist/esm/api/resources/transactionalEmails/client/requests/SendTransacEmailRequest.d.mts +21 -21
- package/dist/esm/api/resources/transactionalEmails/client/requests/UpdateSmtpTemplateRequest.d.mts +3 -3
- package/dist/esm/api/resources/transactionalEmails/exports.d.mts +2 -0
- package/dist/esm/api/resources/transactionalEmails/exports.mjs +3 -0
- package/dist/esm/api/resources/transactionalEmails/types/GetAggregatedSmtpReportResponse.d.mts +13 -13
- package/dist/esm/api/resources/transactionalEmails/types/GetEmailEventReportResponse.d.mts +8 -8
- package/dist/esm/api/resources/transactionalEmails/types/GetSmtpReportResponse.d.mts +1 -1
- package/dist/esm/api/resources/transactionalEmails/types/GetSmtpTemplatesResponse.d.mts +2 -2
- package/dist/esm/api/resources/transactionalEmails/types/GetTransacBlockedContactsResponse.d.mts +4 -4
- package/dist/esm/api/resources/transactionalEmails/types/GetTransacEmailContentResponse.d.mts +1 -1
- package/dist/esm/api/resources/transactionalEmails/types/GetTransacEmailsListResponse.d.mts +5 -5
- package/dist/esm/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesResponse.d.mts +6 -6
- package/dist/esm/api/resources/transactionalEmails/types/SendTransacEmailResponse.d.mts +2 -2
- package/dist/esm/api/resources/transactionalSms/client/Client.d.mts +5 -9
- package/dist/esm/api/resources/transactionalSms/client/Client.mjs +5 -9
- package/dist/esm/api/resources/transactionalSms/exports.d.mts +2 -0
- package/dist/esm/api/resources/transactionalSms/exports.mjs +3 -0
- package/dist/esm/api/resources/transactionalSms/types/GetSmsEventsResponse.d.mts +8 -8
- package/dist/esm/api/resources/transactionalSms/types/GetTransacAggregatedSmsReportResponse.d.mts +11 -11
- package/dist/esm/api/resources/transactionalSms/types/GetTransacSmsReportResponse.d.mts +12 -12
- package/dist/esm/api/resources/transactionalSms/types/SendTransacSmsResponse.d.mts +3 -3
- package/dist/esm/api/resources/transactionalWhatsApp/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/transactionalWhatsApp/client/Client.mjs +2 -1
- package/dist/esm/api/resources/transactionalWhatsApp/exports.d.mts +2 -0
- package/dist/esm/api/resources/transactionalWhatsApp/exports.mjs +3 -0
- package/dist/esm/api/resources/transactionalWhatsApp/types/GetWhatsappEventReportResponse.d.mts +4 -4
- package/dist/esm/api/resources/user/exports.d.mts +2 -0
- package/dist/esm/api/resources/user/exports.mjs +3 -0
- package/dist/esm/api/resources/user/types/EditUserPermissionResponse.d.mts +2 -2
- package/dist/esm/api/resources/user/types/GetInvitedUsersListResponse.d.mts +4 -4
- package/dist/esm/api/resources/user/types/InviteuserResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/PutRevokeUserPermissionResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/PutresendcancelinvitationResponse.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +7 -13
- package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -13
- package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequest.d.mts +6 -4
- package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequest.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.mts +6 -4
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.mjs +1 -0
- package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/exports.mjs +3 -0
- package/dist/esm/api/resources/whatsAppCampaigns/client/Client.d.mts +19 -44
- package/dist/esm/api/resources/whatsAppCampaigns/client/Client.mjs +19 -44
- package/dist/esm/api/resources/whatsAppCampaigns/client/requests/CreateWhatsAppCampaignRequest.d.mts +3 -3
- package/dist/esm/api/resources/whatsAppCampaigns/client/requests/UpdateWhatsAppCampaignRequest.d.mts +3 -3
- package/dist/esm/api/resources/whatsAppCampaigns/exports.d.mts +2 -0
- package/dist/esm/api/resources/whatsAppCampaigns/exports.mjs +3 -0
- package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignResponse.d.mts +15 -15
- package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignsResponse.d.mts +6 -6
- package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppConfigResponse.d.mts +6 -6
- package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppTemplatesResponse.d.mts +3 -3
- package/dist/esm/api/types/BalanceDefinition.d.mts +20 -20
- package/dist/esm/api/types/BalanceLimit.d.mts +8 -8
- package/dist/esm/api/types/BatchAcceptedResponse.d.mts +9 -0
- package/dist/esm/api/types/BatchAcceptedResponse.mjs +2 -0
- package/dist/esm/api/types/BatchEventsResponse.d.mts +26 -0
- package/dist/esm/api/types/BatchEventsResponse.mjs +2 -0
- package/dist/esm/api/types/Company.d.mts +4 -4
- package/dist/esm/api/types/ContactErrorModel.d.mts +1 -1
- package/dist/esm/api/types/ConversationsMessage.d.mts +53 -53
- package/dist/esm/api/types/CreateUpdateFolder.d.mts +1 -1
- package/dist/esm/api/types/Deal.d.mts +4 -4
- package/dist/esm/api/types/ErrorModel.d.mts +1 -1
- package/dist/esm/api/types/FileData.d.mts +7 -7
- package/dist/esm/api/types/GetCampaignStats.d.mts +7 -7
- package/dist/esm/api/types/GetCategoryDetails.d.mts +1 -1
- package/dist/esm/api/types/GetContactDetails.d.mts +2 -2
- package/dist/esm/api/types/GetCouponCollection.d.mts +3 -3
- package/dist/esm/api/types/GetEventsList.d.mts +32 -0
- package/dist/esm/api/types/GetEventsList.mjs +2 -0
- package/dist/esm/api/types/GetExtendedCampaignOverview.d.mts +32 -25
- package/dist/esm/api/types/GetExtendedCampaignOverview.mjs +3 -0
- package/dist/esm/api/types/GetExtendedCampaignStats.d.mts +4 -4
- package/dist/esm/api/types/GetProductDetails.d.mts +14 -10
- package/dist/esm/api/types/GetSmsCampaignOverview.d.mts +1 -1
- package/dist/esm/api/types/GetSmtpTemplateOverview.d.mts +4 -4
- package/dist/esm/api/types/GetWebhook.d.mts +4 -4
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +48 -0
- package/dist/esm/api/types/InternalServerErrorBody.mjs +43 -0
- package/dist/esm/api/types/Inviteuser.d.mts +2 -2
- package/dist/esm/api/types/LoyaltyProgram.d.mts +12 -12
- package/dist/esm/api/types/NodeResponse.d.mts +8 -8
- package/dist/esm/api/types/Note.d.mts +6 -6
- package/dist/esm/api/types/NoteData.d.mts +3 -3
- package/dist/esm/api/types/Order.d.mts +30 -20
- package/dist/esm/api/types/Pipeline.d.mts +5 -5
- package/dist/esm/api/types/PostContactInfo.d.mts +4 -4
- package/dist/esm/api/types/PostSendFailed.d.mts +3 -3
- package/dist/esm/api/types/Redeem.d.mts +14 -14
- package/dist/esm/api/types/RuleConditionResponse.d.mts +5 -5
- package/dist/esm/api/types/SendReport.d.mts +1 -1
- package/dist/esm/api/types/SendTestEmail.d.mts +1 -1
- package/dist/esm/api/types/SendTransacSms.d.mts +10 -6
- package/dist/esm/api/types/Task.d.mts +4 -4
- package/dist/esm/api/types/Tier.d.mts +16 -16
- package/dist/esm/api/types/TierGroup.d.mts +8 -8
- package/dist/esm/api/types/Transaction.d.mts +15 -15
- package/dist/esm/api/types/UpdateCampaignStatus.d.mts +2 -1
- package/dist/esm/api/types/UpdateCampaignStatus.mjs +1 -0
- package/dist/esm/api/types/ValueResponse.d.mts +8 -8
- package/dist/esm/api/types/VariablesItems.d.mts +3 -3
- package/dist/esm/api/types/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/core/runtime/runtime.mjs +8 -7
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +356 -4
- package/reference.md +362 -155
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.d.ts +0 -6
- package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.js +0 -9
- package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.d.mts +0 -6
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Transaction {
|
|
5
5
|
/** The transaction amount. */
|
|
6
|
-
amount?: number;
|
|
6
|
+
amount?: number | undefined;
|
|
7
7
|
/** Unique identifier (UUID) of the associated balance definition. */
|
|
8
|
-
balanceDefinitionId?: string;
|
|
8
|
+
balanceDefinitionId?: string | undefined;
|
|
9
9
|
/** Timestamp when the transaction was canceled (nullable). */
|
|
10
|
-
cancelledAt?: string;
|
|
10
|
+
cancelledAt?: string | undefined;
|
|
11
11
|
/** Timestamp when the transaction was completed (nullable). */
|
|
12
|
-
completedAt?: string;
|
|
12
|
+
completedAt?: string | undefined;
|
|
13
13
|
/** Unique identifier of the contact associated with the transaction. */
|
|
14
|
-
contactId?: number;
|
|
14
|
+
contactId?: number | undefined;
|
|
15
15
|
/** Timestamp when the transaction was created. */
|
|
16
|
-
createdAt?: string;
|
|
16
|
+
createdAt?: string | undefined;
|
|
17
17
|
/** Optional timestamp indicating when the transaction event occurred. */
|
|
18
|
-
eventTime?: string;
|
|
18
|
+
eventTime?: string | undefined;
|
|
19
19
|
/** Expiry date of the transaction (nullable). */
|
|
20
|
-
expirationDate?: string;
|
|
20
|
+
expirationDate?: string | undefined;
|
|
21
21
|
/** Unique identifier (UUID) of the transaction. */
|
|
22
|
-
id?: string;
|
|
22
|
+
id?: string | undefined;
|
|
23
23
|
/** Unique identifier (UUID) of the associated loyalty program. */
|
|
24
|
-
loyaltyProgramId?: string;
|
|
24
|
+
loyaltyProgramId?: string | undefined;
|
|
25
25
|
/** Optional metadata associated with the transaction. */
|
|
26
|
-
meta?: Record<string, unknown
|
|
26
|
+
meta?: Record<string, unknown> | undefined;
|
|
27
27
|
/** Reason for rejection if the transaction was declined (nullable). */
|
|
28
|
-
rejectReason?: string;
|
|
28
|
+
rejectReason?: string | undefined;
|
|
29
29
|
/** Timestamp when the transaction was rejected (nullable). */
|
|
30
|
-
rejectedAt?: string;
|
|
30
|
+
rejectedAt?: string | undefined;
|
|
31
31
|
/** The current status of the transaction (e.g., pending, completed, rejected). */
|
|
32
|
-
status?: string;
|
|
32
|
+
status?: string | undefined;
|
|
33
33
|
/** Timestamp when the transaction was last updated. */
|
|
34
|
-
updatedAt?: string;
|
|
34
|
+
updatedAt?: string | undefined;
|
|
35
35
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface UpdateCampaignStatus {
|
|
5
5
|
/** Note:- **replicateTemplate** status will be available **only for template type campaigns.** */
|
|
6
|
-
status?: UpdateCampaignStatus.Status;
|
|
6
|
+
status?: UpdateCampaignStatus.Status | undefined;
|
|
7
7
|
}
|
|
8
8
|
export declare namespace UpdateCampaignStatus {
|
|
9
9
|
/** Note:- **replicateTemplate** status will be available **only for template type campaigns.** */
|
|
@@ -15,6 +15,7 @@ export declare namespace UpdateCampaignStatus {
|
|
|
15
15
|
readonly Queued: "queued";
|
|
16
16
|
readonly Replicate: "replicate";
|
|
17
17
|
readonly ReplicateTemplate: "replicateTemplate";
|
|
18
|
+
readonly Cancel: "cancel";
|
|
18
19
|
readonly Draft: "draft";
|
|
19
20
|
};
|
|
20
21
|
type Status = (typeof Status)[keyof typeof Status];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type * as Brevo from "../index.js";
|
|
2
2
|
export interface ValueResponse {
|
|
3
3
|
/** Array values to define the rule */
|
|
4
|
-
array?: Brevo.ValueResponse[];
|
|
4
|
+
array?: Brevo.ValueResponse[] | undefined;
|
|
5
5
|
/** Boolean values for rule definition */
|
|
6
|
-
boolean?: boolean;
|
|
6
|
+
boolean?: boolean | undefined;
|
|
7
7
|
/** string */
|
|
8
|
-
contactProperty?: string;
|
|
8
|
+
contactProperty?: string | undefined;
|
|
9
9
|
/** Selected date for rule definition */
|
|
10
|
-
date?: string;
|
|
10
|
+
date?: string | undefined;
|
|
11
11
|
/** Selected event property for rule definition */
|
|
12
|
-
eventProperty?: string;
|
|
12
|
+
eventProperty?: string | undefined;
|
|
13
13
|
/** Created expression for rule definition */
|
|
14
|
-
expression?: Brevo.NodeResponse;
|
|
14
|
+
expression?: Brevo.NodeResponse | undefined;
|
|
15
15
|
/** Boolean values for rule definition */
|
|
16
|
-
number?: number;
|
|
16
|
+
number?: number | undefined;
|
|
17
17
|
/** String values for rule definition */
|
|
18
|
-
string?: string;
|
|
18
|
+
string?: string | undefined;
|
|
19
19
|
}
|
|
@@ -4,6 +4,8 @@ export * from "./AbTestVersionStats.js";
|
|
|
4
4
|
export * from "./BadRequestErrorBody.js";
|
|
5
5
|
export * from "./BalanceDefinition.js";
|
|
6
6
|
export * from "./BalanceLimit.js";
|
|
7
|
+
export * from "./BatchAcceptedResponse.js";
|
|
8
|
+
export * from "./BatchEventsResponse.js";
|
|
7
9
|
export * from "./Cart.js";
|
|
8
10
|
export * from "./Company.js";
|
|
9
11
|
export * from "./Configuration.js";
|
|
@@ -22,6 +24,7 @@ export * from "./GetContactDetails.js";
|
|
|
22
24
|
export * from "./GetContacts.js";
|
|
23
25
|
export * from "./GetCouponCollection.js";
|
|
24
26
|
export * from "./GetDeviceBrowserStats.js";
|
|
27
|
+
export * from "./GetEventsList.js";
|
|
25
28
|
export * from "./GetExtendedCampaignOverview.js";
|
|
26
29
|
export * from "./GetExtendedCampaignStats.js";
|
|
27
30
|
export * from "./GetFolder.js";
|
|
@@ -32,6 +35,7 @@ export * from "./GetSmsCampaignStats.js";
|
|
|
32
35
|
export * from "./GetSmtpTemplateOverview.js";
|
|
33
36
|
export * from "./GetSsoToken.js";
|
|
34
37
|
export * from "./GetWebhook.js";
|
|
38
|
+
export * from "./InternalServerErrorBody.js";
|
|
35
39
|
export * from "./Inviteuser.js";
|
|
36
40
|
export * from "./LoyaltyProgram.js";
|
|
37
41
|
export * from "./NodeResponse.js";
|
|
@@ -20,6 +20,8 @@ __exportStar(require("./AbTestVersionStats.js"), exports);
|
|
|
20
20
|
__exportStar(require("./BadRequestErrorBody.js"), exports);
|
|
21
21
|
__exportStar(require("./BalanceDefinition.js"), exports);
|
|
22
22
|
__exportStar(require("./BalanceLimit.js"), exports);
|
|
23
|
+
__exportStar(require("./BatchAcceptedResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./BatchEventsResponse.js"), exports);
|
|
23
25
|
__exportStar(require("./Cart.js"), exports);
|
|
24
26
|
__exportStar(require("./Company.js"), exports);
|
|
25
27
|
__exportStar(require("./Configuration.js"), exports);
|
|
@@ -38,6 +40,7 @@ __exportStar(require("./GetContactDetails.js"), exports);
|
|
|
38
40
|
__exportStar(require("./GetContacts.js"), exports);
|
|
39
41
|
__exportStar(require("./GetCouponCollection.js"), exports);
|
|
40
42
|
__exportStar(require("./GetDeviceBrowserStats.js"), exports);
|
|
43
|
+
__exportStar(require("./GetEventsList.js"), exports);
|
|
41
44
|
__exportStar(require("./GetExtendedCampaignOverview.js"), exports);
|
|
42
45
|
__exportStar(require("./GetExtendedCampaignStats.js"), exports);
|
|
43
46
|
__exportStar(require("./GetFolder.js"), exports);
|
|
@@ -48,6 +51,7 @@ __exportStar(require("./GetSmsCampaignStats.js"), exports);
|
|
|
48
51
|
__exportStar(require("./GetSmtpTemplateOverview.js"), exports);
|
|
49
52
|
__exportStar(require("./GetSsoToken.js"), exports);
|
|
50
53
|
__exportStar(require("./GetWebhook.js"), exports);
|
|
54
|
+
__exportStar(require("./InternalServerErrorBody.js"), exports);
|
|
51
55
|
__exportStar(require("./Inviteuser.js"), exports);
|
|
52
56
|
__exportStar(require("./LoyaltyProgram.js"), exports);
|
|
53
57
|
__exportStar(require("./NodeResponse.js"), exports);
|
|
@@ -14,6 +14,6 @@ export type BinaryResponse = {
|
|
|
14
14
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
15
15
|
* Some versions of the Fetch API may not support this method.
|
|
16
16
|
*/
|
|
17
|
-
bytes?():
|
|
17
|
+
bytes?(): Promise<Uint8Array>;
|
|
18
18
|
};
|
|
19
19
|
export declare function getBinaryResponse(response: Response): BinaryResponse;
|
|
@@ -156,7 +156,13 @@ function getHeaders(args) {
|
|
|
156
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
157
|
var _a;
|
|
158
158
|
const newHeaders = new Headers_js_1.Headers();
|
|
159
|
-
newHeaders.set("Accept", args.responseType === "json"
|
|
159
|
+
newHeaders.set("Accept", args.responseType === "json"
|
|
160
|
+
? "application/json"
|
|
161
|
+
: args.responseType === "text"
|
|
162
|
+
? "text/plain"
|
|
163
|
+
: args.responseType === "sse"
|
|
164
|
+
? "text/event-stream"
|
|
165
|
+
: "*/*");
|
|
160
166
|
if (args.body !== undefined && args.contentType != null) {
|
|
161
167
|
newHeaders.set("Content-Type", args.contentType);
|
|
162
168
|
}
|
|
@@ -200,7 +206,7 @@ function fetcherImpl(args) {
|
|
|
200
206
|
}
|
|
201
207
|
try {
|
|
202
208
|
const response = yield (0, requestWithRetries_js_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
|
|
203
|
-
return (0, makeRequest_js_1.makeRequest)(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
|
|
209
|
+
return (0, makeRequest_js_1.makeRequest)(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex, args.responseType === "streaming" || args.responseType === "sse");
|
|
204
210
|
}), args.maxRetries);
|
|
205
211
|
if (response.status >= 200 && response.status < 400) {
|
|
206
212
|
if (logger.isDebug()) {
|
|
@@ -6,6 +6,8 @@ export type { Fetcher, FetchFunction } from "./Fetcher.js";
|
|
|
6
6
|
export { fetcher } from "./Fetcher.js";
|
|
7
7
|
export { getHeader } from "./getHeader.js";
|
|
8
8
|
export { HttpResponsePromise } from "./HttpResponsePromise.js";
|
|
9
|
+
export type { PassthroughRequest } from "./makePassthroughRequest.js";
|
|
10
|
+
export { makePassthroughRequest } from "./makePassthroughRequest.js";
|
|
9
11
|
export type { RawResponse, WithRawResponse } from "./RawResponse.js";
|
|
10
12
|
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.js";
|
|
11
13
|
export { Supplier } from "./Supplier.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.fetcher = exports.EndpointSupplier = void 0;
|
|
3
|
+
exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.makePassthroughRequest = exports.HttpResponsePromise = exports.getHeader = exports.fetcher = exports.EndpointSupplier = void 0;
|
|
4
4
|
var EndpointSupplier_js_1 = require("./EndpointSupplier.js");
|
|
5
5
|
Object.defineProperty(exports, "EndpointSupplier", { enumerable: true, get: function () { return EndpointSupplier_js_1.EndpointSupplier; } });
|
|
6
6
|
var Fetcher_js_1 = require("./Fetcher.js");
|
|
@@ -9,6 +9,8 @@ var getHeader_js_1 = require("./getHeader.js");
|
|
|
9
9
|
Object.defineProperty(exports, "getHeader", { enumerable: true, get: function () { return getHeader_js_1.getHeader; } });
|
|
10
10
|
var HttpResponsePromise_js_1 = require("./HttpResponsePromise.js");
|
|
11
11
|
Object.defineProperty(exports, "HttpResponsePromise", { enumerable: true, get: function () { return HttpResponsePromise_js_1.HttpResponsePromise; } });
|
|
12
|
+
var makePassthroughRequest_js_1 = require("./makePassthroughRequest.js");
|
|
13
|
+
Object.defineProperty(exports, "makePassthroughRequest", { enumerable: true, get: function () { return makePassthroughRequest_js_1.makePassthroughRequest; } });
|
|
12
14
|
var RawResponse_js_1 = require("./RawResponse.js");
|
|
13
15
|
Object.defineProperty(exports, "abortRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.abortRawResponse; } });
|
|
14
16
|
Object.defineProperty(exports, "toRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.toRawResponse; } });
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type LogConfig, type Logger } from "../logging/logger.js";
|
|
2
|
+
import { Supplier } from "./Supplier.js";
|
|
3
|
+
export declare namespace PassthroughRequest {
|
|
4
|
+
/**
|
|
5
|
+
* Per-request options that can override the SDK client defaults.
|
|
6
|
+
*/
|
|
7
|
+
interface RequestOptions {
|
|
8
|
+
/** Override the default timeout for this request (in seconds). */
|
|
9
|
+
timeoutInSeconds?: number;
|
|
10
|
+
/** Override the default number of retries for this request. */
|
|
11
|
+
maxRetries?: number;
|
|
12
|
+
/** Additional headers to include in this request. */
|
|
13
|
+
headers?: Record<string, string>;
|
|
14
|
+
/** Abort signal for this request. */
|
|
15
|
+
abortSignal?: AbortSignal;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SDK client configuration used by the passthrough fetch method.
|
|
19
|
+
*/
|
|
20
|
+
interface ClientOptions {
|
|
21
|
+
/** The base URL or environment for the client. */
|
|
22
|
+
environment?: Supplier<string>;
|
|
23
|
+
/** Override the base URL. */
|
|
24
|
+
baseUrl?: Supplier<string>;
|
|
25
|
+
/** Default headers to include in requests. */
|
|
26
|
+
headers?: Record<string, unknown>;
|
|
27
|
+
/** Default maximum time to wait for a response in seconds. */
|
|
28
|
+
timeoutInSeconds?: number;
|
|
29
|
+
/** Default number of times to retry the request. Defaults to 2. */
|
|
30
|
+
maxRetries?: number;
|
|
31
|
+
/** A custom fetch function. */
|
|
32
|
+
fetch?: typeof fetch;
|
|
33
|
+
/** Logging configuration. */
|
|
34
|
+
logging?: LogConfig | Logger;
|
|
35
|
+
/** A function that returns auth headers. */
|
|
36
|
+
getAuthHeaders?: () => Promise<Record<string, string>>;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Makes a passthrough HTTP request using the SDK's configuration (auth, retry, logging, etc.)
|
|
41
|
+
* while mimicking the standard `fetch` API.
|
|
42
|
+
*
|
|
43
|
+
* @param input - The URL, path, or Request object. If a relative path, it will be resolved against the configured base URL.
|
|
44
|
+
* @param init - Standard RequestInit options (method, headers, body, signal, etc.)
|
|
45
|
+
* @param clientOptions - SDK client options (auth, default headers, logging, etc.)
|
|
46
|
+
* @param requestOptions - Per-request overrides (timeout, retries, extra headers, abort signal).
|
|
47
|
+
* @returns A standard Response object.
|
|
48
|
+
*/
|
|
49
|
+
export declare function makePassthroughRequest(input: Request | string | URL, init: RequestInit | undefined, clientOptions: PassthroughRequest.ClientOptions, requestOptions?: PassthroughRequest.RequestOptions): Promise<Response>;
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.makePassthroughRequest = makePassthroughRequest;
|
|
13
|
+
const logger_js_1 = require("../logging/logger.js");
|
|
14
|
+
const join_js_1 = require("../url/join.js");
|
|
15
|
+
const EndpointSupplier_js_1 = require("./EndpointSupplier.js");
|
|
16
|
+
const getFetchFn_js_1 = require("./getFetchFn.js");
|
|
17
|
+
const makeRequest_js_1 = require("./makeRequest.js");
|
|
18
|
+
const requestWithRetries_js_1 = require("./requestWithRetries.js");
|
|
19
|
+
const Supplier_js_1 = require("./Supplier.js");
|
|
20
|
+
/**
|
|
21
|
+
* Makes a passthrough HTTP request using the SDK's configuration (auth, retry, logging, etc.)
|
|
22
|
+
* while mimicking the standard `fetch` API.
|
|
23
|
+
*
|
|
24
|
+
* @param input - The URL, path, or Request object. If a relative path, it will be resolved against the configured base URL.
|
|
25
|
+
* @param init - Standard RequestInit options (method, headers, body, signal, etc.)
|
|
26
|
+
* @param clientOptions - SDK client options (auth, default headers, logging, etc.)
|
|
27
|
+
* @param requestOptions - Per-request overrides (timeout, retries, extra headers, abort signal).
|
|
28
|
+
* @returns A standard Response object.
|
|
29
|
+
*/
|
|
30
|
+
function makePassthroughRequest(input, init, clientOptions, requestOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
33
|
+
const logger = (0, logger_js_1.createLogger)(clientOptions.logging);
|
|
34
|
+
// Extract URL and default init properties from Request object if provided
|
|
35
|
+
let url;
|
|
36
|
+
let effectiveInit = init;
|
|
37
|
+
if (input instanceof Request) {
|
|
38
|
+
url = input.url;
|
|
39
|
+
// If no explicit init provided, extract properties from the Request object
|
|
40
|
+
if (init == null) {
|
|
41
|
+
effectiveInit = {
|
|
42
|
+
method: input.method,
|
|
43
|
+
headers: Object.fromEntries(input.headers.entries()),
|
|
44
|
+
body: input.body,
|
|
45
|
+
signal: input.signal,
|
|
46
|
+
credentials: input.credentials,
|
|
47
|
+
cache: input.cache,
|
|
48
|
+
redirect: input.redirect,
|
|
49
|
+
referrer: input.referrer,
|
|
50
|
+
integrity: input.integrity,
|
|
51
|
+
mode: input.mode,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
url = input instanceof URL ? input.toString() : input;
|
|
57
|
+
}
|
|
58
|
+
// Resolve the base URL
|
|
59
|
+
const baseUrl = (_a = (clientOptions.baseUrl != null ? yield Supplier_js_1.Supplier.get(clientOptions.baseUrl) : undefined)) !== null && _a !== void 0 ? _a : (clientOptions.environment != null ? yield Supplier_js_1.Supplier.get(clientOptions.environment) : undefined);
|
|
60
|
+
// Determine the full URL
|
|
61
|
+
let fullUrl;
|
|
62
|
+
if (url.startsWith("http://") || url.startsWith("https://")) {
|
|
63
|
+
fullUrl = url;
|
|
64
|
+
}
|
|
65
|
+
else if (baseUrl != null) {
|
|
66
|
+
fullUrl = (0, join_js_1.join)(baseUrl, url);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
fullUrl = url;
|
|
70
|
+
}
|
|
71
|
+
// Merge headers: SDK default headers -> auth headers -> user-provided headers
|
|
72
|
+
const mergedHeaders = {};
|
|
73
|
+
// Apply SDK default headers (resolve suppliers)
|
|
74
|
+
if (clientOptions.headers != null) {
|
|
75
|
+
for (const [key, value] of Object.entries(clientOptions.headers)) {
|
|
76
|
+
const resolved = yield EndpointSupplier_js_1.EndpointSupplier.get(value, { endpointMetadata: {} });
|
|
77
|
+
if (resolved != null) {
|
|
78
|
+
mergedHeaders[key.toLowerCase()] = `${resolved}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// Apply auth headers
|
|
83
|
+
if (clientOptions.getAuthHeaders != null) {
|
|
84
|
+
const authHeaders = yield clientOptions.getAuthHeaders();
|
|
85
|
+
for (const [key, value] of Object.entries(authHeaders)) {
|
|
86
|
+
mergedHeaders[key.toLowerCase()] = value;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// Apply user-provided headers from init
|
|
90
|
+
if ((effectiveInit === null || effectiveInit === void 0 ? void 0 : effectiveInit.headers) != null) {
|
|
91
|
+
const initHeaders = effectiveInit.headers instanceof Headers
|
|
92
|
+
? Object.fromEntries(effectiveInit.headers.entries())
|
|
93
|
+
: Array.isArray(effectiveInit.headers)
|
|
94
|
+
? Object.fromEntries(effectiveInit.headers)
|
|
95
|
+
: effectiveInit.headers;
|
|
96
|
+
for (const [key, value] of Object.entries(initHeaders)) {
|
|
97
|
+
if (value != null) {
|
|
98
|
+
mergedHeaders[key.toLowerCase()] = value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Apply per-request option headers (highest priority)
|
|
103
|
+
if ((requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers) != null) {
|
|
104
|
+
for (const [key, value] of Object.entries(requestOptions.headers)) {
|
|
105
|
+
mergedHeaders[key.toLowerCase()] = value;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const method = (_b = effectiveInit === null || effectiveInit === void 0 ? void 0 : effectiveInit.method) !== null && _b !== void 0 ? _b : "GET";
|
|
109
|
+
const body = effectiveInit === null || effectiveInit === void 0 ? void 0 : effectiveInit.body;
|
|
110
|
+
const timeoutInSeconds = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : clientOptions.timeoutInSeconds;
|
|
111
|
+
const timeoutMs = timeoutInSeconds != null ? timeoutInSeconds * 1000 : undefined;
|
|
112
|
+
const maxRetries = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _d !== void 0 ? _d : clientOptions.maxRetries;
|
|
113
|
+
const abortSignal = (_f = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal) !== null && _e !== void 0 ? _e : effectiveInit === null || effectiveInit === void 0 ? void 0 : effectiveInit.signal) !== null && _f !== void 0 ? _f : undefined;
|
|
114
|
+
const fetchFn = (_g = clientOptions.fetch) !== null && _g !== void 0 ? _g : (yield (0, getFetchFn_js_1.getFetchFn)());
|
|
115
|
+
if (logger.isDebug()) {
|
|
116
|
+
logger.debug("Making passthrough HTTP request", {
|
|
117
|
+
method,
|
|
118
|
+
url: fullUrl,
|
|
119
|
+
hasBody: body != null,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
const response = yield (0, requestWithRetries_js_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return (0, makeRequest_js_1.makeRequest)(fetchFn, fullUrl, method, mergedHeaders, body !== null && body !== void 0 ? body : undefined, timeoutMs, abortSignal, (effectiveInit === null || effectiveInit === void 0 ? void 0 : effectiveInit.credentials) === "include", undefined, // duplex
|
|
124
|
+
false);
|
|
125
|
+
}), maxRetries);
|
|
126
|
+
if (logger.isDebug()) {
|
|
127
|
+
logger.debug("Passthrough HTTP request completed", {
|
|
128
|
+
method,
|
|
129
|
+
url: fullUrl,
|
|
130
|
+
statusCode: response.status,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return response;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function isCacheNoStoreSupported(): boolean;
|
|
2
|
+
/**
|
|
3
|
+
* Reset the cached result of `isCacheNoStoreSupported`. Exposed for testing only.
|
|
4
|
+
*/
|
|
5
|
+
export declare function resetCacheNoStoreSupported(): void;
|
|
6
|
+
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Headers | Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half", disableCache?: boolean) => Promise<Response>;
|
|
@@ -10,8 +10,35 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.makeRequest = void 0;
|
|
13
|
+
exports.isCacheNoStoreSupported = isCacheNoStoreSupported;
|
|
14
|
+
exports.resetCacheNoStoreSupported = resetCacheNoStoreSupported;
|
|
13
15
|
const signals_js_1 = require("./signals.js");
|
|
14
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Cached result of checking whether the current runtime supports
|
|
18
|
+
* the `cache` option in `Request`. Some runtimes (e.g. Cloudflare Workers)
|
|
19
|
+
* throw a TypeError when this option is used.
|
|
20
|
+
*/
|
|
21
|
+
let _cacheNoStoreSupported;
|
|
22
|
+
function isCacheNoStoreSupported() {
|
|
23
|
+
if (_cacheNoStoreSupported != null) {
|
|
24
|
+
return _cacheNoStoreSupported;
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
new Request("http://localhost", { cache: "no-store" });
|
|
28
|
+
_cacheNoStoreSupported = true;
|
|
29
|
+
}
|
|
30
|
+
catch (_a) {
|
|
31
|
+
_cacheNoStoreSupported = false;
|
|
32
|
+
}
|
|
33
|
+
return _cacheNoStoreSupported;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Reset the cached result of `isCacheNoStoreSupported`. Exposed for testing only.
|
|
37
|
+
*/
|
|
38
|
+
function resetCacheNoStoreSupported() {
|
|
39
|
+
_cacheNoStoreSupported = undefined;
|
|
40
|
+
}
|
|
41
|
+
const makeRequest = (fetchFn, url, method, headers, requestBody, timeoutMs, abortSignal, withCredentials, duplex, disableCache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
42
|
const signals = [];
|
|
16
43
|
let timeoutAbortId;
|
|
17
44
|
if (timeoutMs != null) {
|
|
@@ -23,15 +50,9 @@ const makeRequest = (fetchFn, url, method, headers, requestBody, timeoutMs, abor
|
|
|
23
50
|
signals.push(abortSignal);
|
|
24
51
|
}
|
|
25
52
|
const newSignals = (0, signals_js_1.anySignal)(signals);
|
|
26
|
-
const response = yield fetchFn(url, {
|
|
27
|
-
method: method,
|
|
28
|
-
headers,
|
|
29
|
-
body: requestBody,
|
|
30
|
-
signal: newSignals,
|
|
31
|
-
credentials: withCredentials ? "include" : undefined,
|
|
53
|
+
const response = yield fetchFn(url, Object.assign({ method: method, headers, body: requestBody, signal: newSignals, credentials: withCredentials ? "include" : undefined,
|
|
32
54
|
// @ts-ignore
|
|
33
|
-
duplex,
|
|
34
|
-
});
|
|
55
|
+
duplex }, (disableCache && isCacheNoStoreSupported() ? { cache: "no-store" } : {})));
|
|
35
56
|
if (timeoutAbortId != null) {
|
|
36
57
|
clearTimeout(timeoutAbortId);
|
|
37
58
|
}
|
|
@@ -84,17 +84,18 @@ function evaluateRuntime() {
|
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
87
|
+
*
|
|
88
|
+
* We assign `process` to a local variable first to avoid being flagged by
|
|
89
|
+
* bundlers that perform static analysis on `process.versions` (e.g. Next.js
|
|
90
|
+
* Edge Runtime warns about Node.js APIs even when they are guarded).
|
|
87
91
|
*/
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
!!process.version &&
|
|
91
|
-
"versions" in process &&
|
|
92
|
-
!!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
|
|
92
|
+
const _process = typeof process !== "undefined" ? process : undefined;
|
|
93
|
+
const isNode = typeof _process !== "undefined" && typeof ((_e = _process.versions) === null || _e === void 0 ? void 0 : _e.node) === "string";
|
|
93
94
|
if (isNode) {
|
|
94
95
|
return {
|
|
95
96
|
type: "node",
|
|
96
|
-
version:
|
|
97
|
-
parsedVersion: Number(
|
|
97
|
+
version: _process.versions.node,
|
|
98
|
+
parsedVersion: Number(_process.versions.node.split(".")[0]),
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
101
|
return {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.0.
|
|
1
|
+
export declare const SDK_VERSION = "5.0.3";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@getbrevo/brevo",
|
|
9
|
-
"X-Fern-SDK-Version": "5.0.
|
|
10
|
-
"User-Agent": "@getbrevo/brevo/5.0.
|
|
9
|
+
"X-Fern-SDK-Version": "5.0.3",
|
|
10
|
+
"User-Agent": "@getbrevo/brevo/5.0.3",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -32,6 +32,7 @@ import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
|
32
32
|
import { WhatsAppCampaignsClient } from "./api/resources/whatsAppCampaigns/client/Client.mjs";
|
|
33
33
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
34
34
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
35
|
+
import * as core from "./core/index.mjs";
|
|
35
36
|
export declare namespace BrevoClient {
|
|
36
37
|
type Options = BaseClientOptions;
|
|
37
38
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -104,4 +105,15 @@ export declare class BrevoClient {
|
|
|
104
105
|
get transactionalEmails(): TransactionalEmailsClient;
|
|
105
106
|
get transactionalSms(): TransactionalSmsClient;
|
|
106
107
|
get smsTemplates(): SmsTemplatesClient;
|
|
108
|
+
/**
|
|
109
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
110
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
111
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
112
|
+
*
|
|
113
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
114
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
115
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
116
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
117
|
+
*/
|
|
118
|
+
fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
107
119
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
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
|
+
};
|
|
2
11
|
import { AccountClient } from "./api/resources/account/client/Client.mjs";
|
|
3
12
|
import { BalanceClient } from "./api/resources/balance/client/Client.mjs";
|
|
4
13
|
import { CompaniesClient } from "./api/resources/companies/client/Client.mjs";
|
|
@@ -32,6 +41,7 @@ import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
|
32
41
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
33
42
|
import { WhatsAppCampaignsClient } from "./api/resources/whatsAppCampaigns/client/Client.mjs";
|
|
34
43
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
44
|
+
import * as core from "./core/index.mjs";
|
|
35
45
|
export class BrevoClient {
|
|
36
46
|
constructor(options) {
|
|
37
47
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
@@ -164,4 +174,28 @@ export class BrevoClient {
|
|
|
164
174
|
var _a;
|
|
165
175
|
return ((_a = this._smsTemplates) !== null && _a !== void 0 ? _a : (this._smsTemplates = new SmsTemplatesClient(this._options)));
|
|
166
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
179
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
180
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
181
|
+
*
|
|
182
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
183
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
184
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
185
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
186
|
+
*/
|
|
187
|
+
fetch(input, init, requestOptions) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
var _a;
|
|
190
|
+
return core.makePassthroughRequest(input, init, {
|
|
191
|
+
baseUrl: (_a = this._options.baseUrl) !== null && _a !== void 0 ? _a : this._options.environment,
|
|
192
|
+
headers: this._options.headers,
|
|
193
|
+
timeoutInSeconds: this._options.timeoutInSeconds,
|
|
194
|
+
maxRetries: this._options.maxRetries,
|
|
195
|
+
fetch: this._options.fetch,
|
|
196
|
+
logging: this._options.logging,
|
|
197
|
+
getAuthHeaders: () => __awaiter(this, void 0, void 0, function* () { return (yield this._options.authProvider.getAuthRequest()).headers; }),
|
|
198
|
+
}, requestOptions);
|
|
199
|
+
});
|
|
200
|
+
}
|
|
167
201
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface GetAccountActivityResponse {
|
|
2
2
|
/** Get user activity logs */
|
|
3
|
-
logs?: GetAccountActivityResponse.Logs.Item[];
|
|
3
|
+
logs?: GetAccountActivityResponse.Logs.Item[] | undefined;
|
|
4
4
|
}
|
|
5
5
|
export declare namespace GetAccountActivityResponse {
|
|
6
6
|
type Logs = Logs.Item[];
|