@getbrevo/brevo 2.3.0 → 3.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/.openapi-generator/FILES +24 -113
- package/.openapi-generator/VERSION +1 -1
- package/README.md +178 -100
- package/api/accountApi.ts +6 -11
- package/api/apis.ts +3 -9
- package/api/companiesApi.ts +82 -260
- package/api/contactsApi.ts +168 -265
- package/api/conversationsApi.ts +46 -47
- package/api/couponsApi.ts +11 -11
- package/api/dealsApi.ts +51 -232
- package/api/domainsApi.ts +11 -11
- package/api/ecommerceApi.ts +97 -113
- package/api/emailCampaignsApi.ts +83 -106
- package/api/eventsApi.ts +3 -3
- package/api/externalFeedsApi.ts +11 -11
- package/api/filesApi.ts +11 -11
- package/api/inboundParsingApi.ts +7 -7
- package/api/masterAccountApi.ts +53 -282
- package/api/notesApi.ts +11 -11
- package/api/paymentsApi.ts +7 -7
- package/api/processApi.ts +5 -5
- package/api/resellerApi.ts +33 -33
- package/api/sMSCampaignsApi.ts +51 -52
- package/api/sendersApi.ts +15 -15
- package/api/tasksApi.ts +13 -13
- package/api/transactionalEmailsApi.ts +46 -123
- package/api/transactionalSMSApi.ts +9 -69
- package/api/transactionalWhatsAppApi.ts +5 -5
- package/api/userApi.ts +15 -15
- package/api/webhooksApi.ts +13 -13
- package/api/whatsAppCampaignsApi.ts +19 -19
- package/dist/api/accountApi.d.ts +2 -1
- package/dist/api/accountApi.js +10 -14
- package/dist/api/accountApi.js.map +1 -1
- package/dist/api/apis.d.ts +4 -9
- package/dist/api/apis.js +3 -9
- package/dist/api/apis.js.map +1 -1
- package/dist/api/companiesApi.d.ts +10 -29
- package/dist/api/companiesApi.js +70 -219
- package/dist/api/companiesApi.js.map +1 -1
- package/dist/api/contactsApi.d.ts +35 -43
- package/dist/api/contactsApi.js +155 -232
- package/dist/api/contactsApi.js.map +1 -1
- package/dist/api/conversationsApi.d.ts +10 -10
- package/dist/api/conversationsApi.js +47 -47
- package/dist/api/conversationsApi.js.map +1 -1
- package/dist/api/couponsApi.d.ts +1 -0
- package/dist/api/couponsApi.js +22 -22
- package/dist/api/couponsApi.js.map +1 -1
- package/dist/api/dealsApi.d.ts +12 -32
- package/dist/api/dealsApi.js +52 -201
- package/dist/api/dealsApi.js.map +1 -1
- package/dist/api/domainsApi.d.ts +1 -0
- package/dist/api/domainsApi.js +22 -22
- package/dist/api/domainsApi.js.map +1 -1
- package/dist/api/ecommerceApi.d.ts +21 -21
- package/dist/api/ecommerceApi.js +88 -97
- package/dist/api/ecommerceApi.js.map +1 -1
- package/dist/api/emailCampaignsApi.d.ts +15 -15
- package/dist/api/emailCampaignsApi.js +86 -108
- package/dist/api/emailCampaignsApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +1 -0
- package/dist/api/eventsApi.js +6 -6
- package/dist/api/eventsApi.js.map +1 -1
- package/dist/api/externalFeedsApi.d.ts +1 -0
- package/dist/api/externalFeedsApi.js +22 -22
- package/dist/api/externalFeedsApi.js.map +1 -1
- package/dist/api/filesApi.d.ts +1 -0
- package/dist/api/filesApi.js +22 -22
- package/dist/api/filesApi.js.map +1 -1
- package/dist/api/inboundParsingApi.d.ts +2 -0
- package/dist/api/inboundParsingApi.js +14 -14
- package/dist/api/inboundParsingApi.js.map +1 -1
- package/dist/api/masterAccountApi.d.ts +2 -27
- package/dist/api/masterAccountApi.js +98 -299
- package/dist/api/masterAccountApi.js.map +1 -1
- package/dist/api/notesApi.d.ts +1 -0
- package/dist/api/notesApi.js +22 -22
- package/dist/api/notesApi.js.map +1 -1
- package/dist/api/paymentsApi.d.ts +1 -0
- package/dist/api/paymentsApi.js +14 -14
- package/dist/api/paymentsApi.js.map +1 -1
- package/dist/api/processApi.d.ts +1 -0
- package/dist/api/processApi.js +10 -10
- package/dist/api/processApi.js.map +1 -1
- package/dist/api/resellerApi.d.ts +1 -0
- package/dist/api/resellerApi.js +66 -66
- package/dist/api/resellerApi.js.map +1 -1
- package/dist/api/sMSCampaignsApi.d.ts +11 -11
- package/dist/api/sMSCampaignsApi.js +52 -52
- package/dist/api/sMSCampaignsApi.js.map +1 -1
- package/dist/api/sendersApi.d.ts +1 -0
- package/dist/api/sendersApi.js +30 -30
- package/dist/api/sendersApi.js.map +1 -1
- package/dist/api/tasksApi.d.ts +1 -0
- package/dist/api/tasksApi.js +26 -26
- package/dist/api/tasksApi.js.map +1 -1
- package/dist/api/transactionalEmailsApi.d.ts +1 -10
- package/dist/api/transactionalEmailsApi.js +90 -157
- package/dist/api/transactionalEmailsApi.js.map +1 -1
- package/dist/api/transactionalSMSApi.d.ts +1 -8
- package/dist/api/transactionalSMSApi.js +18 -73
- package/dist/api/transactionalSMSApi.js.map +1 -1
- package/dist/api/transactionalWhatsAppApi.d.ts +1 -0
- package/dist/api/transactionalWhatsAppApi.js +10 -10
- package/dist/api/transactionalWhatsAppApi.js.map +1 -1
- package/dist/api/userApi.d.ts +1 -0
- package/dist/api/userApi.js +26 -26
- package/dist/api/userApi.js.map +1 -1
- package/dist/api/webhooksApi.d.ts +1 -0
- package/dist/api/webhooksApi.js +26 -26
- package/dist/api/webhooksApi.js.map +1 -1
- package/dist/api/whatsAppCampaignsApi.d.ts +1 -0
- package/dist/api/whatsAppCampaignsApi.js +38 -38
- package/dist/api/whatsAppCampaignsApi.js.map +1 -1
- package/dist/model/abTestCampaignResult.js +1 -1
- package/dist/model/abTestCampaignResult.js.map +1 -1
- package/dist/model/addContactToList.d.ts +0 -1
- package/dist/model/addContactToList.js +0 -5
- package/dist/model/addContactToList.js.map +1 -1
- package/dist/model/cart.js +1 -1
- package/dist/model/cart.js.map +1 -1
- package/dist/model/companiesIdPatchRequest.d.ts +0 -2
- package/dist/model/companiesIdPatchRequest.js +0 -10
- package/dist/model/companiesIdPatchRequest.js.map +1 -1
- package/dist/model/conversationsMessage.d.ts +0 -20
- package/dist/model/conversationsMessage.js +1 -76
- package/dist/model/conversationsMessage.js.map +1 -1
- package/dist/model/conversionSourceMetrics.d.ts +2 -5
- package/dist/model/conversionSourceMetrics.js +2 -5
- package/dist/model/conversionSourceMetrics.js.map +1 -1
- package/dist/model/createAttribute.d.ts +1 -3
- package/dist/model/createAttribute.js +1 -7
- package/dist/model/createAttribute.js.map +1 -1
- package/dist/model/createChild.js +1 -1
- package/dist/model/createChild.js.map +1 -1
- package/dist/model/createContact.d.ts +1 -3
- package/dist/model/createContact.js +1 -1
- package/dist/model/createContact.js.map +1 -1
- package/dist/model/createDoiContact.d.ts +1 -3
- package/dist/model/createDoiContact.js +1 -1
- package/dist/model/createDoiContact.js.map +1 -1
- package/dist/model/createEmailCampaign.d.ts +0 -2
- package/dist/model/createEmailCampaign.js +1 -6
- package/dist/model/createEmailCampaign.js.map +1 -1
- package/dist/model/createEmailCampaignRecipients.d.ts +0 -1
- package/dist/model/createEmailCampaignRecipients.js +0 -5
- package/dist/model/createEmailCampaignRecipients.js.map +1 -1
- package/dist/model/createExternalFeed.js +1 -1
- package/dist/model/createExternalFeed.js.map +1 -1
- package/dist/model/createSmsCampaign.js.map +1 -1
- package/dist/model/createSubAccount.js +1 -1
- package/dist/model/createSubAccount.js.map +1 -1
- package/dist/model/createUpdateCategory.js.map +1 -1
- package/dist/model/createUpdateProduct.js.map +1 -1
- package/dist/model/createWebhook.d.ts +0 -5
- package/dist/model/createWebhook.js +1 -12
- package/dist/model/createWebhook.js.map +1 -1
- package/dist/model/createWhatsAppTemplate.js +1 -1
- package/dist/model/createWhatsAppTemplate.js.map +1 -1
- package/dist/model/crmDealsIdPatchRequest.d.ts +0 -2
- package/dist/model/crmDealsIdPatchRequest.js +0 -10
- package/dist/model/crmDealsIdPatchRequest.js.map +1 -1
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +2 -5
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +2 -5
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -1
- package/dist/model/emailExportRecipients.js +1 -1
- package/dist/model/emailExportRecipients.js.map +1 -1
- package/dist/model/errorModel.d.ts +1 -0
- package/dist/model/errorModel.js +2 -1
- package/dist/model/errorModel.js.map +1 -1
- package/dist/model/exportWebhooksHistory.js +1 -1
- package/dist/model/exportWebhooksHistory.js.map +1 -1
- package/dist/model/getAccountAllOfPlan.d.ts +3 -1
- package/dist/model/getAccountAllOfPlan.js +7 -1
- package/dist/model/getAccountAllOfPlan.js.map +1 -1
- package/dist/model/getAllExternalFeedsFeedsInner.js +1 -1
- package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -1
- package/dist/model/getAttributesAttributesInner.d.ts +1 -4
- package/dist/model/getAttributesAttributesInner.js +1 -8
- package/dist/model/getAttributesAttributesInner.js.map +1 -1
- package/dist/model/getCampaignOverview.js +1 -1
- package/dist/model/getCampaignOverview.js.map +1 -1
- package/dist/model/getCampaignStats.d.ts +0 -2
- package/dist/model/getCampaignStats.js +0 -10
- package/dist/model/getCampaignStats.js.map +1 -1
- package/dist/model/getContactCampaignStats.d.ts +6 -6
- package/dist/model/getContactCampaignStats.js +5 -5
- package/dist/model/getContactCampaignStats.js.map +1 -1
- package/dist/model/getContactCampaignStatsClickedInner.d.ts +2 -2
- package/dist/model/getContactCampaignStatsClickedInner.js +1 -1
- package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +4 -4
- package/dist/model/getContactCampaignStatsUnsubscriptions.js +2 -2
- package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -1
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +0 -5
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +0 -25
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -1
- package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +0 -5
- package/dist/model/getCorporateUserPermissionFeatureAccess.js +0 -25
- package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -1
- package/dist/model/getEmailCampaign.d.ts +4 -2
- package/dist/model/getEmailCampaign.js +3 -3
- package/dist/model/getEmailCampaign.js.map +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.js +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getEmailEventReportEventsInner.js +1 -1
- package/dist/model/getEmailEventReportEventsInner.js.map +1 -1
- package/dist/model/getExtendedCampaignOverview.js +1 -1
- package/dist/model/getExtendedCampaignOverview.js.map +1 -1
- package/dist/model/getExtendedCampaignStats.js.map +1 -1
- package/dist/model/getExternalFeedByUUID.js +1 -1
- package/dist/model/getExternalFeedByUUID.js.map +1 -1
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js +1 -1
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -1
- package/dist/model/getOrdersOrdersInner.d.ts +1 -6
- package/dist/model/getOrdersOrdersInner.js +5 -15
- package/dist/model/getOrdersOrdersInner.js.map +1 -1
- package/dist/model/getPaymentRequest.js +1 -1
- package/dist/model/getPaymentRequest.js.map +1 -1
- package/dist/model/getProcess.js +1 -1
- package/dist/model/getProcess.js.map +1 -1
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +1 -1
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -1
- package/dist/model/getScheduledEmailByMessageId.js +1 -1
- package/dist/model/getScheduledEmailByMessageId.js.map +1 -1
- package/dist/model/getSegments.d.ts +2 -2
- package/dist/model/getSegments.js +1 -1
- package/dist/model/getSegments.js.map +1 -1
- package/dist/model/getSmsCampaign.d.ts +4 -2
- package/dist/model/getSmsCampaign.js +3 -3
- package/dist/model/getSmsCampaign.js.map +1 -1
- package/dist/model/getSmsCampaignOverview.js +1 -1
- package/dist/model/getSmsCampaignOverview.js.map +1 -1
- package/dist/model/getSmsCampaignsCampaignsInner.js +1 -1
- package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getSmsEventReportEventsInner.js +1 -1
- package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js +1 -1
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -1
- package/dist/model/getWebhook.js +1 -1
- package/dist/model/getWebhook.js.map +1 -1
- package/dist/model/getWhatsAppConfig.js +1 -1
- package/dist/model/getWhatsAppConfig.js.map +1 -1
- package/dist/model/getWhatsappCampaignOverview.js +1 -1
- package/dist/model/getWhatsappCampaignOverview.js.map +1 -1
- package/dist/model/getWhatsappCampaignsCampaignsInner.js +1 -1
- package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getWhatsappEventReportEventsInner.js +1 -1
- package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -1
- package/dist/model/inviteAdminUserPrivilegesInner.d.ts +2 -11
- package/dist/model/inviteAdminUserPrivilegesInner.js +1 -10
- package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -1
- package/dist/model/inviteuserPrivilegesInner.d.ts +3 -5
- package/dist/model/inviteuserPrivilegesInner.js +4 -6
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
- package/dist/model/masterDetailsResponsePlanInfo.js +1 -1
- package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -1
- package/dist/model/models.d.ts +33 -117
- package/dist/model/models.js +75 -412
- package/dist/model/models.js.map +1 -1
- package/dist/model/notification.js +1 -1
- package/dist/model/notification.js.map +1 -1
- package/dist/model/order.d.ts +1 -6
- package/dist/model/order.js +5 -15
- package/dist/model/order.js.map +1 -1
- package/dist/model/orderBatch.js.map +1 -1
- package/dist/model/removeContactFromList.d.ts +0 -1
- package/dist/model/removeContactFromList.js +0 -5
- package/dist/model/removeContactFromList.js.map +1 -1
- package/dist/model/requestContactExport.d.ts +0 -4
- package/dist/model/requestContactExport.js +0 -24
- package/dist/model/requestContactExport.js.map +1 -1
- package/dist/model/requestContactExportCustomContactFilter.d.ts +0 -1
- package/dist/model/requestContactExportCustomContactFilter.js +1 -6
- package/dist/model/requestContactExportCustomContactFilter.js.map +1 -1
- package/dist/model/requestContactImport.js.map +1 -1
- package/dist/model/requestSmsRecipientExport.js +1 -1
- package/dist/model/requestSmsRecipientExport.js.map +1 -1
- package/dist/model/sendReport.js +1 -1
- package/dist/model/sendReport.js.map +1 -1
- package/dist/model/sendTransacSms.d.ts +1 -2
- package/dist/model/sendTransacSms.js +2 -2
- package/dist/model/sendTransacSms.js.map +1 -1
- package/dist/model/ssoTokenRequest.js +1 -1
- package/dist/model/ssoTokenRequest.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +0 -4
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +0 -10
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +0 -2
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +0 -5
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -1
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +0 -2
- package/dist/model/subAccountUpdatePlanRequestCredits.js +0 -10
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
- package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +0 -1
- package/dist/model/subAccountUpdatePlanRequestFeatures.js +0 -5
- package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -1
- package/dist/model/taskReminder.js +1 -1
- package/dist/model/taskReminder.js.map +1 -1
- package/dist/model/updateAttribute.d.ts +0 -1
- package/dist/model/updateAttribute.js +0 -5
- package/dist/model/updateAttribute.js.map +1 -1
- package/dist/model/updateCampaignStatus.js +1 -1
- package/dist/model/updateCampaignStatus.js.map +1 -1
- package/dist/model/updateContact.d.ts +1 -3
- package/dist/model/updateContact.js +1 -1
- package/dist/model/updateContact.js.map +1 -1
- package/dist/model/updateEmailCampaign.d.ts +0 -2
- package/dist/model/updateEmailCampaign.js +1 -6
- package/dist/model/updateEmailCampaign.js.map +1 -1
- package/dist/model/updateEmailCampaignRecipients.d.ts +0 -1
- package/dist/model/updateEmailCampaignRecipients.js +0 -5
- package/dist/model/updateEmailCampaignRecipients.js.map +1 -1
- package/dist/model/updateExternalFeed.js +1 -1
- package/dist/model/updateExternalFeed.js.map +1 -1
- package/dist/model/updateSmsCampaign.js.map +1 -1
- package/dist/model/updateWebhook.js +1 -1
- package/dist/model/updateWebhook.js.map +1 -1
- package/dist/model/updateWhatsAppCampaign.js +1 -1
- package/dist/model/updateWhatsAppCampaign.js.map +1 -1
- package/dist/requestCompat.d.ts +29 -0
- package/dist/requestCompat.js +110 -0
- package/dist/requestCompat.js.map +1 -0
- package/model/addContactToList.ts +2 -11
- package/model/companiesIdPatchRequest.ts +0 -18
- package/model/conversationsMessage.ts +0 -131
- package/model/conversionSourceMetrics.ts +3 -6
- package/model/createAttribute.ts +3 -13
- package/model/createContact.ts +4 -4
- package/model/createDoiContact.ts +3 -3
- package/model/createEmailCampaign.ts +0 -7
- package/model/createEmailCampaignRecipients.ts +0 -9
- package/model/createUpdateProduct.ts +1 -1
- package/model/createUpdateProducts.ts +1 -1
- package/model/createWebhook.ts +1 -14
- package/model/crmDealsIdPatchRequest.ts +0 -18
- package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +3 -6
- package/model/errorModel.ts +1 -0
- package/model/getAccountAllOfPlan.ts +13 -3
- package/model/getAttributesAttributesInner.ts +1 -12
- package/model/getCampaignStats.ts +0 -18
- package/model/getContactCampaignStats.ts +11 -11
- package/model/getContactCampaignStatsClickedInner.ts +3 -3
- package/model/getContactCampaignStatsUnsubscriptions.ts +6 -6
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +0 -45
- package/model/getCorporateUserPermissionFeatureAccess.ts +0 -45
- package/model/getEmailCampaign.ts +6 -4
- package/model/getExtendedCampaignStats.ts +0 -3
- package/model/getOrdersOrdersInner.ts +8 -24
- package/model/getSegments.ts +3 -3
- package/model/getSmsCampaign.ts +6 -4
- package/model/inviteAdminUserPrivilegesInner.ts +2 -11
- package/model/inviteuserPrivilegesInner.ts +3 -5
- package/model/models.ts +85 -427
- package/model/order.ts +8 -24
- package/model/orderBilling.ts +1 -1
- package/model/removeContactFromList.ts +3 -12
- package/model/requestContactExport.ts +1 -37
- package/model/requestContactExportCustomContactFilter.ts +1 -10
- package/model/sendSmtpEmail.ts +1 -1
- package/model/sendTransacSms.ts +5 -3
- package/model/subAccountDetailsResponsePlanInfoCredits.ts +0 -14
- package/model/subAccountDetailsResponsePlanInfoFeatures.ts +0 -7
- package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +3 -3
- package/model/subAccountUpdatePlanRequestCredits.ts +2 -20
- package/model/subAccountUpdatePlanRequestFeatures.ts +1 -10
- package/model/updateAttribute.ts +1 -10
- package/model/updateContact.ts +3 -3
- package/model/updateEmailCampaign.ts +0 -7
- package/model/updateEmailCampaignRecipients.ts +0 -9
- package/package.json +6 -6
- package/requestCompat.ts +138 -0
- package/api/balanceApi.ts +0 -1725
- package/api/programApi.ts +0 -992
- package/api/rewardApi.ts +0 -975
- package/api/tierApi.ts +0 -952
- package/dist/api/balanceApi.d.ts +0 -187
- package/dist/api/balanceApi.js +0 -1434
- package/dist/api/balanceApi.js.map +0 -1
- package/dist/api/programApi.d.ts +0 -125
- package/dist/api/programApi.js +0 -847
- package/dist/api/programApi.js.map +0 -1
- package/dist/api/rewardApi.d.ts +0 -119
- package/dist/api/rewardApi.js +0 -814
- package/dist/api/rewardApi.js.map +0 -1
- package/dist/api/tierApi.d.ts +0 -116
- package/dist/api/tierApi.js +0 -801
- package/dist/api/tierApi.js.map +0 -1
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -65
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -161
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -44
- package/dist/configuration.js.map +0 -1
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -31
- package/dist/index.js.map +0 -1
- package/dist/model/addSubscriptionMemberPayload.d.ts +0 -16
- package/dist/model/addSubscriptionMemberPayload.js +0 -28
- package/dist/model/addSubscriptionMemberPayload.js.map +0 -1
- package/dist/model/aggregateBalance.d.ts +0 -15
- package/dist/model/aggregateBalance.js +0 -23
- package/dist/model/aggregateBalance.js.map +0 -1
- package/dist/model/balance.d.ts +0 -22
- package/dist/model/balance.js +0 -58
- package/dist/model/balance.js.map +0 -1
- package/dist/model/balanceDataPerContact.d.ts +0 -17
- package/dist/model/balanceDataPerContact.js +0 -33
- package/dist/model/balanceDataPerContact.js.map +0 -1
- package/dist/model/balanceDefinition.d.ts +0 -42
- package/dist/model/balanceDefinition.js +0 -121
- package/dist/model/balanceDefinition.js.map +0 -1
- package/dist/model/balanceDefinitionPage.d.ts +0 -15
- package/dist/model/balanceDefinitionPage.js +0 -18
- package/dist/model/balanceDefinitionPage.js.map +0 -1
- package/dist/model/balanceLimit.d.ts +0 -23
- package/dist/model/balanceLimit.js +0 -63
- package/dist/model/balanceLimit.js.map +0 -1
- package/dist/model/balanceOrder.d.ts +0 -27
- package/dist/model/balanceOrder.js +0 -73
- package/dist/model/balanceOrder.js.map +0 -1
- package/dist/model/companiesImportPost200Response.d.ts +0 -14
- package/dist/model/companiesImportPost200Response.js +0 -18
- package/dist/model/companiesImportPost200Response.js.map +0 -1
- package/dist/model/companiesImportPost400Response.d.ts +0 -14
- package/dist/model/companiesImportPost400Response.js +0 -18
- package/dist/model/companiesImportPost400Response.js.map +0 -1
- package/dist/model/contactBalancesResp.d.ts +0 -18
- package/dist/model/contactBalancesResp.js +0 -33
- package/dist/model/contactBalancesResp.js.map +0 -1
- package/dist/model/contactErrorModel.d.ts +0 -27
- package/dist/model/contactErrorModel.js +0 -40
- package/dist/model/contactErrorModel.js.map +0 -1
- package/dist/model/conversationsMessageAttachmentsInner.d.ts +0 -19
- package/dist/model/conversationsMessageAttachmentsInner.js +0 -43
- package/dist/model/conversationsMessageAttachmentsInner.js.map +0 -1
- package/dist/model/conversationsMessageForwardedToSourceStatus.d.ts +0 -15
- package/dist/model/conversationsMessageForwardedToSourceStatus.js +0 -23
- package/dist/model/conversationsMessageForwardedToSourceStatus.js.map +0 -1
- package/dist/model/conversationsMessageFrom.d.ts +0 -15
- package/dist/model/conversationsMessageFrom.js +0 -23
- package/dist/model/conversationsMessageFrom.js.map +0 -1
- package/dist/model/conversationsMessageReplyTo.d.ts +0 -15
- package/dist/model/conversationsMessageReplyTo.js +0 -23
- package/dist/model/conversationsMessageReplyTo.js.map +0 -1
- package/dist/model/conversationsMessageToInner.d.ts +0 -15
- package/dist/model/conversationsMessageToInner.js +0 -23
- package/dist/model/conversationsMessageToInner.js.map +0 -1
- package/dist/model/corporateUserEmailPermissionsPutRequest.d.ts +0 -16
- package/dist/model/corporateUserEmailPermissionsPutRequest.js +0 -23
- package/dist/model/corporateUserEmailPermissionsPutRequest.js.map +0 -1
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.d.ts +0 -38
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js +0 -48
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js.map +0 -1
- package/dist/model/createBalanceDefinitionPayload.d.ts +0 -75
- package/dist/model/createBalanceDefinitionPayload.js +0 -145
- package/dist/model/createBalanceDefinitionPayload.js.map +0 -1
- package/dist/model/createBalanceLimitPayload.d.ts +0 -35
- package/dist/model/createBalanceLimitPayload.js +0 -62
- package/dist/model/createBalanceLimitPayload.js.map +0 -1
- package/dist/model/createBalancePayload.d.ts +0 -14
- package/dist/model/createBalancePayload.js +0 -18
- package/dist/model/createBalancePayload.js.map +0 -1
- package/dist/model/createEmailCampaignEmailExpirationDate.d.ts +0 -22
- package/dist/model/createEmailCampaignEmailExpirationDate.js +0 -31
- package/dist/model/createEmailCampaignEmailExpirationDate.js.map +0 -1
- package/dist/model/createLoyaltyProgramPayload.d.ts +0 -19
- package/dist/model/createLoyaltyProgramPayload.js +0 -33
- package/dist/model/createLoyaltyProgramPayload.js.map +0 -1
- package/dist/model/createOrderPayload.d.ts +0 -22
- package/dist/model/createOrderPayload.js +0 -48
- package/dist/model/createOrderPayload.js.map +0 -1
- package/dist/model/createSubscriptionPayload.d.ts +0 -16
- package/dist/model/createSubscriptionPayload.js +0 -28
- package/dist/model/createSubscriptionPayload.js.map +0 -1
- package/dist/model/createSubscriptionResponse.d.ts +0 -20
- package/dist/model/createSubscriptionResponse.js +0 -48
- package/dist/model/createSubscriptionResponse.js.map +0 -1
- package/dist/model/createTierGroupRequest.d.ts +0 -29
- package/dist/model/createTierGroupRequest.js +0 -51
- package/dist/model/createTierGroupRequest.js.map +0 -1
- package/dist/model/createTransactionPayload.d.ts +0 -24
- package/dist/model/createTransactionPayload.js +0 -58
- package/dist/model/createTransactionPayload.js.map +0 -1
- package/dist/model/crmAttributesPost200Response.d.ts +0 -14
- package/dist/model/crmAttributesPost200Response.js +0 -18
- package/dist/model/crmAttributesPost200Response.js.map +0 -1
- package/dist/model/crmAttributesPostRequest.d.ts +0 -33
- package/dist/model/crmAttributesPostRequest.js +0 -55
- package/dist/model/crmAttributesPostRequest.js.map +0 -1
- package/dist/model/errorResponse.d.ts +0 -14
- package/dist/model/errorResponse.js +0 -18
- package/dist/model/errorResponse.js.map +0 -1
- package/dist/model/fetchTemplatePreview.d.ts +0 -16
- package/dist/model/fetchTemplatePreview.js +0 -28
- package/dist/model/fetchTemplatePreview.js.map +0 -1
- package/dist/model/getSegment.d.ts +0 -17
- package/dist/model/getSegment.js +0 -33
- package/dist/model/getSegment.js.map +0 -1
- package/dist/model/loyaltyProgram.d.ts +0 -33
- package/dist/model/loyaltyProgram.js +0 -80
- package/dist/model/loyaltyProgram.js.map +0 -1
- package/dist/model/loyaltyProgramPage.d.ts +0 -15
- package/dist/model/loyaltyProgramPage.js +0 -18
- package/dist/model/loyaltyProgramPage.js.map +0 -1
- package/dist/model/loyaltyProgramValidationError.d.ts +0 -16
- package/dist/model/loyaltyProgramValidationError.js +0 -28
- package/dist/model/loyaltyProgramValidationError.js.map +0 -1
- package/dist/model/loyaltyTierPage.d.ts +0 -15
- package/dist/model/loyaltyTierPage.js +0 -18
- package/dist/model/loyaltyTierPage.js.map +0 -1
- package/dist/model/mainAttributeRewardPayload.d.ts +0 -22
- package/dist/model/mainAttributeRewardPayload.js +0 -48
- package/dist/model/mainAttributeRewardPayload.js.map +0 -1
- package/dist/model/mainBillingPayload.d.ts +0 -20
- package/dist/model/mainBillingPayload.js +0 -48
- package/dist/model/mainBillingPayload.js.map +0 -1
- package/dist/model/mainCodeCountHttpResponse.d.ts +0 -14
- package/dist/model/mainCodeCountHttpResponse.js +0 -18
- package/dist/model/mainCodeCountHttpResponse.js.map +0 -1
- package/dist/model/mainCreateRedeemPayload.d.ts +0 -24
- package/dist/model/mainCreateRedeemPayload.js +0 -53
- package/dist/model/mainCreateRedeemPayload.js.map +0 -1
- package/dist/model/mainCreateRewardPayload.d.ts +0 -17
- package/dist/model/mainCreateRewardPayload.js +0 -33
- package/dist/model/mainCreateRewardPayload.js.map +0 -1
- package/dist/model/mainCreateRewardResponse.d.ts +0 -21
- package/dist/model/mainCreateRewardResponse.js +0 -53
- package/dist/model/mainCreateRewardResponse.js.map +0 -1
- package/dist/model/mainErrorResponse.d.ts +0 -14
- package/dist/model/mainErrorResponse.js +0 -18
- package/dist/model/mainErrorResponse.js.map +0 -1
- package/dist/model/mainFilter.d.ts +0 -15
- package/dist/model/mainFilter.js +0 -23
- package/dist/model/mainFilter.js.map +0 -1
- package/dist/model/mainGenerator.d.ts +0 -19
- package/dist/model/mainGenerator.js +0 -43
- package/dist/model/mainGenerator.js.map +0 -1
- package/dist/model/mainGetContactRewardsPayload.d.ts +0 -31
- package/dist/model/mainGetContactRewardsPayload.js +0 -60
- package/dist/model/mainGetContactRewardsPayload.js.map +0 -1
- package/dist/model/mainIdentifiersPayload.d.ts +0 -15
- package/dist/model/mainIdentifiersPayload.js +0 -23
- package/dist/model/mainIdentifiersPayload.js.map +0 -1
- package/dist/model/mainLimit.d.ts +0 -21
- package/dist/model/mainLimit.js +0 -53
- package/dist/model/mainLimit.js.map +0 -1
- package/dist/model/mainModelContactReward.d.ts +0 -25
- package/dist/model/mainModelContactReward.js +0 -63
- package/dist/model/mainModelContactReward.js.map +0 -1
- package/dist/model/mainModelContactRewardsResp.d.ts +0 -19
- package/dist/model/mainModelContactRewardsResp.js +0 -38
- package/dist/model/mainModelContactRewardsResp.js.map +0 -1
- package/dist/model/mainNodeResponse.d.ts +0 -21
- package/dist/model/mainNodeResponse.js +0 -53
- package/dist/model/mainNodeResponse.js.map +0 -1
- package/dist/model/mainOrderPayload.d.ts +0 -28
- package/dist/model/mainOrderPayload.js +0 -73
- package/dist/model/mainOrderPayload.js.map +0 -1
- package/dist/model/mainProduct.d.ts +0 -17
- package/dist/model/mainProduct.js +0 -33
- package/dist/model/mainProduct.js.map +0 -1
- package/dist/model/mainProductPayload.d.ts +0 -18
- package/dist/model/mainProductPayload.js +0 -38
- package/dist/model/mainProductPayload.js.map +0 -1
- package/dist/model/mainRedeem.d.ts +0 -29
- package/dist/model/mainRedeem.js +0 -83
- package/dist/model/mainRedeem.js.map +0 -1
- package/dist/model/mainResultParameterResponse.d.ts +0 -16
- package/dist/model/mainResultParameterResponse.js +0 -23
- package/dist/model/mainResultParameterResponse.js.map +0 -1
- package/dist/model/mainReward.d.ts +0 -67
- package/dist/model/mainReward.js +0 -224
- package/dist/model/mainReward.js.map +0 -1
- package/dist/model/mainRewardAttribution.d.ts +0 -26
- package/dist/model/mainRewardAttribution.js +0 -68
- package/dist/model/mainRewardAttribution.js.map +0 -1
- package/dist/model/mainRewardConfigurations.d.ts +0 -16
- package/dist/model/mainRewardConfigurations.js +0 -28
- package/dist/model/mainRewardConfigurations.js.map +0 -1
- package/dist/model/mainRewardPage.d.ts +0 -16
- package/dist/model/mainRewardPage.js +0 -23
- package/dist/model/mainRewardPage.js.map +0 -1
- package/dist/model/mainRewardPageObj.d.ts +0 -22
- package/dist/model/mainRewardPageObj.js +0 -58
- package/dist/model/mainRewardPageObj.js.map +0 -1
- package/dist/model/mainRewardValidate.d.ts +0 -14
- package/dist/model/mainRewardValidate.js +0 -18
- package/dist/model/mainRewardValidate.js.map +0 -1
- package/dist/model/mainRule.d.ts +0 -31
- package/dist/model/mainRule.js +0 -78
- package/dist/model/mainRule.js.map +0 -1
- package/dist/model/mainRuleConditionResponse.d.ts +0 -19
- package/dist/model/mainRuleConditionResponse.js +0 -38
- package/dist/model/mainRuleConditionResponse.js.map +0 -1
- package/dist/model/mainRuleEventResponse.d.ts +0 -15
- package/dist/model/mainRuleEventResponse.js +0 -23
- package/dist/model/mainRuleEventResponse.js.map +0 -1
- package/dist/model/mainRuleResultResponse.d.ts +0 -17
- package/dist/model/mainRuleResultResponse.js +0 -28
- package/dist/model/mainRuleResultResponse.js.map +0 -1
- package/dist/model/mainValidateRewardPayload.d.ts +0 -19
- package/dist/model/mainValidateRewardPayload.js +0 -43
- package/dist/model/mainValidateRewardPayload.js.map +0 -1
- package/dist/model/mainValueResponse.d.ts +0 -22
- package/dist/model/mainValueResponse.js +0 -53
- package/dist/model/mainValueResponse.js.map +0 -1
- package/dist/model/mainVoucherRevokePayload.d.ts +0 -14
- package/dist/model/mainVoucherRevokePayload.js +0 -18
- package/dist/model/mainVoucherRevokePayload.js.map +0 -1
- package/dist/model/memberContact.d.ts +0 -16
- package/dist/model/memberContact.js +0 -28
- package/dist/model/memberContact.js.map +0 -1
- package/dist/model/modelSubscriptionBalanceResp.d.ts +0 -15
- package/dist/model/modelSubscriptionBalanceResp.js +0 -18
- package/dist/model/modelSubscriptionBalanceResp.js.map +0 -1
- package/dist/model/orderIdentifiers.d.ts +0 -17
- package/dist/model/orderIdentifiers.js +0 -33
- package/dist/model/orderIdentifiers.js.map +0 -1
- package/dist/model/patchLoyaltyProgramPayload.d.ts +0 -16
- package/dist/model/patchLoyaltyProgramPayload.js +0 -28
- package/dist/model/patchLoyaltyProgramPayload.js.map +0 -1
- package/dist/model/sendTransacSmsTag.d.ts +0 -14
- package/dist/model/sendTransacSmsTag.js +0 -18
- package/dist/model/sendTransacSmsTag.js.map +0 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.d.ts +0 -15
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js +0 -23
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js.map +0 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.d.ts +0 -15
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js +0 -23
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js.map +0 -1
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.d.ts +0 -15
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js +0 -23
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js.map +0 -1
- package/dist/model/subAccountsUpdatePlanRequest.d.ts +0 -18
- package/dist/model/subAccountsUpdatePlanRequest.js +0 -28
- package/dist/model/subAccountsUpdatePlanRequest.js.map +0 -1
- package/dist/model/subAccountsUpdatePlanRequestCredits.d.ts +0 -18
- package/dist/model/subAccountsUpdatePlanRequestCredits.js +0 -38
- package/dist/model/subAccountsUpdatePlanRequestCredits.js.map +0 -1
- package/dist/model/subAccountsUpdatePlanRequestFeatures.d.ts +0 -16
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js +0 -28
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js.map +0 -1
- package/dist/model/subscription.d.ts +0 -20
- package/dist/model/subscription.js +0 -48
- package/dist/model/subscription.js.map +0 -1
- package/dist/model/subscriptionAggregateBalance.d.ts +0 -15
- package/dist/model/subscriptionAggregateBalance.js +0 -23
- package/dist/model/subscriptionAggregateBalance.js.map +0 -1
- package/dist/model/subscriptionAttributedReward.d.ts +0 -24
- package/dist/model/subscriptionAttributedReward.js +0 -58
- package/dist/model/subscriptionAttributedReward.js.map +0 -1
- package/dist/model/subscriptionBalances.d.ts +0 -17
- package/dist/model/subscriptionBalances.js +0 -28
- package/dist/model/subscriptionBalances.js.map +0 -1
- package/dist/model/subscriptionHandlerInfo.d.ts +0 -21
- package/dist/model/subscriptionHandlerInfo.js +0 -33
- package/dist/model/subscriptionHandlerInfo.js.map +0 -1
- package/dist/model/subscriptionMember.d.ts +0 -18
- package/dist/model/subscriptionMember.js +0 -38
- package/dist/model/subscriptionMember.js.map +0 -1
- package/dist/model/subscriptionTier.d.ts +0 -22
- package/dist/model/subscriptionTier.js +0 -48
- package/dist/model/subscriptionTier.js.map +0 -1
- package/dist/model/templatePreview.d.ts +0 -19
- package/dist/model/templatePreview.js +0 -43
- package/dist/model/templatePreview.js.map +0 -1
- package/dist/model/tier.d.ts +0 -24
- package/dist/model/tier.js +0 -58
- package/dist/model/tier.js.map +0 -1
- package/dist/model/tierAccessConditionsInner.d.ts +0 -17
- package/dist/model/tierAccessConditionsInner.js +0 -33
- package/dist/model/tierAccessConditionsInner.js.map +0 -1
- package/dist/model/tierForContact.d.ts +0 -22
- package/dist/model/tierForContact.js +0 -48
- package/dist/model/tierForContact.js.map +0 -1
- package/dist/model/tierGroup.d.ts +0 -33
- package/dist/model/tierGroup.js +0 -71
- package/dist/model/tierGroup.js.map +0 -1
- package/dist/model/tierGroupPage.d.ts +0 -15
- package/dist/model/tierGroupPage.js +0 -18
- package/dist/model/tierGroupPage.js.map +0 -1
- package/dist/model/tierRequest.d.ts +0 -19
- package/dist/model/tierRequest.js +0 -33
- package/dist/model/tierRequest.js.map +0 -1
- package/dist/model/tierRequestAccessConditionsInner.d.ts +0 -15
- package/dist/model/tierRequestAccessConditionsInner.js +0 -23
- package/dist/model/tierRequestAccessConditionsInner.js.map +0 -1
- package/dist/model/tierRequestPutPayload.d.ts +0 -19
- package/dist/model/tierRequestPutPayload.js +0 -33
- package/dist/model/tierRequestPutPayload.js.map +0 -1
- package/dist/model/tierRequestTierRewardsInner.d.ts +0 -14
- package/dist/model/tierRequestTierRewardsInner.js +0 -18
- package/dist/model/tierRequestTierRewardsInner.js.map +0 -1
- package/dist/model/tierTierRewardsInner.d.ts +0 -16
- package/dist/model/tierTierRewardsInner.js +0 -28
- package/dist/model/tierTierRewardsInner.js.map +0 -1
- package/dist/model/transaction.d.ts +0 -30
- package/dist/model/transaction.js +0 -88
- package/dist/model/transaction.js.map +0 -1
- package/dist/model/transactionHistory.d.ts +0 -25
- package/dist/model/transactionHistory.js +0 -63
- package/dist/model/transactionHistory.js.map +0 -1
- package/dist/model/transactionHistoryResp.d.ts +0 -19
- package/dist/model/transactionHistoryResp.js +0 -38
- package/dist/model/transactionHistoryResp.js.map +0 -1
- package/dist/model/unauthorizedResponse.d.ts +0 -14
- package/dist/model/unauthorizedResponse.js +0 -18
- package/dist/model/unauthorizedResponse.js.map +0 -1
- package/dist/model/updateBalanceDefinitionPayload.d.ts +0 -77
- package/dist/model/updateBalanceDefinitionPayload.js +0 -145
- package/dist/model/updateBalanceDefinitionPayload.js.map +0 -1
- package/dist/model/updateBalanceLimitPayload.d.ts +0 -35
- package/dist/model/updateBalanceLimitPayload.js +0 -62
- package/dist/model/updateBalanceLimitPayload.js.map +0 -1
- package/dist/model/updateEmailCampaignEmailExpirationDate.d.ts +0 -22
- package/dist/model/updateEmailCampaignEmailExpirationDate.js +0 -31
- package/dist/model/updateEmailCampaignEmailExpirationDate.js.map +0 -1
- package/dist/model/updateLoyaltyProgramPayload.d.ts +0 -16
- package/dist/model/updateLoyaltyProgramPayload.js +0 -28
- package/dist/model/updateLoyaltyProgramPayload.js.map +0 -1
- package/dist/model/updateTierGroupRequest.d.ts +0 -29
- package/dist/model/updateTierGroupRequest.js +0 -51
- package/dist/model/updateTierGroupRequest.js.map +0 -1
- package/model/addSubscriptionMemberPayload.ts +0 -52
- package/model/aggregateBalance.ts +0 -43
- package/model/balance.ts +0 -106
- package/model/balanceDataPerContact.ts +0 -49
- package/model/balanceDefinition.ts +0 -212
- package/model/balanceDefinitionPage.ts +0 -35
- package/model/balanceLimit.ts +0 -115
- package/model/balanceOrder.ts +0 -136
- package/model/companiesImportPost200Response.ts +0 -34
- package/model/companiesImportPost400Response.ts +0 -31
- package/model/contactBalancesResp.ts +0 -50
- package/model/contactErrorModel.ts +0 -63
- package/model/conversationsMessageAttachmentsInner.ts +0 -79
- package/model/conversationsMessageForwardedToSourceStatus.ts +0 -40
- package/model/conversationsMessageFrom.ts +0 -40
- package/model/conversationsMessageReplyTo.ts +0 -40
- package/model/conversationsMessageToInner.ts +0 -37
- package/model/corporateUserEmailPermissionsPutRequest.ts +0 -41
- package/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.ts +0 -69
- package/model/createBalanceDefinitionPayload.ts +0 -218
- package/model/createBalanceLimitPayload.ts +0 -98
- package/model/createBalancePayload.ts +0 -37
- package/model/createEmailCampaignEmailExpirationDate.ts +0 -53
- package/model/createLoyaltyProgramPayload.ts +0 -61
- package/model/createOrderPayload.ts +0 -91
- package/model/createSubscriptionPayload.ts +0 -52
- package/model/createSubscriptionResponse.ts +0 -88
- package/model/createTierGroupRequest.ts +0 -73
- package/model/createTransactionPayload.ts +0 -109
- package/model/crmAttributesPost200Response.ts +0 -34
- package/model/crmAttributesPostRequest.ts +0 -85
- package/model/errorResponse.ts +0 -31
- package/model/fetchTemplatePreview.ts +0 -52
- package/model/getSegment.ts +0 -61
- package/model/loyaltyProgram.ts +0 -139
- package/model/loyaltyProgramPage.ts +0 -35
- package/model/loyaltyProgramValidationError.ts +0 -52
- package/model/loyaltyTierPage.ts +0 -32
- package/model/mainAttributeRewardPayload.ts +0 -88
- package/model/mainBillingPayload.ts +0 -88
- package/model/mainCodeCountHttpResponse.ts +0 -34
- package/model/mainCreateRedeemPayload.ts +0 -98
- package/model/mainCreateRewardPayload.ts +0 -61
- package/model/mainCreateRewardResponse.ts +0 -97
- package/model/mainErrorResponse.ts +0 -34
- package/model/mainFilter.ts +0 -43
- package/model/mainGenerator.ts +0 -79
- package/model/mainGetContactRewardsPayload.ts +0 -99
- package/model/mainIdentifiersPayload.ts +0 -43
- package/model/mainLimit.ts +0 -97
- package/model/mainModelContactReward.ts +0 -115
- package/model/mainModelContactRewardsResp.ts +0 -71
- package/model/mainNodeResponse.ts +0 -97
- package/model/mainOrderPayload.ts +0 -136
- package/model/mainProduct.ts +0 -61
- package/model/mainProductPayload.ts +0 -70
- package/model/mainRedeem.ts +0 -151
- package/model/mainResultParameterResponse.ts +0 -44
- package/model/mainReward.ts +0 -397
- package/model/mainRewardAttribution.ts +0 -124
- package/model/mainRewardConfigurations.ts +0 -52
- package/model/mainRewardPage.ts +0 -44
- package/model/mainRewardPageObj.ts +0 -106
- package/model/mainRewardValidate.ts +0 -34
- package/model/mainRule.ts +0 -145
- package/model/mainRuleConditionResponse.ts +0 -71
- package/model/mainRuleEventResponse.ts +0 -43
- package/model/mainRuleResultResponse.ts +0 -53
- package/model/mainValidateRewardPayload.ts +0 -79
- package/model/mainValueResponse.ts +0 -98
- package/model/mainVoucherRevokePayload.ts +0 -34
- package/model/memberContact.ts +0 -52
- package/model/modelSubscriptionBalanceResp.ts +0 -32
- package/model/orderIdentifiers.ts +0 -64
- package/model/patchLoyaltyProgramPayload.ts +0 -52
- package/model/sendTransacSmsTag.ts +0 -37
- package/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.ts +0 -46
- package/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.ts +0 -46
- package/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.ts +0 -46
- package/model/subAccountsUpdatePlanRequest.ts +0 -51
- package/model/subAccountsUpdatePlanRequestCredits.ts +0 -73
- package/model/subAccountsUpdatePlanRequestFeatures.ts +0 -55
- package/model/subscription.ts +0 -88
- package/model/subscriptionAggregateBalance.ts +0 -43
- package/model/subscriptionAttributedReward.ts +0 -106
- package/model/subscriptionBalances.ts +0 -53
- package/model/subscriptionHandlerInfo.ts +0 -65
- package/model/subscriptionMember.ts +0 -70
- package/model/subscriptionTier.ts +0 -88
- package/model/templatePreview.ts +0 -76
- package/model/tier.ts +0 -102
- package/model/tierAccessConditionsInner.ts +0 -55
- package/model/tierForContact.ts +0 -82
- package/model/tierGroup.ts +0 -109
- package/model/tierGroupPage.ts +0 -32
- package/model/tierRequest.ts +0 -57
- package/model/tierRequestAccessConditionsInner.ts +0 -43
- package/model/tierRequestPutPayload.ts +0 -57
- package/model/tierRequestTierRewardsInner.ts +0 -34
- package/model/tierTierRewardsInner.ts +0 -46
- package/model/transaction.ts +0 -163
- package/model/transactionHistory.ts +0 -118
- package/model/transactionHistoryResp.ts +0 -74
- package/model/unauthorizedResponse.ts +0 -34
- package/model/updateBalanceDefinitionPayload.ts +0 -218
- package/model/updateBalanceLimitPayload.ts +0 -98
- package/model/updateEmailCampaignEmailExpirationDate.ts +0 -53
- package/model/updateLoyaltyProgramPayload.ts +0 -52
- package/model/updateTierGroupRequest.ts +0 -73
package/api/contactsApi.ts
CHANGED
|
@@ -11,12 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
import localVarRequest from '
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
14
|
+
import localVarRequest, { RequestOptions, IncomingMessage } from '../requestCompat';
|
|
18
15
|
import { AddContactToList } from '../model/addContactToList';
|
|
19
|
-
import { ContactErrorModel } from '../model/contactErrorModel';
|
|
20
16
|
import { CreateAttribute } from '../model/createAttribute';
|
|
21
17
|
import { CreateContact } from '../model/createContact';
|
|
22
18
|
import { CreateDoiContact } from '../model/createDoiContact';
|
|
@@ -123,9 +119,9 @@ export class ContactsApi {
|
|
|
123
119
|
*
|
|
124
120
|
* @summary Add existing contacts to a list
|
|
125
121
|
* @param listId Id of the list
|
|
126
|
-
* @param contactEmails Emails addresses OR IDs
|
|
122
|
+
* @param contactEmails Emails addresses OR IDs of the contacts
|
|
127
123
|
*/
|
|
128
|
-
public async addContactToList (listId: number, contactEmails: AddContactToList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
124
|
+
public async addContactToList (listId: number, contactEmails: AddContactToList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: PostContactInfo; }> {
|
|
129
125
|
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts/add'
|
|
130
126
|
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
|
|
131
127
|
let localVarQueryParameters: any = {};
|
|
@@ -153,11 +149,11 @@ export class ContactsApi {
|
|
|
153
149
|
|
|
154
150
|
let localVarUseFormData = false;
|
|
155
151
|
|
|
156
|
-
let localVarRequestOptions:
|
|
152
|
+
let localVarRequestOptions: RequestOptions = {
|
|
157
153
|
method: 'POST',
|
|
158
|
-
|
|
154
|
+
params: localVarQueryParameters,
|
|
159
155
|
headers: localVarHeaderParams,
|
|
160
|
-
|
|
156
|
+
url: localVarPath,
|
|
161
157
|
useQuerystring: this._useQuerystring,
|
|
162
158
|
json: true,
|
|
163
159
|
body: ObjectSerializer.serialize(contactEmails, "AddContactToList")
|
|
@@ -185,7 +181,7 @@ export class ContactsApi {
|
|
|
185
181
|
localVarRequestOptions.form = localVarFormParams;
|
|
186
182
|
}
|
|
187
183
|
}
|
|
188
|
-
return new Promise<{ response:
|
|
184
|
+
return new Promise<{ response: IncomingMessage; body: PostContactInfo; }>((resolve, reject) => {
|
|
189
185
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
190
186
|
if (error) {
|
|
191
187
|
reject(error);
|
|
@@ -208,7 +204,7 @@ export class ContactsApi {
|
|
|
208
204
|
* @param attributeName Name of the attribute
|
|
209
205
|
* @param createAttribute Values to create an attribute
|
|
210
206
|
*/
|
|
211
|
-
public async createAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, createAttribute: CreateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
207
|
+
public async createAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, createAttribute: CreateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
212
208
|
const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
|
|
213
209
|
.replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
|
|
214
210
|
.replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
|
|
@@ -242,11 +238,11 @@ export class ContactsApi {
|
|
|
242
238
|
|
|
243
239
|
let localVarUseFormData = false;
|
|
244
240
|
|
|
245
|
-
let localVarRequestOptions:
|
|
241
|
+
let localVarRequestOptions: RequestOptions = {
|
|
246
242
|
method: 'POST',
|
|
247
|
-
|
|
243
|
+
params: localVarQueryParameters,
|
|
248
244
|
headers: localVarHeaderParams,
|
|
249
|
-
|
|
245
|
+
url: localVarPath,
|
|
250
246
|
useQuerystring: this._useQuerystring,
|
|
251
247
|
json: true,
|
|
252
248
|
body: ObjectSerializer.serialize(createAttribute, "CreateAttribute")
|
|
@@ -274,7 +270,7 @@ export class ContactsApi {
|
|
|
274
270
|
localVarRequestOptions.form = localVarFormParams;
|
|
275
271
|
}
|
|
276
272
|
}
|
|
277
|
-
return new Promise<{ response:
|
|
273
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
278
274
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
279
275
|
if (error) {
|
|
280
276
|
reject(error);
|
|
@@ -290,11 +286,11 @@ export class ContactsApi {
|
|
|
290
286
|
});
|
|
291
287
|
}
|
|
292
288
|
/**
|
|
293
|
-
*
|
|
289
|
+
*
|
|
294
290
|
* @summary Create a contact
|
|
295
291
|
* @param createContact Values to create a contact
|
|
296
292
|
*/
|
|
297
|
-
public async createContact (createContact: CreateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
293
|
+
public async createContact (createContact: CreateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateUpdateContactModel; }> {
|
|
298
294
|
const localVarPath = this.basePath + '/contacts';
|
|
299
295
|
let localVarQueryParameters: any = {};
|
|
300
296
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -316,11 +312,11 @@ export class ContactsApi {
|
|
|
316
312
|
|
|
317
313
|
let localVarUseFormData = false;
|
|
318
314
|
|
|
319
|
-
let localVarRequestOptions:
|
|
315
|
+
let localVarRequestOptions: RequestOptions = {
|
|
320
316
|
method: 'POST',
|
|
321
|
-
|
|
317
|
+
params: localVarQueryParameters,
|
|
322
318
|
headers: localVarHeaderParams,
|
|
323
|
-
|
|
319
|
+
url: localVarPath,
|
|
324
320
|
useQuerystring: this._useQuerystring,
|
|
325
321
|
json: true,
|
|
326
322
|
body: ObjectSerializer.serialize(createContact, "CreateContact")
|
|
@@ -348,7 +344,7 @@ export class ContactsApi {
|
|
|
348
344
|
localVarRequestOptions.form = localVarFormParams;
|
|
349
345
|
}
|
|
350
346
|
}
|
|
351
|
-
return new Promise<{ response:
|
|
347
|
+
return new Promise<{ response: IncomingMessage; body: CreateUpdateContactModel; }>((resolve, reject) => {
|
|
352
348
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
353
349
|
if (error) {
|
|
354
350
|
reject(error);
|
|
@@ -369,7 +365,7 @@ export class ContactsApi {
|
|
|
369
365
|
* @summary Create Contact via DOI (Double-Opt-In) Flow
|
|
370
366
|
* @param createDoiContact Values to create the Double opt-in (DOI) contact
|
|
371
367
|
*/
|
|
372
|
-
public async createDoiContact (createDoiContact: CreateDoiContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
368
|
+
public async createDoiContact (createDoiContact: CreateDoiContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
373
369
|
const localVarPath = this.basePath + '/contacts/doubleOptinConfirmation';
|
|
374
370
|
let localVarQueryParameters: any = {};
|
|
375
371
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -391,11 +387,11 @@ export class ContactsApi {
|
|
|
391
387
|
|
|
392
388
|
let localVarUseFormData = false;
|
|
393
389
|
|
|
394
|
-
let localVarRequestOptions:
|
|
390
|
+
let localVarRequestOptions: RequestOptions = {
|
|
395
391
|
method: 'POST',
|
|
396
|
-
|
|
392
|
+
params: localVarQueryParameters,
|
|
397
393
|
headers: localVarHeaderParams,
|
|
398
|
-
|
|
394
|
+
url: localVarPath,
|
|
399
395
|
useQuerystring: this._useQuerystring,
|
|
400
396
|
json: true,
|
|
401
397
|
body: ObjectSerializer.serialize(createDoiContact, "CreateDoiContact")
|
|
@@ -423,7 +419,7 @@ export class ContactsApi {
|
|
|
423
419
|
localVarRequestOptions.form = localVarFormParams;
|
|
424
420
|
}
|
|
425
421
|
}
|
|
426
|
-
return new Promise<{ response:
|
|
422
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
427
423
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
428
424
|
if (error) {
|
|
429
425
|
reject(error);
|
|
@@ -443,7 +439,7 @@ export class ContactsApi {
|
|
|
443
439
|
* @summary Create a folder
|
|
444
440
|
* @param createFolder Name of the folder
|
|
445
441
|
*/
|
|
446
|
-
public async createFolder (createFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
442
|
+
public async createFolder (createFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateModel; }> {
|
|
447
443
|
const localVarPath = this.basePath + '/contacts/folders';
|
|
448
444
|
let localVarQueryParameters: any = {};
|
|
449
445
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -465,11 +461,11 @@ export class ContactsApi {
|
|
|
465
461
|
|
|
466
462
|
let localVarUseFormData = false;
|
|
467
463
|
|
|
468
|
-
let localVarRequestOptions:
|
|
464
|
+
let localVarRequestOptions: RequestOptions = {
|
|
469
465
|
method: 'POST',
|
|
470
|
-
|
|
466
|
+
params: localVarQueryParameters,
|
|
471
467
|
headers: localVarHeaderParams,
|
|
472
|
-
|
|
468
|
+
url: localVarPath,
|
|
473
469
|
useQuerystring: this._useQuerystring,
|
|
474
470
|
json: true,
|
|
475
471
|
body: ObjectSerializer.serialize(createFolder, "CreateUpdateFolder")
|
|
@@ -497,7 +493,7 @@ export class ContactsApi {
|
|
|
497
493
|
localVarRequestOptions.form = localVarFormParams;
|
|
498
494
|
}
|
|
499
495
|
}
|
|
500
|
-
return new Promise<{ response:
|
|
496
|
+
return new Promise<{ response: IncomingMessage; body: CreateModel; }>((resolve, reject) => {
|
|
501
497
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
502
498
|
if (error) {
|
|
503
499
|
reject(error);
|
|
@@ -518,7 +514,7 @@ export class ContactsApi {
|
|
|
518
514
|
* @summary Create a list
|
|
519
515
|
* @param createList Values to create a list
|
|
520
516
|
*/
|
|
521
|
-
public async createList (createList: CreateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
517
|
+
public async createList (createList: CreateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateModel; }> {
|
|
522
518
|
const localVarPath = this.basePath + '/contacts/lists';
|
|
523
519
|
let localVarQueryParameters: any = {};
|
|
524
520
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -540,11 +536,11 @@ export class ContactsApi {
|
|
|
540
536
|
|
|
541
537
|
let localVarUseFormData = false;
|
|
542
538
|
|
|
543
|
-
let localVarRequestOptions:
|
|
539
|
+
let localVarRequestOptions: RequestOptions = {
|
|
544
540
|
method: 'POST',
|
|
545
|
-
|
|
541
|
+
params: localVarQueryParameters,
|
|
546
542
|
headers: localVarHeaderParams,
|
|
547
|
-
|
|
543
|
+
url: localVarPath,
|
|
548
544
|
useQuerystring: this._useQuerystring,
|
|
549
545
|
json: true,
|
|
550
546
|
body: ObjectSerializer.serialize(createList, "CreateList")
|
|
@@ -572,7 +568,7 @@ export class ContactsApi {
|
|
|
572
568
|
localVarRequestOptions.form = localVarFormParams;
|
|
573
569
|
}
|
|
574
570
|
}
|
|
575
|
-
return new Promise<{ response:
|
|
571
|
+
return new Promise<{ response: IncomingMessage; body: CreateModel; }>((resolve, reject) => {
|
|
576
572
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
577
573
|
if (error) {
|
|
578
574
|
reject(error);
|
|
@@ -594,7 +590,7 @@ export class ContactsApi {
|
|
|
594
590
|
* @param attributeCategory Category of the attribute
|
|
595
591
|
* @param attributeName Name of the existing attribute
|
|
596
592
|
*/
|
|
597
|
-
public async deleteAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
593
|
+
public async deleteAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
598
594
|
const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
|
|
599
595
|
.replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
|
|
600
596
|
.replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
|
|
@@ -623,11 +619,11 @@ export class ContactsApi {
|
|
|
623
619
|
|
|
624
620
|
let localVarUseFormData = false;
|
|
625
621
|
|
|
626
|
-
let localVarRequestOptions:
|
|
622
|
+
let localVarRequestOptions: RequestOptions = {
|
|
627
623
|
method: 'DELETE',
|
|
628
|
-
|
|
624
|
+
params: localVarQueryParameters,
|
|
629
625
|
headers: localVarHeaderParams,
|
|
630
|
-
|
|
626
|
+
url: localVarPath,
|
|
631
627
|
useQuerystring: this._useQuerystring,
|
|
632
628
|
json: true,
|
|
633
629
|
};
|
|
@@ -654,7 +650,7 @@ export class ContactsApi {
|
|
|
654
650
|
localVarRequestOptions.form = localVarFormParams;
|
|
655
651
|
}
|
|
656
652
|
}
|
|
657
|
-
return new Promise<{ response:
|
|
653
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
658
654
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
659
655
|
if (error) {
|
|
660
656
|
reject(error);
|
|
@@ -670,12 +666,11 @@ export class ContactsApi {
|
|
|
670
666
|
});
|
|
671
667
|
}
|
|
672
668
|
/**
|
|
673
|
-
*
|
|
669
|
+
*
|
|
674
670
|
* @summary Delete a contact
|
|
675
|
-
* @param identifier Email (urlencoded) OR ID of the contact
|
|
676
|
-
* @param identifierType email_id for Email, contact_id for ID of the contact, ext_id for EXT_ID attribute, phone_id for SMS attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE_NUMBER attribute
|
|
671
|
+
* @param identifier Email (urlencoded) OR ID of the contact
|
|
677
672
|
*/
|
|
678
|
-
public async deleteContact (identifier: string,
|
|
673
|
+
public async deleteContact (identifier: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
679
674
|
const localVarPath = this.basePath + '/contacts/{identifier}'
|
|
680
675
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
681
676
|
let localVarQueryParameters: any = {};
|
|
@@ -694,19 +689,15 @@ export class ContactsApi {
|
|
|
694
689
|
throw new Error('Required parameter identifier was null or undefined when calling deleteContact.');
|
|
695
690
|
}
|
|
696
691
|
|
|
697
|
-
if (identifierType !== undefined) {
|
|
698
|
-
localVarQueryParameters['identifierType'] = ObjectSerializer.serialize(identifierType, "'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id'");
|
|
699
|
-
}
|
|
700
|
-
|
|
701
692
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
702
693
|
|
|
703
694
|
let localVarUseFormData = false;
|
|
704
695
|
|
|
705
|
-
let localVarRequestOptions:
|
|
696
|
+
let localVarRequestOptions: RequestOptions = {
|
|
706
697
|
method: 'DELETE',
|
|
707
|
-
|
|
698
|
+
params: localVarQueryParameters,
|
|
708
699
|
headers: localVarHeaderParams,
|
|
709
|
-
|
|
700
|
+
url: localVarPath,
|
|
710
701
|
useQuerystring: this._useQuerystring,
|
|
711
702
|
json: true,
|
|
712
703
|
};
|
|
@@ -733,7 +724,7 @@ export class ContactsApi {
|
|
|
733
724
|
localVarRequestOptions.form = localVarFormParams;
|
|
734
725
|
}
|
|
735
726
|
}
|
|
736
|
-
return new Promise<{ response:
|
|
727
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
737
728
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
738
729
|
if (error) {
|
|
739
730
|
reject(error);
|
|
@@ -753,7 +744,7 @@ export class ContactsApi {
|
|
|
753
744
|
* @summary Delete a folder (and all its lists)
|
|
754
745
|
* @param folderId Id of the folder
|
|
755
746
|
*/
|
|
756
|
-
public async deleteFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
747
|
+
public async deleteFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
757
748
|
const localVarPath = this.basePath + '/contacts/folders/{folderId}'
|
|
758
749
|
.replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
|
|
759
750
|
let localVarQueryParameters: any = {};
|
|
@@ -776,11 +767,11 @@ export class ContactsApi {
|
|
|
776
767
|
|
|
777
768
|
let localVarUseFormData = false;
|
|
778
769
|
|
|
779
|
-
let localVarRequestOptions:
|
|
770
|
+
let localVarRequestOptions: RequestOptions = {
|
|
780
771
|
method: 'DELETE',
|
|
781
|
-
|
|
772
|
+
params: localVarQueryParameters,
|
|
782
773
|
headers: localVarHeaderParams,
|
|
783
|
-
|
|
774
|
+
url: localVarPath,
|
|
784
775
|
useQuerystring: this._useQuerystring,
|
|
785
776
|
json: true,
|
|
786
777
|
};
|
|
@@ -807,7 +798,7 @@ export class ContactsApi {
|
|
|
807
798
|
localVarRequestOptions.form = localVarFormParams;
|
|
808
799
|
}
|
|
809
800
|
}
|
|
810
|
-
return new Promise<{ response:
|
|
801
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
811
802
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
812
803
|
if (error) {
|
|
813
804
|
reject(error);
|
|
@@ -827,7 +818,7 @@ export class ContactsApi {
|
|
|
827
818
|
* @summary Delete a list
|
|
828
819
|
* @param listId Id of the list
|
|
829
820
|
*/
|
|
830
|
-
public async deleteList (listId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
821
|
+
public async deleteList (listId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
831
822
|
const localVarPath = this.basePath + '/contacts/lists/{listId}'
|
|
832
823
|
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
|
|
833
824
|
let localVarQueryParameters: any = {};
|
|
@@ -850,99 +841,11 @@ export class ContactsApi {
|
|
|
850
841
|
|
|
851
842
|
let localVarUseFormData = false;
|
|
852
843
|
|
|
853
|
-
let localVarRequestOptions:
|
|
854
|
-
method: 'DELETE',
|
|
855
|
-
qs: localVarQueryParameters,
|
|
856
|
-
headers: localVarHeaderParams,
|
|
857
|
-
uri: localVarPath,
|
|
858
|
-
useQuerystring: this._useQuerystring,
|
|
859
|
-
json: true,
|
|
860
|
-
};
|
|
861
|
-
|
|
862
|
-
let authenticationPromise = Promise.resolve();
|
|
863
|
-
if (this.authentications.apiKey.apiKey) {
|
|
864
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
865
|
-
}
|
|
866
|
-
if (this.authentications.partnerKey.apiKey) {
|
|
867
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
868
|
-
}
|
|
869
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
870
|
-
|
|
871
|
-
let interceptorPromise = authenticationPromise;
|
|
872
|
-
for (const interceptor of this.interceptors) {
|
|
873
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
return interceptorPromise.then(() => {
|
|
877
|
-
if (Object.keys(localVarFormParams).length) {
|
|
878
|
-
if (localVarUseFormData) {
|
|
879
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
880
|
-
} else {
|
|
881
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
885
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
886
|
-
if (error) {
|
|
887
|
-
reject(error);
|
|
888
|
-
} else {
|
|
889
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
890
|
-
resolve({ response: response, body: body });
|
|
891
|
-
} else {
|
|
892
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
});
|
|
896
|
-
});
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
*
|
|
901
|
-
* @summary Delete a multiple-choice attribute option
|
|
902
|
-
* @param attributeType Type of the attribute
|
|
903
|
-
* @param multipleChoiceAttribute Name of the existing multiple-choice attribute
|
|
904
|
-
* @param multipleChoiceAttributeOption Name of the existing multiple-choice attribute option that you want to delete
|
|
905
|
-
*/
|
|
906
|
-
public async deleteMultiAttributeOptions (attributeType: 'multiple-choice', multipleChoiceAttribute: string, multipleChoiceAttributeOption: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
907
|
-
const localVarPath = this.basePath + '/contacts/attributes/{attributeType}/{multipleChoiceAttribute}/{multipleChoiceAttributeOption}'
|
|
908
|
-
.replace('{' + 'attributeType' + '}', encodeURIComponent(String(attributeType)))
|
|
909
|
-
.replace('{' + 'multipleChoiceAttribute' + '}', encodeURIComponent(String(multipleChoiceAttribute)))
|
|
910
|
-
.replace('{' + 'multipleChoiceAttributeOption' + '}', encodeURIComponent(String(multipleChoiceAttributeOption)));
|
|
911
|
-
let localVarQueryParameters: any = {};
|
|
912
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
913
|
-
const produces = ['application/json'];
|
|
914
|
-
// give precedence to 'application/json'
|
|
915
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
916
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
917
|
-
} else {
|
|
918
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
919
|
-
}
|
|
920
|
-
let localVarFormParams: any = {};
|
|
921
|
-
|
|
922
|
-
// verify required parameter 'attributeType' is not null or undefined
|
|
923
|
-
if (attributeType === null || attributeType === undefined) {
|
|
924
|
-
throw new Error('Required parameter attributeType was null or undefined when calling deleteMultiAttributeOptions.');
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
// verify required parameter 'multipleChoiceAttribute' is not null or undefined
|
|
928
|
-
if (multipleChoiceAttribute === null || multipleChoiceAttribute === undefined) {
|
|
929
|
-
throw new Error('Required parameter multipleChoiceAttribute was null or undefined when calling deleteMultiAttributeOptions.');
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
// verify required parameter 'multipleChoiceAttributeOption' is not null or undefined
|
|
933
|
-
if (multipleChoiceAttributeOption === null || multipleChoiceAttributeOption === undefined) {
|
|
934
|
-
throw new Error('Required parameter multipleChoiceAttributeOption was null or undefined when calling deleteMultiAttributeOptions.');
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
938
|
-
|
|
939
|
-
let localVarUseFormData = false;
|
|
940
|
-
|
|
941
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
844
|
+
let localVarRequestOptions: RequestOptions = {
|
|
942
845
|
method: 'DELETE',
|
|
943
|
-
|
|
846
|
+
params: localVarQueryParameters,
|
|
944
847
|
headers: localVarHeaderParams,
|
|
945
|
-
|
|
848
|
+
url: localVarPath,
|
|
946
849
|
useQuerystring: this._useQuerystring,
|
|
947
850
|
json: true,
|
|
948
851
|
};
|
|
@@ -969,7 +872,7 @@ export class ContactsApi {
|
|
|
969
872
|
localVarRequestOptions.form = localVarFormParams;
|
|
970
873
|
}
|
|
971
874
|
}
|
|
972
|
-
return new Promise<{ response:
|
|
875
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
973
876
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
974
877
|
if (error) {
|
|
975
878
|
reject(error);
|
|
@@ -988,7 +891,7 @@ export class ContactsApi {
|
|
|
988
891
|
*
|
|
989
892
|
* @summary List all attributes
|
|
990
893
|
*/
|
|
991
|
-
public async getAttributes (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
894
|
+
public async getAttributes (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetAttributes; }> {
|
|
992
895
|
const localVarPath = this.basePath + '/contacts/attributes';
|
|
993
896
|
let localVarQueryParameters: any = {};
|
|
994
897
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1005,11 +908,11 @@ export class ContactsApi {
|
|
|
1005
908
|
|
|
1006
909
|
let localVarUseFormData = false;
|
|
1007
910
|
|
|
1008
|
-
let localVarRequestOptions:
|
|
911
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1009
912
|
method: 'GET',
|
|
1010
|
-
|
|
913
|
+
params: localVarQueryParameters,
|
|
1011
914
|
headers: localVarHeaderParams,
|
|
1012
|
-
|
|
915
|
+
url: localVarPath,
|
|
1013
916
|
useQuerystring: this._useQuerystring,
|
|
1014
917
|
json: true,
|
|
1015
918
|
};
|
|
@@ -1036,7 +939,7 @@ export class ContactsApi {
|
|
|
1036
939
|
localVarRequestOptions.form = localVarFormParams;
|
|
1037
940
|
}
|
|
1038
941
|
}
|
|
1039
|
-
return new Promise<{ response:
|
|
942
|
+
return new Promise<{ response: IncomingMessage; body: GetAttributes; }>((resolve, reject) => {
|
|
1040
943
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1041
944
|
if (error) {
|
|
1042
945
|
reject(error);
|
|
@@ -1053,14 +956,13 @@ export class ContactsApi {
|
|
|
1053
956
|
});
|
|
1054
957
|
}
|
|
1055
958
|
/**
|
|
1056
|
-
*
|
|
959
|
+
* Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.brevo.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
|
|
1057
960
|
* @summary Get a contact\'s details
|
|
1058
|
-
* @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
|
1059
|
-
* @param identifierType email_id for Email, phone_id for SMS attribute, contact_id for ID of the contact, ext_id for EXT_ID attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE_NUMBER attribute
|
|
961
|
+
* @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
|
1060
962
|
* @param startDate **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
|
1061
963
|
* @param endDate **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate.
|
|
1062
964
|
*/
|
|
1063
|
-
public async getContactInfo (identifier: string,
|
|
965
|
+
public async getContactInfo (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetExtendedContactDetails; }> {
|
|
1064
966
|
const localVarPath = this.basePath + '/contacts/{identifier}'
|
|
1065
967
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
1066
968
|
let localVarQueryParameters: any = {};
|
|
@@ -1079,10 +981,6 @@ export class ContactsApi {
|
|
|
1079
981
|
throw new Error('Required parameter identifier was null or undefined when calling getContactInfo.');
|
|
1080
982
|
}
|
|
1081
983
|
|
|
1082
|
-
if (identifierType !== undefined) {
|
|
1083
|
-
localVarQueryParameters['identifierType'] = ObjectSerializer.serialize(identifierType, "'email_id' | 'phone_id' | 'contact_id' | 'ext_id' | 'whatsapp_id' | 'landline_number_id'");
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
984
|
if (startDate !== undefined) {
|
|
1087
985
|
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
1088
986
|
}
|
|
@@ -1095,11 +993,11 @@ export class ContactsApi {
|
|
|
1095
993
|
|
|
1096
994
|
let localVarUseFormData = false;
|
|
1097
995
|
|
|
1098
|
-
let localVarRequestOptions:
|
|
996
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1099
997
|
method: 'GET',
|
|
1100
|
-
|
|
998
|
+
params: localVarQueryParameters,
|
|
1101
999
|
headers: localVarHeaderParams,
|
|
1102
|
-
|
|
1000
|
+
url: localVarPath,
|
|
1103
1001
|
useQuerystring: this._useQuerystring,
|
|
1104
1002
|
json: true,
|
|
1105
1003
|
};
|
|
@@ -1126,7 +1024,7 @@ export class ContactsApi {
|
|
|
1126
1024
|
localVarRequestOptions.form = localVarFormParams;
|
|
1127
1025
|
}
|
|
1128
1026
|
}
|
|
1129
|
-
return new Promise<{ response:
|
|
1027
|
+
return new Promise<{ response: IncomingMessage; body: GetExtendedContactDetails; }>((resolve, reject) => {
|
|
1130
1028
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1131
1029
|
if (error) {
|
|
1132
1030
|
reject(error);
|
|
@@ -1149,7 +1047,7 @@ export class ContactsApi {
|
|
|
1149
1047
|
* @param startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
|
|
1150
1048
|
* @param endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
|
|
1151
1049
|
*/
|
|
1152
|
-
public async getContactStats (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1050
|
+
public async getContactStats (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetContactCampaignStats; }> {
|
|
1153
1051
|
const localVarPath = this.basePath + '/contacts/{identifier}/campaignStats'
|
|
1154
1052
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
1155
1053
|
let localVarQueryParameters: any = {};
|
|
@@ -1180,11 +1078,11 @@ export class ContactsApi {
|
|
|
1180
1078
|
|
|
1181
1079
|
let localVarUseFormData = false;
|
|
1182
1080
|
|
|
1183
|
-
let localVarRequestOptions:
|
|
1081
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1184
1082
|
method: 'GET',
|
|
1185
|
-
|
|
1083
|
+
params: localVarQueryParameters,
|
|
1186
1084
|
headers: localVarHeaderParams,
|
|
1187
|
-
|
|
1085
|
+
url: localVarPath,
|
|
1188
1086
|
useQuerystring: this._useQuerystring,
|
|
1189
1087
|
json: true,
|
|
1190
1088
|
};
|
|
@@ -1211,7 +1109,7 @@ export class ContactsApi {
|
|
|
1211
1109
|
localVarRequestOptions.form = localVarFormParams;
|
|
1212
1110
|
}
|
|
1213
1111
|
}
|
|
1214
|
-
return new Promise<{ response:
|
|
1112
|
+
return new Promise<{ response: IncomingMessage; body: GetContactCampaignStats; }>((resolve, reject) => {
|
|
1215
1113
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1216
1114
|
if (error) {
|
|
1217
1115
|
reject(error);
|
|
@@ -1237,9 +1135,9 @@ export class ContactsApi {
|
|
|
1237
1135
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1238
1136
|
* @param segmentId Id of the segment. **Either listIds or segmentId can be passed.**
|
|
1239
1137
|
* @param listIds Ids of the list. **Either listIds or segmentId can be passed.**
|
|
1240
|
-
* @param filter Filter the contacts on the basis of attributes. **Allowed operator: equals.
|
|
1138
|
+
* @param filter Filter the contacts on the basis of attributes. **Allowed operator: equals. (e.g. filter=equals(FIRSTNAME,\"Antoine\"), filter=equals(B1, true), filter=equals(DOB, \"1989-11-23\"))**
|
|
1241
1139
|
*/
|
|
1242
|
-
public async getContacts (limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1140
|
+
public async getContacts (limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetContacts; }> {
|
|
1243
1141
|
const localVarPath = this.basePath + '/contacts';
|
|
1244
1142
|
let localVarQueryParameters: any = {};
|
|
1245
1143
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1288,11 +1186,11 @@ export class ContactsApi {
|
|
|
1288
1186
|
|
|
1289
1187
|
let localVarUseFormData = false;
|
|
1290
1188
|
|
|
1291
|
-
let localVarRequestOptions:
|
|
1189
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1292
1190
|
method: 'GET',
|
|
1293
|
-
|
|
1191
|
+
params: localVarQueryParameters,
|
|
1294
1192
|
headers: localVarHeaderParams,
|
|
1295
|
-
|
|
1193
|
+
url: localVarPath,
|
|
1296
1194
|
useQuerystring: this._useQuerystring,
|
|
1297
1195
|
json: true,
|
|
1298
1196
|
};
|
|
@@ -1319,7 +1217,7 @@ export class ContactsApi {
|
|
|
1319
1217
|
localVarRequestOptions.form = localVarFormParams;
|
|
1320
1218
|
}
|
|
1321
1219
|
}
|
|
1322
|
-
return new Promise<{ response:
|
|
1220
|
+
return new Promise<{ response: IncomingMessage; body: GetContacts; }>((resolve, reject) => {
|
|
1323
1221
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1324
1222
|
if (error) {
|
|
1325
1223
|
reject(error);
|
|
@@ -1344,7 +1242,7 @@ export class ContactsApi {
|
|
|
1344
1242
|
* @param offset Index of the first document of the page
|
|
1345
1243
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1346
1244
|
*/
|
|
1347
|
-
public async getContactsFromList (listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1245
|
+
public async getContactsFromList (listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetContacts; }> {
|
|
1348
1246
|
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
|
|
1349
1247
|
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
|
|
1350
1248
|
let localVarQueryParameters: any = {};
|
|
@@ -1383,11 +1281,11 @@ export class ContactsApi {
|
|
|
1383
1281
|
|
|
1384
1282
|
let localVarUseFormData = false;
|
|
1385
1283
|
|
|
1386
|
-
let localVarRequestOptions:
|
|
1284
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1387
1285
|
method: 'GET',
|
|
1388
|
-
|
|
1286
|
+
params: localVarQueryParameters,
|
|
1389
1287
|
headers: localVarHeaderParams,
|
|
1390
|
-
|
|
1288
|
+
url: localVarPath,
|
|
1391
1289
|
useQuerystring: this._useQuerystring,
|
|
1392
1290
|
json: true,
|
|
1393
1291
|
};
|
|
@@ -1414,7 +1312,7 @@ export class ContactsApi {
|
|
|
1414
1312
|
localVarRequestOptions.form = localVarFormParams;
|
|
1415
1313
|
}
|
|
1416
1314
|
}
|
|
1417
|
-
return new Promise<{ response:
|
|
1315
|
+
return new Promise<{ response: IncomingMessage; body: GetContacts; }>((resolve, reject) => {
|
|
1418
1316
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1419
1317
|
if (error) {
|
|
1420
1318
|
reject(error);
|
|
@@ -1435,7 +1333,7 @@ export class ContactsApi {
|
|
|
1435
1333
|
* @summary Returns a folder\'s details
|
|
1436
1334
|
* @param folderId id of the folder
|
|
1437
1335
|
*/
|
|
1438
|
-
public async getFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1336
|
+
public async getFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetFolder; }> {
|
|
1439
1337
|
const localVarPath = this.basePath + '/contacts/folders/{folderId}'
|
|
1440
1338
|
.replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
|
|
1441
1339
|
let localVarQueryParameters: any = {};
|
|
@@ -1458,11 +1356,11 @@ export class ContactsApi {
|
|
|
1458
1356
|
|
|
1459
1357
|
let localVarUseFormData = false;
|
|
1460
1358
|
|
|
1461
|
-
let localVarRequestOptions:
|
|
1359
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1462
1360
|
method: 'GET',
|
|
1463
|
-
|
|
1361
|
+
params: localVarQueryParameters,
|
|
1464
1362
|
headers: localVarHeaderParams,
|
|
1465
|
-
|
|
1363
|
+
url: localVarPath,
|
|
1466
1364
|
useQuerystring: this._useQuerystring,
|
|
1467
1365
|
json: true,
|
|
1468
1366
|
};
|
|
@@ -1489,7 +1387,7 @@ export class ContactsApi {
|
|
|
1489
1387
|
localVarRequestOptions.form = localVarFormParams;
|
|
1490
1388
|
}
|
|
1491
1389
|
}
|
|
1492
|
-
return new Promise<{ response:
|
|
1390
|
+
return new Promise<{ response: IncomingMessage; body: GetFolder; }>((resolve, reject) => {
|
|
1493
1391
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1494
1392
|
if (error) {
|
|
1495
1393
|
reject(error);
|
|
@@ -1513,7 +1411,7 @@ export class ContactsApi {
|
|
|
1513
1411
|
* @param offset Index of the first document of the page
|
|
1514
1412
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1515
1413
|
*/
|
|
1516
|
-
public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1414
|
+
public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetFolderLists; }> {
|
|
1517
1415
|
const localVarPath = this.basePath + '/contacts/folders/{folderId}/lists'
|
|
1518
1416
|
.replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
|
|
1519
1417
|
let localVarQueryParameters: any = {};
|
|
@@ -1548,11 +1446,11 @@ export class ContactsApi {
|
|
|
1548
1446
|
|
|
1549
1447
|
let localVarUseFormData = false;
|
|
1550
1448
|
|
|
1551
|
-
let localVarRequestOptions:
|
|
1449
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1552
1450
|
method: 'GET',
|
|
1553
|
-
|
|
1451
|
+
params: localVarQueryParameters,
|
|
1554
1452
|
headers: localVarHeaderParams,
|
|
1555
|
-
|
|
1453
|
+
url: localVarPath,
|
|
1556
1454
|
useQuerystring: this._useQuerystring,
|
|
1557
1455
|
json: true,
|
|
1558
1456
|
};
|
|
@@ -1579,7 +1477,7 @@ export class ContactsApi {
|
|
|
1579
1477
|
localVarRequestOptions.form = localVarFormParams;
|
|
1580
1478
|
}
|
|
1581
1479
|
}
|
|
1582
|
-
return new Promise<{ response:
|
|
1480
|
+
return new Promise<{ response: IncomingMessage; body: GetFolderLists; }>((resolve, reject) => {
|
|
1583
1481
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1584
1482
|
if (error) {
|
|
1585
1483
|
reject(error);
|
|
@@ -1602,7 +1500,7 @@ export class ContactsApi {
|
|
|
1602
1500
|
* @param offset Index of the first document of the page
|
|
1603
1501
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1604
1502
|
*/
|
|
1605
|
-
public async getFolders (limit
|
|
1503
|
+
public async getFolders (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetFolders; }> {
|
|
1606
1504
|
const localVarPath = this.basePath + '/contacts/folders';
|
|
1607
1505
|
let localVarQueryParameters: any = {};
|
|
1608
1506
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1615,6 +1513,16 @@ export class ContactsApi {
|
|
|
1615
1513
|
}
|
|
1616
1514
|
let localVarFormParams: any = {};
|
|
1617
1515
|
|
|
1516
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1517
|
+
if (limit === null || limit === undefined) {
|
|
1518
|
+
throw new Error('Required parameter limit was null or undefined when calling getFolders.');
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
// verify required parameter 'offset' is not null or undefined
|
|
1522
|
+
if (offset === null || offset === undefined) {
|
|
1523
|
+
throw new Error('Required parameter offset was null or undefined when calling getFolders.');
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1618
1526
|
if (limit !== undefined) {
|
|
1619
1527
|
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1620
1528
|
}
|
|
@@ -1631,11 +1539,11 @@ export class ContactsApi {
|
|
|
1631
1539
|
|
|
1632
1540
|
let localVarUseFormData = false;
|
|
1633
1541
|
|
|
1634
|
-
let localVarRequestOptions:
|
|
1542
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1635
1543
|
method: 'GET',
|
|
1636
|
-
|
|
1544
|
+
params: localVarQueryParameters,
|
|
1637
1545
|
headers: localVarHeaderParams,
|
|
1638
|
-
|
|
1546
|
+
url: localVarPath,
|
|
1639
1547
|
useQuerystring: this._useQuerystring,
|
|
1640
1548
|
json: true,
|
|
1641
1549
|
};
|
|
@@ -1662,7 +1570,7 @@ export class ContactsApi {
|
|
|
1662
1570
|
localVarRequestOptions.form = localVarFormParams;
|
|
1663
1571
|
}
|
|
1664
1572
|
}
|
|
1665
|
-
return new Promise<{ response:
|
|
1573
|
+
return new Promise<{ response: IncomingMessage; body: GetFolders; }>((resolve, reject) => {
|
|
1666
1574
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1667
1575
|
if (error) {
|
|
1668
1576
|
reject(error);
|
|
@@ -1685,7 +1593,7 @@ export class ContactsApi {
|
|
|
1685
1593
|
* @param startDate Mandatory if endDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to aggregate the sent email campaigns for a specific list id.Prefer to pass your timezone in date-time format for accurate result
|
|
1686
1594
|
* @param endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to aggregate the sent email campaigns for a specific list id.Prefer to pass your timezone in date-time format for accurate result
|
|
1687
1595
|
*/
|
|
1688
|
-
public async getList (listId: number, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1596
|
+
public async getList (listId: number, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetExtendedList; }> {
|
|
1689
1597
|
const localVarPath = this.basePath + '/contacts/lists/{listId}'
|
|
1690
1598
|
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
|
|
1691
1599
|
let localVarQueryParameters: any = {};
|
|
@@ -1716,11 +1624,11 @@ export class ContactsApi {
|
|
|
1716
1624
|
|
|
1717
1625
|
let localVarUseFormData = false;
|
|
1718
1626
|
|
|
1719
|
-
let localVarRequestOptions:
|
|
1627
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1720
1628
|
method: 'GET',
|
|
1721
|
-
|
|
1629
|
+
params: localVarQueryParameters,
|
|
1722
1630
|
headers: localVarHeaderParams,
|
|
1723
|
-
|
|
1631
|
+
url: localVarPath,
|
|
1724
1632
|
useQuerystring: this._useQuerystring,
|
|
1725
1633
|
json: true,
|
|
1726
1634
|
};
|
|
@@ -1747,7 +1655,7 @@ export class ContactsApi {
|
|
|
1747
1655
|
localVarRequestOptions.form = localVarFormParams;
|
|
1748
1656
|
}
|
|
1749
1657
|
}
|
|
1750
|
-
return new Promise<{ response:
|
|
1658
|
+
return new Promise<{ response: IncomingMessage; body: GetExtendedList; }>((resolve, reject) => {
|
|
1751
1659
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1752
1660
|
if (error) {
|
|
1753
1661
|
reject(error);
|
|
@@ -1770,7 +1678,7 @@ export class ContactsApi {
|
|
|
1770
1678
|
* @param offset Index of the first document of the page
|
|
1771
1679
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1772
1680
|
*/
|
|
1773
|
-
public async getLists (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1681
|
+
public async getLists (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetLists; }> {
|
|
1774
1682
|
const localVarPath = this.basePath + '/contacts/lists';
|
|
1775
1683
|
let localVarQueryParameters: any = {};
|
|
1776
1684
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1799,11 +1707,11 @@ export class ContactsApi {
|
|
|
1799
1707
|
|
|
1800
1708
|
let localVarUseFormData = false;
|
|
1801
1709
|
|
|
1802
|
-
let localVarRequestOptions:
|
|
1710
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1803
1711
|
method: 'GET',
|
|
1804
|
-
|
|
1712
|
+
params: localVarQueryParameters,
|
|
1805
1713
|
headers: localVarHeaderParams,
|
|
1806
|
-
|
|
1714
|
+
url: localVarPath,
|
|
1807
1715
|
useQuerystring: this._useQuerystring,
|
|
1808
1716
|
json: true,
|
|
1809
1717
|
};
|
|
@@ -1830,7 +1738,7 @@ export class ContactsApi {
|
|
|
1830
1738
|
localVarRequestOptions.form = localVarFormParams;
|
|
1831
1739
|
}
|
|
1832
1740
|
}
|
|
1833
|
-
return new Promise<{ response:
|
|
1741
|
+
return new Promise<{ response: IncomingMessage; body: GetLists; }>((resolve, reject) => {
|
|
1834
1742
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1835
1743
|
if (error) {
|
|
1836
1744
|
reject(error);
|
|
@@ -1853,7 +1761,7 @@ export class ContactsApi {
|
|
|
1853
1761
|
* @param offset Index of the first document of the page
|
|
1854
1762
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1855
1763
|
*/
|
|
1856
|
-
public async getSegments (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1764
|
+
public async getSegments (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetSegments; }> {
|
|
1857
1765
|
const localVarPath = this.basePath + '/contacts/segments';
|
|
1858
1766
|
let localVarQueryParameters: any = {};
|
|
1859
1767
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1892,11 +1800,11 @@ export class ContactsApi {
|
|
|
1892
1800
|
|
|
1893
1801
|
let localVarUseFormData = false;
|
|
1894
1802
|
|
|
1895
|
-
let localVarRequestOptions:
|
|
1803
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1896
1804
|
method: 'GET',
|
|
1897
|
-
|
|
1805
|
+
params: localVarQueryParameters,
|
|
1898
1806
|
headers: localVarHeaderParams,
|
|
1899
|
-
|
|
1807
|
+
url: localVarPath,
|
|
1900
1808
|
useQuerystring: this._useQuerystring,
|
|
1901
1809
|
json: true,
|
|
1902
1810
|
};
|
|
@@ -1923,7 +1831,7 @@ export class ContactsApi {
|
|
|
1923
1831
|
localVarRequestOptions.form = localVarFormParams;
|
|
1924
1832
|
}
|
|
1925
1833
|
}
|
|
1926
|
-
return new Promise<{ response:
|
|
1834
|
+
return new Promise<{ response: IncomingMessage; body: GetSegments; }>((resolve, reject) => {
|
|
1927
1835
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1928
1836
|
if (error) {
|
|
1929
1837
|
reject(error);
|
|
@@ -1944,7 +1852,7 @@ export class ContactsApi {
|
|
|
1944
1852
|
* @summary Import contacts
|
|
1945
1853
|
* @param requestContactImport Values to import contacts in Brevo. To know more about the expected format, please have a look at ``https://help.brevo.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns``
|
|
1946
1854
|
*/
|
|
1947
|
-
public async importContacts (requestContactImport: RequestContactImport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1855
|
+
public async importContacts (requestContactImport: RequestContactImport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreatedProcessId; }> {
|
|
1948
1856
|
const localVarPath = this.basePath + '/contacts/import';
|
|
1949
1857
|
let localVarQueryParameters: any = {};
|
|
1950
1858
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1966,14 +1874,14 @@ export class ContactsApi {
|
|
|
1966
1874
|
|
|
1967
1875
|
let localVarUseFormData = false;
|
|
1968
1876
|
|
|
1969
|
-
let localVarRequestOptions:
|
|
1877
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1970
1878
|
method: 'POST',
|
|
1971
|
-
|
|
1879
|
+
params: localVarQueryParameters,
|
|
1972
1880
|
headers: localVarHeaderParams,
|
|
1973
|
-
|
|
1881
|
+
url: localVarPath,
|
|
1974
1882
|
useQuerystring: this._useQuerystring,
|
|
1975
1883
|
json: true,
|
|
1976
|
-
|
|
1884
|
+
data: ObjectSerializer.serialize(requestContactImport, "RequestContactImport")
|
|
1977
1885
|
};
|
|
1978
1886
|
|
|
1979
1887
|
let authenticationPromise = Promise.resolve();
|
|
@@ -1998,7 +1906,7 @@ export class ContactsApi {
|
|
|
1998
1906
|
localVarRequestOptions.form = localVarFormParams;
|
|
1999
1907
|
}
|
|
2000
1908
|
}
|
|
2001
|
-
return new Promise<{ response:
|
|
1909
|
+
return new Promise<{ response: IncomingMessage; body: CreatedProcessId; }>((resolve, reject) => {
|
|
2002
1910
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2003
1911
|
if (error) {
|
|
2004
1912
|
reject(error);
|
|
@@ -2018,9 +1926,9 @@ export class ContactsApi {
|
|
|
2018
1926
|
*
|
|
2019
1927
|
* @summary Delete a contact from a list
|
|
2020
1928
|
* @param listId Id of the list
|
|
2021
|
-
* @param contactEmails Emails addresses OR IDs
|
|
1929
|
+
* @param contactEmails Emails addresses OR IDs of the contacts
|
|
2022
1930
|
*/
|
|
2023
|
-
public async removeContactFromList (listId: number, contactEmails: RemoveContactFromList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1931
|
+
public async removeContactFromList (listId: number, contactEmails: RemoveContactFromList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: PostContactInfo; }> {
|
|
2024
1932
|
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts/remove'
|
|
2025
1933
|
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
|
|
2026
1934
|
let localVarQueryParameters: any = {};
|
|
@@ -2048,11 +1956,11 @@ export class ContactsApi {
|
|
|
2048
1956
|
|
|
2049
1957
|
let localVarUseFormData = false;
|
|
2050
1958
|
|
|
2051
|
-
let localVarRequestOptions:
|
|
1959
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2052
1960
|
method: 'POST',
|
|
2053
|
-
|
|
1961
|
+
params: localVarQueryParameters,
|
|
2054
1962
|
headers: localVarHeaderParams,
|
|
2055
|
-
|
|
1963
|
+
url: localVarPath,
|
|
2056
1964
|
useQuerystring: this._useQuerystring,
|
|
2057
1965
|
json: true,
|
|
2058
1966
|
body: ObjectSerializer.serialize(contactEmails, "RemoveContactFromList")
|
|
@@ -2080,7 +1988,7 @@ export class ContactsApi {
|
|
|
2080
1988
|
localVarRequestOptions.form = localVarFormParams;
|
|
2081
1989
|
}
|
|
2082
1990
|
}
|
|
2083
|
-
return new Promise<{ response:
|
|
1991
|
+
return new Promise<{ response: IncomingMessage; body: PostContactInfo; }>((resolve, reject) => {
|
|
2084
1992
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2085
1993
|
if (error) {
|
|
2086
1994
|
reject(error);
|
|
@@ -2101,7 +2009,7 @@ export class ContactsApi {
|
|
|
2101
2009
|
* @summary Export contacts
|
|
2102
2010
|
* @param requestContactExport Values to request a contact export
|
|
2103
2011
|
*/
|
|
2104
|
-
public async requestContactExport (requestContactExport: RequestContactExport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
2012
|
+
public async requestContactExport (requestContactExport: RequestContactExport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreatedProcessId; }> {
|
|
2105
2013
|
const localVarPath = this.basePath + '/contacts/export';
|
|
2106
2014
|
let localVarQueryParameters: any = {};
|
|
2107
2015
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -2123,14 +2031,14 @@ export class ContactsApi {
|
|
|
2123
2031
|
|
|
2124
2032
|
let localVarUseFormData = false;
|
|
2125
2033
|
|
|
2126
|
-
let localVarRequestOptions:
|
|
2034
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2127
2035
|
method: 'POST',
|
|
2128
|
-
|
|
2036
|
+
params: localVarQueryParameters,
|
|
2129
2037
|
headers: localVarHeaderParams,
|
|
2130
|
-
|
|
2038
|
+
url: localVarPath,
|
|
2131
2039
|
useQuerystring: this._useQuerystring,
|
|
2132
2040
|
json: true,
|
|
2133
|
-
|
|
2041
|
+
data: ObjectSerializer.serialize(requestContactExport, "RequestContactExport")
|
|
2134
2042
|
};
|
|
2135
2043
|
|
|
2136
2044
|
let authenticationPromise = Promise.resolve();
|
|
@@ -2155,7 +2063,7 @@ export class ContactsApi {
|
|
|
2155
2063
|
localVarRequestOptions.form = localVarFormParams;
|
|
2156
2064
|
}
|
|
2157
2065
|
}
|
|
2158
|
-
return new Promise<{ response:
|
|
2066
|
+
return new Promise<{ response: IncomingMessage; body: CreatedProcessId; }>((resolve, reject) => {
|
|
2159
2067
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2160
2068
|
if (error) {
|
|
2161
2069
|
reject(error);
|
|
@@ -2178,7 +2086,7 @@ export class ContactsApi {
|
|
|
2178
2086
|
* @param attributeName Name of the existing attribute
|
|
2179
2087
|
* @param updateAttribute Values to update an attribute
|
|
2180
2088
|
*/
|
|
2181
|
-
public async updateAttribute (attributeCategory: 'category' | 'calculated' | 'global'
|
|
2089
|
+
public async updateAttribute (attributeCategory: 'category' | 'calculated' | 'global', attributeName: string, updateAttribute: UpdateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
2182
2090
|
const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
|
|
2183
2091
|
.replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
|
|
2184
2092
|
.replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
|
|
@@ -2212,11 +2120,11 @@ export class ContactsApi {
|
|
|
2212
2120
|
|
|
2213
2121
|
let localVarUseFormData = false;
|
|
2214
2122
|
|
|
2215
|
-
let localVarRequestOptions:
|
|
2123
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2216
2124
|
method: 'PUT',
|
|
2217
|
-
|
|
2125
|
+
params: localVarQueryParameters,
|
|
2218
2126
|
headers: localVarHeaderParams,
|
|
2219
|
-
|
|
2127
|
+
url: localVarPath,
|
|
2220
2128
|
useQuerystring: this._useQuerystring,
|
|
2221
2129
|
json: true,
|
|
2222
2130
|
body: ObjectSerializer.serialize(updateAttribute, "UpdateAttribute")
|
|
@@ -2244,7 +2152,7 @@ export class ContactsApi {
|
|
|
2244
2152
|
localVarRequestOptions.form = localVarFormParams;
|
|
2245
2153
|
}
|
|
2246
2154
|
}
|
|
2247
|
-
return new Promise<{ response:
|
|
2155
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
2248
2156
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2249
2157
|
if (error) {
|
|
2250
2158
|
reject(error);
|
|
@@ -2264,7 +2172,7 @@ export class ContactsApi {
|
|
|
2264
2172
|
* @summary Update multiple contacts
|
|
2265
2173
|
* @param updateBatchContacts Values to update multiple contacts
|
|
2266
2174
|
*/
|
|
2267
|
-
public async updateBatchContacts (updateBatchContacts: UpdateBatchContacts, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
2175
|
+
public async updateBatchContacts (updateBatchContacts: UpdateBatchContacts, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
2268
2176
|
const localVarPath = this.basePath + '/contacts/batch';
|
|
2269
2177
|
let localVarQueryParameters: any = {};
|
|
2270
2178
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -2286,11 +2194,11 @@ export class ContactsApi {
|
|
|
2286
2194
|
|
|
2287
2195
|
let localVarUseFormData = false;
|
|
2288
2196
|
|
|
2289
|
-
let localVarRequestOptions:
|
|
2197
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2290
2198
|
method: 'POST',
|
|
2291
|
-
|
|
2199
|
+
params: localVarQueryParameters,
|
|
2292
2200
|
headers: localVarHeaderParams,
|
|
2293
|
-
|
|
2201
|
+
url: localVarPath,
|
|
2294
2202
|
useQuerystring: this._useQuerystring,
|
|
2295
2203
|
json: true,
|
|
2296
2204
|
body: ObjectSerializer.serialize(updateBatchContacts, "UpdateBatchContacts")
|
|
@@ -2318,7 +2226,7 @@ export class ContactsApi {
|
|
|
2318
2226
|
localVarRequestOptions.form = localVarFormParams;
|
|
2319
2227
|
}
|
|
2320
2228
|
}
|
|
2321
|
-
return new Promise<{ response:
|
|
2229
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
2322
2230
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2323
2231
|
if (error) {
|
|
2324
2232
|
reject(error);
|
|
@@ -2334,13 +2242,12 @@ export class ContactsApi {
|
|
|
2334
2242
|
});
|
|
2335
2243
|
}
|
|
2336
2244
|
/**
|
|
2337
|
-
*
|
|
2245
|
+
*
|
|
2338
2246
|
* @summary Update a contact
|
|
2339
|
-
* @param identifier Email (urlencoded) OR ID of the contact
|
|
2247
|
+
* @param identifier Email (urlencoded) OR ID of the contact
|
|
2340
2248
|
* @param updateContact Values to update a contact
|
|
2341
|
-
* @param identifierType email_id for Email, contact_id for ID of the contact, ext_id for EXT_ID attribute, phone_id for SMS attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE attribute
|
|
2342
2249
|
*/
|
|
2343
|
-
public async updateContact (identifier: string, updateContact: UpdateContact,
|
|
2250
|
+
public async updateContact (identifier: string, updateContact: UpdateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
2344
2251
|
const localVarPath = this.basePath + '/contacts/{identifier}'
|
|
2345
2252
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
2346
2253
|
let localVarQueryParameters: any = {};
|
|
@@ -2364,19 +2271,15 @@ export class ContactsApi {
|
|
|
2364
2271
|
throw new Error('Required parameter updateContact was null or undefined when calling updateContact.');
|
|
2365
2272
|
}
|
|
2366
2273
|
|
|
2367
|
-
if (identifierType !== undefined) {
|
|
2368
|
-
localVarQueryParameters['identifierType'] = ObjectSerializer.serialize(identifierType, "'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id'");
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
2274
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2372
2275
|
|
|
2373
2276
|
let localVarUseFormData = false;
|
|
2374
2277
|
|
|
2375
|
-
let localVarRequestOptions:
|
|
2278
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2376
2279
|
method: 'PUT',
|
|
2377
|
-
|
|
2280
|
+
params: localVarQueryParameters,
|
|
2378
2281
|
headers: localVarHeaderParams,
|
|
2379
|
-
|
|
2282
|
+
url: localVarPath,
|
|
2380
2283
|
useQuerystring: this._useQuerystring,
|
|
2381
2284
|
json: true,
|
|
2382
2285
|
body: ObjectSerializer.serialize(updateContact, "UpdateContact")
|
|
@@ -2404,7 +2307,7 @@ export class ContactsApi {
|
|
|
2404
2307
|
localVarRequestOptions.form = localVarFormParams;
|
|
2405
2308
|
}
|
|
2406
2309
|
}
|
|
2407
|
-
return new Promise<{ response:
|
|
2310
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
2408
2311
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2409
2312
|
if (error) {
|
|
2410
2313
|
reject(error);
|
|
@@ -2425,7 +2328,7 @@ export class ContactsApi {
|
|
|
2425
2328
|
* @param folderId Id of the folder
|
|
2426
2329
|
* @param updateFolder Name of the folder
|
|
2427
2330
|
*/
|
|
2428
|
-
public async updateFolder (folderId: number, updateFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
2331
|
+
public async updateFolder (folderId: number, updateFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
2429
2332
|
const localVarPath = this.basePath + '/contacts/folders/{folderId}'
|
|
2430
2333
|
.replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
|
|
2431
2334
|
let localVarQueryParameters: any = {};
|
|
@@ -2453,11 +2356,11 @@ export class ContactsApi {
|
|
|
2453
2356
|
|
|
2454
2357
|
let localVarUseFormData = false;
|
|
2455
2358
|
|
|
2456
|
-
let localVarRequestOptions:
|
|
2359
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2457
2360
|
method: 'PUT',
|
|
2458
|
-
|
|
2361
|
+
params: localVarQueryParameters,
|
|
2459
2362
|
headers: localVarHeaderParams,
|
|
2460
|
-
|
|
2363
|
+
url: localVarPath,
|
|
2461
2364
|
useQuerystring: this._useQuerystring,
|
|
2462
2365
|
json: true,
|
|
2463
2366
|
body: ObjectSerializer.serialize(updateFolder, "CreateUpdateFolder")
|
|
@@ -2485,7 +2388,7 @@ export class ContactsApi {
|
|
|
2485
2388
|
localVarRequestOptions.form = localVarFormParams;
|
|
2486
2389
|
}
|
|
2487
2390
|
}
|
|
2488
|
-
return new Promise<{ response:
|
|
2391
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
2489
2392
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2490
2393
|
if (error) {
|
|
2491
2394
|
reject(error);
|
|
@@ -2506,7 +2409,7 @@ export class ContactsApi {
|
|
|
2506
2409
|
* @param listId Id of the list
|
|
2507
2410
|
* @param updateList Values to update a list
|
|
2508
2411
|
*/
|
|
2509
|
-
public async updateList (listId: number, updateList: UpdateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
2412
|
+
public async updateList (listId: number, updateList: UpdateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
2510
2413
|
const localVarPath = this.basePath + '/contacts/lists/{listId}'
|
|
2511
2414
|
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
|
|
2512
2415
|
let localVarQueryParameters: any = {};
|
|
@@ -2534,11 +2437,11 @@ export class ContactsApi {
|
|
|
2534
2437
|
|
|
2535
2438
|
let localVarUseFormData = false;
|
|
2536
2439
|
|
|
2537
|
-
let localVarRequestOptions:
|
|
2440
|
+
let localVarRequestOptions: RequestOptions = {
|
|
2538
2441
|
method: 'PUT',
|
|
2539
|
-
|
|
2442
|
+
params: localVarQueryParameters,
|
|
2540
2443
|
headers: localVarHeaderParams,
|
|
2541
|
-
|
|
2444
|
+
url: localVarPath,
|
|
2542
2445
|
useQuerystring: this._useQuerystring,
|
|
2543
2446
|
json: true,
|
|
2544
2447
|
body: ObjectSerializer.serialize(updateList, "UpdateList")
|
|
@@ -2566,7 +2469,7 @@ export class ContactsApi {
|
|
|
2566
2469
|
localVarRequestOptions.form = localVarFormParams;
|
|
2567
2470
|
}
|
|
2568
2471
|
}
|
|
2569
|
-
return new Promise<{ response:
|
|
2472
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
2570
2473
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2571
2474
|
if (error) {
|
|
2572
2475
|
reject(error);
|