@getbrevo/brevo 2.2.0 → 2.3.0
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 +113 -24
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -5
- package/api/accountApi.ts +6 -1
- package/api/apis.ts +9 -3
- package/api/balanceApi.ts +1725 -0
- package/api/companiesApi.ts +247 -69
- package/api/contactsApi.ts +119 -25
- package/api/dealsApi.ts +181 -1
- package/api/ecommerceApi.ts +29 -14
- package/api/emailCampaignsApi.ts +2 -2
- package/api/masterAccountApi.ts +233 -4
- package/api/programApi.ts +992 -0
- package/api/rewardApi.ts +975 -0
- package/api/tierApi.ts +952 -0
- package/api/transactionalEmailsApi.ts +78 -1
- package/api/transactionalSMSApi.ts +60 -0
- package/api/userApi.ts +2 -2
- package/dist/api/accountApi.d.ts +1 -2
- package/dist/api/accountApi.js +9 -5
- package/dist/api/accountApi.js.map +1 -1
- package/dist/api/apis.d.ts +9 -4
- package/dist/api/apis.js +9 -3
- package/dist/api/apis.js.map +1 -1
- package/dist/api/balanceApi.d.ts +187 -0
- package/dist/api/balanceApi.js +1434 -0
- package/dist/api/balanceApi.js.map +1 -0
- package/dist/api/companiesApi.d.ts +29 -10
- package/dist/api/companiesApi.js +204 -55
- package/dist/api/companiesApi.js.map +1 -1
- package/dist/api/contactsApi.d.ts +13 -6
- package/dist/api/contactsApi.js +142 -65
- package/dist/api/contactsApi.js.map +1 -1
- package/dist/api/conversationsApi.d.ts +0 -1
- package/dist/api/conversationsApi.js +19 -19
- package/dist/api/conversationsApi.js.map +1 -1
- package/dist/api/couponsApi.d.ts +0 -1
- package/dist/api/couponsApi.js +11 -11
- package/dist/api/couponsApi.js.map +1 -1
- package/dist/api/dealsApi.d.ts +21 -2
- package/dist/api/dealsApi.js +170 -21
- package/dist/api/dealsApi.js.map +1 -1
- package/dist/api/domainsApi.d.ts +0 -1
- package/dist/api/domainsApi.js +11 -11
- package/dist/api/domainsApi.js.map +1 -1
- package/dist/api/ecommerceApi.d.ts +3 -4
- package/dist/api/ecommerceApi.js +45 -36
- package/dist/api/ecommerceApi.js.map +1 -1
- package/dist/api/emailCampaignsApi.d.ts +1 -2
- package/dist/api/emailCampaignsApi.js +28 -28
- package/dist/api/emailCampaignsApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +0 -1
- package/dist/api/eventsApi.js +3 -3
- package/dist/api/eventsApi.js.map +1 -1
- package/dist/api/externalFeedsApi.d.ts +0 -1
- package/dist/api/externalFeedsApi.js +11 -11
- package/dist/api/externalFeedsApi.js.map +1 -1
- package/dist/api/filesApi.d.ts +0 -1
- package/dist/api/filesApi.js +11 -11
- package/dist/api/filesApi.js.map +1 -1
- package/dist/api/inboundParsingApi.d.ts +0 -2
- package/dist/api/inboundParsingApi.js +7 -7
- package/dist/api/inboundParsingApi.js.map +1 -1
- package/dist/api/masterAccountApi.d.ts +27 -2
- package/dist/api/masterAccountApi.js +250 -49
- package/dist/api/masterAccountApi.js.map +1 -1
- package/dist/api/notesApi.d.ts +0 -1
- package/dist/api/notesApi.js +11 -11
- package/dist/api/notesApi.js.map +1 -1
- package/dist/api/paymentsApi.d.ts +0 -1
- package/dist/api/paymentsApi.js +7 -7
- package/dist/api/paymentsApi.js.map +1 -1
- package/dist/api/processApi.d.ts +0 -1
- package/dist/api/processApi.js +5 -5
- package/dist/api/processApi.js.map +1 -1
- package/dist/api/programApi.d.ts +125 -0
- package/dist/api/programApi.js +847 -0
- package/dist/api/programApi.js.map +1 -0
- package/dist/api/resellerApi.d.ts +0 -1
- package/dist/api/resellerApi.js +33 -33
- package/dist/api/resellerApi.js.map +1 -1
- package/dist/api/rewardApi.d.ts +119 -0
- package/dist/api/rewardApi.js +814 -0
- package/dist/api/rewardApi.js.map +1 -0
- package/dist/api/sMSCampaignsApi.d.ts +0 -1
- package/dist/api/sMSCampaignsApi.js +21 -21
- package/dist/api/sMSCampaignsApi.js.map +1 -1
- package/dist/api/sendersApi.d.ts +0 -1
- package/dist/api/sendersApi.js +15 -15
- package/dist/api/sendersApi.js.map +1 -1
- package/dist/api/tasksApi.d.ts +0 -1
- package/dist/api/tasksApi.js +13 -13
- package/dist/api/tasksApi.js.map +1 -1
- package/dist/api/tierApi.d.ts +116 -0
- package/dist/api/tierApi.js +801 -0
- package/dist/api/tierApi.js.map +1 -0
- package/dist/api/transactionalEmailsApi.d.ts +10 -1
- package/dist/api/transactionalEmailsApi.js +112 -45
- package/dist/api/transactionalEmailsApi.js.map +1 -1
- package/dist/api/transactionalSMSApi.d.ts +8 -1
- package/dist/api/transactionalSMSApi.js +64 -9
- package/dist/api/transactionalSMSApi.js.map +1 -1
- package/dist/api/transactionalWhatsAppApi.d.ts +0 -1
- package/dist/api/transactionalWhatsAppApi.js +5 -5
- package/dist/api/transactionalWhatsAppApi.js.map +1 -1
- package/dist/api/userApi.d.ts +0 -1
- package/dist/api/userApi.js +13 -13
- package/dist/api/userApi.js.map +1 -1
- package/dist/api/webhooksApi.d.ts +0 -1
- package/dist/api/webhooksApi.js +13 -13
- package/dist/api/webhooksApi.js.map +1 -1
- package/dist/api/whatsAppCampaignsApi.d.ts +0 -1
- package/dist/api/whatsAppCampaignsApi.js +19 -19
- package/dist/api/whatsAppCampaignsApi.js.map +1 -1
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/common.js.map +1 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/model/abTestCampaignResult.js +1 -1
- package/dist/model/abTestCampaignResult.js.map +1 -1
- package/dist/model/addContactToList.d.ts +1 -0
- package/dist/model/addContactToList.js +5 -0
- package/dist/model/addContactToList.js.map +1 -1
- package/dist/model/addSubscriptionMemberPayload.d.ts +16 -0
- package/dist/model/addSubscriptionMemberPayload.js +28 -0
- package/dist/model/addSubscriptionMemberPayload.js.map +1 -0
- package/dist/model/aggregateBalance.d.ts +15 -0
- package/dist/model/aggregateBalance.js +23 -0
- package/dist/model/aggregateBalance.js.map +1 -0
- package/dist/model/balance.d.ts +22 -0
- package/dist/model/balance.js +58 -0
- package/dist/model/balance.js.map +1 -0
- package/dist/model/balanceDataPerContact.d.ts +17 -0
- package/dist/model/balanceDataPerContact.js +33 -0
- package/dist/model/balanceDataPerContact.js.map +1 -0
- package/dist/model/balanceDefinition.d.ts +42 -0
- package/dist/model/balanceDefinition.js +121 -0
- package/dist/model/balanceDefinition.js.map +1 -0
- package/dist/model/balanceDefinitionPage.d.ts +15 -0
- package/dist/model/balanceDefinitionPage.js +18 -0
- package/dist/model/balanceDefinitionPage.js.map +1 -0
- package/dist/model/balanceLimit.d.ts +23 -0
- package/dist/model/balanceLimit.js +63 -0
- package/dist/model/balanceLimit.js.map +1 -0
- package/dist/model/balanceOrder.d.ts +27 -0
- package/dist/model/balanceOrder.js +73 -0
- package/dist/model/balanceOrder.js.map +1 -0
- package/dist/model/cart.js +1 -1
- package/dist/model/cart.js.map +1 -1
- package/dist/model/companiesIdPatchRequest.d.ts +2 -0
- package/dist/model/companiesIdPatchRequest.js +10 -0
- package/dist/model/companiesIdPatchRequest.js.map +1 -1
- package/dist/model/companiesImportPost200Response.d.ts +14 -0
- package/dist/model/companiesImportPost200Response.js +18 -0
- package/dist/model/companiesImportPost200Response.js.map +1 -0
- package/dist/model/companiesImportPost400Response.d.ts +14 -0
- package/dist/model/companiesImportPost400Response.js +18 -0
- package/dist/model/companiesImportPost400Response.js.map +1 -0
- package/dist/model/contactBalancesResp.d.ts +18 -0
- package/dist/model/contactBalancesResp.js +33 -0
- package/dist/model/contactBalancesResp.js.map +1 -0
- package/dist/model/contactErrorModel.d.ts +27 -0
- package/dist/model/contactErrorModel.js +40 -0
- package/dist/model/contactErrorModel.js.map +1 -0
- package/dist/model/conversationsMessage.d.ts +20 -0
- package/dist/model/conversationsMessage.js +76 -1
- package/dist/model/conversationsMessage.js.map +1 -1
- package/dist/model/conversationsMessageAttachmentsInner.d.ts +19 -0
- package/dist/model/conversationsMessageAttachmentsInner.js +43 -0
- package/dist/model/conversationsMessageAttachmentsInner.js.map +1 -0
- package/dist/model/conversationsMessageForwardedToSourceStatus.d.ts +15 -0
- package/dist/model/conversationsMessageForwardedToSourceStatus.js +23 -0
- package/dist/model/conversationsMessageForwardedToSourceStatus.js.map +1 -0
- package/dist/model/conversationsMessageFrom.d.ts +15 -0
- package/dist/model/conversationsMessageFrom.js +23 -0
- package/dist/model/conversationsMessageFrom.js.map +1 -0
- package/dist/model/conversationsMessageReplyTo.d.ts +15 -0
- package/dist/model/conversationsMessageReplyTo.js +23 -0
- package/dist/model/conversationsMessageReplyTo.js.map +1 -0
- package/dist/model/conversationsMessageToInner.d.ts +15 -0
- package/dist/model/conversationsMessageToInner.js +23 -0
- package/dist/model/conversationsMessageToInner.js.map +1 -0
- package/dist/model/conversionSourceMetrics.d.ts +5 -2
- package/dist/model/conversionSourceMetrics.js +5 -2
- package/dist/model/conversionSourceMetrics.js.map +1 -1
- package/dist/model/corporateUserEmailPermissionsPutRequest.d.ts +16 -0
- package/dist/model/corporateUserEmailPermissionsPutRequest.js +23 -0
- package/dist/model/corporateUserEmailPermissionsPutRequest.js.map +1 -0
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.d.ts +38 -0
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js +48 -0
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js.map +1 -0
- package/dist/model/createAttribute.d.ts +3 -1
- package/dist/model/createAttribute.js +7 -1
- package/dist/model/createAttribute.js.map +1 -1
- package/dist/model/createBalanceDefinitionPayload.d.ts +75 -0
- package/dist/model/createBalanceDefinitionPayload.js +145 -0
- package/dist/model/createBalanceDefinitionPayload.js.map +1 -0
- package/dist/model/createBalanceLimitPayload.d.ts +35 -0
- package/dist/model/createBalanceLimitPayload.js +62 -0
- package/dist/model/createBalanceLimitPayload.js.map +1 -0
- package/dist/model/createBalancePayload.d.ts +14 -0
- package/dist/model/createBalancePayload.js +18 -0
- package/dist/model/createBalancePayload.js.map +1 -0
- package/dist/model/createChild.js +1 -1
- package/dist/model/createChild.js.map +1 -1
- package/dist/model/createContact.d.ts +3 -1
- package/dist/model/createContact.js +1 -1
- package/dist/model/createContact.js.map +1 -1
- package/dist/model/createDoiContact.d.ts +3 -1
- package/dist/model/createDoiContact.js +1 -1
- package/dist/model/createDoiContact.js.map +1 -1
- package/dist/model/createEmailCampaign.d.ts +2 -0
- package/dist/model/createEmailCampaign.js +6 -1
- package/dist/model/createEmailCampaign.js.map +1 -1
- package/dist/model/createEmailCampaignEmailExpirationDate.d.ts +22 -0
- package/dist/model/createEmailCampaignEmailExpirationDate.js +31 -0
- package/dist/model/createEmailCampaignEmailExpirationDate.js.map +1 -0
- package/dist/model/createEmailCampaignRecipients.d.ts +1 -0
- package/dist/model/createEmailCampaignRecipients.js +5 -0
- 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/createLoyaltyProgramPayload.d.ts +19 -0
- package/dist/model/createLoyaltyProgramPayload.js +33 -0
- package/dist/model/createLoyaltyProgramPayload.js.map +1 -0
- package/dist/model/createOrderPayload.d.ts +22 -0
- package/dist/model/createOrderPayload.js +48 -0
- package/dist/model/createOrderPayload.js.map +1 -0
- 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/createSubscriptionPayload.d.ts +16 -0
- package/dist/model/createSubscriptionPayload.js +28 -0
- package/dist/model/createSubscriptionPayload.js.map +1 -0
- package/dist/model/createSubscriptionResponse.d.ts +20 -0
- package/dist/model/createSubscriptionResponse.js +48 -0
- package/dist/model/createSubscriptionResponse.js.map +1 -0
- package/dist/model/createTierGroupRequest.d.ts +29 -0
- package/dist/model/createTierGroupRequest.js +51 -0
- package/dist/model/createTierGroupRequest.js.map +1 -0
- package/dist/model/createTransactionPayload.d.ts +24 -0
- package/dist/model/createTransactionPayload.js +58 -0
- package/dist/model/createTransactionPayload.js.map +1 -0
- package/dist/model/createUpdateCategory.js.map +1 -1
- package/dist/model/createUpdateProduct.js.map +1 -1
- package/dist/model/createWebhook.d.ts +5 -0
- package/dist/model/createWebhook.js +12 -1
- 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/crmAttributesPost200Response.d.ts +14 -0
- package/dist/model/crmAttributesPost200Response.js +18 -0
- package/dist/model/crmAttributesPost200Response.js.map +1 -0
- package/dist/model/crmAttributesPostRequest.d.ts +33 -0
- package/dist/model/crmAttributesPostRequest.js +55 -0
- package/dist/model/crmAttributesPostRequest.js.map +1 -0
- package/dist/model/crmDealsIdPatchRequest.d.ts +2 -0
- package/dist/model/crmDealsIdPatchRequest.js +10 -0
- package/dist/model/crmDealsIdPatchRequest.js.map +1 -1
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +5 -2
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +5 -2
- 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 +0 -1
- package/dist/model/errorModel.js +1 -2
- package/dist/model/errorModel.js.map +1 -1
- package/dist/model/errorResponse.d.ts +14 -0
- package/dist/model/errorResponse.js +18 -0
- package/dist/model/errorResponse.js.map +1 -0
- package/dist/model/exportWebhooksHistory.js +1 -1
- package/dist/model/exportWebhooksHistory.js.map +1 -1
- package/dist/model/fetchTemplatePreview.d.ts +16 -0
- package/dist/model/fetchTemplatePreview.js +28 -0
- package/dist/model/fetchTemplatePreview.js.map +1 -0
- package/dist/model/getAccountAllOfPlan.d.ts +1 -3
- package/dist/model/getAccountAllOfPlan.js +1 -7
- 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 +4 -1
- package/dist/model/getAttributesAttributesInner.js +8 -1
- 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 +2 -0
- package/dist/model/getCampaignStats.js +10 -0
- 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 +5 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +25 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -1
- package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +5 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js +25 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -1
- package/dist/model/getEmailCampaign.d.ts +2 -4
- 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 +6 -1
- package/dist/model/getOrdersOrdersInner.js +15 -5
- 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/getSegment.d.ts +17 -0
- package/dist/model/getSegment.js +33 -0
- package/dist/model/getSegment.js.map +1 -0
- 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 +2 -4
- 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 +11 -2
- package/dist/model/inviteAdminUserPrivilegesInner.js +10 -1
- package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -1
- package/dist/model/inviteuserPrivilegesInner.d.ts +5 -3
- package/dist/model/inviteuserPrivilegesInner.js +6 -4
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
- package/dist/model/loyaltyProgram.d.ts +33 -0
- package/dist/model/loyaltyProgram.js +80 -0
- package/dist/model/loyaltyProgram.js.map +1 -0
- package/dist/model/loyaltyProgramPage.d.ts +15 -0
- package/dist/model/loyaltyProgramPage.js +18 -0
- package/dist/model/loyaltyProgramPage.js.map +1 -0
- package/dist/model/loyaltyProgramValidationError.d.ts +16 -0
- package/dist/model/loyaltyProgramValidationError.js +28 -0
- package/dist/model/loyaltyProgramValidationError.js.map +1 -0
- package/dist/model/loyaltyTierPage.d.ts +15 -0
- package/dist/model/loyaltyTierPage.js +18 -0
- package/dist/model/loyaltyTierPage.js.map +1 -0
- package/dist/model/mainAttributeRewardPayload.d.ts +22 -0
- package/dist/model/mainAttributeRewardPayload.js +48 -0
- package/dist/model/mainAttributeRewardPayload.js.map +1 -0
- package/dist/model/mainBillingPayload.d.ts +20 -0
- package/dist/model/mainBillingPayload.js +48 -0
- package/dist/model/mainBillingPayload.js.map +1 -0
- package/dist/model/mainCodeCountHttpResponse.d.ts +14 -0
- package/dist/model/mainCodeCountHttpResponse.js +18 -0
- package/dist/model/mainCodeCountHttpResponse.js.map +1 -0
- package/dist/model/mainCreateRedeemPayload.d.ts +24 -0
- package/dist/model/mainCreateRedeemPayload.js +53 -0
- package/dist/model/mainCreateRedeemPayload.js.map +1 -0
- package/dist/model/mainCreateRewardPayload.d.ts +17 -0
- package/dist/model/mainCreateRewardPayload.js +33 -0
- package/dist/model/mainCreateRewardPayload.js.map +1 -0
- package/dist/model/mainCreateRewardResponse.d.ts +21 -0
- package/dist/model/mainCreateRewardResponse.js +53 -0
- package/dist/model/mainCreateRewardResponse.js.map +1 -0
- package/dist/model/mainErrorResponse.d.ts +14 -0
- package/dist/model/mainErrorResponse.js +18 -0
- package/dist/model/mainErrorResponse.js.map +1 -0
- package/dist/model/mainFilter.d.ts +15 -0
- package/dist/model/mainFilter.js +23 -0
- package/dist/model/mainFilter.js.map +1 -0
- package/dist/model/mainGenerator.d.ts +19 -0
- package/dist/model/mainGenerator.js +43 -0
- package/dist/model/mainGenerator.js.map +1 -0
- package/dist/model/mainGetContactRewardsPayload.d.ts +31 -0
- package/dist/model/mainGetContactRewardsPayload.js +60 -0
- package/dist/model/mainGetContactRewardsPayload.js.map +1 -0
- package/dist/model/mainIdentifiersPayload.d.ts +15 -0
- package/dist/model/mainIdentifiersPayload.js +23 -0
- package/dist/model/mainIdentifiersPayload.js.map +1 -0
- package/dist/model/mainLimit.d.ts +21 -0
- package/dist/model/mainLimit.js +53 -0
- package/dist/model/mainLimit.js.map +1 -0
- package/dist/model/mainModelContactReward.d.ts +25 -0
- package/dist/model/mainModelContactReward.js +63 -0
- package/dist/model/mainModelContactReward.js.map +1 -0
- package/dist/model/mainModelContactRewardsResp.d.ts +19 -0
- package/dist/model/mainModelContactRewardsResp.js +38 -0
- package/dist/model/mainModelContactRewardsResp.js.map +1 -0
- package/dist/model/mainNodeResponse.d.ts +21 -0
- package/dist/model/mainNodeResponse.js +53 -0
- package/dist/model/mainNodeResponse.js.map +1 -0
- package/dist/model/mainOrderPayload.d.ts +28 -0
- package/dist/model/mainOrderPayload.js +73 -0
- package/dist/model/mainOrderPayload.js.map +1 -0
- package/dist/model/mainProduct.d.ts +17 -0
- package/dist/model/mainProduct.js +33 -0
- package/dist/model/mainProduct.js.map +1 -0
- package/dist/model/mainProductPayload.d.ts +18 -0
- package/dist/model/mainProductPayload.js +38 -0
- package/dist/model/mainProductPayload.js.map +1 -0
- package/dist/model/mainRedeem.d.ts +29 -0
- package/dist/model/mainRedeem.js +83 -0
- package/dist/model/mainRedeem.js.map +1 -0
- package/dist/model/mainResultParameterResponse.d.ts +16 -0
- package/dist/model/mainResultParameterResponse.js +23 -0
- package/dist/model/mainResultParameterResponse.js.map +1 -0
- package/dist/model/mainReward.d.ts +67 -0
- package/dist/model/mainReward.js +224 -0
- package/dist/model/mainReward.js.map +1 -0
- package/dist/model/mainRewardAttribution.d.ts +26 -0
- package/dist/model/mainRewardAttribution.js +68 -0
- package/dist/model/mainRewardAttribution.js.map +1 -0
- package/dist/model/mainRewardConfigurations.d.ts +16 -0
- package/dist/model/mainRewardConfigurations.js +28 -0
- package/dist/model/mainRewardConfigurations.js.map +1 -0
- package/dist/model/mainRewardPage.d.ts +16 -0
- package/dist/model/mainRewardPage.js +23 -0
- package/dist/model/mainRewardPage.js.map +1 -0
- package/dist/model/mainRewardPageObj.d.ts +22 -0
- package/dist/model/mainRewardPageObj.js +58 -0
- package/dist/model/mainRewardPageObj.js.map +1 -0
- package/dist/model/mainRewardValidate.d.ts +14 -0
- package/dist/model/mainRewardValidate.js +18 -0
- package/dist/model/mainRewardValidate.js.map +1 -0
- package/dist/model/mainRule.d.ts +31 -0
- package/dist/model/mainRule.js +78 -0
- package/dist/model/mainRule.js.map +1 -0
- package/dist/model/mainRuleConditionResponse.d.ts +19 -0
- package/dist/model/mainRuleConditionResponse.js +38 -0
- package/dist/model/mainRuleConditionResponse.js.map +1 -0
- package/dist/model/mainRuleEventResponse.d.ts +15 -0
- package/dist/model/mainRuleEventResponse.js +23 -0
- package/dist/model/mainRuleEventResponse.js.map +1 -0
- package/dist/model/mainRuleResultResponse.d.ts +17 -0
- package/dist/model/mainRuleResultResponse.js +28 -0
- package/dist/model/mainRuleResultResponse.js.map +1 -0
- package/dist/model/mainValidateRewardPayload.d.ts +19 -0
- package/dist/model/mainValidateRewardPayload.js +43 -0
- package/dist/model/mainValidateRewardPayload.js.map +1 -0
- package/dist/model/mainValueResponse.d.ts +22 -0
- package/dist/model/mainValueResponse.js +53 -0
- package/dist/model/mainValueResponse.js.map +1 -0
- package/dist/model/mainVoucherRevokePayload.d.ts +14 -0
- package/dist/model/mainVoucherRevokePayload.js +18 -0
- package/dist/model/mainVoucherRevokePayload.js.map +1 -0
- package/dist/model/masterDetailsResponsePlanInfo.js +1 -1
- package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -1
- package/dist/model/memberContact.d.ts +16 -0
- package/dist/model/memberContact.js +28 -0
- package/dist/model/memberContact.js.map +1 -0
- package/dist/model/modelSubscriptionBalanceResp.d.ts +15 -0
- package/dist/model/modelSubscriptionBalanceResp.js +18 -0
- package/dist/model/modelSubscriptionBalanceResp.js.map +1 -0
- package/dist/model/models.d.ts +109 -25
- package/dist/model/models.js +412 -75
- 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 +6 -1
- package/dist/model/order.js +15 -5
- package/dist/model/order.js.map +1 -1
- package/dist/model/orderBatch.js.map +1 -1
- package/dist/model/orderIdentifiers.d.ts +17 -0
- package/dist/model/orderIdentifiers.js +33 -0
- package/dist/model/orderIdentifiers.js.map +1 -0
- package/dist/model/patchLoyaltyProgramPayload.d.ts +16 -0
- package/dist/model/patchLoyaltyProgramPayload.js +28 -0
- package/dist/model/patchLoyaltyProgramPayload.js.map +1 -0
- package/dist/model/removeContactFromList.d.ts +1 -0
- package/dist/model/removeContactFromList.js +5 -0
- package/dist/model/removeContactFromList.js.map +1 -1
- package/dist/model/requestContactExport.d.ts +4 -0
- package/dist/model/requestContactExport.js +24 -0
- package/dist/model/requestContactExport.js.map +1 -1
- package/dist/model/requestContactExportCustomContactFilter.d.ts +1 -0
- package/dist/model/requestContactExportCustomContactFilter.js +6 -1
- 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 +2 -1
- package/dist/model/sendTransacSms.js +2 -2
- package/dist/model/sendTransacSms.js.map +1 -1
- package/dist/model/sendTransacSmsTag.d.ts +14 -0
- package/dist/model/sendTransacSmsTag.js +18 -0
- package/dist/model/sendTransacSmsTag.js.map +1 -0
- package/dist/model/ssoTokenRequest.js +1 -1
- package/dist/model/ssoTokenRequest.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +4 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +10 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +2 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +5 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +2 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js +10 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
- package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +1 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js +5 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -1
- package/dist/model/subAccountsUpdatePlanRequest.d.ts +18 -0
- package/dist/model/subAccountsUpdatePlanRequest.js +28 -0
- package/dist/model/subAccountsUpdatePlanRequest.js.map +1 -0
- package/dist/model/subAccountsUpdatePlanRequestCredits.d.ts +18 -0
- package/dist/model/subAccountsUpdatePlanRequestCredits.js +38 -0
- package/dist/model/subAccountsUpdatePlanRequestCredits.js.map +1 -0
- package/dist/model/subAccountsUpdatePlanRequestFeatures.d.ts +16 -0
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js +28 -0
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js.map +1 -0
- package/dist/model/subscription.d.ts +20 -0
- package/dist/model/subscription.js +48 -0
- package/dist/model/subscription.js.map +1 -0
- package/dist/model/subscriptionAggregateBalance.d.ts +15 -0
- package/dist/model/subscriptionAggregateBalance.js +23 -0
- package/dist/model/subscriptionAggregateBalance.js.map +1 -0
- package/dist/model/subscriptionAttributedReward.d.ts +24 -0
- package/dist/model/subscriptionAttributedReward.js +58 -0
- package/dist/model/subscriptionAttributedReward.js.map +1 -0
- package/dist/model/subscriptionBalances.d.ts +17 -0
- package/dist/model/subscriptionBalances.js +28 -0
- package/dist/model/subscriptionBalances.js.map +1 -0
- package/dist/model/subscriptionHandlerInfo.d.ts +21 -0
- package/dist/model/subscriptionHandlerInfo.js +33 -0
- package/dist/model/subscriptionHandlerInfo.js.map +1 -0
- package/dist/model/subscriptionMember.d.ts +18 -0
- package/dist/model/subscriptionMember.js +38 -0
- package/dist/model/subscriptionMember.js.map +1 -0
- package/dist/model/subscriptionTier.d.ts +22 -0
- package/dist/model/subscriptionTier.js +48 -0
- package/dist/model/subscriptionTier.js.map +1 -0
- package/dist/model/taskReminder.js +1 -1
- package/dist/model/taskReminder.js.map +1 -1
- package/dist/model/templatePreview.d.ts +19 -0
- package/dist/model/templatePreview.js +43 -0
- package/dist/model/templatePreview.js.map +1 -0
- package/dist/model/tier.d.ts +24 -0
- package/dist/model/tier.js +58 -0
- package/dist/model/tier.js.map +1 -0
- package/dist/model/tierAccessConditionsInner.d.ts +17 -0
- package/dist/model/tierAccessConditionsInner.js +33 -0
- package/dist/model/tierAccessConditionsInner.js.map +1 -0
- package/dist/model/tierForContact.d.ts +22 -0
- package/dist/model/tierForContact.js +48 -0
- package/dist/model/tierForContact.js.map +1 -0
- package/dist/model/tierGroup.d.ts +33 -0
- package/dist/model/tierGroup.js +71 -0
- package/dist/model/tierGroup.js.map +1 -0
- package/dist/model/tierGroupPage.d.ts +15 -0
- package/dist/model/tierGroupPage.js +18 -0
- package/dist/model/tierGroupPage.js.map +1 -0
- package/dist/model/tierRequest.d.ts +19 -0
- package/dist/model/tierRequest.js +33 -0
- package/dist/model/tierRequest.js.map +1 -0
- package/dist/model/tierRequestAccessConditionsInner.d.ts +15 -0
- package/dist/model/tierRequestAccessConditionsInner.js +23 -0
- package/dist/model/tierRequestAccessConditionsInner.js.map +1 -0
- package/dist/model/tierRequestPutPayload.d.ts +19 -0
- package/dist/model/tierRequestPutPayload.js +33 -0
- package/dist/model/tierRequestPutPayload.js.map +1 -0
- package/dist/model/tierRequestTierRewardsInner.d.ts +14 -0
- package/dist/model/tierRequestTierRewardsInner.js +18 -0
- package/dist/model/tierRequestTierRewardsInner.js.map +1 -0
- package/dist/model/tierTierRewardsInner.d.ts +16 -0
- package/dist/model/tierTierRewardsInner.js +28 -0
- package/dist/model/tierTierRewardsInner.js.map +1 -0
- package/dist/model/transaction.d.ts +30 -0
- package/dist/model/transaction.js +88 -0
- package/dist/model/transaction.js.map +1 -0
- package/dist/model/transactionHistory.d.ts +25 -0
- package/dist/model/transactionHistory.js +63 -0
- package/dist/model/transactionHistory.js.map +1 -0
- package/dist/model/transactionHistoryResp.d.ts +19 -0
- package/dist/model/transactionHistoryResp.js +38 -0
- package/dist/model/transactionHistoryResp.js.map +1 -0
- package/dist/model/unauthorizedResponse.d.ts +14 -0
- package/dist/model/unauthorizedResponse.js +18 -0
- package/dist/model/unauthorizedResponse.js.map +1 -0
- package/dist/model/updateAttribute.d.ts +1 -0
- package/dist/model/updateAttribute.js +5 -0
- package/dist/model/updateAttribute.js.map +1 -1
- package/dist/model/updateBalanceDefinitionPayload.d.ts +77 -0
- package/dist/model/updateBalanceDefinitionPayload.js +145 -0
- package/dist/model/updateBalanceDefinitionPayload.js.map +1 -0
- package/dist/model/updateBalanceLimitPayload.d.ts +35 -0
- package/dist/model/updateBalanceLimitPayload.js +62 -0
- package/dist/model/updateBalanceLimitPayload.js.map +1 -0
- package/dist/model/updateCampaignStatus.js +1 -1
- package/dist/model/updateCampaignStatus.js.map +1 -1
- package/dist/model/updateContact.d.ts +3 -1
- package/dist/model/updateContact.js +1 -1
- package/dist/model/updateContact.js.map +1 -1
- package/dist/model/updateEmailCampaign.d.ts +2 -0
- package/dist/model/updateEmailCampaign.js +6 -1
- package/dist/model/updateEmailCampaign.js.map +1 -1
- package/dist/model/updateEmailCampaignEmailExpirationDate.d.ts +22 -0
- package/dist/model/updateEmailCampaignEmailExpirationDate.js +31 -0
- package/dist/model/updateEmailCampaignEmailExpirationDate.js.map +1 -0
- package/dist/model/updateEmailCampaignRecipients.d.ts +1 -0
- package/dist/model/updateEmailCampaignRecipients.js +5 -0
- 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/updateLoyaltyProgramPayload.d.ts +16 -0
- package/dist/model/updateLoyaltyProgramPayload.js +28 -0
- package/dist/model/updateLoyaltyProgramPayload.js.map +1 -0
- package/dist/model/updateSmsCampaign.js.map +1 -1
- package/dist/model/updateTierGroupRequest.d.ts +29 -0
- package/dist/model/updateTierGroupRequest.js +51 -0
- package/dist/model/updateTierGroupRequest.js.map +1 -0
- 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/model/addContactToList.ts +11 -2
- package/model/addSubscriptionMemberPayload.ts +52 -0
- package/model/aggregateBalance.ts +43 -0
- package/model/balance.ts +106 -0
- package/model/balanceDataPerContact.ts +49 -0
- package/model/balanceDefinition.ts +212 -0
- package/model/balanceDefinitionPage.ts +35 -0
- package/model/balanceLimit.ts +115 -0
- package/model/balanceOrder.ts +136 -0
- package/model/companiesIdPatchRequest.ts +18 -0
- package/model/companiesImportPost200Response.ts +34 -0
- package/model/companiesImportPost400Response.ts +31 -0
- package/model/contactBalancesResp.ts +50 -0
- package/model/contactErrorModel.ts +63 -0
- package/model/conversationsMessage.ts +131 -0
- package/model/conversationsMessageAttachmentsInner.ts +79 -0
- package/model/conversationsMessageForwardedToSourceStatus.ts +40 -0
- package/model/conversationsMessageFrom.ts +40 -0
- package/model/conversationsMessageReplyTo.ts +40 -0
- package/model/conversationsMessageToInner.ts +37 -0
- package/model/conversionSourceMetrics.ts +6 -3
- package/model/corporateUserEmailPermissionsPutRequest.ts +41 -0
- package/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.ts +69 -0
- package/model/createAttribute.ts +13 -3
- package/model/createBalanceDefinitionPayload.ts +218 -0
- package/model/createBalanceLimitPayload.ts +98 -0
- package/model/createBalancePayload.ts +37 -0
- package/model/createContact.ts +4 -4
- package/model/createDoiContact.ts +3 -3
- package/model/createEmailCampaign.ts +7 -0
- package/model/createEmailCampaignEmailExpirationDate.ts +53 -0
- package/model/createEmailCampaignRecipients.ts +9 -0
- package/model/createLoyaltyProgramPayload.ts +61 -0
- package/model/createOrderPayload.ts +91 -0
- package/model/createSubscriptionPayload.ts +52 -0
- package/model/createSubscriptionResponse.ts +88 -0
- package/model/createTierGroupRequest.ts +73 -0
- package/model/createTransactionPayload.ts +109 -0
- package/model/createUpdateProduct.ts +1 -1
- package/model/createUpdateProducts.ts +1 -1
- package/model/createWebhook.ts +14 -1
- package/model/crmAttributesPost200Response.ts +34 -0
- package/model/crmAttributesPostRequest.ts +85 -0
- package/model/crmDealsIdPatchRequest.ts +18 -0
- package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +6 -3
- package/model/errorModel.ts +0 -1
- package/model/errorResponse.ts +31 -0
- package/model/fetchTemplatePreview.ts +52 -0
- package/model/getAccountAllOfPlan.ts +3 -13
- package/model/getAttributesAttributesInner.ts +12 -1
- package/model/getCampaignStats.ts +18 -0
- package/model/getContactCampaignStats.ts +11 -11
- package/model/getContactCampaignStatsClickedInner.ts +3 -3
- package/model/getContactCampaignStatsUnsubscriptions.ts +6 -6
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +45 -0
- package/model/getCorporateUserPermissionFeatureAccess.ts +45 -0
- package/model/getEmailCampaign.ts +4 -6
- package/model/getExtendedCampaignStats.ts +3 -0
- package/model/getOrdersOrdersInner.ts +24 -8
- package/model/getSegment.ts +61 -0
- package/model/getSegments.ts +3 -3
- package/model/getSmsCampaign.ts +4 -6
- package/model/inviteAdminUserPrivilegesInner.ts +11 -2
- package/model/inviteuserPrivilegesInner.ts +5 -3
- package/model/loyaltyProgram.ts +139 -0
- package/model/loyaltyProgramPage.ts +35 -0
- package/model/loyaltyProgramValidationError.ts +52 -0
- package/model/loyaltyTierPage.ts +32 -0
- package/model/mainAttributeRewardPayload.ts +88 -0
- package/model/mainBillingPayload.ts +88 -0
- package/model/mainCodeCountHttpResponse.ts +34 -0
- package/model/mainCreateRedeemPayload.ts +98 -0
- package/model/mainCreateRewardPayload.ts +61 -0
- package/model/mainCreateRewardResponse.ts +97 -0
- package/model/mainErrorResponse.ts +34 -0
- package/model/mainFilter.ts +43 -0
- package/model/mainGenerator.ts +79 -0
- package/model/mainGetContactRewardsPayload.ts +99 -0
- package/model/mainIdentifiersPayload.ts +43 -0
- package/model/mainLimit.ts +97 -0
- package/model/mainModelContactReward.ts +115 -0
- package/model/mainModelContactRewardsResp.ts +71 -0
- package/model/mainNodeResponse.ts +97 -0
- package/model/mainOrderPayload.ts +136 -0
- package/model/mainProduct.ts +61 -0
- package/model/mainProductPayload.ts +70 -0
- package/model/mainRedeem.ts +151 -0
- package/model/mainResultParameterResponse.ts +44 -0
- package/model/mainReward.ts +397 -0
- package/model/mainRewardAttribution.ts +124 -0
- package/model/mainRewardConfigurations.ts +52 -0
- package/model/mainRewardPage.ts +44 -0
- package/model/mainRewardPageObj.ts +106 -0
- package/model/mainRewardValidate.ts +34 -0
- package/model/mainRule.ts +145 -0
- package/model/mainRuleConditionResponse.ts +71 -0
- package/model/mainRuleEventResponse.ts +43 -0
- package/model/mainRuleResultResponse.ts +53 -0
- package/model/mainValidateRewardPayload.ts +79 -0
- package/model/mainValueResponse.ts +98 -0
- package/model/mainVoucherRevokePayload.ts +34 -0
- package/model/memberContact.ts +52 -0
- package/model/modelSubscriptionBalanceResp.ts +32 -0
- package/model/models.ts +419 -77
- package/model/order.ts +24 -8
- package/model/orderBilling.ts +1 -1
- package/model/orderIdentifiers.ts +64 -0
- package/model/patchLoyaltyProgramPayload.ts +52 -0
- package/model/removeContactFromList.ts +12 -3
- package/model/requestContactExport.ts +37 -1
- package/model/requestContactExportCustomContactFilter.ts +10 -1
- package/model/sendSmtpEmail.ts +1 -1
- package/model/sendTransacSms.ts +3 -5
- package/model/sendTransacSmsTag.ts +37 -0
- package/model/subAccountDetailsResponsePlanInfoCredits.ts +14 -0
- package/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeatures.ts +7 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +3 -3
- package/model/subAccountUpdatePlanRequestCredits.ts +20 -2
- package/model/subAccountUpdatePlanRequestFeatures.ts +10 -1
- package/model/subAccountsUpdatePlanRequest.ts +51 -0
- package/model/subAccountsUpdatePlanRequestCredits.ts +73 -0
- package/model/subAccountsUpdatePlanRequestFeatures.ts +55 -0
- package/model/subscription.ts +88 -0
- package/model/subscriptionAggregateBalance.ts +43 -0
- package/model/subscriptionAttributedReward.ts +106 -0
- package/model/subscriptionBalances.ts +53 -0
- package/model/subscriptionHandlerInfo.ts +65 -0
- package/model/subscriptionMember.ts +70 -0
- package/model/subscriptionTier.ts +88 -0
- package/model/templatePreview.ts +76 -0
- package/model/tier.ts +102 -0
- package/model/tierAccessConditionsInner.ts +55 -0
- package/model/tierForContact.ts +82 -0
- package/model/tierGroup.ts +109 -0
- package/model/tierGroupPage.ts +32 -0
- package/model/tierRequest.ts +57 -0
- package/model/tierRequestAccessConditionsInner.ts +43 -0
- package/model/tierRequestPutPayload.ts +57 -0
- package/model/tierRequestTierRewardsInner.ts +34 -0
- package/model/tierTierRewardsInner.ts +46 -0
- package/model/transaction.ts +163 -0
- package/model/transactionHistory.ts +118 -0
- package/model/transactionHistoryResp.ts +74 -0
- package/model/unauthorizedResponse.ts +34 -0
- package/model/updateAttribute.ts +10 -1
- package/model/updateBalanceDefinitionPayload.ts +218 -0
- package/model/updateBalanceLimitPayload.ts +98 -0
- package/model/updateContact.ts +3 -3
- package/model/updateEmailCampaign.ts +7 -0
- package/model/updateEmailCampaignEmailExpirationDate.ts +53 -0
- package/model/updateEmailCampaignRecipients.ts +9 -0
- package/model/updateLoyaltyProgramPayload.ts +52 -0
- package/model/updateTierGroupRequest.ts +73 -0
- package/package.json +5 -6
- package/tsconfig.json +0 -1
package/api/companiesApi.ts
CHANGED
|
@@ -16,12 +16,16 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { CompaniesIdPatchRequest } from '../model/companiesIdPatchRequest';
|
|
19
|
+
import { CompaniesImportPost200Response } from '../model/companiesImportPost200Response';
|
|
20
|
+
import { CompaniesImportPost400Response } from '../model/companiesImportPost400Response';
|
|
19
21
|
import { CompaniesLinkUnlinkIdPatchRequest } from '../model/companiesLinkUnlinkIdPatchRequest';
|
|
20
22
|
import { CompaniesList } from '../model/companiesList';
|
|
21
23
|
import { CompaniesPost200Response } from '../model/companiesPost200Response';
|
|
22
24
|
import { CompaniesPostRequest } from '../model/companiesPostRequest';
|
|
23
25
|
import { Company } from '../model/company';
|
|
24
26
|
import { CompanyAttributesInner } from '../model/companyAttributesInner';
|
|
27
|
+
import { CrmAttributesPost200Response } from '../model/crmAttributesPost200Response';
|
|
28
|
+
import { CrmAttributesPostRequest } from '../model/crmAttributesPostRequest';
|
|
25
29
|
import { ErrorModel } from '../model/errorModel';
|
|
26
30
|
|
|
27
31
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -98,86 +102,20 @@ export class CompaniesApi {
|
|
|
98
102
|
this.interceptors.push(interceptor);
|
|
99
103
|
}
|
|
100
104
|
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @summary Get company attributes
|
|
104
|
-
*/
|
|
105
|
-
public async companiesAttributesGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<CompanyAttributesInner>; }> {
|
|
106
|
-
const localVarPath = this.basePath + '/companies/attributes';
|
|
107
|
-
let localVarQueryParameters: any = {};
|
|
108
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
109
|
-
const produces = ['application/json'];
|
|
110
|
-
// give precedence to 'application/json'
|
|
111
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
112
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
113
|
-
} else {
|
|
114
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
115
|
-
}
|
|
116
|
-
let localVarFormParams: any = {};
|
|
117
|
-
|
|
118
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
119
|
-
|
|
120
|
-
let localVarUseFormData = false;
|
|
121
|
-
|
|
122
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
123
|
-
method: 'GET',
|
|
124
|
-
qs: localVarQueryParameters,
|
|
125
|
-
headers: localVarHeaderParams,
|
|
126
|
-
uri: localVarPath,
|
|
127
|
-
useQuerystring: this._useQuerystring,
|
|
128
|
-
json: true,
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
let authenticationPromise = Promise.resolve();
|
|
132
|
-
if (this.authentications.apiKey.apiKey) {
|
|
133
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
134
|
-
}
|
|
135
|
-
if (this.authentications.partnerKey.apiKey) {
|
|
136
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
137
|
-
}
|
|
138
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
139
|
-
|
|
140
|
-
let interceptorPromise = authenticationPromise;
|
|
141
|
-
for (const interceptor of this.interceptors) {
|
|
142
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return interceptorPromise.then(() => {
|
|
146
|
-
if (Object.keys(localVarFormParams).length) {
|
|
147
|
-
if (localVarUseFormData) {
|
|
148
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
149
|
-
} else {
|
|
150
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<CompanyAttributesInner>; }>((resolve, reject) => {
|
|
154
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
155
|
-
if (error) {
|
|
156
|
-
reject(error);
|
|
157
|
-
} else {
|
|
158
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
159
|
-
body = ObjectSerializer.deserialize(body, "Array<CompanyAttributesInner>");
|
|
160
|
-
resolve({ response: response, body: body });
|
|
161
|
-
} else {
|
|
162
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
105
|
/**
|
|
170
106
|
*
|
|
171
107
|
* @summary Get all companies
|
|
172
108
|
* @param filters Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"}
|
|
173
109
|
* @param linkedContactsIds Filter by linked contacts ids
|
|
174
110
|
* @param linkedDealsIds Filter by linked deals ids
|
|
111
|
+
* @param modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
|
|
112
|
+
* @param createdSince Filter (urlencoded) the contacts created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
|
|
175
113
|
* @param page Index of the first document of the page
|
|
176
114
|
* @param limit Number of documents per page
|
|
177
115
|
* @param sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
|
|
178
116
|
* @param sortBy The field used to sort field names.
|
|
179
117
|
*/
|
|
180
|
-
public async companiesGet (filters?: string, linkedContactsIds?: number, linkedDealsIds?: string, page?: number, limit?: number, sort?: 'asc' | 'desc', sortBy?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CompaniesList; }> {
|
|
118
|
+
public async companiesGet (filters?: string, linkedContactsIds?: number, linkedDealsIds?: string, modifiedSince?: string, createdSince?: string, page?: number, limit?: number, sort?: 'asc' | 'desc', sortBy?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CompaniesList; }> {
|
|
181
119
|
const localVarPath = this.basePath + '/companies';
|
|
182
120
|
let localVarQueryParameters: any = {};
|
|
183
121
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -202,6 +140,14 @@ export class CompaniesApi {
|
|
|
202
140
|
localVarQueryParameters['linkedDealsIds'] = ObjectSerializer.serialize(linkedDealsIds, "string");
|
|
203
141
|
}
|
|
204
142
|
|
|
143
|
+
if (modifiedSince !== undefined) {
|
|
144
|
+
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (createdSince !== undefined) {
|
|
148
|
+
localVarQueryParameters['createdSince'] = ObjectSerializer.serialize(createdSince, "string");
|
|
149
|
+
}
|
|
150
|
+
|
|
205
151
|
if (page !== undefined) {
|
|
206
152
|
localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
|
|
207
153
|
}
|
|
@@ -500,6 +446,95 @@ export class CompaniesApi {
|
|
|
500
446
|
});
|
|
501
447
|
});
|
|
502
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* Import companies from a CSV file with mapping options.
|
|
451
|
+
* @summary Import companies(creation and updation)
|
|
452
|
+
* @param file The CSV file to upload.The file should have the first row as the mapping attribute. Some default attribute names are (a) company_id [brevo mongoID to update deals] (b) associated_contact (c) associated_deal (f) any other attribute with internal name
|
|
453
|
+
* @param mapping The mapping options in JSON format. json { \\\"link_entities\\\": true, // Determines whether to link related entities during the import process \\\"unlink_entities\\\": false, //Determines whether to unlink related entities during the import process. \\\"update_existing_records\\\": true, // Determines whether to update based on company ID or treat every row as create \\\"unset_empty_attributes\\\": false // Determines whether unset a specific attribute during update if values input is blank \\\"use_company_identifier\\\": false // Determines whether to use company name as identifier }
|
|
454
|
+
*/
|
|
455
|
+
public async companiesImportPost (file: RequestFile, mapping: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CompaniesImportPost200Response; }> {
|
|
456
|
+
const localVarPath = this.basePath + '/companies/import';
|
|
457
|
+
let localVarQueryParameters: any = {};
|
|
458
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
459
|
+
const produces = ['application/json'];
|
|
460
|
+
// give precedence to 'application/json'
|
|
461
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
462
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
463
|
+
} else {
|
|
464
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
465
|
+
}
|
|
466
|
+
let localVarFormParams: any = {};
|
|
467
|
+
|
|
468
|
+
// verify required parameter 'file' is not null or undefined
|
|
469
|
+
if (file === null || file === undefined) {
|
|
470
|
+
throw new Error('Required parameter file was null or undefined when calling companiesImportPost.');
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// verify required parameter 'mapping' is not null or undefined
|
|
474
|
+
if (mapping === null || mapping === undefined) {
|
|
475
|
+
throw new Error('Required parameter mapping was null or undefined when calling companiesImportPost.');
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
479
|
+
|
|
480
|
+
let localVarUseFormData = false;
|
|
481
|
+
|
|
482
|
+
if (file !== undefined) {
|
|
483
|
+
localVarFormParams['file'] = file;
|
|
484
|
+
}
|
|
485
|
+
localVarUseFormData = true;
|
|
486
|
+
|
|
487
|
+
if (mapping !== undefined) {
|
|
488
|
+
localVarFormParams['mapping'] = ObjectSerializer.serialize(mapping, "string");
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
492
|
+
method: 'POST',
|
|
493
|
+
qs: localVarQueryParameters,
|
|
494
|
+
headers: localVarHeaderParams,
|
|
495
|
+
uri: localVarPath,
|
|
496
|
+
useQuerystring: this._useQuerystring,
|
|
497
|
+
json: true,
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
let authenticationPromise = Promise.resolve();
|
|
501
|
+
if (this.authentications.apiKey.apiKey) {
|
|
502
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
503
|
+
}
|
|
504
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
505
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
506
|
+
}
|
|
507
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
508
|
+
|
|
509
|
+
let interceptorPromise = authenticationPromise;
|
|
510
|
+
for (const interceptor of this.interceptors) {
|
|
511
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
return interceptorPromise.then(() => {
|
|
515
|
+
if (Object.keys(localVarFormParams).length) {
|
|
516
|
+
if (localVarUseFormData) {
|
|
517
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
518
|
+
} else {
|
|
519
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return new Promise<{ response: http.IncomingMessage; body: CompaniesImportPost200Response; }>((resolve, reject) => {
|
|
523
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
524
|
+
if (error) {
|
|
525
|
+
reject(error);
|
|
526
|
+
} else {
|
|
527
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
528
|
+
body = ObjectSerializer.deserialize(body, "CompaniesImportPost200Response");
|
|
529
|
+
resolve({ response: response, body: body });
|
|
530
|
+
} else {
|
|
531
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
}
|
|
503
538
|
/**
|
|
504
539
|
*
|
|
505
540
|
* @summary Link and Unlink company with contacts and deals
|
|
@@ -656,4 +691,147 @@ export class CompaniesApi {
|
|
|
656
691
|
});
|
|
657
692
|
});
|
|
658
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
*
|
|
696
|
+
* @summary Get company attributes
|
|
697
|
+
*/
|
|
698
|
+
public async crmAttributesCompaniesGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<CompanyAttributesInner>; }> {
|
|
699
|
+
const localVarPath = this.basePath + '/crm/attributes/companies';
|
|
700
|
+
let localVarQueryParameters: any = {};
|
|
701
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
702
|
+
const produces = ['application/json'];
|
|
703
|
+
// give precedence to 'application/json'
|
|
704
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
705
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
706
|
+
} else {
|
|
707
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
708
|
+
}
|
|
709
|
+
let localVarFormParams: any = {};
|
|
710
|
+
|
|
711
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
712
|
+
|
|
713
|
+
let localVarUseFormData = false;
|
|
714
|
+
|
|
715
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
716
|
+
method: 'GET',
|
|
717
|
+
qs: localVarQueryParameters,
|
|
718
|
+
headers: localVarHeaderParams,
|
|
719
|
+
uri: localVarPath,
|
|
720
|
+
useQuerystring: this._useQuerystring,
|
|
721
|
+
json: true,
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
let authenticationPromise = Promise.resolve();
|
|
725
|
+
if (this.authentications.apiKey.apiKey) {
|
|
726
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
727
|
+
}
|
|
728
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
729
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
730
|
+
}
|
|
731
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
732
|
+
|
|
733
|
+
let interceptorPromise = authenticationPromise;
|
|
734
|
+
for (const interceptor of this.interceptors) {
|
|
735
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
return interceptorPromise.then(() => {
|
|
739
|
+
if (Object.keys(localVarFormParams).length) {
|
|
740
|
+
if (localVarUseFormData) {
|
|
741
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
742
|
+
} else {
|
|
743
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<CompanyAttributesInner>; }>((resolve, reject) => {
|
|
747
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
748
|
+
if (error) {
|
|
749
|
+
reject(error);
|
|
750
|
+
} else {
|
|
751
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
752
|
+
body = ObjectSerializer.deserialize(body, "Array<CompanyAttributesInner>");
|
|
753
|
+
resolve({ response: response, body: body });
|
|
754
|
+
} else {
|
|
755
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
*
|
|
764
|
+
* @summary Create a deal/company attribute
|
|
765
|
+
* @param body Attribute creation data for company
|
|
766
|
+
*/
|
|
767
|
+
public async crmAttributesPost (body: CrmAttributesPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CrmAttributesPost200Response; }> {
|
|
768
|
+
const localVarPath = this.basePath + '/crm/attributes';
|
|
769
|
+
let localVarQueryParameters: any = {};
|
|
770
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
771
|
+
const produces = ['application/json'];
|
|
772
|
+
// give precedence to 'application/json'
|
|
773
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
774
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
775
|
+
} else {
|
|
776
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
777
|
+
}
|
|
778
|
+
let localVarFormParams: any = {};
|
|
779
|
+
|
|
780
|
+
// verify required parameter 'body' is not null or undefined
|
|
781
|
+
if (body === null || body === undefined) {
|
|
782
|
+
throw new Error('Required parameter body was null or undefined when calling crmAttributesPost.');
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
786
|
+
|
|
787
|
+
let localVarUseFormData = false;
|
|
788
|
+
|
|
789
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
790
|
+
method: 'POST',
|
|
791
|
+
qs: localVarQueryParameters,
|
|
792
|
+
headers: localVarHeaderParams,
|
|
793
|
+
uri: localVarPath,
|
|
794
|
+
useQuerystring: this._useQuerystring,
|
|
795
|
+
json: true,
|
|
796
|
+
body: ObjectSerializer.serialize(body, "CrmAttributesPostRequest")
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
let authenticationPromise = Promise.resolve();
|
|
800
|
+
if (this.authentications.apiKey.apiKey) {
|
|
801
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
802
|
+
}
|
|
803
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
804
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
805
|
+
}
|
|
806
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
807
|
+
|
|
808
|
+
let interceptorPromise = authenticationPromise;
|
|
809
|
+
for (const interceptor of this.interceptors) {
|
|
810
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
return interceptorPromise.then(() => {
|
|
814
|
+
if (Object.keys(localVarFormParams).length) {
|
|
815
|
+
if (localVarUseFormData) {
|
|
816
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
817
|
+
} else {
|
|
818
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
return new Promise<{ response: http.IncomingMessage; body: CrmAttributesPost200Response; }>((resolve, reject) => {
|
|
822
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
823
|
+
if (error) {
|
|
824
|
+
reject(error);
|
|
825
|
+
} else {
|
|
826
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
827
|
+
body = ObjectSerializer.deserialize(body, "CrmAttributesPost200Response");
|
|
828
|
+
resolve({ response: response, body: body });
|
|
829
|
+
} else {
|
|
830
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
});
|
|
835
|
+
});
|
|
836
|
+
}
|
|
659
837
|
}
|
package/api/contactsApi.ts
CHANGED
|
@@ -16,6 +16,7 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { AddContactToList } from '../model/addContactToList';
|
|
19
|
+
import { ContactErrorModel } from '../model/contactErrorModel';
|
|
19
20
|
import { CreateAttribute } from '../model/createAttribute';
|
|
20
21
|
import { CreateContact } from '../model/createContact';
|
|
21
22
|
import { CreateDoiContact } from '../model/createDoiContact';
|
|
@@ -122,7 +123,7 @@ export class ContactsApi {
|
|
|
122
123
|
*
|
|
123
124
|
* @summary Add existing contacts to a list
|
|
124
125
|
* @param listId Id of the list
|
|
125
|
-
* @param contactEmails Emails addresses OR IDs of the contacts
|
|
126
|
+
* @param contactEmails Emails addresses OR IDs OR EXT_ID attributes of the contacts
|
|
126
127
|
*/
|
|
127
128
|
public async addContactToList (listId: number, contactEmails: AddContactToList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PostContactInfo; }> {
|
|
128
129
|
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts/add'
|
|
@@ -289,7 +290,7 @@ export class ContactsApi {
|
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
292
|
/**
|
|
292
|
-
*
|
|
293
|
+
* Creates new contacts on Brevo. Contacts can be created by passing either - <br><br> 1. email address of the contact (email_id), <br> 2. phone number of the contact (to be passed as \"SMS\" field in \"attributes\" along with proper country code), For example- {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} <br> 3. ext_id <br>
|
|
293
294
|
* @summary Create a contact
|
|
294
295
|
* @param createContact Values to create a contact
|
|
295
296
|
*/
|
|
@@ -669,11 +670,12 @@ export class ContactsApi {
|
|
|
669
670
|
});
|
|
670
671
|
}
|
|
671
672
|
/**
|
|
672
|
-
*
|
|
673
|
+
* There are 2 ways to delete a contact <br><br> Option 1- https://api.brevo.com/v3/contacts/{identifier} <br><br> Option 2- https://api.brevo.com/v3/contacts/{identifier}?identifierType={} <br> <br> Option 1 only works if identifierType is email_id (for EMAIL) or contact_id (for ID of the contact),where you can directly pass the value of EMAIL and ID of the contact. <br><br> Option 2 works for all identifierType, use email_id for EMAIL attribute, 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.
|
|
673
674
|
* @summary Delete a contact
|
|
674
|
-
* @param identifier Email (urlencoded) OR ID of the contact
|
|
675
|
+
* @param identifier Email (urlencoded) OR ID of the contact OR EXT_ID attribute (urlencoded)
|
|
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
|
|
675
677
|
*/
|
|
676
|
-
public async deleteContact (identifier: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
678
|
+
public async deleteContact (identifier: string, identifierType?: 'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
677
679
|
const localVarPath = this.basePath + '/contacts/{identifier}'
|
|
678
680
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
679
681
|
let localVarQueryParameters: any = {};
|
|
@@ -692,6 +694,10 @@ export class ContactsApi {
|
|
|
692
694
|
throw new Error('Required parameter identifier was null or undefined when calling deleteContact.');
|
|
693
695
|
}
|
|
694
696
|
|
|
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
|
+
|
|
695
701
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
696
702
|
|
|
697
703
|
let localVarUseFormData = false;
|
|
@@ -890,6 +896,94 @@ export class ContactsApi {
|
|
|
890
896
|
});
|
|
891
897
|
});
|
|
892
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 = {
|
|
942
|
+
method: 'DELETE',
|
|
943
|
+
qs: localVarQueryParameters,
|
|
944
|
+
headers: localVarHeaderParams,
|
|
945
|
+
uri: localVarPath,
|
|
946
|
+
useQuerystring: this._useQuerystring,
|
|
947
|
+
json: true,
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
let authenticationPromise = Promise.resolve();
|
|
951
|
+
if (this.authentications.apiKey.apiKey) {
|
|
952
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
953
|
+
}
|
|
954
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
955
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
956
|
+
}
|
|
957
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
958
|
+
|
|
959
|
+
let interceptorPromise = authenticationPromise;
|
|
960
|
+
for (const interceptor of this.interceptors) {
|
|
961
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
return interceptorPromise.then(() => {
|
|
965
|
+
if (Object.keys(localVarFormParams).length) {
|
|
966
|
+
if (localVarUseFormData) {
|
|
967
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
968
|
+
} else {
|
|
969
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
973
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
974
|
+
if (error) {
|
|
975
|
+
reject(error);
|
|
976
|
+
} else {
|
|
977
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
978
|
+
resolve({ response: response, body: body });
|
|
979
|
+
} else {
|
|
980
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
});
|
|
985
|
+
});
|
|
986
|
+
}
|
|
893
987
|
/**
|
|
894
988
|
*
|
|
895
989
|
* @summary List all attributes
|
|
@@ -959,13 +1053,14 @@ export class ContactsApi {
|
|
|
959
1053
|
});
|
|
960
1054
|
}
|
|
961
1055
|
/**
|
|
962
|
-
* 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
|
|
1056
|
+
* There are 2 ways to get a contact <br><br> Option 1- https://api.brevo.com/v3/contacts/{identifier} <br><br> Option 2- https://api.brevo.com/v3/contacts/{identifier}?identifierType={} <br> <br> Option 1 only works if identifierType is email_id (for EMAIL), phone_id (for SMS) or contact_id (for ID of the contact),where you can directly pass the value of EMAIL, SMS and ID of the contact. <br><br> Option 2 works for all identifierType, use email_id for EMAIL attribute, 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 <br><br>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.
|
|
963
1057
|
* @summary Get a contact\'s details
|
|
964
|
-
* @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
|
|
1058
|
+
* @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value OR EXT_ID attribute (urlencoded)
|
|
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
|
|
965
1060
|
* @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
|
|
966
1061
|
* @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.
|
|
967
1062
|
*/
|
|
968
|
-
public async getContactInfo (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetExtendedContactDetails; }> {
|
|
1063
|
+
public async getContactInfo (identifier: string, identifierType?: 'email_id' | 'phone_id' | 'contact_id' | 'ext_id' | 'whatsapp_id' | 'landline_number_id', startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetExtendedContactDetails; }> {
|
|
969
1064
|
const localVarPath = this.basePath + '/contacts/{identifier}'
|
|
970
1065
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
971
1066
|
let localVarQueryParameters: any = {};
|
|
@@ -984,6 +1079,10 @@ export class ContactsApi {
|
|
|
984
1079
|
throw new Error('Required parameter identifier was null or undefined when calling getContactInfo.');
|
|
985
1080
|
}
|
|
986
1081
|
|
|
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
|
+
|
|
987
1086
|
if (startDate !== undefined) {
|
|
988
1087
|
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
989
1088
|
}
|
|
@@ -1138,7 +1237,7 @@ export class ContactsApi {
|
|
|
1138
1237
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1139
1238
|
* @param segmentId Id of the segment. **Either listIds or segmentId can be passed.**
|
|
1140
1239
|
* @param listIds Ids of the list. **Either listIds or segmentId can be passed.**
|
|
1141
|
-
* @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\"))**
|
|
1240
|
+
* @param filter Filter the contacts on the basis of attributes. **Allowed operator: equals. For multiple-choice options, the filter will apply an AND condition between the options. For category attributes, the filter will work with both id and value. (e.g. filter=equals(FIRSTNAME,\"Antoine\"), filter=equals(B1, true), filter=equals(DOB, \"1989-11-23\"), filter=equals(GENDER, \"1\"), filter=equals(GENDER, \"MALE\"), filter=equals(COUNTRY,\"USA, INDIA\")**
|
|
1142
1241
|
*/
|
|
1143
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: http.IncomingMessage; body: GetContacts; }> {
|
|
1144
1243
|
const localVarPath = this.basePath + '/contacts';
|
|
@@ -1503,7 +1602,7 @@ export class ContactsApi {
|
|
|
1503
1602
|
* @param offset Index of the first document of the page
|
|
1504
1603
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1505
1604
|
*/
|
|
1506
|
-
public async getFolders (limit
|
|
1605
|
+
public async getFolders (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolders; }> {
|
|
1507
1606
|
const localVarPath = this.basePath + '/contacts/folders';
|
|
1508
1607
|
let localVarQueryParameters: any = {};
|
|
1509
1608
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1516,16 +1615,6 @@ export class ContactsApi {
|
|
|
1516
1615
|
}
|
|
1517
1616
|
let localVarFormParams: any = {};
|
|
1518
1617
|
|
|
1519
|
-
// verify required parameter 'limit' is not null or undefined
|
|
1520
|
-
if (limit === null || limit === undefined) {
|
|
1521
|
-
throw new Error('Required parameter limit was null or undefined when calling getFolders.');
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
// verify required parameter 'offset' is not null or undefined
|
|
1525
|
-
if (offset === null || offset === undefined) {
|
|
1526
|
-
throw new Error('Required parameter offset was null or undefined when calling getFolders.');
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
1618
|
if (limit !== undefined) {
|
|
1530
1619
|
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1531
1620
|
}
|
|
@@ -1929,7 +2018,7 @@ export class ContactsApi {
|
|
|
1929
2018
|
*
|
|
1930
2019
|
* @summary Delete a contact from a list
|
|
1931
2020
|
* @param listId Id of the list
|
|
1932
|
-
* @param contactEmails Emails addresses OR IDs of the contacts
|
|
2021
|
+
* @param contactEmails Emails addresses OR IDs OR EXT_ID attributes of the contacts
|
|
1933
2022
|
*/
|
|
1934
2023
|
public async removeContactFromList (listId: number, contactEmails: RemoveContactFromList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PostContactInfo; }> {
|
|
1935
2024
|
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts/remove'
|
|
@@ -2089,7 +2178,7 @@ export class ContactsApi {
|
|
|
2089
2178
|
* @param attributeName Name of the existing attribute
|
|
2090
2179
|
* @param updateAttribute Values to update an attribute
|
|
2091
2180
|
*/
|
|
2092
|
-
public async updateAttribute (attributeCategory: 'category' | 'calculated' | 'global', attributeName: string, updateAttribute: UpdateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
2181
|
+
public async updateAttribute (attributeCategory: 'category' | 'calculated' | 'global' | 'normal', attributeName: string, updateAttribute: UpdateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
2093
2182
|
const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
|
|
2094
2183
|
.replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
|
|
2095
2184
|
.replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
|
|
@@ -2245,12 +2334,13 @@ export class ContactsApi {
|
|
|
2245
2334
|
});
|
|
2246
2335
|
}
|
|
2247
2336
|
/**
|
|
2248
|
-
*
|
|
2337
|
+
* There are 2 ways to update a contact <br><br> Option 1- https://api.brevo.com/v3/contacts/{identifier} <br><br> Option 2- https://api.brevo.com/v3/contacts/{identifier}?identifierType={} <br> <br> Option 1 only works if identifierType is email_id (for EMAIL) or contact_id (for ID of the contact),where you can directly pass the value of EMAIL and ID of the contact. <br><br> Option 2 works for all identifierType, use email_id for EMAIL attribute, 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
|
|
2249
2338
|
* @summary Update a contact
|
|
2250
|
-
* @param identifier Email (urlencoded) OR ID of the contact
|
|
2339
|
+
* @param identifier Email (urlencoded) OR ID of the contact OR EXT_ID attribute (urlencoded) OR its SMS attribute value OR its WHATSAPP attribute value OR its LANDLINE attribute value
|
|
2251
2340
|
* @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
|
|
2252
2342
|
*/
|
|
2253
|
-
public async updateContact (identifier: string, updateContact: UpdateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
2343
|
+
public async updateContact (identifier: string, updateContact: UpdateContact, identifierType?: 'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
2254
2344
|
const localVarPath = this.basePath + '/contacts/{identifier}'
|
|
2255
2345
|
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
2256
2346
|
let localVarQueryParameters: any = {};
|
|
@@ -2274,6 +2364,10 @@ export class ContactsApi {
|
|
|
2274
2364
|
throw new Error('Required parameter updateContact was null or undefined when calling updateContact.');
|
|
2275
2365
|
}
|
|
2276
2366
|
|
|
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
|
+
|
|
2277
2371
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2278
2372
|
|
|
2279
2373
|
let localVarUseFormData = false;
|