@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/ecommerceApi.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 { CreateCategoryModel } from '../model/createCategoryModel';
|
|
@@ -115,7 +114,7 @@ export class EcommerceApi {
|
|
|
115
114
|
* @summary Create orders in batch
|
|
116
115
|
* @param orderBatch
|
|
117
116
|
*/
|
|
118
|
-
public async createBatchOrder (orderBatch: OrderBatch, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
117
|
+
public async createBatchOrder (orderBatch: OrderBatch, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
119
118
|
const localVarPath = this.basePath + '/orders/status/batch';
|
|
120
119
|
let localVarQueryParameters: any = {};
|
|
121
120
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -137,11 +136,11 @@ export class EcommerceApi {
|
|
|
137
136
|
|
|
138
137
|
let localVarUseFormData = false;
|
|
139
138
|
|
|
140
|
-
let localVarRequestOptions:
|
|
139
|
+
let localVarRequestOptions: RequestOptions = {
|
|
141
140
|
method: 'POST',
|
|
142
|
-
|
|
141
|
+
params: localVarQueryParameters,
|
|
143
142
|
headers: localVarHeaderParams,
|
|
144
|
-
|
|
143
|
+
url: localVarPath,
|
|
145
144
|
useQuerystring: this._useQuerystring,
|
|
146
145
|
json: true,
|
|
147
146
|
body: ObjectSerializer.serialize(orderBatch, "OrderBatch")
|
|
@@ -169,7 +168,7 @@ export class EcommerceApi {
|
|
|
169
168
|
localVarRequestOptions.form = localVarFormParams;
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
|
-
return new Promise<{ response:
|
|
171
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
173
172
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
174
173
|
if (error) {
|
|
175
174
|
reject(error);
|
|
@@ -189,7 +188,7 @@ export class EcommerceApi {
|
|
|
189
188
|
* @summary Managing the status of the order
|
|
190
189
|
* @param order
|
|
191
190
|
*/
|
|
192
|
-
public async createOrder (order: Order, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
191
|
+
public async createOrder (order: Order, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
193
192
|
const localVarPath = this.basePath + '/orders/status';
|
|
194
193
|
let localVarQueryParameters: any = {};
|
|
195
194
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -211,11 +210,11 @@ export class EcommerceApi {
|
|
|
211
210
|
|
|
212
211
|
let localVarUseFormData = false;
|
|
213
212
|
|
|
214
|
-
let localVarRequestOptions:
|
|
213
|
+
let localVarRequestOptions: RequestOptions = {
|
|
215
214
|
method: 'POST',
|
|
216
|
-
|
|
215
|
+
params: localVarQueryParameters,
|
|
217
216
|
headers: localVarHeaderParams,
|
|
218
|
-
|
|
217
|
+
url: localVarPath,
|
|
219
218
|
useQuerystring: this._useQuerystring,
|
|
220
219
|
json: true,
|
|
221
220
|
body: ObjectSerializer.serialize(order, "Order")
|
|
@@ -243,7 +242,7 @@ export class EcommerceApi {
|
|
|
243
242
|
localVarRequestOptions.form = localVarFormParams;
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
|
-
return new Promise<{ response:
|
|
245
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
247
246
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
248
247
|
if (error) {
|
|
249
248
|
reject(error);
|
|
@@ -263,7 +262,7 @@ export class EcommerceApi {
|
|
|
263
262
|
* @summary Create categories in batch
|
|
264
263
|
* @param createUpdateBatchCategory Values to create a batch of categories
|
|
265
264
|
*/
|
|
266
|
-
public async createUpdateBatchCategory (createUpdateBatchCategory: CreateUpdateBatchCategory, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
265
|
+
public async createUpdateBatchCategory (createUpdateBatchCategory: CreateUpdateBatchCategory, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateUpdateBatchCategoryModel; }> {
|
|
267
266
|
const localVarPath = this.basePath + '/categories/batch';
|
|
268
267
|
let localVarQueryParameters: any = {};
|
|
269
268
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -285,11 +284,11 @@ export class EcommerceApi {
|
|
|
285
284
|
|
|
286
285
|
let localVarUseFormData = false;
|
|
287
286
|
|
|
288
|
-
let localVarRequestOptions:
|
|
287
|
+
let localVarRequestOptions: RequestOptions = {
|
|
289
288
|
method: 'POST',
|
|
290
|
-
|
|
289
|
+
params: localVarQueryParameters,
|
|
291
290
|
headers: localVarHeaderParams,
|
|
292
|
-
|
|
291
|
+
url: localVarPath,
|
|
293
292
|
useQuerystring: this._useQuerystring,
|
|
294
293
|
json: true,
|
|
295
294
|
body: ObjectSerializer.serialize(createUpdateBatchCategory, "CreateUpdateBatchCategory")
|
|
@@ -317,7 +316,7 @@ export class EcommerceApi {
|
|
|
317
316
|
localVarRequestOptions.form = localVarFormParams;
|
|
318
317
|
}
|
|
319
318
|
}
|
|
320
|
-
return new Promise<{ response:
|
|
319
|
+
return new Promise<{ response: IncomingMessage; body: CreateUpdateBatchCategoryModel; }>((resolve, reject) => {
|
|
321
320
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
322
321
|
if (error) {
|
|
323
322
|
reject(error);
|
|
@@ -338,7 +337,7 @@ export class EcommerceApi {
|
|
|
338
337
|
* @summary Create products in batch
|
|
339
338
|
* @param createUpdateBatchProducts Values to create a batch of products
|
|
340
339
|
*/
|
|
341
|
-
public async createUpdateBatchProducts (createUpdateBatchProducts: CreateUpdateBatchProducts, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
340
|
+
public async createUpdateBatchProducts (createUpdateBatchProducts: CreateUpdateBatchProducts, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateUpdateBatchProductsModel; }> {
|
|
342
341
|
const localVarPath = this.basePath + '/products/batch';
|
|
343
342
|
let localVarQueryParameters: any = {};
|
|
344
343
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -360,11 +359,11 @@ export class EcommerceApi {
|
|
|
360
359
|
|
|
361
360
|
let localVarUseFormData = false;
|
|
362
361
|
|
|
363
|
-
let localVarRequestOptions:
|
|
362
|
+
let localVarRequestOptions: RequestOptions = {
|
|
364
363
|
method: 'POST',
|
|
365
|
-
|
|
364
|
+
params: localVarQueryParameters,
|
|
366
365
|
headers: localVarHeaderParams,
|
|
367
|
-
|
|
366
|
+
url: localVarPath,
|
|
368
367
|
useQuerystring: this._useQuerystring,
|
|
369
368
|
json: true,
|
|
370
369
|
body: ObjectSerializer.serialize(createUpdateBatchProducts, "CreateUpdateBatchProducts")
|
|
@@ -392,7 +391,7 @@ export class EcommerceApi {
|
|
|
392
391
|
localVarRequestOptions.form = localVarFormParams;
|
|
393
392
|
}
|
|
394
393
|
}
|
|
395
|
-
return new Promise<{ response:
|
|
394
|
+
return new Promise<{ response: IncomingMessage; body: CreateUpdateBatchProductsModel; }>((resolve, reject) => {
|
|
396
395
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
397
396
|
if (error) {
|
|
398
397
|
reject(error);
|
|
@@ -413,7 +412,7 @@ export class EcommerceApi {
|
|
|
413
412
|
* @summary Create/Update a category
|
|
414
413
|
* @param createUpdateCategory Values to create/update a category
|
|
415
414
|
*/
|
|
416
|
-
public async createUpdateCategory (createUpdateCategory: CreateUpdateCategory, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
415
|
+
public async createUpdateCategory (createUpdateCategory: CreateUpdateCategory, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateCategoryModel; }> {
|
|
417
416
|
const localVarPath = this.basePath + '/categories';
|
|
418
417
|
let localVarQueryParameters: any = {};
|
|
419
418
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -435,11 +434,11 @@ export class EcommerceApi {
|
|
|
435
434
|
|
|
436
435
|
let localVarUseFormData = false;
|
|
437
436
|
|
|
438
|
-
let localVarRequestOptions:
|
|
437
|
+
let localVarRequestOptions: RequestOptions = {
|
|
439
438
|
method: 'POST',
|
|
440
|
-
|
|
439
|
+
params: localVarQueryParameters,
|
|
441
440
|
headers: localVarHeaderParams,
|
|
442
|
-
|
|
441
|
+
url: localVarPath,
|
|
443
442
|
useQuerystring: this._useQuerystring,
|
|
444
443
|
json: true,
|
|
445
444
|
body: ObjectSerializer.serialize(createUpdateCategory, "CreateUpdateCategory")
|
|
@@ -467,7 +466,7 @@ export class EcommerceApi {
|
|
|
467
466
|
localVarRequestOptions.form = localVarFormParams;
|
|
468
467
|
}
|
|
469
468
|
}
|
|
470
|
-
return new Promise<{ response:
|
|
469
|
+
return new Promise<{ response: IncomingMessage; body: CreateCategoryModel; }>((resolve, reject) => {
|
|
471
470
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
472
471
|
if (error) {
|
|
473
472
|
reject(error);
|
|
@@ -488,7 +487,7 @@ export class EcommerceApi {
|
|
|
488
487
|
* @summary Create/Update a product
|
|
489
488
|
* @param createUpdateProduct Values to create/update a product
|
|
490
489
|
*/
|
|
491
|
-
public async createUpdateProduct (createUpdateProduct: CreateUpdateProduct, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
490
|
+
public async createUpdateProduct (createUpdateProduct: CreateUpdateProduct, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateProductModel; }> {
|
|
492
491
|
const localVarPath = this.basePath + '/products';
|
|
493
492
|
let localVarQueryParameters: any = {};
|
|
494
493
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -510,11 +509,11 @@ export class EcommerceApi {
|
|
|
510
509
|
|
|
511
510
|
let localVarUseFormData = false;
|
|
512
511
|
|
|
513
|
-
let localVarRequestOptions:
|
|
512
|
+
let localVarRequestOptions: RequestOptions = {
|
|
514
513
|
method: 'POST',
|
|
515
|
-
|
|
514
|
+
params: localVarQueryParameters,
|
|
516
515
|
headers: localVarHeaderParams,
|
|
517
|
-
|
|
516
|
+
url: localVarPath,
|
|
518
517
|
useQuerystring: this._useQuerystring,
|
|
519
518
|
json: true,
|
|
520
519
|
body: ObjectSerializer.serialize(createUpdateProduct, "CreateUpdateProduct")
|
|
@@ -542,7 +541,7 @@ export class EcommerceApi {
|
|
|
542
541
|
localVarRequestOptions.form = localVarFormParams;
|
|
543
542
|
}
|
|
544
543
|
}
|
|
545
|
-
return new Promise<{ response:
|
|
544
|
+
return new Promise<{ response: IncomingMessage; body: CreateProductModel; }>((resolve, reject) => {
|
|
546
545
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
547
546
|
if (error) {
|
|
548
547
|
reject(error);
|
|
@@ -562,7 +561,7 @@ export class EcommerceApi {
|
|
|
562
561
|
* Getting access to Brevo eCommerce.
|
|
563
562
|
* @summary Activate the eCommerce app
|
|
564
563
|
*/
|
|
565
|
-
public async ecommerceActivatePost (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
564
|
+
public async ecommerceActivatePost (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
|
|
566
565
|
const localVarPath = this.basePath + '/ecommerce/activate';
|
|
567
566
|
let localVarQueryParameters: any = {};
|
|
568
567
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -579,11 +578,11 @@ export class EcommerceApi {
|
|
|
579
578
|
|
|
580
579
|
let localVarUseFormData = false;
|
|
581
580
|
|
|
582
|
-
let localVarRequestOptions:
|
|
581
|
+
let localVarRequestOptions: RequestOptions = {
|
|
583
582
|
method: 'POST',
|
|
584
|
-
|
|
583
|
+
params: localVarQueryParameters,
|
|
585
584
|
headers: localVarHeaderParams,
|
|
586
|
-
|
|
585
|
+
url: localVarPath,
|
|
587
586
|
useQuerystring: this._useQuerystring,
|
|
588
587
|
json: true,
|
|
589
588
|
};
|
|
@@ -610,7 +609,7 @@ export class EcommerceApi {
|
|
|
610
609
|
localVarRequestOptions.form = localVarFormParams;
|
|
611
610
|
}
|
|
612
611
|
}
|
|
613
|
-
return new Promise<{ response:
|
|
612
|
+
return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
614
613
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
615
614
|
if (error) {
|
|
616
615
|
reject(error);
|
|
@@ -631,7 +630,7 @@ export class EcommerceApi {
|
|
|
631
630
|
* @param conversionSource The Brevo campaign type for which data will be retrieved
|
|
632
631
|
* @param conversionSourceId The Brevo campaign id for which data will be retrieved
|
|
633
632
|
*/
|
|
634
|
-
public async ecommerceAttributionMetricsConversionSourceConversionSourceIdGet (conversionSource: 'email_campaign', conversionSourceId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
633
|
+
public async ecommerceAttributionMetricsConversionSourceConversionSourceIdGet (conversionSource: 'email_campaign', conversionSourceId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: EcommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response; }> {
|
|
635
634
|
const localVarPath = this.basePath + '/ecommerce/attribution/metrics/{conversionSource}/{conversionSourceId}'
|
|
636
635
|
.replace('{' + 'conversionSource' + '}', encodeURIComponent(String(conversionSource)))
|
|
637
636
|
.replace('{' + 'conversionSourceId' + '}', encodeURIComponent(String(conversionSourceId)));
|
|
@@ -660,11 +659,11 @@ export class EcommerceApi {
|
|
|
660
659
|
|
|
661
660
|
let localVarUseFormData = false;
|
|
662
661
|
|
|
663
|
-
let localVarRequestOptions:
|
|
662
|
+
let localVarRequestOptions: RequestOptions = {
|
|
664
663
|
method: 'GET',
|
|
665
|
-
|
|
664
|
+
params: localVarQueryParameters,
|
|
666
665
|
headers: localVarHeaderParams,
|
|
667
|
-
|
|
666
|
+
url: localVarPath,
|
|
668
667
|
useQuerystring: this._useQuerystring,
|
|
669
668
|
json: true,
|
|
670
669
|
};
|
|
@@ -691,7 +690,7 @@ export class EcommerceApi {
|
|
|
691
690
|
localVarRequestOptions.form = localVarFormParams;
|
|
692
691
|
}
|
|
693
692
|
}
|
|
694
|
-
return new Promise<{ response:
|
|
693
|
+
return new Promise<{ response: IncomingMessage; body: EcommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response; }>((resolve, reject) => {
|
|
695
694
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
696
695
|
if (error) {
|
|
697
696
|
reject(error);
|
|
@@ -714,7 +713,7 @@ export class EcommerceApi {
|
|
|
714
713
|
* @param periodTo When getting metrics for a specific period, define the end datetime in RFC3339 format
|
|
715
714
|
* @param emailCampaignId The email campaign id(s) to get metrics for
|
|
716
715
|
*/
|
|
717
|
-
public async ecommerceAttributionMetricsGet (periodFrom?: Date, periodTo?: Date, emailCampaignId?: Array<number>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
716
|
+
public async ecommerceAttributionMetricsGet (periodFrom?: Date, periodTo?: Date, emailCampaignId?: Array<number>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: EcommerceAttributionMetricsGet200Response; }> {
|
|
718
717
|
const localVarPath = this.basePath + '/ecommerce/attribution/metrics';
|
|
719
718
|
let localVarQueryParameters: any = {};
|
|
720
719
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -743,11 +742,11 @@ export class EcommerceApi {
|
|
|
743
742
|
|
|
744
743
|
let localVarUseFormData = false;
|
|
745
744
|
|
|
746
|
-
let localVarRequestOptions:
|
|
745
|
+
let localVarRequestOptions: RequestOptions = {
|
|
747
746
|
method: 'GET',
|
|
748
|
-
|
|
747
|
+
params: localVarQueryParameters,
|
|
749
748
|
headers: localVarHeaderParams,
|
|
750
|
-
|
|
749
|
+
url: localVarPath,
|
|
751
750
|
useQuerystring: this._useQuerystring,
|
|
752
751
|
json: true,
|
|
753
752
|
};
|
|
@@ -774,7 +773,7 @@ export class EcommerceApi {
|
|
|
774
773
|
localVarRequestOptions.form = localVarFormParams;
|
|
775
774
|
}
|
|
776
775
|
}
|
|
777
|
-
return new Promise<{ response:
|
|
776
|
+
return new Promise<{ response: IncomingMessage; body: EcommerceAttributionMetricsGet200Response; }>((resolve, reject) => {
|
|
778
777
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
779
778
|
if (error) {
|
|
780
779
|
reject(error);
|
|
@@ -796,7 +795,7 @@ export class EcommerceApi {
|
|
|
796
795
|
* @param conversionSource The Brevo campaign type for which data will be retrieved
|
|
797
796
|
* @param conversionSourceId The Brevo campaign id for which data will be retrieved
|
|
798
797
|
*/
|
|
799
|
-
public async ecommerceAttributionProductsConversionSourceConversionSourceIdGet (conversionSource: 'email_campaign', conversionSourceId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
798
|
+
public async ecommerceAttributionProductsConversionSourceConversionSourceIdGet (conversionSource: 'email_campaign', conversionSourceId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: EcommerceAttributionProductsConversionSourceConversionSourceIdGet200Response; }> {
|
|
800
799
|
const localVarPath = this.basePath + '/ecommerce/attribution/products/{conversionSource}/{conversionSourceId}'
|
|
801
800
|
.replace('{' + 'conversionSource' + '}', encodeURIComponent(String(conversionSource)))
|
|
802
801
|
.replace('{' + 'conversionSourceId' + '}', encodeURIComponent(String(conversionSourceId)));
|
|
@@ -825,11 +824,11 @@ export class EcommerceApi {
|
|
|
825
824
|
|
|
826
825
|
let localVarUseFormData = false;
|
|
827
826
|
|
|
828
|
-
let localVarRequestOptions:
|
|
827
|
+
let localVarRequestOptions: RequestOptions = {
|
|
829
828
|
method: 'GET',
|
|
830
|
-
|
|
829
|
+
params: localVarQueryParameters,
|
|
831
830
|
headers: localVarHeaderParams,
|
|
832
|
-
|
|
831
|
+
url: localVarPath,
|
|
833
832
|
useQuerystring: this._useQuerystring,
|
|
834
833
|
json: true,
|
|
835
834
|
};
|
|
@@ -856,7 +855,7 @@ export class EcommerceApi {
|
|
|
856
855
|
localVarRequestOptions.form = localVarFormParams;
|
|
857
856
|
}
|
|
858
857
|
}
|
|
859
|
-
return new Promise<{ response:
|
|
858
|
+
return new Promise<{ response: IncomingMessage; body: EcommerceAttributionProductsConversionSourceConversionSourceIdGet200Response; }>((resolve, reject) => {
|
|
860
859
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
861
860
|
if (error) {
|
|
862
861
|
reject(error);
|
|
@@ -876,7 +875,7 @@ export class EcommerceApi {
|
|
|
876
875
|
*
|
|
877
876
|
* @summary Get the ISO 4217 compliant display currency code for your Brevo account
|
|
878
877
|
*/
|
|
879
|
-
public async ecommerceConfigDisplayCurrencyGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
878
|
+
public async ecommerceConfigDisplayCurrencyGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }> {
|
|
880
879
|
const localVarPath = this.basePath + '/ecommerce/config/displayCurrency';
|
|
881
880
|
let localVarQueryParameters: any = {};
|
|
882
881
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -893,11 +892,11 @@ export class EcommerceApi {
|
|
|
893
892
|
|
|
894
893
|
let localVarUseFormData = false;
|
|
895
894
|
|
|
896
|
-
let localVarRequestOptions:
|
|
895
|
+
let localVarRequestOptions: RequestOptions = {
|
|
897
896
|
method: 'GET',
|
|
898
|
-
|
|
897
|
+
params: localVarQueryParameters,
|
|
899
898
|
headers: localVarHeaderParams,
|
|
900
|
-
|
|
899
|
+
url: localVarPath,
|
|
901
900
|
useQuerystring: this._useQuerystring,
|
|
902
901
|
json: true,
|
|
903
902
|
};
|
|
@@ -924,7 +923,7 @@ export class EcommerceApi {
|
|
|
924
923
|
localVarRequestOptions.form = localVarFormParams;
|
|
925
924
|
}
|
|
926
925
|
}
|
|
927
|
-
return new Promise<{ response:
|
|
926
|
+
return new Promise<{ response: IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }>((resolve, reject) => {
|
|
928
927
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
929
928
|
if (error) {
|
|
930
929
|
reject(error);
|
|
@@ -951,7 +950,7 @@ export class EcommerceApi {
|
|
|
951
950
|
* @param modifiedSince Filter (urlencoded) the categories 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.**
|
|
952
951
|
* @param createdSince Filter (urlencoded) the categories 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.**
|
|
953
952
|
*/
|
|
954
|
-
public async getCategories (limit?: number, offset?: number, sort?: 'asc' | 'desc', ids?: Array<string>, name?: string, modifiedSince?: string, createdSince?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
953
|
+
public async getCategories (limit?: number, offset?: number, sort?: 'asc' | 'desc', ids?: Array<string>, name?: string, modifiedSince?: string, createdSince?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetCategories; }> {
|
|
955
954
|
const localVarPath = this.basePath + '/categories';
|
|
956
955
|
let localVarQueryParameters: any = {};
|
|
957
956
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -996,11 +995,11 @@ export class EcommerceApi {
|
|
|
996
995
|
|
|
997
996
|
let localVarUseFormData = false;
|
|
998
997
|
|
|
999
|
-
let localVarRequestOptions:
|
|
998
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1000
999
|
method: 'GET',
|
|
1001
|
-
|
|
1000
|
+
params: localVarQueryParameters,
|
|
1002
1001
|
headers: localVarHeaderParams,
|
|
1003
|
-
|
|
1002
|
+
url: localVarPath,
|
|
1004
1003
|
useQuerystring: this._useQuerystring,
|
|
1005
1004
|
json: true,
|
|
1006
1005
|
};
|
|
@@ -1027,7 +1026,7 @@ export class EcommerceApi {
|
|
|
1027
1026
|
localVarRequestOptions.form = localVarFormParams;
|
|
1028
1027
|
}
|
|
1029
1028
|
}
|
|
1030
|
-
return new Promise<{ response:
|
|
1029
|
+
return new Promise<{ response: IncomingMessage; body: GetCategories; }>((resolve, reject) => {
|
|
1031
1030
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1032
1031
|
if (error) {
|
|
1033
1032
|
reject(error);
|
|
@@ -1048,7 +1047,7 @@ export class EcommerceApi {
|
|
|
1048
1047
|
* @summary Get a category details
|
|
1049
1048
|
* @param id Category ID
|
|
1050
1049
|
*/
|
|
1051
|
-
public async getCategoryInfo (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1050
|
+
public async getCategoryInfo (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetCategoryDetails; }> {
|
|
1052
1051
|
const localVarPath = this.basePath + '/categories/{id}'
|
|
1053
1052
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
1054
1053
|
let localVarQueryParameters: any = {};
|
|
@@ -1071,11 +1070,11 @@ export class EcommerceApi {
|
|
|
1071
1070
|
|
|
1072
1071
|
let localVarUseFormData = false;
|
|
1073
1072
|
|
|
1074
|
-
let localVarRequestOptions:
|
|
1073
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1075
1074
|
method: 'GET',
|
|
1076
|
-
|
|
1075
|
+
params: localVarQueryParameters,
|
|
1077
1076
|
headers: localVarHeaderParams,
|
|
1078
|
-
|
|
1077
|
+
url: localVarPath,
|
|
1079
1078
|
useQuerystring: this._useQuerystring,
|
|
1080
1079
|
json: true,
|
|
1081
1080
|
};
|
|
@@ -1102,7 +1101,7 @@ export class EcommerceApi {
|
|
|
1102
1101
|
localVarRequestOptions.form = localVarFormParams;
|
|
1103
1102
|
}
|
|
1104
1103
|
}
|
|
1105
|
-
return new Promise<{ response:
|
|
1104
|
+
return new Promise<{ response: IncomingMessage; body: GetCategoryDetails; }>((resolve, reject) => {
|
|
1106
1105
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1107
1106
|
if (error) {
|
|
1108
1107
|
reject(error);
|
|
@@ -1127,7 +1126,7 @@ export class EcommerceApi {
|
|
|
1127
1126
|
* @param modifiedSince Filter (urlencoded) the orders 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.**
|
|
1128
1127
|
* @param createdSince Filter (urlencoded) the orders 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.**
|
|
1129
1128
|
*/
|
|
1130
|
-
public async getOrders (limit?: number, offset?: number, sort?: 'asc' | 'desc', modifiedSince?: string, createdSince?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1129
|
+
public async getOrders (limit?: number, offset?: number, sort?: 'asc' | 'desc', modifiedSince?: string, createdSince?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetOrders; }> {
|
|
1131
1130
|
const localVarPath = this.basePath + '/orders';
|
|
1132
1131
|
let localVarQueryParameters: any = {};
|
|
1133
1132
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1164,11 +1163,11 @@ export class EcommerceApi {
|
|
|
1164
1163
|
|
|
1165
1164
|
let localVarUseFormData = false;
|
|
1166
1165
|
|
|
1167
|
-
let localVarRequestOptions:
|
|
1166
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1168
1167
|
method: 'GET',
|
|
1169
|
-
|
|
1168
|
+
params: localVarQueryParameters,
|
|
1170
1169
|
headers: localVarHeaderParams,
|
|
1171
|
-
|
|
1170
|
+
url: localVarPath,
|
|
1172
1171
|
useQuerystring: this._useQuerystring,
|
|
1173
1172
|
json: true,
|
|
1174
1173
|
};
|
|
@@ -1195,7 +1194,7 @@ export class EcommerceApi {
|
|
|
1195
1194
|
localVarRequestOptions.form = localVarFormParams;
|
|
1196
1195
|
}
|
|
1197
1196
|
}
|
|
1198
|
-
return new Promise<{ response:
|
|
1197
|
+
return new Promise<{ response: IncomingMessage; body: GetOrders; }>((resolve, reject) => {
|
|
1199
1198
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1200
1199
|
if (error) {
|
|
1201
1200
|
reject(error);
|
|
@@ -1216,7 +1215,7 @@ export class EcommerceApi {
|
|
|
1216
1215
|
* @summary Get a product\'s details
|
|
1217
1216
|
* @param id Product ID
|
|
1218
1217
|
*/
|
|
1219
|
-
public async getProductInfo (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1218
|
+
public async getProductInfo (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetProductDetails; }> {
|
|
1220
1219
|
const localVarPath = this.basePath + '/products/{id}'
|
|
1221
1220
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
1222
1221
|
let localVarQueryParameters: any = {};
|
|
@@ -1239,11 +1238,11 @@ export class EcommerceApi {
|
|
|
1239
1238
|
|
|
1240
1239
|
let localVarUseFormData = false;
|
|
1241
1240
|
|
|
1242
|
-
let localVarRequestOptions:
|
|
1241
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1243
1242
|
method: 'GET',
|
|
1244
|
-
|
|
1243
|
+
params: localVarQueryParameters,
|
|
1245
1244
|
headers: localVarHeaderParams,
|
|
1246
|
-
|
|
1245
|
+
url: localVarPath,
|
|
1247
1246
|
useQuerystring: this._useQuerystring,
|
|
1248
1247
|
json: true,
|
|
1249
1248
|
};
|
|
@@ -1270,7 +1269,7 @@ export class EcommerceApi {
|
|
|
1270
1269
|
localVarRequestOptions.form = localVarFormParams;
|
|
1271
1270
|
}
|
|
1272
1271
|
}
|
|
1273
|
-
return new Promise<{ response:
|
|
1272
|
+
return new Promise<{ response: IncomingMessage; body: GetProductDetails; }>((resolve, reject) => {
|
|
1274
1273
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1275
1274
|
if (error) {
|
|
1276
1275
|
reject(error);
|
|
@@ -1304,7 +1303,7 @@ export class EcommerceApi {
|
|
|
1304
1303
|
* @param modifiedSince Filter (urlencoded) the orders 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.**
|
|
1305
1304
|
* @param createdSince Filter (urlencoded) the orders 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.**
|
|
1306
1305
|
*/
|
|
1307
|
-
public async getProducts (limit?: number, offset?: number, sort?: 'asc' | 'desc', ids?: Array<string>, name?: string, priceLte?: number, priceGte?: number, priceLt?: number, priceGt?: number, priceEq?: number, priceNe?: number, categories?: Array<string>, modifiedSince?: string, createdSince?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1306
|
+
public async getProducts (limit?: number, offset?: number, sort?: 'asc' | 'desc', ids?: Array<string>, name?: string, priceLte?: number, priceGte?: number, priceLt?: number, priceGt?: number, priceEq?: number, priceNe?: number, categories?: Array<string>, modifiedSince?: string, createdSince?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetProducts; }> {
|
|
1308
1307
|
const localVarPath = this.basePath + '/products';
|
|
1309
1308
|
let localVarQueryParameters: any = {};
|
|
1310
1309
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1377,11 +1376,11 @@ export class EcommerceApi {
|
|
|
1377
1376
|
|
|
1378
1377
|
let localVarUseFormData = false;
|
|
1379
1378
|
|
|
1380
|
-
let localVarRequestOptions:
|
|
1379
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1381
1380
|
method: 'GET',
|
|
1382
|
-
|
|
1381
|
+
params: localVarQueryParameters,
|
|
1383
1382
|
headers: localVarHeaderParams,
|
|
1384
|
-
|
|
1383
|
+
url: localVarPath,
|
|
1385
1384
|
useQuerystring: this._useQuerystring,
|
|
1386
1385
|
json: true,
|
|
1387
1386
|
};
|
|
@@ -1408,7 +1407,7 @@ export class EcommerceApi {
|
|
|
1408
1407
|
localVarRequestOptions.form = localVarFormParams;
|
|
1409
1408
|
}
|
|
1410
1409
|
}
|
|
1411
|
-
return new Promise<{ response:
|
|
1410
|
+
return new Promise<{ response: IncomingMessage; body: GetProducts; }>((resolve, reject) => {
|
|
1412
1411
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1413
1412
|
if (error) {
|
|
1414
1413
|
reject(error);
|
|
@@ -1429,7 +1428,7 @@ export class EcommerceApi {
|
|
|
1429
1428
|
* @summary Set the ISO 4217 compliant display currency code for your Brevo account
|
|
1430
1429
|
* @param setConfigDisplayCurrency set ISO 4217 compliant display currency code payload
|
|
1431
1430
|
*/
|
|
1432
|
-
public async setConfigDisplayCurrency (setConfigDisplayCurrency: EcommerceConfigDisplayCurrencyGet200Response, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response:
|
|
1431
|
+
public async setConfigDisplayCurrency (setConfigDisplayCurrency: EcommerceConfigDisplayCurrencyGet200Response, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }> {
|
|
1433
1432
|
const localVarPath = this.basePath + '/ecommerce/config/displayCurrency';
|
|
1434
1433
|
let localVarQueryParameters: any = {};
|
|
1435
1434
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1451,11 +1450,11 @@ export class EcommerceApi {
|
|
|
1451
1450
|
|
|
1452
1451
|
let localVarUseFormData = false;
|
|
1453
1452
|
|
|
1454
|
-
let localVarRequestOptions:
|
|
1453
|
+
let localVarRequestOptions: RequestOptions = {
|
|
1455
1454
|
method: 'POST',
|
|
1456
|
-
|
|
1455
|
+
params: localVarQueryParameters,
|
|
1457
1456
|
headers: localVarHeaderParams,
|
|
1458
|
-
|
|
1457
|
+
url: localVarPath,
|
|
1459
1458
|
useQuerystring: this._useQuerystring,
|
|
1460
1459
|
json: true,
|
|
1461
1460
|
body: ObjectSerializer.serialize(setConfigDisplayCurrency, "EcommerceConfigDisplayCurrencyGet200Response")
|
|
@@ -1483,7 +1482,7 @@ export class EcommerceApi {
|
|
|
1483
1482
|
localVarRequestOptions.form = localVarFormParams;
|
|
1484
1483
|
}
|
|
1485
1484
|
}
|
|
1486
|
-
return new Promise<{ response:
|
|
1485
|
+
return new Promise<{ response: IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }>((resolve, reject) => {
|
|
1487
1486
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1488
1487
|
if (error) {
|
|
1489
1488
|
reject(error);
|