@getbrevo/brevo 5.0.0 → 5.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/README.md +4 -4
- package/dist/cjs/BaseClient.js +2 -2
- 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 +6 -6
- package/dist/cjs/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.ts +5 -5
- 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/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 +0 -1
- package/dist/cjs/api/resources/balance/types/index.js +0 -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 +10 -10
- 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 +17 -0
- package/dist/cjs/api/resources/event/client/Client.js +57 -0
- package/dist/cjs/api/resources/event/client/requests/CreateEventRequest.d.ts +10 -10
- 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 +67 -0
- 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/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/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/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/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 +10 -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/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 +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/core/fetcher/Fetcher.js +8 -2
- 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/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 +6 -6
- package/dist/esm/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.mts +5 -5
- 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/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 +0 -1
- package/dist/esm/api/resources/balance/types/index.mjs +0 -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 +10 -10
- 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 +17 -0
- package/dist/esm/api/resources/event/client/Client.mjs +57 -0
- package/dist/esm/api/resources/event/client/requests/CreateEventRequest.d.mts +10 -10
- 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 +67 -0
- 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/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/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/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/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 +10 -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/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 +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
- 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 +295 -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
- package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.mjs +0 -6
|
@@ -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.1";
|
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.1",
|
|
10
|
+
"User-Agent": "@getbrevo/brevo/5.0.1",
|
|
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);
|
|
@@ -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[];
|
|
@@ -17,11 +17,11 @@ export interface GetAccountResponse {
|
|
|
17
17
|
address: GetAccountResponse.Address;
|
|
18
18
|
/** User's date and time preferences */
|
|
19
19
|
dateTimePreferences: GetAccountResponse.DateTimePreferences;
|
|
20
|
-
marketingAutomation?: GetAccountResponse.MarketingAutomation;
|
|
20
|
+
marketingAutomation?: GetAccountResponse.MarketingAutomation | undefined;
|
|
21
21
|
/** Information about your plans and credits */
|
|
22
22
|
plan: GetAccountResponse.Plan.Item[];
|
|
23
23
|
/** Detailed information about different plan categories */
|
|
24
|
-
planVerticals?: GetAccountResponse.PlanVerticals.Item[];
|
|
24
|
+
planVerticals?: GetAccountResponse.PlanVerticals.Item[] | undefined;
|
|
25
25
|
/** Information about your transactional email account */
|
|
26
26
|
relay: GetAccountResponse.Relay;
|
|
27
27
|
}
|
|
@@ -57,7 +57,7 @@ export declare namespace GetAccountResponse {
|
|
|
57
57
|
*/
|
|
58
58
|
enabled: boolean;
|
|
59
59
|
/** Marketing Automation Tracker ID */
|
|
60
|
-
key?: string;
|
|
60
|
+
key?: string | undefined;
|
|
61
61
|
}
|
|
62
62
|
type Plan = Plan.Item[];
|
|
63
63
|
namespace Plan {
|
|
@@ -75,12 +75,12 @@ export declare namespace GetAccountResponse {
|
|
|
75
75
|
* Date of the period from which the plan will end
|
|
76
76
|
* (Unix timestamp format)
|
|
77
77
|
*/
|
|
78
|
-
endDate?: string;
|
|
78
|
+
endDate?: string | undefined;
|
|
79
79
|
/**
|
|
80
80
|
* Date of the period from which the plan will start
|
|
81
81
|
* (Unix timestamp format)
|
|
82
82
|
*/
|
|
83
|
-
startDate?: string;
|
|
83
|
+
startDate?: string | undefined;
|
|
84
84
|
/** Displays the plan type of the user */
|
|
85
85
|
type: Item.Type;
|
|
86
86
|
}
|
|
@@ -111,9 +111,9 @@ export declare namespace GetAccountResponse {
|
|
|
111
111
|
/** Plan end date (Unix timestamp) */
|
|
112
112
|
endDate: string;
|
|
113
113
|
/** User seat information for the plan */
|
|
114
|
-
users: Item.Users;
|
|
114
|
+
users: Item.Users | null;
|
|
115
115
|
/** Credits allocated for this plan category (optional, may not be present for all plan categories) */
|
|
116
|
-
credits?: string;
|
|
116
|
+
credits?: string | undefined;
|
|
117
117
|
}
|
|
118
118
|
namespace Item {
|
|
119
119
|
/** Category of the plan */
|
|
@@ -324,8 +324,8 @@ export declare class BalanceClient {
|
|
|
324
324
|
* @example
|
|
325
325
|
* await client.balance.getTransactionHistoryApi({
|
|
326
326
|
* pid: "pid",
|
|
327
|
-
*
|
|
328
|
-
*
|
|
327
|
+
* contactId: 1,
|
|
328
|
+
* balanceDefinitionId: "balanceDefinitionId"
|
|
329
329
|
* })
|
|
330
330
|
*/
|
|
331
331
|
getTransactionHistoryApi(request: Brevo.GetLoyaltyBalanceProgramsPidTransactionHistoryRequest, requestOptions?: BalanceClient.RequestOptions): core.HttpResponsePromise<Brevo.GetLoyaltyBalanceProgramsPidTransactionHistoryResponse>;
|
|
@@ -1006,8 +1006,8 @@ export class BalanceClient {
|
|
|
1006
1006
|
* @example
|
|
1007
1007
|
* await client.balance.getTransactionHistoryApi({
|
|
1008
1008
|
* pid: "pid",
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
1009
|
+
* contactId: 1,
|
|
1010
|
+
* balanceDefinitionId: "balanceDefinitionId"
|
|
1011
1011
|
* })
|
|
1012
1012
|
*/
|
|
1013
1013
|
getTransactionHistoryApi(request, requestOptions) {
|
|
@@ -1016,14 +1016,14 @@ export class BalanceClient {
|
|
|
1016
1016
|
__getTransactionHistoryApi(request, requestOptions) {
|
|
1017
1017
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1018
1018
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1019
|
-
const { pid, limit, offset,
|
|
1019
|
+
const { pid, limit, offset, sortField, sort, contactId, balanceDefinitionId, filters } = request;
|
|
1020
1020
|
const _queryParams = {
|
|
1021
1021
|
limit,
|
|
1022
1022
|
offset,
|
|
1023
|
-
|
|
1023
|
+
sortField: sortField != null ? sortField : undefined,
|
|
1024
1024
|
sort: sort != null ? sort : undefined,
|
|
1025
|
-
|
|
1026
|
-
|
|
1025
|
+
contactId,
|
|
1026
|
+
balanceDefinitionId,
|
|
1027
1027
|
filters,
|
|
1028
1028
|
};
|
|
1029
1029
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -3,8 +3,8 @@ import type * as Brevo from "../../../../index.mjs";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* pid: "pid",
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* contactId: 1,
|
|
7
|
+
* balanceDefinitionId: "balanceDefinitionId"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface GetLoyaltyBalanceProgramsPidTransactionHistoryRequest {
|
|
@@ -15,13 +15,13 @@ export interface GetLoyaltyBalanceProgramsPidTransactionHistoryRequest {
|
|
|
15
15
|
/** Skip a number of records */
|
|
16
16
|
offset?: number;
|
|
17
17
|
/** Field to sort by */
|
|
18
|
-
|
|
18
|
+
sortField?: "createdAt";
|
|
19
19
|
/** Sort order, either asc or desc */
|
|
20
20
|
sort?: Brevo.GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSort;
|
|
21
21
|
/** Contact ID */
|
|
22
|
-
|
|
22
|
+
contactId: number;
|
|
23
23
|
/** Balance Definition ID */
|
|
24
|
-
|
|
24
|
+
balanceDefinitionId: string;
|
|
25
25
|
/** Filters to apply */
|
|
26
26
|
filters?: string | string[];
|
|
27
27
|
}
|
|
@@ -5,7 +5,7 @@ export interface CreateBalanceOrderResponse {
|
|
|
5
5
|
/** Order amount (must not be zero). */
|
|
6
6
|
amount: number;
|
|
7
7
|
/** Optional unique identifier (UUID) of the associated balance definition. */
|
|
8
|
-
balanceDefinitionId?: string;
|
|
8
|
+
balanceDefinitionId?: string | undefined;
|
|
9
9
|
/** Unique identifier of the contact placing the order (must be ≥ 1). */
|
|
10
10
|
contactId: number;
|
|
11
11
|
/** RFC3339 timestamp indicating when the order was created. */
|
|
@@ -13,17 +13,17 @@ export interface CreateBalanceOrderResponse {
|
|
|
13
13
|
/** RFC3339 timestamp specifying when the order is due in the future. */
|
|
14
14
|
dueAt: string;
|
|
15
15
|
/** Optional RFC3339 timestamp defining order expiration in the future. */
|
|
16
|
-
expiresAt?: string;
|
|
16
|
+
expiresAt?: string | undefined;
|
|
17
17
|
/** Unique identifier for the balance order. */
|
|
18
|
-
id?: string;
|
|
18
|
+
id?: string | undefined;
|
|
19
19
|
/** Unique identifier of the loyalty program associated with the order. */
|
|
20
20
|
loyaltyProgramId: string;
|
|
21
21
|
/** Optional metadata associated with the order. */
|
|
22
|
-
meta?: Record<string, unknown
|
|
22
|
+
meta?: Record<string, unknown> | undefined;
|
|
23
23
|
/** Optional RFC3339 timestamp indicating when the order was processed. */
|
|
24
|
-
processedAt?: string;
|
|
24
|
+
processedAt?: string | undefined;
|
|
25
25
|
/** Optional reference to the associated transaction ID. */
|
|
26
|
-
transactionid?: string;
|
|
26
|
+
transactionid?: string | undefined;
|
|
27
27
|
/** RFC3339 timestamp indicating the last update to the order. */
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export interface GetContactBalancesResponse {
|
|
2
|
-
balanceDefinitionId?: string;
|
|
3
|
-
balances?: GetContactBalancesResponse.Balances.Item[];
|
|
4
|
-
count?: number;
|
|
5
|
-
loyaltyProgramId?: string;
|
|
2
|
+
balanceDefinitionId?: string | undefined;
|
|
3
|
+
balances?: GetContactBalancesResponse.Balances.Item[] | undefined;
|
|
4
|
+
count?: number | undefined;
|
|
5
|
+
loyaltyProgramId?: string | undefined;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace GetContactBalancesResponse {
|
|
8
8
|
type Balances = Balances.Item[];
|
|
9
9
|
namespace Balances {
|
|
10
10
|
interface Item {
|
|
11
|
-
contactId?: number;
|
|
12
|
-
loyaltySubscriptionId?: string;
|
|
13
|
-
updatedAt?: string;
|
|
14
|
-
value?: number;
|
|
11
|
+
contactId?: number | undefined;
|
|
12
|
+
loyaltySubscriptionId?: string | undefined;
|
|
13
|
+
updatedAt?: string | undefined;
|
|
14
|
+
value?: number | undefined;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface GetLoyaltyBalanceProgramsPidTransactionHistoryResponse {
|
|
5
5
|
/** Unique identifier of the associated balance definition. */
|
|
6
|
-
balanceDefinitionId?: string;
|
|
6
|
+
balanceDefinitionId?: string | undefined;
|
|
7
7
|
/** Unique identifier of the contact related to the transactions. */
|
|
8
|
-
contactId?: number;
|
|
8
|
+
contactId?: number | undefined;
|
|
9
9
|
/** Total number of transactions in the history. */
|
|
10
|
-
count?: number;
|
|
10
|
+
count?: number | undefined;
|
|
11
11
|
/** Unique identifier of the associated loyalty program. */
|
|
12
|
-
loyaltyProgramId?: string;
|
|
12
|
+
loyaltyProgramId?: string | undefined;
|
|
13
13
|
/** List of past transactions associated with the balance. */
|
|
14
|
-
transactionHistory?: GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.TransactionHistory.Item[];
|
|
14
|
+
transactionHistory?: GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.TransactionHistory.Item[] | undefined;
|
|
15
15
|
}
|
|
16
16
|
export declare namespace GetLoyaltyBalanceProgramsPidTransactionHistoryResponse {
|
|
17
17
|
type TransactionHistory = TransactionHistory.Item[];
|
|
@@ -21,25 +21,25 @@ export declare namespace GetLoyaltyBalanceProgramsPidTransactionHistoryResponse
|
|
|
21
21
|
*/
|
|
22
22
|
interface Item {
|
|
23
23
|
/** The transaction amount. */
|
|
24
|
-
amount?: number;
|
|
24
|
+
amount?: number | undefined;
|
|
25
25
|
/** Expiration date of the balance associated with this transaction. */
|
|
26
|
-
balanceExpirationDate?: string;
|
|
26
|
+
balanceExpirationDate?: string | undefined;
|
|
27
27
|
/** Timestamp when the transaction was canceled, if applicable. */
|
|
28
|
-
cancelledAt?: string;
|
|
28
|
+
cancelledAt?: string | undefined;
|
|
29
29
|
/** Timestamp when the transaction was successfully completed. */
|
|
30
|
-
completedAt?: string;
|
|
30
|
+
completedAt?: string | undefined;
|
|
31
31
|
/** Timestamp when the transaction was initiated. */
|
|
32
|
-
createdAt?: string;
|
|
32
|
+
createdAt?: string | undefined;
|
|
33
33
|
/** Unique identifier of the transaction. */
|
|
34
|
-
id?: string;
|
|
34
|
+
id?: string | undefined;
|
|
35
35
|
/** Optional metadata associated with the transaction. */
|
|
36
|
-
meta?: Record<string, unknown
|
|
36
|
+
meta?: Record<string, unknown> | undefined;
|
|
37
37
|
/** Reason for rejection, if the transaction was declined. */
|
|
38
|
-
rejectReason?: string;
|
|
38
|
+
rejectReason?: string | undefined;
|
|
39
39
|
/** Timestamp when the transaction was rejected. */
|
|
40
|
-
rejectedAt?: string;
|
|
40
|
+
rejectedAt?: string | undefined;
|
|
41
41
|
/** Current status of the transaction (e.g., pending, completed, rejected). */
|
|
42
|
-
status?: string;
|
|
42
|
+
status?: string | undefined;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface GetSubscriptionBalancesResponse {
|
|
2
|
-
balance?: GetSubscriptionBalancesResponse.Balance.Item[];
|
|
2
|
+
balance?: GetSubscriptionBalancesResponse.Balance.Item[] | undefined;
|
|
3
3
|
}
|
|
4
4
|
export declare namespace GetSubscriptionBalancesResponse {
|
|
5
5
|
type Balance = Balance.Item[];
|
|
6
6
|
namespace Balance {
|
|
7
7
|
interface Item {
|
|
8
8
|
/** balance definition ID */
|
|
9
|
-
balanceDefinitionId?: string;
|
|
9
|
+
balanceDefinitionId?: string | undefined;
|
|
10
10
|
/** Unique identifier for the balance definition associated with this aggregate balance */
|
|
11
|
-
value?: number;
|
|
11
|
+
value?: number | undefined;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export interface PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse {
|
|
2
2
|
/** The current amount available in the balance */
|
|
3
|
-
amount?: number;
|
|
3
|
+
amount?: number | undefined;
|
|
4
4
|
/** balance definition ID */
|
|
5
|
-
balanceDefinitionId?: string;
|
|
5
|
+
balanceDefinitionId?: string | undefined;
|
|
6
6
|
/** Timestamp of when the balance was last consumed */
|
|
7
|
-
consumedAt?: string;
|
|
7
|
+
consumedAt?: string | undefined;
|
|
8
8
|
/** contact ID */
|
|
9
|
-
contactId?: number;
|
|
9
|
+
contactId?: number | undefined;
|
|
10
10
|
/** Timestamp of when the balance was created */
|
|
11
|
-
createdAt?: string;
|
|
11
|
+
createdAt?: string | undefined;
|
|
12
12
|
/** Expiration timestamp of the balance */
|
|
13
|
-
expiresAt?: string;
|
|
13
|
+
expiresAt?: string | undefined;
|
|
14
14
|
/** Unique identifier for the balance */
|
|
15
|
-
id?: string;
|
|
15
|
+
id?: string | undefined;
|
|
16
16
|
/** loyalty program ID */
|
|
17
|
-
loyaltyProgramId?: string;
|
|
17
|
+
loyaltyProgramId?: string | undefined;
|
|
18
18
|
/** organization ID */
|
|
19
|
-
organizationId?: number;
|
|
19
|
+
organizationId?: number | undefined;
|
|
20
20
|
}
|
|
@@ -7,7 +7,6 @@ export * from "./GetBalanceDefinitionRequestVersion.mjs";
|
|
|
7
7
|
export * from "./GetBalanceLimitRequestVersion.mjs";
|
|
8
8
|
export * from "./GetContactBalancesResponse.mjs";
|
|
9
9
|
export * from "./GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSort.mjs";
|
|
10
|
-
export * from "./GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.mjs";
|
|
11
10
|
export * from "./GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.mjs";
|
|
12
11
|
export * from "./GetSubscriptionBalancesResponse.mjs";
|
|
13
12
|
export * from "./PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.mjs";
|
|
@@ -7,7 +7,6 @@ export * from "./GetBalanceDefinitionRequestVersion.mjs";
|
|
|
7
7
|
export * from "./GetBalanceLimitRequestVersion.mjs";
|
|
8
8
|
export * from "./GetContactBalancesResponse.mjs";
|
|
9
9
|
export * from "./GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSort.mjs";
|
|
10
|
-
export * from "./GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.mjs";
|
|
11
10
|
export * from "./GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.mjs";
|
|
12
11
|
export * from "./GetSubscriptionBalancesResponse.mjs";
|
|
13
12
|
export * from "./PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.mjs";
|
|
@@ -118,6 +118,34 @@ export declare class CompaniesClient {
|
|
|
118
118
|
*/
|
|
119
119
|
createACompanyDealAttribute(request: Brevo.PostCrmAttributesRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Brevo.PostCrmAttributesResponse>;
|
|
120
120
|
private __createACompanyDealAttribute;
|
|
121
|
+
/**
|
|
122
|
+
* @param {Brevo.DeleteCrmAttributesIdRequest} request
|
|
123
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link Brevo.BadRequestError}
|
|
126
|
+
* @throws {@link Brevo.NotFoundError}
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* await client.companies.deleteAnAttribute({
|
|
130
|
+
* id: "id"
|
|
131
|
+
* })
|
|
132
|
+
*/
|
|
133
|
+
deleteAnAttribute(request: Brevo.DeleteCrmAttributesIdRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
134
|
+
private __deleteAnAttribute;
|
|
135
|
+
/**
|
|
136
|
+
* @param {Brevo.PatchCrmAttributesIdRequest} request
|
|
137
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link Brevo.BadRequestError}
|
|
140
|
+
* @throws {@link Brevo.NotFoundError}
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* await client.companies.updateAnAttribute({
|
|
144
|
+
* id: "id"
|
|
145
|
+
* })
|
|
146
|
+
*/
|
|
147
|
+
updateAnAttribute(request: Brevo.PatchCrmAttributesIdRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
148
|
+
private __updateAnAttribute;
|
|
121
149
|
/**
|
|
122
150
|
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
151
|
*
|
|
@@ -464,6 +464,113 @@ export class CompaniesClient {
|
|
|
464
464
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/crm/attributes");
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
|
+
/**
|
|
468
|
+
* @param {Brevo.DeleteCrmAttributesIdRequest} request
|
|
469
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
470
|
+
*
|
|
471
|
+
* @throws {@link Brevo.BadRequestError}
|
|
472
|
+
* @throws {@link Brevo.NotFoundError}
|
|
473
|
+
*
|
|
474
|
+
* @example
|
|
475
|
+
* await client.companies.deleteAnAttribute({
|
|
476
|
+
* id: "id"
|
|
477
|
+
* })
|
|
478
|
+
*/
|
|
479
|
+
deleteAnAttribute(request, requestOptions) {
|
|
480
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteAnAttribute(request, requestOptions));
|
|
481
|
+
}
|
|
482
|
+
__deleteAnAttribute(request, requestOptions) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
484
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
485
|
+
const { id } = request;
|
|
486
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
487
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
488
|
+
const _response = yield core.fetcher({
|
|
489
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrevoEnvironment.Default, `crm/attributes/${core.url.encodePathParam(id)}`),
|
|
490
|
+
method: "DELETE",
|
|
491
|
+
headers: _headers,
|
|
492
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
493
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
494
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
495
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
496
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
497
|
+
logging: this._options.logging,
|
|
498
|
+
});
|
|
499
|
+
if (_response.ok) {
|
|
500
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
501
|
+
}
|
|
502
|
+
if (_response.error.reason === "status-code") {
|
|
503
|
+
switch (_response.error.statusCode) {
|
|
504
|
+
case 400:
|
|
505
|
+
throw new Brevo.BadRequestError(_response.error.body, _response.rawResponse);
|
|
506
|
+
case 404:
|
|
507
|
+
throw new Brevo.NotFoundError(_response.error.body, _response.rawResponse);
|
|
508
|
+
default:
|
|
509
|
+
throw new errors.BrevoError({
|
|
510
|
+
statusCode: _response.error.statusCode,
|
|
511
|
+
body: _response.error.body,
|
|
512
|
+
rawResponse: _response.rawResponse,
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/crm/attributes/{id}");
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @param {Brevo.PatchCrmAttributesIdRequest} request
|
|
521
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
522
|
+
*
|
|
523
|
+
* @throws {@link Brevo.BadRequestError}
|
|
524
|
+
* @throws {@link Brevo.NotFoundError}
|
|
525
|
+
*
|
|
526
|
+
* @example
|
|
527
|
+
* await client.companies.updateAnAttribute({
|
|
528
|
+
* id: "id"
|
|
529
|
+
* })
|
|
530
|
+
*/
|
|
531
|
+
updateAnAttribute(request, requestOptions) {
|
|
532
|
+
return core.HttpResponsePromise.fromPromise(this.__updateAnAttribute(request, requestOptions));
|
|
533
|
+
}
|
|
534
|
+
__updateAnAttribute(request, requestOptions) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
537
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
538
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
539
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
540
|
+
const _response = yield core.fetcher({
|
|
541
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrevoEnvironment.Default, `crm/attributes/${core.url.encodePathParam(id)}`),
|
|
542
|
+
method: "PATCH",
|
|
543
|
+
headers: _headers,
|
|
544
|
+
contentType: "application/json",
|
|
545
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
546
|
+
requestType: "json",
|
|
547
|
+
body: _body,
|
|
548
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
549
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
550
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
551
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
552
|
+
logging: this._options.logging,
|
|
553
|
+
});
|
|
554
|
+
if (_response.ok) {
|
|
555
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
556
|
+
}
|
|
557
|
+
if (_response.error.reason === "status-code") {
|
|
558
|
+
switch (_response.error.statusCode) {
|
|
559
|
+
case 400:
|
|
560
|
+
throw new Brevo.BadRequestError(_response.error.body, _response.rawResponse);
|
|
561
|
+
case 404:
|
|
562
|
+
throw new Brevo.NotFoundError(_response.error.body, _response.rawResponse);
|
|
563
|
+
default:
|
|
564
|
+
throw new errors.BrevoError({
|
|
565
|
+
statusCode: _response.error.statusCode,
|
|
566
|
+
body: _response.error.body,
|
|
567
|
+
rawResponse: _response.rawResponse,
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/crm/attributes/{id}");
|
|
572
|
+
});
|
|
573
|
+
}
|
|
467
574
|
/**
|
|
468
575
|
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
469
576
|
*
|