@getbrevo/brevo 2.5.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/README.md +178 -100
- package/api/accountApi.ts +5 -5
- package/api/companiesApi.ts +15 -15
- package/api/contactsApi.ts +148 -151
- package/api/conversationsApi.ts +46 -47
- package/api/couponsApi.ts +11 -11
- package/api/dealsApi.ts +51 -52
- package/api/domainsApi.ts +11 -11
- package/api/ecommerceApi.ts +86 -87
- package/api/emailCampaignsApi.ts +82 -105
- 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 +49 -49
- 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 +45 -45
- package/api/transactionalSMSApi.ts +9 -9
- package/api/transactionalWhatsAppApi.ts +5 -5
- package/api/userApi.ts +13 -13
- 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/models.ts +8 -8
- package/package.json +2 -3
- package/requestCompat.ts +138 -0
- package/tsconfig.json +0 -1
- 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/api/dealsApi.ts
CHANGED
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
import localVarRequest from '
|
|
15
|
-
import http from 'http';
|
|
14
|
+
import localVarRequest, { RequestOptions, IncomingMessage } from '../requestCompat';
|
|
16
15
|
|
|
17
16
|
/* tslint:disable:no-unused-locals */
|
|
18
17
|
import { CrmDealsIdPatchRequest } from '../model/crmDealsIdPatchRequest';
|
|
@@ -103,7 +102,7 @@ export class DealsApi {
|
|
|
103
102
|
*
|
|
104
103
|
* @summary Get deal attributes
|
|
105
104
|
*/
|
|
106
|
-
public async crmAttributesDealsGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
105
|
+
public async crmAttributesDealsGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: Array<DealAttributesInner>; }> {
|
|
107
106
|
const localVarPath = this.basePath + '/crm/attributes/deals';
|
|
108
107
|
let localVarQueryParameters: any = {};
|
|
109
108
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -120,11 +119,11 @@ export class DealsApi {
|
|
|
120
119
|
|
|
121
120
|
let localVarUseFormData = false;
|
|
122
121
|
|
|
123
|
-
let localVarRequestOptions:
|
|
122
|
+
let localVarRequestOptions: RequestOptions = {
|
|
124
123
|
method: 'GET',
|
|
125
|
-
|
|
124
|
+
params: localVarQueryParameters,
|
|
126
125
|
headers: localVarHeaderParams,
|
|
127
|
-
|
|
126
|
+
url: localVarPath,
|
|
128
127
|
useQuerystring: this._useQuerystring,
|
|
129
128
|
json: true,
|
|
130
129
|
};
|
|
@@ -151,7 +150,7 @@ export class DealsApi {
|
|
|
151
150
|
localVarRequestOptions.form = localVarFormParams;
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
|
-
return new Promise<{ response:
|
|
153
|
+
return new Promise<{ response: IncomingMessage; body: Array<DealAttributesInner>; }>((resolve, reject) => {
|
|
155
154
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
156
155
|
if (error) {
|
|
157
156
|
reject(error);
|
|
@@ -178,7 +177,7 @@ export class DealsApi {
|
|
|
178
177
|
* @param sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
|
|
179
178
|
* @param sortBy The field used to sort field names.
|
|
180
179
|
*/
|
|
181
|
-
public async crmDealsGet (filtersAttributesDealName?: string, filtersLinkedCompaniesIds?: string, filtersLinkedContactsIds?: string, offset?: number, limit?: number, sort?: 'asc' | 'desc', sortBy?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
180
|
+
public async crmDealsGet (filtersAttributesDealName?: string, filtersLinkedCompaniesIds?: string, filtersLinkedContactsIds?: string, offset?: number, limit?: number, sort?: 'asc' | 'desc', sortBy?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: DealsList; }> {
|
|
182
181
|
const localVarPath = this.basePath + '/crm/deals';
|
|
183
182
|
let localVarQueryParameters: any = {};
|
|
184
183
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -223,11 +222,11 @@ export class DealsApi {
|
|
|
223
222
|
|
|
224
223
|
let localVarUseFormData = false;
|
|
225
224
|
|
|
226
|
-
let localVarRequestOptions:
|
|
225
|
+
let localVarRequestOptions: RequestOptions = {
|
|
227
226
|
method: 'GET',
|
|
228
|
-
|
|
227
|
+
params: localVarQueryParameters,
|
|
229
228
|
headers: localVarHeaderParams,
|
|
230
|
-
|
|
229
|
+
url: localVarPath,
|
|
231
230
|
useQuerystring: this._useQuerystring,
|
|
232
231
|
json: true,
|
|
233
232
|
};
|
|
@@ -254,7 +253,7 @@ export class DealsApi {
|
|
|
254
253
|
localVarRequestOptions.form = localVarFormParams;
|
|
255
254
|
}
|
|
256
255
|
}
|
|
257
|
-
return new Promise<{ response:
|
|
256
|
+
return new Promise<{ response: IncomingMessage; body: DealsList; }>((resolve, reject) => {
|
|
258
257
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
259
258
|
if (error) {
|
|
260
259
|
reject(error);
|
|
@@ -275,7 +274,7 @@ export class DealsApi {
|
|
|
275
274
|
* @summary Delete a deal
|
|
276
275
|
* @param id
|
|
277
276
|
*/
|
|
278
|
-
public async crmDealsIdDelete (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
277
|
+
public async crmDealsIdDelete (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
279
278
|
const localVarPath = this.basePath + '/crm/deals/{id}'
|
|
280
279
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
281
280
|
let localVarQueryParameters: any = {};
|
|
@@ -298,11 +297,11 @@ export class DealsApi {
|
|
|
298
297
|
|
|
299
298
|
let localVarUseFormData = false;
|
|
300
299
|
|
|
301
|
-
let localVarRequestOptions:
|
|
300
|
+
let localVarRequestOptions: RequestOptions = {
|
|
302
301
|
method: 'DELETE',
|
|
303
|
-
|
|
302
|
+
params: localVarQueryParameters,
|
|
304
303
|
headers: localVarHeaderParams,
|
|
305
|
-
|
|
304
|
+
url: localVarPath,
|
|
306
305
|
useQuerystring: this._useQuerystring,
|
|
307
306
|
json: true,
|
|
308
307
|
};
|
|
@@ -329,7 +328,7 @@ export class DealsApi {
|
|
|
329
328
|
localVarRequestOptions.form = localVarFormParams;
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
|
-
return new Promise<{ response:
|
|
331
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
333
332
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
334
333
|
if (error) {
|
|
335
334
|
reject(error);
|
|
@@ -349,7 +348,7 @@ export class DealsApi {
|
|
|
349
348
|
* @summary Get a deal
|
|
350
349
|
* @param id
|
|
351
350
|
*/
|
|
352
|
-
public async crmDealsIdGet (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
351
|
+
public async crmDealsIdGet (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: Deal; }> {
|
|
353
352
|
const localVarPath = this.basePath + '/crm/deals/{id}'
|
|
354
353
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
355
354
|
let localVarQueryParameters: any = {};
|
|
@@ -372,11 +371,11 @@ export class DealsApi {
|
|
|
372
371
|
|
|
373
372
|
let localVarUseFormData = false;
|
|
374
373
|
|
|
375
|
-
let localVarRequestOptions:
|
|
374
|
+
let localVarRequestOptions: RequestOptions = {
|
|
376
375
|
method: 'GET',
|
|
377
|
-
|
|
376
|
+
params: localVarQueryParameters,
|
|
378
377
|
headers: localVarHeaderParams,
|
|
379
|
-
|
|
378
|
+
url: localVarPath,
|
|
380
379
|
useQuerystring: this._useQuerystring,
|
|
381
380
|
json: true,
|
|
382
381
|
};
|
|
@@ -403,7 +402,7 @@ export class DealsApi {
|
|
|
403
402
|
localVarRequestOptions.form = localVarFormParams;
|
|
404
403
|
}
|
|
405
404
|
}
|
|
406
|
-
return new Promise<{ response:
|
|
405
|
+
return new Promise<{ response: IncomingMessage; body: Deal; }>((resolve, reject) => {
|
|
407
406
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
408
407
|
if (error) {
|
|
409
408
|
reject(error);
|
|
@@ -425,7 +424,7 @@ export class DealsApi {
|
|
|
425
424
|
* @param id
|
|
426
425
|
* @param body Updated deal details.
|
|
427
426
|
*/
|
|
428
|
-
public async crmDealsIdPatch (id: string, body: CrmDealsIdPatchRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
427
|
+
public async crmDealsIdPatch (id: string, body: CrmDealsIdPatchRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
429
428
|
const localVarPath = this.basePath + '/crm/deals/{id}'
|
|
430
429
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
431
430
|
let localVarQueryParameters: any = {};
|
|
@@ -453,11 +452,11 @@ export class DealsApi {
|
|
|
453
452
|
|
|
454
453
|
let localVarUseFormData = false;
|
|
455
454
|
|
|
456
|
-
let localVarRequestOptions:
|
|
455
|
+
let localVarRequestOptions: RequestOptions = {
|
|
457
456
|
method: 'PATCH',
|
|
458
|
-
|
|
457
|
+
params: localVarQueryParameters,
|
|
459
458
|
headers: localVarHeaderParams,
|
|
460
|
-
|
|
459
|
+
url: localVarPath,
|
|
461
460
|
useQuerystring: this._useQuerystring,
|
|
462
461
|
json: true,
|
|
463
462
|
body: ObjectSerializer.serialize(body, "CrmDealsIdPatchRequest")
|
|
@@ -485,7 +484,7 @@ export class DealsApi {
|
|
|
485
484
|
localVarRequestOptions.form = localVarFormParams;
|
|
486
485
|
}
|
|
487
486
|
}
|
|
488
|
-
return new Promise<{ response:
|
|
487
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
489
488
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
490
489
|
if (error) {
|
|
491
490
|
reject(error);
|
|
@@ -506,7 +505,7 @@ export class DealsApi {
|
|
|
506
505
|
* @param id
|
|
507
506
|
* @param body Linked / Unlinked contacts and companies ids.
|
|
508
507
|
*/
|
|
509
|
-
public async crmDealsLinkUnlinkIdPatch (id: string, body: CrmDealsLinkUnlinkIdPatchRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
508
|
+
public async crmDealsLinkUnlinkIdPatch (id: string, body: CrmDealsLinkUnlinkIdPatchRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
510
509
|
const localVarPath = this.basePath + '/crm/deals/link-unlink/{id}'
|
|
511
510
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
512
511
|
let localVarQueryParameters: any = {};
|
|
@@ -534,11 +533,11 @@ export class DealsApi {
|
|
|
534
533
|
|
|
535
534
|
let localVarUseFormData = false;
|
|
536
535
|
|
|
537
|
-
let localVarRequestOptions:
|
|
536
|
+
let localVarRequestOptions: RequestOptions = {
|
|
538
537
|
method: 'PATCH',
|
|
539
|
-
|
|
538
|
+
params: localVarQueryParameters,
|
|
540
539
|
headers: localVarHeaderParams,
|
|
541
|
-
|
|
540
|
+
url: localVarPath,
|
|
542
541
|
useQuerystring: this._useQuerystring,
|
|
543
542
|
json: true,
|
|
544
543
|
body: ObjectSerializer.serialize(body, "CrmDealsLinkUnlinkIdPatchRequest")
|
|
@@ -566,7 +565,7 @@ export class DealsApi {
|
|
|
566
565
|
localVarRequestOptions.form = localVarFormParams;
|
|
567
566
|
}
|
|
568
567
|
}
|
|
569
|
-
return new Promise<{ response:
|
|
568
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
570
569
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
571
570
|
if (error) {
|
|
572
571
|
reject(error);
|
|
@@ -586,7 +585,7 @@ export class DealsApi {
|
|
|
586
585
|
* @summary Create a deal
|
|
587
586
|
* @param body Deal create data.
|
|
588
587
|
*/
|
|
589
|
-
public async crmDealsPost (body: CrmDealsPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
588
|
+
public async crmDealsPost (body: CrmDealsPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CrmDealsPost201Response; }> {
|
|
590
589
|
const localVarPath = this.basePath + '/crm/deals';
|
|
591
590
|
let localVarQueryParameters: any = {};
|
|
592
591
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -608,11 +607,11 @@ export class DealsApi {
|
|
|
608
607
|
|
|
609
608
|
let localVarUseFormData = false;
|
|
610
609
|
|
|
611
|
-
let localVarRequestOptions:
|
|
610
|
+
let localVarRequestOptions: RequestOptions = {
|
|
612
611
|
method: 'POST',
|
|
613
|
-
|
|
612
|
+
params: localVarQueryParameters,
|
|
614
613
|
headers: localVarHeaderParams,
|
|
615
|
-
|
|
614
|
+
url: localVarPath,
|
|
616
615
|
useQuerystring: this._useQuerystring,
|
|
617
616
|
json: true,
|
|
618
617
|
body: ObjectSerializer.serialize(body, "CrmDealsPostRequest")
|
|
@@ -640,7 +639,7 @@ export class DealsApi {
|
|
|
640
639
|
localVarRequestOptions.form = localVarFormParams;
|
|
641
640
|
}
|
|
642
641
|
}
|
|
643
|
-
return new Promise<{ response:
|
|
642
|
+
return new Promise<{ response: IncomingMessage; body: CrmDealsPost201Response; }>((resolve, reject) => {
|
|
644
643
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
645
644
|
if (error) {
|
|
646
645
|
reject(error);
|
|
@@ -660,7 +659,7 @@ export class DealsApi {
|
|
|
660
659
|
*
|
|
661
660
|
* @summary Get all pipelines
|
|
662
661
|
*/
|
|
663
|
-
public async crmPipelineDetailsAllGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
662
|
+
public async crmPipelineDetailsAllGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: Array<Pipeline>; }> {
|
|
664
663
|
const localVarPath = this.basePath + '/crm/pipeline/details/all';
|
|
665
664
|
let localVarQueryParameters: any = {};
|
|
666
665
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -677,11 +676,11 @@ export class DealsApi {
|
|
|
677
676
|
|
|
678
677
|
let localVarUseFormData = false;
|
|
679
678
|
|
|
680
|
-
let localVarRequestOptions:
|
|
679
|
+
let localVarRequestOptions: RequestOptions = {
|
|
681
680
|
method: 'GET',
|
|
682
|
-
|
|
681
|
+
params: localVarQueryParameters,
|
|
683
682
|
headers: localVarHeaderParams,
|
|
684
|
-
|
|
683
|
+
url: localVarPath,
|
|
685
684
|
useQuerystring: this._useQuerystring,
|
|
686
685
|
json: true,
|
|
687
686
|
};
|
|
@@ -708,7 +707,7 @@ export class DealsApi {
|
|
|
708
707
|
localVarRequestOptions.form = localVarFormParams;
|
|
709
708
|
}
|
|
710
709
|
}
|
|
711
|
-
return new Promise<{ response:
|
|
710
|
+
return new Promise<{ response: IncomingMessage; body: Array<Pipeline>; }>((resolve, reject) => {
|
|
712
711
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
713
712
|
if (error) {
|
|
714
713
|
reject(error);
|
|
@@ -728,7 +727,7 @@ export class DealsApi {
|
|
|
728
727
|
* This endpoint is deprecated. Prefer /crm/pipeline/details/{pipelineID} instead.
|
|
729
728
|
* @summary Get pipeline stages
|
|
730
729
|
*/
|
|
731
|
-
public async crmPipelineDetailsGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
730
|
+
public async crmPipelineDetailsGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: Pipeline; }> {
|
|
732
731
|
const localVarPath = this.basePath + '/crm/pipeline/details';
|
|
733
732
|
let localVarQueryParameters: any = {};
|
|
734
733
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -745,11 +744,11 @@ export class DealsApi {
|
|
|
745
744
|
|
|
746
745
|
let localVarUseFormData = false;
|
|
747
746
|
|
|
748
|
-
let localVarRequestOptions:
|
|
747
|
+
let localVarRequestOptions: RequestOptions = {
|
|
749
748
|
method: 'GET',
|
|
750
|
-
|
|
749
|
+
params: localVarQueryParameters,
|
|
751
750
|
headers: localVarHeaderParams,
|
|
752
|
-
|
|
751
|
+
url: localVarPath,
|
|
753
752
|
useQuerystring: this._useQuerystring,
|
|
754
753
|
json: true,
|
|
755
754
|
};
|
|
@@ -776,7 +775,7 @@ export class DealsApi {
|
|
|
776
775
|
localVarRequestOptions.form = localVarFormParams;
|
|
777
776
|
}
|
|
778
777
|
}
|
|
779
|
-
return new Promise<{ response:
|
|
778
|
+
return new Promise<{ response: IncomingMessage; body: Pipeline; }>((resolve, reject) => {
|
|
780
779
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
781
780
|
if (error) {
|
|
782
781
|
reject(error);
|
|
@@ -797,7 +796,7 @@ export class DealsApi {
|
|
|
797
796
|
* @summary Get a pipeline
|
|
798
797
|
* @param pipelineID
|
|
799
798
|
*/
|
|
800
|
-
public async crmPipelineDetailsPipelineIDGet (pipelineID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
799
|
+
public async crmPipelineDetailsPipelineIDGet (pipelineID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: Array<Pipeline>; }> {
|
|
801
800
|
const localVarPath = this.basePath + '/crm/pipeline/details/{pipelineID}'
|
|
802
801
|
.replace('{' + 'pipelineID' + '}', encodeURIComponent(String(pipelineID)));
|
|
803
802
|
let localVarQueryParameters: any = {};
|
|
@@ -820,11 +819,11 @@ export class DealsApi {
|
|
|
820
819
|
|
|
821
820
|
let localVarUseFormData = false;
|
|
822
821
|
|
|
823
|
-
let localVarRequestOptions:
|
|
822
|
+
let localVarRequestOptions: RequestOptions = {
|
|
824
823
|
method: 'GET',
|
|
825
|
-
|
|
824
|
+
params: localVarQueryParameters,
|
|
826
825
|
headers: localVarHeaderParams,
|
|
827
|
-
|
|
826
|
+
url: localVarPath,
|
|
828
827
|
useQuerystring: this._useQuerystring,
|
|
829
828
|
json: true,
|
|
830
829
|
};
|
|
@@ -851,7 +850,7 @@ export class DealsApi {
|
|
|
851
850
|
localVarRequestOptions.form = localVarFormParams;
|
|
852
851
|
}
|
|
853
852
|
}
|
|
854
|
-
return new Promise<{ response:
|
|
853
|
+
return new Promise<{ response: IncomingMessage; body: Array<Pipeline>; }>((resolve, reject) => {
|
|
855
854
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
856
855
|
if (error) {
|
|
857
856
|
reject(error);
|
package/api/domainsApi.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
import localVarRequest from '
|
|
14
|
+
import localVarRequest, { RequestOptions } from '../requestCompat';
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
@@ -124,11 +124,11 @@ export class DomainsApi {
|
|
|
124
124
|
|
|
125
125
|
let localVarUseFormData = false;
|
|
126
126
|
|
|
127
|
-
let localVarRequestOptions:
|
|
127
|
+
let localVarRequestOptions: RequestOptions = {
|
|
128
128
|
method: 'PUT',
|
|
129
129
|
qs: localVarQueryParameters,
|
|
130
130
|
headers: localVarHeaderParams,
|
|
131
|
-
|
|
131
|
+
url: localVarPath,
|
|
132
132
|
useQuerystring: this._useQuerystring,
|
|
133
133
|
json: true,
|
|
134
134
|
};
|
|
@@ -193,11 +193,11 @@ export class DomainsApi {
|
|
|
193
193
|
|
|
194
194
|
let localVarUseFormData = false;
|
|
195
195
|
|
|
196
|
-
let localVarRequestOptions:
|
|
196
|
+
let localVarRequestOptions: RequestOptions = {
|
|
197
197
|
method: 'POST',
|
|
198
198
|
qs: localVarQueryParameters,
|
|
199
199
|
headers: localVarHeaderParams,
|
|
200
|
-
|
|
200
|
+
url: localVarPath,
|
|
201
201
|
useQuerystring: this._useQuerystring,
|
|
202
202
|
json: true,
|
|
203
203
|
body: ObjectSerializer.serialize(domainName, "CreateDomain")
|
|
@@ -269,11 +269,11 @@ export class DomainsApi {
|
|
|
269
269
|
|
|
270
270
|
let localVarUseFormData = false;
|
|
271
271
|
|
|
272
|
-
let localVarRequestOptions:
|
|
272
|
+
let localVarRequestOptions: RequestOptions = {
|
|
273
273
|
method: 'DELETE',
|
|
274
274
|
qs: localVarQueryParameters,
|
|
275
275
|
headers: localVarHeaderParams,
|
|
276
|
-
|
|
276
|
+
url: localVarPath,
|
|
277
277
|
useQuerystring: this._useQuerystring,
|
|
278
278
|
json: true,
|
|
279
279
|
};
|
|
@@ -343,11 +343,11 @@ export class DomainsApi {
|
|
|
343
343
|
|
|
344
344
|
let localVarUseFormData = false;
|
|
345
345
|
|
|
346
|
-
let localVarRequestOptions:
|
|
346
|
+
let localVarRequestOptions: RequestOptions = {
|
|
347
347
|
method: 'GET',
|
|
348
348
|
qs: localVarQueryParameters,
|
|
349
349
|
headers: localVarHeaderParams,
|
|
350
|
-
|
|
350
|
+
url: localVarPath,
|
|
351
351
|
useQuerystring: this._useQuerystring,
|
|
352
352
|
json: true,
|
|
353
353
|
};
|
|
@@ -411,11 +411,11 @@ export class DomainsApi {
|
|
|
411
411
|
|
|
412
412
|
let localVarUseFormData = false;
|
|
413
413
|
|
|
414
|
-
let localVarRequestOptions:
|
|
414
|
+
let localVarRequestOptions: RequestOptions = {
|
|
415
415
|
method: 'GET',
|
|
416
416
|
qs: localVarQueryParameters,
|
|
417
417
|
headers: localVarHeaderParams,
|
|
418
|
-
|
|
418
|
+
url: localVarPath,
|
|
419
419
|
useQuerystring: this._useQuerystring,
|
|
420
420
|
json: true,
|
|
421
421
|
};
|