@getbrevo/brevo 2.0.0-beta.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +396 -0
- package/.openapi-generator/VERSION +1 -0
- package/README.md +37 -646
- package/api/apis.ts +5 -3
- package/api/contactsApi.ts +12 -2
- package/api/couponsApi.ts +7 -7
- package/api/dealsApi.ts +1 -1
- package/api/ecommerceApi.ts +360 -2
- package/api/eventsApi.ts +169 -0
- package/api/masterAccountApi.ts +1056 -143
- package/api/paymentsApi.ts +321 -0
- package/api/tasksApi.ts +1 -1
- package/api/userApi.ts +2 -2
- package/api/whatsAppCampaignsApi.ts +6 -1
- package/dist/api/accountApi.d.ts +46 -0
- package/dist/api/accountApi.js +212 -0
- package/dist/api/accountApi.js.map +1 -0
- package/dist/api/apis.d.ts +64 -0
- package/dist/api/apis.js +83 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/companiesApi.d.ts +91 -0
- package/dist/api/companiesApi.js +562 -0
- package/dist/api/companiesApi.js.map +1 -0
- package/dist/api/contactsApi.d.ts +287 -0
- package/dist/api/contactsApi.js +2125 -0
- package/dist/api/contactsApi.js.map +1 -0
- package/dist/api/conversationsApi.d.ts +106 -0
- package/dist/api/conversationsApi.js +679 -0
- package/dist/api/conversationsApi.js.map +1 -0
- package/dist/api/couponsApi.d.ts +74 -0
- package/dist/api/couponsApi.js +417 -0
- package/dist/api/couponsApi.js.map +1 -0
- package/dist/api/dealsApi.d.ts +116 -0
- package/dist/api/dealsApi.js +754 -0
- package/dist/api/dealsApi.js.map +1 -0
- package/dist/api/domainsApi.d.ts +73 -0
- package/dist/api/domainsApi.js +401 -0
- package/dist/api/domainsApi.js.map +1 -0
- package/dist/api/ecommerceApi.d.ts +163 -0
- package/dist/api/ecommerceApi.js +1148 -0
- package/dist/api/ecommerceApi.js.map +1 -0
- package/dist/api/emailCampaignsApi.d.ts +146 -0
- package/dist/api/emailCampaignsApi.js +982 -0
- package/dist/api/emailCampaignsApi.js.map +1 -0
- package/dist/api/eventsApi.d.ts +37 -0
- package/dist/api/eventsApi.js +140 -0
- package/dist/api/eventsApi.js.map +1 -0
- package/dist/api/externalFeedsApi.d.ts +73 -0
- package/dist/api/externalFeedsApi.js +428 -0
- package/dist/api/externalFeedsApi.js.map +1 -0
- package/dist/api/filesApi.d.ts +71 -0
- package/dist/api/filesApi.js +437 -0
- package/dist/api/filesApi.js.map +1 -0
- package/dist/api/inboundParsingApi.d.ts +55 -0
- package/dist/api/inboundParsingApi.js +289 -0
- package/dist/api/inboundParsingApi.js.map +1 -0
- package/dist/api/masterAccountApi.d.ts +226 -0
- package/dist/api/masterAccountApi.js +1565 -0
- package/dist/api/masterAccountApi.js.map +1 -0
- package/dist/api/notesApi.d.ts +71 -0
- package/dist/api/notesApi.js +428 -0
- package/dist/api/notesApi.js.map +1 -0
- package/dist/api/paymentsApi.d.ts +55 -0
- package/dist/api/paymentsApi.js +274 -0
- package/dist/api/paymentsApi.js.map +1 -0
- package/dist/api/processApi.d.ts +46 -0
- package/dist/api/processApi.js +213 -0
- package/dist/api/processApi.js.map +1 -0
- package/dist/api/resellerApi.d.ts +171 -0
- package/dist/api/resellerApi.js +1177 -0
- package/dist/api/resellerApi.js.map +1 -0
- package/dist/api/sMSCampaignsApi.d.ts +118 -0
- package/dist/api/sMSCampaignsApi.js +769 -0
- package/dist/api/sMSCampaignsApi.js.map +1 -0
- package/dist/api/sendersApi.d.ts +91 -0
- package/dist/api/sendersApi.js +537 -0
- package/dist/api/sendersApi.js.map +1 -0
- package/dist/api/tasksApi.d.ts +82 -0
- package/dist/api/tasksApi.js +509 -0
- package/dist/api/tasksApi.js.map +1 -0
- package/dist/api/transactionalEmailsApi.d.ts +223 -0
- package/dist/api/transactionalEmailsApi.js +1660 -0
- package/dist/api/transactionalEmailsApi.js.map +1 -0
- package/dist/api/transactionalSMSApi.d.ts +65 -0
- package/dist/api/transactionalSMSApi.js +384 -0
- package/dist/api/transactionalSMSApi.js.map +1 -0
- package/dist/api/transactionalWhatsAppApi.d.ts +47 -0
- package/dist/api/transactionalWhatsAppApi.js +228 -0
- package/dist/api/transactionalWhatsAppApi.js.map +1 -0
- package/dist/api/userApi.d.ts +81 -0
- package/dist/api/userApi.js +476 -0
- package/dist/api/userApi.js.map +1 -0
- package/dist/api/webhooksApi.d.ts +83 -0
- package/dist/api/webhooksApi.js +480 -0
- package/dist/api/webhooksApi.js.map +1 -0
- package/dist/api/whatsAppCampaignsApi.d.ts +108 -0
- package/dist/api/whatsAppCampaignsApi.js +696 -0
- package/dist/api/whatsAppCampaignsApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +20 -0
- package/dist/api.js.map +1 -0
- package/dist/model/abTestCampaignResult.d.ts +36 -0
- package/dist/model/abTestCampaignResult.js +68 -0
- package/dist/model/abTestCampaignResult.js.map +1 -0
- package/dist/model/abTestCampaignResultClickedLinks.d.ts +16 -0
- package/dist/model/abTestCampaignResultClickedLinks.js +23 -0
- package/dist/model/abTestCampaignResultClickedLinks.js.map +1 -0
- package/dist/model/abTestCampaignResultStatistics.d.ts +20 -0
- package/dist/model/abTestCampaignResultStatistics.js +43 -0
- package/dist/model/abTestCampaignResultStatistics.js.map +1 -0
- package/dist/model/abTestVersionClicksInner.d.ts +16 -0
- package/dist/model/abTestVersionClicksInner.js +28 -0
- package/dist/model/abTestVersionClicksInner.js.map +1 -0
- package/dist/model/abTestVersionStats.d.ts +15 -0
- package/dist/model/abTestVersionStats.js +23 -0
- package/dist/model/abTestVersionStats.js.map +1 -0
- package/dist/model/addChildDomain.d.ts +14 -0
- package/dist/model/addChildDomain.js +18 -0
- package/dist/model/addChildDomain.js.map +1 -0
- package/dist/model/addContactToList.d.ts +15 -0
- package/dist/model/addContactToList.js +23 -0
- package/dist/model/addContactToList.js.map +1 -0
- package/dist/model/addCredits.d.ts +15 -0
- package/dist/model/addCredits.js +23 -0
- package/dist/model/addCredits.js.map +1 -0
- package/dist/model/authenticateDomainModel.d.ts +15 -0
- package/dist/model/authenticateDomainModel.js +23 -0
- package/dist/model/authenticateDomainModel.js.map +1 -0
- package/dist/model/blockDomain.d.ts +14 -0
- package/dist/model/blockDomain.js +18 -0
- package/dist/model/blockDomain.js.map +1 -0
- package/dist/model/cart.d.ts +20 -0
- package/dist/model/cart.js +29 -0
- package/dist/model/cart.js.map +1 -0
- package/dist/model/companiesIdPatchRequest.d.ts +16 -0
- package/dist/model/companiesIdPatchRequest.js +28 -0
- package/dist/model/companiesIdPatchRequest.js.map +1 -0
- package/dist/model/companiesLinkUnlinkIdPatchRequest.d.ts +17 -0
- package/dist/model/companiesLinkUnlinkIdPatchRequest.js +33 -0
- package/dist/model/companiesLinkUnlinkIdPatchRequest.js.map +1 -0
- package/dist/model/companiesList.d.ts +15 -0
- package/dist/model/companiesList.js +18 -0
- package/dist/model/companiesList.js.map +1 -0
- package/dist/model/companiesPost200Response.d.ts +14 -0
- package/dist/model/companiesPost200Response.js +18 -0
- package/dist/model/companiesPost200Response.js.map +1 -0
- package/dist/model/companiesPostRequest.d.ts +16 -0
- package/dist/model/companiesPostRequest.js +28 -0
- package/dist/model/companiesPostRequest.js.map +1 -0
- package/dist/model/company.d.ts +17 -0
- package/dist/model/company.js +33 -0
- package/dist/model/company.js.map +1 -0
- package/dist/model/companyAttributesInner.d.ts +18 -0
- package/dist/model/companyAttributesInner.js +38 -0
- package/dist/model/companyAttributesInner.js.map +1 -0
- package/dist/model/componentItems.d.ts +15 -0
- package/dist/model/componentItems.js +23 -0
- package/dist/model/componentItems.js.map +1 -0
- package/dist/model/configuration.d.ts +14 -0
- package/dist/model/configuration.js +18 -0
- package/dist/model/configuration.js.map +1 -0
- package/dist/model/conversationsAgentOnlinePingPostRequest.d.ts +17 -0
- package/dist/model/conversationsAgentOnlinePingPostRequest.js +33 -0
- package/dist/model/conversationsAgentOnlinePingPostRequest.js.map +1 -0
- package/dist/model/conversationsMessage.d.ts +30 -0
- package/dist/model/conversationsMessage.js +70 -0
- package/dist/model/conversationsMessage.js.map +1 -0
- package/dist/model/conversationsMessageFile.d.ts +19 -0
- package/dist/model/conversationsMessageFile.js +38 -0
- package/dist/model/conversationsMessageFile.js.map +1 -0
- package/dist/model/conversationsMessageFileImageInfo.d.ts +16 -0
- package/dist/model/conversationsMessageFileImageInfo.js +28 -0
- package/dist/model/conversationsMessageFileImageInfo.js.map +1 -0
- package/dist/model/conversationsMessagesIdPutRequest.d.ts +14 -0
- package/dist/model/conversationsMessagesIdPutRequest.js +18 -0
- package/dist/model/conversationsMessagesIdPutRequest.js.map +1 -0
- package/dist/model/conversationsMessagesPostRequest.d.ts +19 -0
- package/dist/model/conversationsMessagesPostRequest.js +43 -0
- package/dist/model/conversationsMessagesPostRequest.js.map +1 -0
- package/dist/model/conversationsPushedMessagesIdPutRequest.d.ts +14 -0
- package/dist/model/conversationsPushedMessagesIdPutRequest.js +18 -0
- package/dist/model/conversationsPushedMessagesIdPutRequest.js.map +1 -0
- package/dist/model/conversationsPushedMessagesPostRequest.d.ts +17 -0
- package/dist/model/conversationsPushedMessagesPostRequest.js +33 -0
- package/dist/model/conversationsPushedMessagesPostRequest.js.map +1 -0
- package/dist/model/conversionSourceMetrics.d.ts +23 -0
- package/dist/model/conversionSourceMetrics.js +44 -0
- package/dist/model/conversionSourceMetrics.js.map +1 -0
- package/dist/model/conversionSourceProduct.d.ts +21 -0
- package/dist/model/conversionSourceProduct.js +53 -0
- package/dist/model/conversionSourceProduct.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponse.d.ts +19 -0
- package/dist/model/corporateGroupDetailsResponse.js +28 -0
- package/dist/model/corporateGroupDetailsResponse.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponseGroup.d.ts +16 -0
- package/dist/model/corporateGroupDetailsResponseGroup.js +28 -0
- package/dist/model/corporateGroupDetailsResponseGroup.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponseSubAccountsInner.d.ts +16 -0
- package/dist/model/corporateGroupDetailsResponseSubAccountsInner.js +28 -0
- package/dist/model/corporateGroupDetailsResponseSubAccountsInner.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponseUsersInner.d.ts +16 -0
- package/dist/model/corporateGroupDetailsResponseUsersInner.js +28 -0
- package/dist/model/corporateGroupDetailsResponseUsersInner.js.map +1 -0
- package/dist/model/corporateGroupPost201Response.d.ts +14 -0
- package/dist/model/corporateGroupPost201Response.js +18 -0
- package/dist/model/corporateGroupPost201Response.js.map +1 -0
- package/dist/model/corporateGroupPostRequest.d.ts +15 -0
- package/dist/model/corporateGroupPostRequest.js +23 -0
- package/dist/model/corporateGroupPostRequest.js.map +1 -0
- package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.d.ts +14 -0
- package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.js +18 -0
- package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.js.map +1 -0
- package/dist/model/corporateUserInvitationActionEmailPut200Response.d.ts +14 -0
- package/dist/model/corporateUserInvitationActionEmailPut200Response.js +18 -0
- package/dist/model/corporateUserInvitationActionEmailPut200Response.js.map +1 -0
- package/dist/model/createApiKeyRequest.d.ts +15 -0
- package/dist/model/createApiKeyRequest.js +23 -0
- package/dist/model/createApiKeyRequest.js.map +1 -0
- package/dist/model/createApiKeyResponse.d.ts +15 -0
- package/dist/model/createApiKeyResponse.js +23 -0
- package/dist/model/createApiKeyResponse.js.map +1 -0
- package/dist/model/createAttribute.d.ts +28 -0
- package/dist/model/createAttribute.js +44 -0
- package/dist/model/createAttribute.js.map +1 -0
- package/dist/model/createAttributeEnumerationInner.d.ts +15 -0
- package/dist/model/createAttributeEnumerationInner.js +23 -0
- package/dist/model/createAttributeEnumerationInner.js.map +1 -0
- package/dist/model/createCategoryModel.d.ts +14 -0
- package/dist/model/createCategoryModel.js +18 -0
- package/dist/model/createCategoryModel.js.map +1 -0
- package/dist/model/createChild.d.ts +29 -0
- package/dist/model/createChild.js +54 -0
- package/dist/model/createChild.js.map +1 -0
- package/dist/model/createContact.d.ts +21 -0
- package/dist/model/createContact.js +56 -0
- package/dist/model/createContact.js.map +1 -0
- package/dist/model/createCouponCollection201Response.d.ts +14 -0
- package/dist/model/createCouponCollection201Response.js +18 -0
- package/dist/model/createCouponCollection201Response.js.map +1 -0
- package/dist/model/createCouponCollectionRequest.d.ts +18 -0
- package/dist/model/createCouponCollectionRequest.js +38 -0
- package/dist/model/createCouponCollectionRequest.js.map +1 -0
- package/dist/model/createCouponsRequest.d.ts +15 -0
- package/dist/model/createCouponsRequest.js +23 -0
- package/dist/model/createCouponsRequest.js.map +1 -0
- package/dist/model/createDoiContact.d.ts +19 -0
- package/dist/model/createDoiContact.js +43 -0
- package/dist/model/createDoiContact.js.map +1 -0
- package/dist/model/createDomain.d.ts +14 -0
- package/dist/model/createDomain.js +18 -0
- package/dist/model/createDomain.js.map +1 -0
- package/dist/model/createDomainModel.d.ts +19 -0
- package/dist/model/createDomainModel.js +38 -0
- package/dist/model/createDomainModel.js.map +1 -0
- package/dist/model/createDomainModelDnsRecords.d.ts +17 -0
- package/dist/model/createDomainModelDnsRecords.js +28 -0
- package/dist/model/createDomainModelDnsRecords.js.map +1 -0
- package/dist/model/createDomainModelDnsRecordsDkimRecord.d.ts +17 -0
- package/dist/model/createDomainModelDnsRecordsDkimRecord.js +33 -0
- package/dist/model/createDomainModelDnsRecordsDkimRecord.js.map +1 -0
- package/dist/model/createEmailCampaign.d.ts +52 -0
- package/dist/model/createEmailCampaign.js +181 -0
- package/dist/model/createEmailCampaign.js.map +1 -0
- package/dist/model/createEmailCampaignRecipients.d.ts +16 -0
- package/dist/model/createEmailCampaignRecipients.js +28 -0
- package/dist/model/createEmailCampaignRecipients.js.map +1 -0
- package/dist/model/createEmailCampaignSender.d.ts +16 -0
- package/dist/model/createEmailCampaignSender.js +28 -0
- package/dist/model/createEmailCampaignSender.js.map +1 -0
- package/dist/model/createExternalFeed.d.ts +30 -0
- package/dist/model/createExternalFeed.js +70 -0
- package/dist/model/createExternalFeed.js.map +1 -0
- package/dist/model/createExternalFeed201Response.d.ts +14 -0
- package/dist/model/createExternalFeed201Response.js +18 -0
- package/dist/model/createExternalFeed201Response.js.map +1 -0
- package/dist/model/createList.d.ts +15 -0
- package/dist/model/createList.js +23 -0
- package/dist/model/createList.js.map +1 -0
- package/dist/model/createModel.d.ts +14 -0
- package/dist/model/createModel.js +18 -0
- package/dist/model/createModel.js.map +1 -0
- package/dist/model/createPaymentRequest.d.ts +21 -0
- package/dist/model/createPaymentRequest.js +38 -0
- package/dist/model/createPaymentRequest.js.map +1 -0
- package/dist/model/createProductModel.d.ts +14 -0
- package/dist/model/createProductModel.js +18 -0
- package/dist/model/createProductModel.js.map +1 -0
- package/dist/model/createReseller.d.ts +15 -0
- package/dist/model/createReseller.js +23 -0
- package/dist/model/createReseller.js.map +1 -0
- package/dist/model/createSender.d.ts +17 -0
- package/dist/model/createSender.js +28 -0
- package/dist/model/createSender.js.map +1 -0
- package/dist/model/createSenderIpsInner.d.ts +16 -0
- package/dist/model/createSenderIpsInner.js +28 -0
- package/dist/model/createSenderIpsInner.js.map +1 -0
- package/dist/model/createSenderModel.d.ts +16 -0
- package/dist/model/createSenderModel.js +28 -0
- package/dist/model/createSenderModel.js.map +1 -0
- package/dist/model/createSmsCampaign.d.ts +22 -0
- package/dist/model/createSmsCampaign.js +56 -0
- package/dist/model/createSmsCampaign.js.map +1 -0
- package/dist/model/createSmsCampaignRecipients.d.ts +15 -0
- package/dist/model/createSmsCampaignRecipients.js +23 -0
- package/dist/model/createSmsCampaignRecipients.js.map +1 -0
- package/dist/model/createSmtpEmail.d.ts +15 -0
- package/dist/model/createSmtpEmail.js +23 -0
- package/dist/model/createSmtpEmail.js.map +1 -0
- package/dist/model/createSmtpTemplate.d.ts +24 -0
- package/dist/model/createSmtpTemplate.js +63 -0
- package/dist/model/createSmtpTemplate.js.map +1 -0
- package/dist/model/createSmtpTemplateSender.d.ts +16 -0
- package/dist/model/createSmtpTemplateSender.js +28 -0
- package/dist/model/createSmtpTemplateSender.js.map +1 -0
- package/dist/model/createSubAccount.d.ts +27 -0
- package/dist/model/createSubAccount.js +44 -0
- package/dist/model/createSubAccount.js.map +1 -0
- package/dist/model/createSubAccountResponse.d.ts +14 -0
- package/dist/model/createSubAccountResponse.js +18 -0
- package/dist/model/createSubAccountResponse.js.map +1 -0
- package/dist/model/createUpdateBatchCategory.d.ts +16 -0
- package/dist/model/createUpdateBatchCategory.js +23 -0
- package/dist/model/createUpdateBatchCategory.js.map +1 -0
- package/dist/model/createUpdateBatchCategoryModel.d.ts +15 -0
- package/dist/model/createUpdateBatchCategoryModel.js +23 -0
- package/dist/model/createUpdateBatchCategoryModel.js.map +1 -0
- package/dist/model/createUpdateBatchProducts.d.ts +16 -0
- package/dist/model/createUpdateBatchProducts.js +23 -0
- package/dist/model/createUpdateBatchProducts.js.map +1 -0
- package/dist/model/createUpdateBatchProductsModel.d.ts +15 -0
- package/dist/model/createUpdateBatchProductsModel.js +23 -0
- package/dist/model/createUpdateBatchProductsModel.js.map +1 -0
- package/dist/model/createUpdateCategories.d.ts +17 -0
- package/dist/model/createUpdateCategories.js +33 -0
- package/dist/model/createUpdateCategories.js.map +1 -0
- package/dist/model/createUpdateCategory.d.ts +18 -0
- package/dist/model/createUpdateCategory.js +41 -0
- package/dist/model/createUpdateCategory.js.map +1 -0
- package/dist/model/createUpdateContactModel.d.ts +14 -0
- package/dist/model/createUpdateContactModel.js +18 -0
- package/dist/model/createUpdateContactModel.js.map +1 -0
- package/dist/model/createUpdateFolder.d.ts +14 -0
- package/dist/model/createUpdateFolder.js +18 -0
- package/dist/model/createUpdateFolder.js.map +1 -0
- package/dist/model/createUpdateProduct.d.ts +26 -0
- package/dist/model/createUpdateProduct.js +71 -0
- package/dist/model/createUpdateProduct.js.map +1 -0
- package/dist/model/createUpdateProducts.d.ts +25 -0
- package/dist/model/createUpdateProducts.js +63 -0
- package/dist/model/createUpdateProducts.js.map +1 -0
- package/dist/model/createWebhook.d.ts +49 -0
- package/dist/model/createWebhook.js +84 -0
- package/dist/model/createWebhook.js.map +1 -0
- package/dist/model/createWhatsAppCampaign.d.ts +18 -0
- package/dist/model/createWhatsAppCampaign.js +33 -0
- package/dist/model/createWhatsAppCampaign.js.map +1 -0
- package/dist/model/createWhatsAppCampaignRecipients.d.ts +16 -0
- package/dist/model/createWhatsAppCampaignRecipients.js +28 -0
- package/dist/model/createWhatsAppCampaignRecipients.js.map +1 -0
- package/dist/model/createWhatsAppTemplate.d.ts +30 -0
- package/dist/model/createWhatsAppTemplate.js +60 -0
- package/dist/model/createWhatsAppTemplate.js.map +1 -0
- package/dist/model/createdBatchId.d.ts +14 -0
- package/dist/model/createdBatchId.js +18 -0
- package/dist/model/createdBatchId.js.map +1 -0
- package/dist/model/createdProcessId.d.ts +14 -0
- package/dist/model/createdProcessId.js +18 -0
- package/dist/model/createdProcessId.js.map +1 -0
- package/dist/model/crmDealsIdPatchRequest.d.ts +15 -0
- package/dist/model/crmDealsIdPatchRequest.js +23 -0
- package/dist/model/crmDealsIdPatchRequest.js.map +1 -0
- package/dist/model/crmDealsLinkUnlinkIdPatchRequest.d.ts +17 -0
- package/dist/model/crmDealsLinkUnlinkIdPatchRequest.js +33 -0
- package/dist/model/crmDealsLinkUnlinkIdPatchRequest.js.map +1 -0
- package/dist/model/crmDealsPost201Response.d.ts +14 -0
- package/dist/model/crmDealsPost201Response.js +18 -0
- package/dist/model/crmDealsPost201Response.js.map +1 -0
- package/dist/model/crmDealsPostRequest.d.ts +15 -0
- package/dist/model/crmDealsPostRequest.js +23 -0
- package/dist/model/crmDealsPostRequest.js.map +1 -0
- package/dist/model/crmTasksIdPatchRequest.d.ts +23 -0
- package/dist/model/crmTasksIdPatchRequest.js +63 -0
- package/dist/model/crmTasksIdPatchRequest.js.map +1 -0
- package/dist/model/crmTasksPost201Response.d.ts +14 -0
- package/dist/model/crmTasksPost201Response.js +18 -0
- package/dist/model/crmTasksPost201Response.js.map +1 -0
- package/dist/model/crmTasksPostRequest.d.ts +25 -0
- package/dist/model/crmTasksPostRequest.js +68 -0
- package/dist/model/crmTasksPostRequest.js.map +1 -0
- package/dist/model/deal.d.ts +17 -0
- package/dist/model/deal.js +33 -0
- package/dist/model/deal.js.map +1 -0
- package/dist/model/dealAttributesInner.d.ts +18 -0
- package/dist/model/dealAttributesInner.js +38 -0
- package/dist/model/dealAttributesInner.js.map +1 -0
- package/dist/model/dealsList.d.ts +15 -0
- package/dist/model/dealsList.js +18 -0
- package/dist/model/dealsList.js.map +1 -0
- package/dist/model/deleteHardbounces.d.ts +16 -0
- package/dist/model/deleteHardbounces.js +28 -0
- package/dist/model/deleteHardbounces.js.map +1 -0
- package/dist/model/emailExportRecipients.d.ts +27 -0
- package/dist/model/emailExportRecipients.js +36 -0
- package/dist/model/emailExportRecipients.js.map +1 -0
- package/dist/model/errorModel.d.ts +35 -0
- package/dist/model/errorModel.js +44 -0
- package/dist/model/errorModel.js.map +1 -0
- package/dist/model/event.d.ts +19 -0
- package/dist/model/event.js +38 -0
- package/dist/model/event.js.map +1 -0
- package/dist/model/eventIdentifiers.d.ts +18 -0
- package/dist/model/eventIdentifiers.js +38 -0
- package/dist/model/eventIdentifiers.js.map +1 -0
- package/dist/model/exportWebhooksHistory.d.ts +48 -0
- package/dist/model/exportWebhooksHistory.js +90 -0
- package/dist/model/exportWebhooksHistory.js.map +1 -0
- package/dist/model/fileData.d.ts +20 -0
- package/dist/model/fileData.js +48 -0
- package/dist/model/fileData.js.map +1 -0
- package/dist/model/fileDownloadableLink.d.ts +14 -0
- package/dist/model/fileDownloadableLink.js +18 -0
- package/dist/model/fileDownloadableLink.js.map +1 -0
- package/dist/model/getAccount.d.ts +25 -0
- package/dist/model/getAccount.js +53 -0
- package/dist/model/getAccount.js.map +1 -0
- package/dist/model/getAccountActivity.d.ts +15 -0
- package/dist/model/getAccountActivity.js +18 -0
- package/dist/model/getAccountActivity.js.map +1 -0
- package/dist/model/getAccountActivityLogsInner.d.ts +18 -0
- package/dist/model/getAccountActivityLogsInner.js +38 -0
- package/dist/model/getAccountActivityLogsInner.js.map +1 -0
- package/dist/model/getAccountAllOfMarketingAutomation.d.ts +15 -0
- package/dist/model/getAccountAllOfMarketingAutomation.js +23 -0
- package/dist/model/getAccountAllOfMarketingAutomation.js.map +1 -0
- package/dist/model/getAccountAllOfPlan.d.ts +31 -0
- package/dist/model/getAccountAllOfPlan.js +57 -0
- package/dist/model/getAccountAllOfPlan.js.map +1 -0
- package/dist/model/getAccountAllOfRelay.d.ts +16 -0
- package/dist/model/getAccountAllOfRelay.js +23 -0
- package/dist/model/getAccountAllOfRelay.js.map +1 -0
- package/dist/model/getAccountAllOfRelayData.d.ts +16 -0
- package/dist/model/getAccountAllOfRelayData.js +28 -0
- package/dist/model/getAccountAllOfRelayData.js.map +1 -0
- package/dist/model/getAggregatedReport.d.ts +26 -0
- package/dist/model/getAggregatedReport.js +78 -0
- package/dist/model/getAggregatedReport.js.map +1 -0
- package/dist/model/getAllExternalFeeds.d.ts +16 -0
- package/dist/model/getAllExternalFeeds.js +23 -0
- package/dist/model/getAllExternalFeeds.js.map +1 -0
- package/dist/model/getAllExternalFeedsFeedsInner.d.ts +33 -0
- package/dist/model/getAllExternalFeedsFeedsInner.js +81 -0
- package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -0
- package/dist/model/getAttributes.d.ts +15 -0
- package/dist/model/getAttributes.js +18 -0
- package/dist/model/getAttributes.js.map +1 -0
- package/dist/model/getAttributesAttributesInner.d.ts +35 -0
- package/dist/model/getAttributesAttributesInner.js +56 -0
- package/dist/model/getAttributesAttributesInner.js.map +1 -0
- package/dist/model/getAttributesAttributesInnerEnumerationInner.d.ts +15 -0
- package/dist/model/getAttributesAttributesInnerEnumerationInner.js +23 -0
- package/dist/model/getAttributesAttributesInnerEnumerationInner.js.map +1 -0
- package/dist/model/getBlockedDomains.d.ts +14 -0
- package/dist/model/getBlockedDomains.js +18 -0
- package/dist/model/getBlockedDomains.js.map +1 -0
- package/dist/model/getCampaignOverview.d.ts +41 -0
- package/dist/model/getCampaignOverview.js +99 -0
- package/dist/model/getCampaignOverview.js.map +1 -0
- package/dist/model/getCampaignRecipients.d.ts +15 -0
- package/dist/model/getCampaignRecipients.js +23 -0
- package/dist/model/getCampaignRecipients.js.map +1 -0
- package/dist/model/getCampaignStats.d.ts +29 -0
- package/dist/model/getCampaignStats.js +93 -0
- package/dist/model/getCampaignStats.js.map +1 -0
- package/dist/model/getCategories.d.ts +16 -0
- package/dist/model/getCategories.js +23 -0
- package/dist/model/getCategories.js.map +1 -0
- package/dist/model/getCategoryDetails.d.ts +19 -0
- package/dist/model/getCategoryDetails.js +43 -0
- package/dist/model/getCategoryDetails.js.map +1 -0
- package/dist/model/getChildAccountCreationStatus.d.ts +14 -0
- package/dist/model/getChildAccountCreationStatus.js +18 -0
- package/dist/model/getChildAccountCreationStatus.js.map +1 -0
- package/dist/model/getChildDomain.d.ts +15 -0
- package/dist/model/getChildDomain.js +23 -0
- package/dist/model/getChildDomain.js.map +1 -0
- package/dist/model/getChildInfo.d.ts +25 -0
- package/dist/model/getChildInfo.js +58 -0
- package/dist/model/getChildInfo.js.map +1 -0
- package/dist/model/getChildInfoAllOfApiKeys.d.ts +17 -0
- package/dist/model/getChildInfoAllOfApiKeys.js +23 -0
- package/dist/model/getChildInfoAllOfApiKeys.js.map +1 -0
- package/dist/model/getChildInfoAllOfApiKeysV2.d.ts +15 -0
- package/dist/model/getChildInfoAllOfApiKeysV2.js +23 -0
- package/dist/model/getChildInfoAllOfApiKeysV2.js.map +1 -0
- package/dist/model/getChildInfoAllOfApiKeysV3.d.ts +15 -0
- package/dist/model/getChildInfoAllOfApiKeysV3.js +23 -0
- package/dist/model/getChildInfoAllOfApiKeysV3.js.map +1 -0
- package/dist/model/getChildInfoAllOfCredits.d.ts +15 -0
- package/dist/model/getChildInfoAllOfCredits.js +23 -0
- package/dist/model/getChildInfoAllOfCredits.js.map +1 -0
- package/dist/model/getChildInfoAllOfStatistics.d.ts +16 -0
- package/dist/model/getChildInfoAllOfStatistics.js +28 -0
- package/dist/model/getChildInfoAllOfStatistics.js.map +1 -0
- package/dist/model/getChildrenList.d.ts +16 -0
- package/dist/model/getChildrenList.js +23 -0
- package/dist/model/getChildrenList.js.map +1 -0
- package/dist/model/getChildrenListChildrenInner.d.ts +26 -0
- package/dist/model/getChildrenListChildrenInner.js +63 -0
- package/dist/model/getChildrenListChildrenInner.js.map +1 -0
- package/dist/model/getClient.d.ts +17 -0
- package/dist/model/getClient.js +33 -0
- package/dist/model/getClient.js.map +1 -0
- package/dist/model/getContactCampaignStats.d.ts +27 -0
- package/dist/model/getContactCampaignStats.js +58 -0
- package/dist/model/getContactCampaignStats.js.map +1 -0
- package/dist/model/getContactCampaignStatsClickedInner.d.ts +16 -0
- package/dist/model/getContactCampaignStatsClickedInner.js +23 -0
- package/dist/model/getContactCampaignStatsClickedInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsClickedInnerLinksInner.d.ts +17 -0
- package/dist/model/getContactCampaignStatsClickedInnerLinksInner.js +33 -0
- package/dist/model/getContactCampaignStatsClickedInnerLinksInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsMessagesSentInner.d.ts +15 -0
- package/dist/model/getContactCampaignStatsMessagesSentInner.js +23 -0
- package/dist/model/getContactCampaignStatsMessagesSentInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsOpenedInner.d.ts +17 -0
- package/dist/model/getContactCampaignStatsOpenedInner.js +33 -0
- package/dist/model/getContactCampaignStatsOpenedInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsTransacAttributesInner.d.ts +16 -0
- package/dist/model/getContactCampaignStatsTransacAttributesInner.js +28 -0
- package/dist/model/getContactCampaignStatsTransacAttributesInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +17 -0
- package/dist/model/getContactCampaignStatsUnsubscriptions.js +23 -0
- package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.d.ts +15 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.js +23 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.d.ts +16 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.js +28 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.js.map +1 -0
- package/dist/model/getContactDetails.d.ts +22 -0
- package/dist/model/getContactDetails.js +58 -0
- package/dist/model/getContactDetails.js.map +1 -0
- package/dist/model/getContacts.d.ts +16 -0
- package/dist/model/getContacts.js +23 -0
- package/dist/model/getContacts.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersList.d.ts +15 -0
- package/dist/model/getCorporateInvitedUsersList.js +18 -0
- package/dist/model/getCorporateInvitedUsersList.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersListUsersInner.d.ts +20 -0
- package/dist/model/getCorporateInvitedUsersListUsersInner.js +38 -0
- package/dist/model/getCorporateInvitedUsersListUsersInner.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +17 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +33 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.d.ts +15 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.js +23 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.js.map +1 -0
- package/dist/model/getCorporateUserPermission.d.ts +19 -0
- package/dist/model/getCorporateUserPermission.js +33 -0
- package/dist/model/getCorporateUserPermission.js.map +1 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +17 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js +33 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -0
- package/dist/model/getCorporateUserPermissionGroupsInner.d.ts +15 -0
- package/dist/model/getCorporateUserPermissionGroupsInner.js +23 -0
- package/dist/model/getCorporateUserPermissionGroupsInner.js.map +1 -0
- package/dist/model/getCouponCollection.d.ts +22 -0
- package/dist/model/getCouponCollection.js +58 -0
- package/dist/model/getCouponCollection.js.map +1 -0
- package/dist/model/getDeviceBrowserStats.d.ts +17 -0
- package/dist/model/getDeviceBrowserStats.js +33 -0
- package/dist/model/getDeviceBrowserStats.js.map +1 -0
- package/dist/model/getDomainConfigurationModel.d.ts +18 -0
- package/dist/model/getDomainConfigurationModel.js +33 -0
- package/dist/model/getDomainConfigurationModel.js.map +1 -0
- package/dist/model/getDomainsList.d.ts +15 -0
- package/dist/model/getDomainsList.js +18 -0
- package/dist/model/getDomainsList.js.map +1 -0
- package/dist/model/getDomainsListDomainsInner.d.ts +18 -0
- package/dist/model/getDomainsListDomainsInner.js +38 -0
- package/dist/model/getDomainsListDomainsInner.js.map +1 -0
- package/dist/model/getEmailCampaign.d.ts +62 -0
- package/dist/model/getEmailCampaign.js +189 -0
- package/dist/model/getEmailCampaign.js.map +1 -0
- package/dist/model/getEmailCampaigns.d.ts +16 -0
- package/dist/model/getEmailCampaigns.js +23 -0
- package/dist/model/getEmailCampaigns.js.map +1 -0
- package/dist/model/getEmailCampaignsCampaignsInner.d.ts +62 -0
- package/dist/model/getEmailCampaignsCampaignsInner.js +189 -0
- package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -0
- package/dist/model/getEmailEventReport.d.ts +15 -0
- package/dist/model/getEmailEventReport.js +18 -0
- package/dist/model/getEmailEventReport.js.map +1 -0
- package/dist/model/getEmailEventReportEventsInner.d.ts +42 -0
- package/dist/model/getEmailEventReportEventsInner.js +87 -0
- package/dist/model/getEmailEventReportEventsInner.js.map +1 -0
- package/dist/model/getExtendedCampaignOverview.d.ts +58 -0
- package/dist/model/getExtendedCampaignOverview.js +179 -0
- package/dist/model/getExtendedCampaignOverview.js.map +1 -0
- package/dist/model/getExtendedCampaignOverviewAllOfSender.d.ts +16 -0
- package/dist/model/getExtendedCampaignOverviewAllOfSender.js +28 -0
- package/dist/model/getExtendedCampaignOverviewAllOfSender.js.map +1 -0
- package/dist/model/getExtendedCampaignStats.d.ts +28 -0
- package/dist/model/getExtendedCampaignStats.js +53 -0
- package/dist/model/getExtendedCampaignStats.js.map +1 -0
- package/dist/model/getExtendedClient.d.ts +19 -0
- package/dist/model/getExtendedClient.js +38 -0
- package/dist/model/getExtendedClient.js.map +1 -0
- package/dist/model/getExtendedClientAllOfAddress.d.ts +17 -0
- package/dist/model/getExtendedClientAllOfAddress.js +33 -0
- package/dist/model/getExtendedClientAllOfAddress.js.map +1 -0
- package/dist/model/getExtendedContactDetails.d.ts +24 -0
- package/dist/model/getExtendedContactDetails.js +63 -0
- package/dist/model/getExtendedContactDetails.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatistics.d.ts +26 -0
- package/dist/model/getExtendedContactDetailsAllOfStatistics.js +58 -0
- package/dist/model/getExtendedContactDetailsAllOfStatistics.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.d.ts +16 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.d.ts +17 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.js +33 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.d.ts +15 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.d.ts +17 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.js +33 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.d.ts +17 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.d.ts +15 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.d.ts +16 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.js +28 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.js.map +1 -0
- package/dist/model/getExtendedList.d.ts +23 -0
- package/dist/model/getExtendedList.js +58 -0
- package/dist/model/getExtendedList.js.map +1 -0
- package/dist/model/getExtendedListAllOfCampaignStats.d.ts +16 -0
- package/dist/model/getExtendedListAllOfCampaignStats.js +23 -0
- package/dist/model/getExtendedListAllOfCampaignStats.js.map +1 -0
- package/dist/model/getExternalFeedByUUID.d.ts +33 -0
- package/dist/model/getExternalFeedByUUID.js +81 -0
- package/dist/model/getExternalFeedByUUID.js.map +1 -0
- package/dist/model/getExternalFeedByUUIDHeadersInner.d.ts +15 -0
- package/dist/model/getExternalFeedByUUIDHeadersInner.js +23 -0
- package/dist/model/getExternalFeedByUUIDHeadersInner.js.map +1 -0
- package/dist/model/getFolder.d.ts +18 -0
- package/dist/model/getFolder.js +38 -0
- package/dist/model/getFolder.js.map +1 -0
- package/dist/model/getFolderLists.d.ts +16 -0
- package/dist/model/getFolderLists.js +23 -0
- package/dist/model/getFolderLists.js.map +1 -0
- package/dist/model/getFolders.d.ts +16 -0
- package/dist/model/getFolders.js +23 -0
- package/dist/model/getFolders.js.map +1 -0
- package/dist/model/getInboundEmailEvents.d.ts +15 -0
- package/dist/model/getInboundEmailEvents.js +18 -0
- package/dist/model/getInboundEmailEvents.js.map +1 -0
- package/dist/model/getInboundEmailEventsByUuid.d.ts +23 -0
- package/dist/model/getInboundEmailEventsByUuid.js +53 -0
- package/dist/model/getInboundEmailEventsByUuid.js.map +1 -0
- package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.d.ts +17 -0
- package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.js +33 -0
- package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.js.map +1 -0
- package/dist/model/getInboundEmailEventsByUuidLogsInner.d.ts +23 -0
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js +32 -0
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -0
- package/dist/model/getInboundEmailEventsEventsInner.d.ts +17 -0
- package/dist/model/getInboundEmailEventsEventsInner.js +33 -0
- package/dist/model/getInboundEmailEventsEventsInner.js.map +1 -0
- package/dist/model/getInvitedUsersList.d.ts +15 -0
- package/dist/model/getInvitedUsersList.js +18 -0
- package/dist/model/getInvitedUsersList.js.map +1 -0
- package/dist/model/getInvitedUsersListUsersInner.d.ts +18 -0
- package/dist/model/getInvitedUsersListUsersInner.js +33 -0
- package/dist/model/getInvitedUsersListUsersInner.js.map +1 -0
- package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.d.ts +16 -0
- package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.js +28 -0
- package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.js.map +1 -0
- package/dist/model/getIp.d.ts +17 -0
- package/dist/model/getIp.js +33 -0
- package/dist/model/getIp.js.map +1 -0
- package/dist/model/getIpFromSender.d.ts +17 -0
- package/dist/model/getIpFromSender.js +33 -0
- package/dist/model/getIpFromSender.js.map +1 -0
- package/dist/model/getIps.d.ts +15 -0
- package/dist/model/getIps.js +18 -0
- package/dist/model/getIps.js.map +1 -0
- package/dist/model/getIpsFromSender.d.ts +15 -0
- package/dist/model/getIpsFromSender.js +18 -0
- package/dist/model/getIpsFromSender.js.map +1 -0
- package/dist/model/getList.d.ts +18 -0
- package/dist/model/getList.js +38 -0
- package/dist/model/getList.js.map +1 -0
- package/dist/model/getLists.d.ts +16 -0
- package/dist/model/getLists.js +23 -0
- package/dist/model/getLists.js.map +1 -0
- package/dist/model/getListsListsInner.d.ts +19 -0
- package/dist/model/getListsListsInner.js +43 -0
- package/dist/model/getListsListsInner.js.map +1 -0
- package/dist/model/getOrders.d.ts +16 -0
- package/dist/model/getOrders.js +23 -0
- package/dist/model/getOrders.js.map +1 -0
- package/dist/model/getOrdersOrdersInner.d.ts +25 -0
- package/dist/model/getOrdersOrdersInner.js +63 -0
- package/dist/model/getOrdersOrdersInner.js.map +1 -0
- package/dist/model/getPaymentRequest.d.ts +29 -0
- package/dist/model/getPaymentRequest.js +51 -0
- package/dist/model/getPaymentRequest.js.map +1 -0
- package/dist/model/getProcess.d.ts +24 -0
- package/dist/model/getProcess.js +41 -0
- package/dist/model/getProcess.js.map +1 -0
- package/dist/model/getProcesses.d.ts +16 -0
- package/dist/model/getProcesses.js +23 -0
- package/dist/model/getProcesses.js.map +1 -0
- package/dist/model/getProductDetails.d.ts +28 -0
- package/dist/model/getProductDetails.js +88 -0
- package/dist/model/getProductDetails.js.map +1 -0
- package/dist/model/getProducts.d.ts +16 -0
- package/dist/model/getProducts.js +23 -0
- package/dist/model/getProducts.js.map +1 -0
- package/dist/model/getReports.d.ts +15 -0
- package/dist/model/getReports.js +18 -0
- package/dist/model/getReports.js.map +1 -0
- package/dist/model/getReportsReportsInner.d.ts +26 -0
- package/dist/model/getReportsReportsInner.js +78 -0
- package/dist/model/getReportsReportsInner.js.map +1 -0
- package/dist/model/getScheduledEmailByBatchId.d.ts +16 -0
- package/dist/model/getScheduledEmailByBatchId.js +23 -0
- package/dist/model/getScheduledEmailByBatchId.js.map +1 -0
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.d.ts +24 -0
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +37 -0
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -0
- package/dist/model/getScheduledEmailByMessageId.d.ts +24 -0
- package/dist/model/getScheduledEmailByMessageId.js +37 -0
- package/dist/model/getScheduledEmailByMessageId.js.map +1 -0
- package/dist/model/getSegments.d.ts +16 -0
- package/dist/model/getSegments.js +23 -0
- package/dist/model/getSegments.js.map +1 -0
- package/dist/model/getSegmentsSegments.d.ts +17 -0
- package/dist/model/getSegmentsSegments.js +33 -0
- package/dist/model/getSegmentsSegments.js.map +1 -0
- package/dist/model/getSendersList.d.ts +15 -0
- package/dist/model/getSendersList.js +18 -0
- package/dist/model/getSendersList.js.map +1 -0
- package/dist/model/getSendersListSendersInner.d.ts +19 -0
- package/dist/model/getSendersListSendersInner.js +38 -0
- package/dist/model/getSendersListSendersInner.js.map +1 -0
- package/dist/model/getSendersListSendersInnerIpsInner.d.ts +16 -0
- package/dist/model/getSendersListSendersInnerIpsInner.js +28 -0
- package/dist/model/getSendersListSendersInnerIpsInner.js.map +1 -0
- package/dist/model/getSharedTemplateUrl.d.ts +14 -0
- package/dist/model/getSharedTemplateUrl.js +18 -0
- package/dist/model/getSharedTemplateUrl.js.map +1 -0
- package/dist/model/getSmsCampaign.d.ts +35 -0
- package/dist/model/getSmsCampaign.js +74 -0
- package/dist/model/getSmsCampaign.js.map +1 -0
- package/dist/model/getSmsCampaignOverview.d.ts +31 -0
- package/dist/model/getSmsCampaignOverview.js +64 -0
- package/dist/model/getSmsCampaignOverview.js.map +1 -0
- package/dist/model/getSmsCampaignStats.d.ts +20 -0
- package/dist/model/getSmsCampaignStats.js +48 -0
- package/dist/model/getSmsCampaignStats.js.map +1 -0
- package/dist/model/getSmsCampaigns.d.ts +16 -0
- package/dist/model/getSmsCampaigns.js +23 -0
- package/dist/model/getSmsCampaigns.js.map +1 -0
- package/dist/model/getSmsCampaignsCampaignsInner.d.ts +35 -0
- package/dist/model/getSmsCampaignsCampaignsInner.js +74 -0
- package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -0
- package/dist/model/getSmsEventReport.d.ts +15 -0
- package/dist/model/getSmsEventReport.js +18 -0
- package/dist/model/getSmsEventReport.js.map +1 -0
- package/dist/model/getSmsEventReportEventsInner.d.ts +34 -0
- package/dist/model/getSmsEventReportEventsInner.js +63 -0
- package/dist/model/getSmsEventReportEventsInner.js.map +1 -0
- package/dist/model/getSmtpTemplateOverview.d.ts +27 -0
- package/dist/model/getSmtpTemplateOverview.js +78 -0
- package/dist/model/getSmtpTemplateOverview.js.map +1 -0
- package/dist/model/getSmtpTemplateOverviewSender.d.ts +16 -0
- package/dist/model/getSmtpTemplateOverviewSender.js +28 -0
- package/dist/model/getSmtpTemplateOverviewSender.js.map +1 -0
- package/dist/model/getSmtpTemplates.d.ts +16 -0
- package/dist/model/getSmtpTemplates.js +23 -0
- package/dist/model/getSmtpTemplates.js.map +1 -0
- package/dist/model/getSsoToken.d.ts +14 -0
- package/dist/model/getSsoToken.js +18 -0
- package/dist/model/getSsoToken.js.map +1 -0
- package/dist/model/getStatsByDevice.d.ts +26 -0
- package/dist/model/getStatsByDevice.js +33 -0
- package/dist/model/getStatsByDevice.js.map +1 -0
- package/dist/model/getSubAccountGroups200ResponseInner.d.ts +15 -0
- package/dist/model/getSubAccountGroups200ResponseInner.js +23 -0
- package/dist/model/getSubAccountGroups200ResponseInner.js.map +1 -0
- package/dist/model/getTransacAggregatedSmsReport.d.ts +23 -0
- package/dist/model/getTransacAggregatedSmsReport.js +63 -0
- package/dist/model/getTransacAggregatedSmsReport.js.map +1 -0
- package/dist/model/getTransacBlockedContacts.d.ts +16 -0
- package/dist/model/getTransacBlockedContacts.js +23 -0
- package/dist/model/getTransacBlockedContacts.js.map +1 -0
- package/dist/model/getTransacBlockedContactsContactsInner.d.ts +18 -0
- package/dist/model/getTransacBlockedContactsContactsInner.js +33 -0
- package/dist/model/getTransacBlockedContactsContactsInner.js.map +1 -0
- package/dist/model/getTransacBlockedContactsContactsInnerReason.d.ts +25 -0
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js +34 -0
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -0
- package/dist/model/getTransacEmailContent.d.ts +21 -0
- package/dist/model/getTransacEmailContent.js +48 -0
- package/dist/model/getTransacEmailContent.js.map +1 -0
- package/dist/model/getTransacEmailContentEventsInner.d.ts +15 -0
- package/dist/model/getTransacEmailContentEventsInner.js +23 -0
- package/dist/model/getTransacEmailContentEventsInner.js.map +1 -0
- package/dist/model/getTransacEmailsList.d.ts +16 -0
- package/dist/model/getTransacEmailsList.js +23 -0
- package/dist/model/getTransacEmailsList.js.map +1 -0
- package/dist/model/getTransacEmailsListTransactionalEmailsInner.d.ts +21 -0
- package/dist/model/getTransacEmailsListTransactionalEmailsInner.js +53 -0
- package/dist/model/getTransacEmailsListTransactionalEmailsInner.js.map +1 -0
- package/dist/model/getTransacSmsReport.d.ts +15 -0
- package/dist/model/getTransacSmsReport.js +18 -0
- package/dist/model/getTransacSmsReport.js.map +1 -0
- package/dist/model/getTransacSmsReportReportsInner.d.ts +23 -0
- package/dist/model/getTransacSmsReportReportsInner.js +63 -0
- package/dist/model/getTransacSmsReportReportsInner.js.map +1 -0
- package/dist/model/getUserPermission.d.ts +17 -0
- package/dist/model/getUserPermission.js +28 -0
- package/dist/model/getUserPermission.js.map +1 -0
- package/dist/model/getUserPermissionPrivilegesInner.d.ts +15 -0
- package/dist/model/getUserPermissionPrivilegesInner.js +23 -0
- package/dist/model/getUserPermissionPrivilegesInner.js.map +1 -0
- package/dist/model/getWATemplates.d.ts +16 -0
- package/dist/model/getWATemplates.js +23 -0
- package/dist/model/getWATemplates.js.map +1 -0
- package/dist/model/getWATemplatesTemplatesInner.d.ts +21 -0
- package/dist/model/getWATemplatesTemplatesInner.js +53 -0
- package/dist/model/getWATemplatesTemplatesInner.js.map +1 -0
- package/dist/model/getWebhook.d.ts +31 -0
- package/dist/model/getWebhook.js +70 -0
- package/dist/model/getWebhook.js.map +1 -0
- package/dist/model/getWebhookAuth.d.ts +15 -0
- package/dist/model/getWebhookAuth.js +23 -0
- package/dist/model/getWebhookAuth.js.map +1 -0
- package/dist/model/getWebhookHeadersInner.d.ts +15 -0
- package/dist/model/getWebhookHeadersInner.js +23 -0
- package/dist/model/getWebhookHeadersInner.js.map +1 -0
- package/dist/model/getWebhooks.d.ts +15 -0
- package/dist/model/getWebhooks.js +18 -0
- package/dist/model/getWebhooks.js.map +1 -0
- package/dist/model/getWhatsAppConfig.d.ts +31 -0
- package/dist/model/getWhatsAppConfig.js +57 -0
- package/dist/model/getWhatsAppConfig.js.map +1 -0
- package/dist/model/getWhatsappCampaignOverview.d.ts +36 -0
- package/dist/model/getWhatsappCampaignOverview.js +71 -0
- package/dist/model/getWhatsappCampaignOverview.js.map +1 -0
- package/dist/model/getWhatsappCampaigns.d.ts +16 -0
- package/dist/model/getWhatsappCampaigns.js +23 -0
- package/dist/model/getWhatsappCampaigns.js.map +1 -0
- package/dist/model/getWhatsappCampaignsCampaignsInner.d.ts +37 -0
- package/dist/model/getWhatsappCampaignsCampaignsInner.js +81 -0
- package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -0
- package/dist/model/getWhatsappEventReport.d.ts +15 -0
- package/dist/model/getWhatsappEventReport.js +18 -0
- package/dist/model/getWhatsappEventReport.js.map +1 -0
- package/dist/model/getWhatsappEventReportEventsInner.d.ts +32 -0
- package/dist/model/getWhatsappEventReportEventsInner.js +65 -0
- package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -0
- package/dist/model/inviteAdminUser.d.ts +18 -0
- package/dist/model/inviteAdminUser.js +33 -0
- package/dist/model/inviteAdminUser.js.map +1 -0
- package/dist/model/inviteAdminUserPrivilegesInner.d.ts +27 -0
- package/dist/model/inviteAdminUserPrivilegesInner.js +37 -0
- package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -0
- package/dist/model/inviteuser.d.ts +17 -0
- package/dist/model/inviteuser.js +28 -0
- package/dist/model/inviteuser.js.map +1 -0
- package/dist/model/inviteuserPrivilegesInner.d.ts +63 -0
- package/dist/model/inviteuserPrivilegesInner.js +73 -0
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -0
- package/dist/model/manageIp.d.ts +14 -0
- package/dist/model/manageIp.js +18 -0
- package/dist/model/manageIp.js.map +1 -0
- package/dist/model/masterDetailsResponse.d.ts +22 -0
- package/dist/model/masterDetailsResponse.js +48 -0
- package/dist/model/masterDetailsResponse.js.map +1 -0
- package/dist/model/masterDetailsResponseBillingInfo.d.ts +19 -0
- package/dist/model/masterDetailsResponseBillingInfo.js +33 -0
- package/dist/model/masterDetailsResponseBillingInfo.js.map +1 -0
- package/dist/model/masterDetailsResponseBillingInfoAddress.d.ts +18 -0
- package/dist/model/masterDetailsResponseBillingInfoAddress.js +38 -0
- package/dist/model/masterDetailsResponseBillingInfoAddress.js.map +1 -0
- package/dist/model/masterDetailsResponseBillingInfoName.d.ts +15 -0
- package/dist/model/masterDetailsResponseBillingInfoName.js +23 -0
- package/dist/model/masterDetailsResponseBillingInfoName.js.map +1 -0
- package/dist/model/masterDetailsResponsePlanInfo.d.ts +26 -0
- package/dist/model/masterDetailsResponsePlanInfo.js +50 -0
- package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.d.ts +20 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js +48 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js.map +1 -0
- package/dist/model/models.d.ts +408 -0
- package/dist/model/models.js +1370 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/note.d.ts +20 -0
- package/dist/model/note.js +48 -0
- package/dist/model/note.js.map +1 -0
- package/dist/model/noteData.d.ts +17 -0
- package/dist/model/noteData.js +33 -0
- package/dist/model/noteData.js.map +1 -0
- package/dist/model/noteId.d.ts +14 -0
- package/dist/model/noteId.js +18 -0
- package/dist/model/noteId.js.map +1 -0
- package/dist/model/notification.d.ts +20 -0
- package/dist/model/notification.js +29 -0
- package/dist/model/notification.js.map +1 -0
- package/dist/model/order.d.ts +24 -0
- package/dist/model/order.js +58 -0
- package/dist/model/order.js.map +1 -0
- package/dist/model/orderBatch.d.ts +17 -0
- package/dist/model/orderBatch.js +31 -0
- package/dist/model/orderBatch.js.map +1 -0
- package/dist/model/orderBilling.d.ts +20 -0
- package/dist/model/orderBilling.js +48 -0
- package/dist/model/orderBilling.js.map +1 -0
- package/dist/model/orderProductsInner.d.ts +17 -0
- package/dist/model/orderProductsInner.js +33 -0
- package/dist/model/orderProductsInner.js.map +1 -0
- package/dist/model/otp.d.ts +14 -0
- package/dist/model/otp.js +18 -0
- package/dist/model/otp.js.map +1 -0
- package/dist/model/pipeline.d.ts +17 -0
- package/dist/model/pipeline.js +28 -0
- package/dist/model/pipeline.js.map +1 -0
- package/dist/model/pipelineStage.d.ts +15 -0
- package/dist/model/pipelineStage.js +23 -0
- package/dist/model/pipelineStage.js.map +1 -0
- package/dist/model/postContactInfo.d.ts +15 -0
- package/dist/model/postContactInfo.js +18 -0
- package/dist/model/postContactInfo.js.map +1 -0
- package/dist/model/postContactInfoContacts.d.ts +17 -0
- package/dist/model/postContactInfoContacts.js +33 -0
- package/dist/model/postContactInfoContacts.js.map +1 -0
- package/dist/model/postSendFailed.d.ts +18 -0
- package/dist/model/postSendFailed.js +38 -0
- package/dist/model/postSendFailed.js.map +1 -0
- package/dist/model/postSendSmsTestFailed.d.ts +17 -0
- package/dist/model/postSendSmsTestFailed.js +33 -0
- package/dist/model/postSendSmsTestFailed.js.map +1 -0
- package/dist/model/putRevokeUserPermission.d.ts +14 -0
- package/dist/model/putRevokeUserPermission.js +18 -0
- package/dist/model/putRevokeUserPermission.js.map +1 -0
- package/dist/model/putresendcancelinvitation.d.ts +14 -0
- package/dist/model/putresendcancelinvitation.js +18 -0
- package/dist/model/putresendcancelinvitation.js.map +1 -0
- package/dist/model/remainingCreditModel.d.ts +17 -0
- package/dist/model/remainingCreditModel.js +23 -0
- package/dist/model/remainingCreditModel.js.map +1 -0
- package/dist/model/remainingCreditModelChild.d.ts +15 -0
- package/dist/model/remainingCreditModelChild.js +23 -0
- package/dist/model/remainingCreditModelChild.js.map +1 -0
- package/dist/model/remainingCreditModelReseller.d.ts +15 -0
- package/dist/model/remainingCreditModelReseller.js +23 -0
- package/dist/model/remainingCreditModelReseller.js.map +1 -0
- package/dist/model/removeContactFromList.d.ts +16 -0
- package/dist/model/removeContactFromList.js +28 -0
- package/dist/model/removeContactFromList.js.map +1 -0
- package/dist/model/removeCredits.d.ts +15 -0
- package/dist/model/removeCredits.js +23 -0
- package/dist/model/removeCredits.js.map +1 -0
- package/dist/model/requestContactExport.d.ts +17 -0
- package/dist/model/requestContactExport.js +28 -0
- package/dist/model/requestContactExport.js.map +1 -0
- package/dist/model/requestContactExportCustomContactFilter.d.ts +41 -0
- package/dist/model/requestContactExportCustomContactFilter.js +68 -0
- package/dist/model/requestContactExportCustomContactFilter.js.map +1 -0
- package/dist/model/requestContactImport.d.ts +26 -0
- package/dist/model/requestContactImport.js +75 -0
- package/dist/model/requestContactImport.js.map +1 -0
- package/dist/model/requestContactImportJsonBodyInner.d.ts +17 -0
- package/dist/model/requestContactImportJsonBodyInner.js +23 -0
- package/dist/model/requestContactImportJsonBodyInner.js.map +1 -0
- package/dist/model/requestContactImportNewList.d.ts +15 -0
- package/dist/model/requestContactImportNewList.js +23 -0
- package/dist/model/requestContactImportNewList.js.map +1 -0
- package/dist/model/requestSmsRecipientExport.d.ts +25 -0
- package/dist/model/requestSmsRecipientExport.js +34 -0
- package/dist/model/requestSmsRecipientExport.js.map +1 -0
- package/dist/model/scheduleSmtpEmail.d.ts +16 -0
- package/dist/model/scheduleSmtpEmail.js +28 -0
- package/dist/model/scheduleSmtpEmail.js.map +1 -0
- package/dist/model/sendReport.d.ts +26 -0
- package/dist/model/sendReport.js +37 -0
- package/dist/model/sendReport.js.map +1 -0
- package/dist/model/sendReportEmail.d.ts +15 -0
- package/dist/model/sendReportEmail.js +23 -0
- package/dist/model/sendReportEmail.js.map +1 -0
- package/dist/model/sendSms.d.ts +18 -0
- package/dist/model/sendSms.js +38 -0
- package/dist/model/sendSms.js.map +1 -0
- package/dist/model/sendSmtpEmail.d.ts +36 -0
- package/dist/model/sendSmtpEmail.js +93 -0
- package/dist/model/sendSmtpEmail.js.map +1 -0
- package/dist/model/sendSmtpEmailAttachmentInner.d.ts +16 -0
- package/dist/model/sendSmtpEmailAttachmentInner.js +28 -0
- package/dist/model/sendSmtpEmailAttachmentInner.js.map +1 -0
- package/dist/model/sendSmtpEmailBccInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailBccInner.js +23 -0
- package/dist/model/sendSmtpEmailBccInner.js.map +1 -0
- package/dist/model/sendSmtpEmailCcInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailCcInner.js +23 -0
- package/dist/model/sendSmtpEmailCcInner.js.map +1 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.d.ts +27 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.js +53 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.js.map +1 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.d.ts +15 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.js +23 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.js.map +1 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.js +23 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.js.map +1 -0
- package/dist/model/sendSmtpEmailReplyTo.d.ts +15 -0
- package/dist/model/sendSmtpEmailReplyTo.js +23 -0
- package/dist/model/sendSmtpEmailReplyTo.js.map +1 -0
- package/dist/model/sendSmtpEmailSender.d.ts +16 -0
- package/dist/model/sendSmtpEmailSender.js +28 -0
- package/dist/model/sendSmtpEmailSender.js.map +1 -0
- package/dist/model/sendSmtpEmailToInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailToInner.js +23 -0
- package/dist/model/sendSmtpEmailToInner.js.map +1 -0
- package/dist/model/sendTestEmail.d.ts +14 -0
- package/dist/model/sendTestEmail.js +18 -0
- package/dist/model/sendTestEmail.js.map +1 -0
- package/dist/model/sendTestSms.d.ts +14 -0
- package/dist/model/sendTestSms.js +18 -0
- package/dist/model/sendTestSms.js.map +1 -0
- package/dist/model/sendTransacSms.d.ts +27 -0
- package/dist/model/sendTransacSms.js +64 -0
- package/dist/model/sendTransacSms.js.map +1 -0
- package/dist/model/sendWhatsappMessage.d.ts +18 -0
- package/dist/model/sendWhatsappMessage.js +38 -0
- package/dist/model/sendWhatsappMessage.js.map +1 -0
- package/dist/model/sendWhatsappMessage201Response.d.ts +14 -0
- package/dist/model/sendWhatsappMessage201Response.js +18 -0
- package/dist/model/sendWhatsappMessage201Response.js.map +1 -0
- package/dist/model/ssoTokenRequest.d.ts +29 -0
- package/dist/model/ssoTokenRequest.js +46 -0
- package/dist/model/ssoTokenRequest.js.map +1 -0
- package/dist/model/ssoTokenRequestCorporate.d.ts +14 -0
- package/dist/model/ssoTokenRequestCorporate.js +18 -0
- package/dist/model/ssoTokenRequestCorporate.js.map +1 -0
- package/dist/model/subAccountAppsToggleRequest.d.ts +26 -0
- package/dist/model/subAccountAppsToggleRequest.js +78 -0
- package/dist/model/subAccountAppsToggleRequest.js.map +1 -0
- package/dist/model/subAccountDetailsResponse.d.ts +18 -0
- package/dist/model/subAccountDetailsResponse.js +33 -0
- package/dist/model/subAccountDetailsResponse.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfo.d.ts +18 -0
- package/dist/model/subAccountDetailsResponsePlanInfo.js +28 -0
- package/dist/model/subAccountDetailsResponsePlanInfo.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +16 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +19 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +28 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequest.d.ts +17 -0
- package/dist/model/subAccountUpdatePlanRequest.js +23 -0
- package/dist/model/subAccountUpdatePlanRequest.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +14 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js +18 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +16 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js +28 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -0
- package/dist/model/subAccountsResponse.d.ts +16 -0
- package/dist/model/subAccountsResponse.js +23 -0
- package/dist/model/subAccountsResponse.js.map +1 -0
- package/dist/model/subAccountsResponseSubAccountsInner.d.ts +17 -0
- package/dist/model/subAccountsResponseSubAccountsInner.js +33 -0
- package/dist/model/subAccountsResponseSubAccountsInner.js.map +1 -0
- package/dist/model/task.d.ts +19 -0
- package/dist/model/task.js +43 -0
- package/dist/model/task.js.map +1 -0
- package/dist/model/taskList.d.ts +15 -0
- package/dist/model/taskList.js +18 -0
- package/dist/model/taskList.js.map +1 -0
- package/dist/model/taskReminder.d.ts +24 -0
- package/dist/model/taskReminder.js +37 -0
- package/dist/model/taskReminder.js.map +1 -0
- package/dist/model/taskTypes.d.ts +15 -0
- package/dist/model/taskTypes.js +23 -0
- package/dist/model/taskTypes.js.map +1 -0
- package/dist/model/updateAttribute.d.ts +16 -0
- package/dist/model/updateAttribute.js +23 -0
- package/dist/model/updateAttribute.js.map +1 -0
- package/dist/model/updateAttributeEnumerationInner.d.ts +15 -0
- package/dist/model/updateAttributeEnumerationInner.js +23 -0
- package/dist/model/updateAttributeEnumerationInner.js.map +1 -0
- package/dist/model/updateBatchContacts.d.ts +15 -0
- package/dist/model/updateBatchContacts.js +18 -0
- package/dist/model/updateBatchContacts.js.map +1 -0
- package/dist/model/updateBatchContactsContactsInner.d.ts +25 -0
- package/dist/model/updateBatchContactsContactsInner.js +63 -0
- package/dist/model/updateBatchContactsContactsInner.js.map +1 -0
- package/dist/model/updateBatchContactsModel.d.ts +15 -0
- package/dist/model/updateBatchContactsModel.js +23 -0
- package/dist/model/updateBatchContactsModel.js.map +1 -0
- package/dist/model/updateCampaignStatus.d.ts +26 -0
- package/dist/model/updateCampaignStatus.js +31 -0
- package/dist/model/updateCampaignStatus.js.map +1 -0
- package/dist/model/updateChild.d.ts +18 -0
- package/dist/model/updateChild.js +38 -0
- package/dist/model/updateChild.js.map +1 -0
- package/dist/model/updateChildAccountStatus.d.ts +17 -0
- package/dist/model/updateChildAccountStatus.js +33 -0
- package/dist/model/updateChildAccountStatus.js.map +1 -0
- package/dist/model/updateChildDomain.d.ts +14 -0
- package/dist/model/updateChildDomain.js +18 -0
- package/dist/model/updateChildDomain.js.map +1 -0
- package/dist/model/updateContact.d.ts +20 -0
- package/dist/model/updateContact.js +48 -0
- package/dist/model/updateContact.js.map +1 -0
- package/dist/model/updateCouponCollection200Response.d.ts +16 -0
- package/dist/model/updateCouponCollection200Response.js +28 -0
- package/dist/model/updateCouponCollection200Response.js.map +1 -0
- package/dist/model/updateCouponCollectionRequest.d.ts +17 -0
- package/dist/model/updateCouponCollectionRequest.js +33 -0
- package/dist/model/updateCouponCollectionRequest.js.map +1 -0
- package/dist/model/updateEmailCampaign.d.ts +52 -0
- package/dist/model/updateEmailCampaign.js +181 -0
- package/dist/model/updateEmailCampaign.js.map +1 -0
- package/dist/model/updateEmailCampaignRecipients.d.ts +16 -0
- package/dist/model/updateEmailCampaignRecipients.js +28 -0
- package/dist/model/updateEmailCampaignRecipients.js.map +1 -0
- package/dist/model/updateEmailCampaignSender.d.ts +16 -0
- package/dist/model/updateEmailCampaignSender.js +28 -0
- package/dist/model/updateEmailCampaignSender.js.map +1 -0
- package/dist/model/updateExternalFeed.d.ts +30 -0
- package/dist/model/updateExternalFeed.js +69 -0
- package/dist/model/updateExternalFeed.js.map +1 -0
- package/dist/model/updateList.d.ts +15 -0
- package/dist/model/updateList.js +23 -0
- package/dist/model/updateList.js.map +1 -0
- package/dist/model/updateSender.d.ts +17 -0
- package/dist/model/updateSender.js +28 -0
- package/dist/model/updateSender.js.map +1 -0
- package/dist/model/updateSmsCampaign.d.ts +22 -0
- package/dist/model/updateSmsCampaign.js +56 -0
- package/dist/model/updateSmsCampaign.js.map +1 -0
- package/dist/model/updateSmtpTemplate.d.ts +24 -0
- package/dist/model/updateSmtpTemplate.js +63 -0
- package/dist/model/updateSmtpTemplate.js.map +1 -0
- package/dist/model/updateSmtpTemplateSender.d.ts +16 -0
- package/dist/model/updateSmtpTemplateSender.js +28 -0
- package/dist/model/updateSmtpTemplateSender.js.map +1 -0
- package/dist/model/updateWebhook.d.ts +43 -0
- package/dist/model/updateWebhook.js +70 -0
- package/dist/model/updateWebhook.js.map +1 -0
- package/dist/model/updateWhatsAppCampaign.d.ts +24 -0
- package/dist/model/updateWhatsAppCampaign.js +43 -0
- package/dist/model/updateWhatsAppCampaign.js.map +1 -0
- package/dist/model/uploadImageModel.d.ts +14 -0
- package/dist/model/uploadImageModel.js +18 -0
- package/dist/model/uploadImageModel.js.map +1 -0
- package/dist/model/uploadImageToGallery.d.ts +15 -0
- package/dist/model/uploadImageToGallery.js +23 -0
- package/dist/model/uploadImageToGallery.js.map +1 -0
- package/dist/model/variablesItems.d.ts +16 -0
- package/dist/model/variablesItems.js +28 -0
- package/dist/model/variablesItems.js.map +1 -0
- package/dist/model/whatsappCampStats.d.ts +18 -0
- package/dist/model/whatsappCampStats.js +38 -0
- package/dist/model/whatsappCampStats.js.map +1 -0
- package/dist/model/whatsappCampTemplate.d.ts +26 -0
- package/dist/model/whatsappCampTemplate.js +68 -0
- package/dist/model/whatsappCampTemplate.js.map +1 -0
- package/model/cart.ts +51 -0
- package/model/configuration.ts +37 -0
- package/model/conversionSourceMetrics.ts +60 -0
- package/model/conversionSourceProduct.ts +73 -0
- package/model/corporateGroupDetailsResponse.ts +46 -0
- package/model/corporateGroupDetailsResponseGroup.ts +52 -0
- package/model/corporateGroupDetailsResponseSubAccountsInner.ts +52 -0
- package/model/corporateGroupDetailsResponseUsersInner.ts +52 -0
- package/model/corporateGroupPost201Response.ts +31 -0
- package/model/corporateGroupPostRequest.ts +43 -0
- package/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.ts +34 -0
- package/model/corporateUserInvitationActionEmailPut200Response.ts +31 -0
- package/model/createContact.ts +1 -1
- package/model/createCouponCollectionRequest.ts +33 -6
- package/model/createDomainModel.ts +9 -0
- package/model/createDomainModelDnsRecords.ts +6 -0
- package/model/createPaymentRequest.ts +64 -0
- package/model/createWebhook.ts +26 -0
- package/model/createWhatsAppTemplate.ts +2 -2
- package/model/crmDealsIdPatchRequest.ts +1 -1
- package/model/crmDealsPostRequest.ts +1 -1
- package/model/crmTasksIdPatchRequest.ts +1 -1
- package/model/crmTasksPostRequest.ts +1 -1
- package/model/event.ts +68 -0
- package/model/eventIdentifiers.ts +73 -0
- package/model/getContactDetails.ts +1 -1
- package/model/getCorporateInvitedUsersList.ts +35 -0
- package/model/getCorporateInvitedUsersListUsersInner.ts +66 -0
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +64 -0
- package/model/getCorporateInvitedUsersListUsersInnerGroups.ts +46 -0
- package/model/getCorporateUserPermission.ts +60 -0
- package/model/getCorporateUserPermissionFeatureAccess.ts +64 -0
- package/model/getCorporateUserPermissionGroupsInner.ts +46 -0
- package/model/getCouponCollection.ts +33 -6
- package/model/getExtendedContactDetails.ts +1 -1
- package/model/getOrders.ts +41 -0
- package/model/getOrdersOrdersInner.ts +111 -0
- package/model/getPaymentRequest.ts +80 -0
- package/model/getSubAccountGroups200ResponseInner.ts +43 -0
- package/model/getWebhook.ts +26 -0
- package/model/getWebhookAuth.ts +46 -0
- package/model/getWebhookHeadersInner.ts +43 -0
- package/model/inviteAdminUser.ts +59 -0
- package/model/inviteAdminUserPrivilegesInner.ts +58 -0
- package/model/inviteuserPrivilegesInner.ts +14 -2
- package/model/masterDetailsResponsePlanInfoFeaturesInner.ts +18 -0
- package/model/models.ts +102 -0
- package/model/notification.ts +51 -0
- package/model/orderBatch.ts +9 -0
- package/model/sendSmtpEmailMessageVersionsInner.ts +18 -0
- package/model/sendWhatsappMessage.ts +9 -0
- package/model/ssoTokenRequestCorporate.ts +34 -0
- package/model/subAccountAppsToggleRequest.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts +1 -1
- package/model/subAccountUpdatePlanRequestFeatures.ts +2 -2
- package/model/updateContact.ts +1 -1
- package/model/updateCouponCollection200Response.ts +1 -1
- package/model/updateCouponCollectionRequest.ts +28 -1
- package/model/updateWebhook.ts +26 -0
- package/package.json +4 -5
- /package/{.swagger-codegen-ignore → .openapi-generator-ignore} +0 -0
package/api/masterAccountApi.ts
CHANGED
|
@@ -15,15 +15,25 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { CorporateGroupDetailsResponse } from '../model/corporateGroupDetailsResponse';
|
|
19
|
+
import { CorporateGroupPost201Response } from '../model/corporateGroupPost201Response';
|
|
20
|
+
import { CorporateGroupPostRequest } from '../model/corporateGroupPostRequest';
|
|
21
|
+
import { CorporateGroupUnlinkGroupIdSubAccountsPutRequest } from '../model/corporateGroupUnlinkGroupIdSubAccountsPutRequest';
|
|
22
|
+
import { CorporateUserInvitationActionEmailPut200Response } from '../model/corporateUserInvitationActionEmailPut200Response';
|
|
18
23
|
import { CreateApiKeyRequest } from '../model/createApiKeyRequest';
|
|
19
24
|
import { CreateApiKeyResponse } from '../model/createApiKeyResponse';
|
|
20
25
|
import { CreateSubAccount } from '../model/createSubAccount';
|
|
21
26
|
import { CreateSubAccountResponse } from '../model/createSubAccountResponse';
|
|
22
27
|
import { ErrorModel } from '../model/errorModel';
|
|
23
28
|
import { GetAccountActivity } from '../model/getAccountActivity';
|
|
29
|
+
import { GetCorporateInvitedUsersList } from '../model/getCorporateInvitedUsersList';
|
|
30
|
+
import { GetCorporateUserPermission } from '../model/getCorporateUserPermission';
|
|
24
31
|
import { GetSsoToken } from '../model/getSsoToken';
|
|
32
|
+
import { GetSubAccountGroups200ResponseInner } from '../model/getSubAccountGroups200ResponseInner';
|
|
33
|
+
import { InviteAdminUser } from '../model/inviteAdminUser';
|
|
25
34
|
import { MasterDetailsResponse } from '../model/masterDetailsResponse';
|
|
26
35
|
import { SsoTokenRequest } from '../model/ssoTokenRequest';
|
|
36
|
+
import { SsoTokenRequestCorporate } from '../model/ssoTokenRequestCorporate';
|
|
27
37
|
import { SubAccountAppsToggleRequest } from '../model/subAccountAppsToggleRequest';
|
|
28
38
|
import { SubAccountDetailsResponse } from '../model/subAccountDetailsResponse';
|
|
29
39
|
import { SubAccountUpdatePlanRequest } from '../model/subAccountUpdatePlanRequest';
|
|
@@ -104,11 +114,13 @@ export class MasterAccountApi {
|
|
|
104
114
|
}
|
|
105
115
|
|
|
106
116
|
/**
|
|
107
|
-
* This endpoint
|
|
108
|
-
* @summary
|
|
117
|
+
* This endpoint allows you to delete a group of sub-organizations. When a group is deleted, the sub-organizations are no longer part of this group. The users associated with the group are no longer associated with the group once deleted.
|
|
118
|
+
* @summary Delete a group
|
|
119
|
+
* @param id Id of the group
|
|
109
120
|
*/
|
|
110
|
-
public async
|
|
111
|
-
const localVarPath = this.basePath + '/corporate/
|
|
121
|
+
public async corporateGroupIdDelete (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
122
|
+
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
123
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
112
124
|
let localVarQueryParameters: any = {};
|
|
113
125
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
114
126
|
const produces = ['application/json'];
|
|
@@ -120,12 +132,17 @@ export class MasterAccountApi {
|
|
|
120
132
|
}
|
|
121
133
|
let localVarFormParams: any = {};
|
|
122
134
|
|
|
135
|
+
// verify required parameter 'id' is not null or undefined
|
|
136
|
+
if (id === null || id === undefined) {
|
|
137
|
+
throw new Error('Required parameter id was null or undefined when calling corporateGroupIdDelete.');
|
|
138
|
+
}
|
|
139
|
+
|
|
123
140
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
124
141
|
|
|
125
142
|
let localVarUseFormData = false;
|
|
126
143
|
|
|
127
144
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
128
|
-
method: '
|
|
145
|
+
method: 'DELETE',
|
|
129
146
|
qs: localVarQueryParameters,
|
|
130
147
|
headers: localVarHeaderParams,
|
|
131
148
|
uri: localVarPath,
|
|
@@ -155,13 +172,12 @@ export class MasterAccountApi {
|
|
|
155
172
|
localVarRequestOptions.form = localVarFormParams;
|
|
156
173
|
}
|
|
157
174
|
}
|
|
158
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
175
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
159
176
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
160
177
|
if (error) {
|
|
161
178
|
reject(error);
|
|
162
179
|
} else {
|
|
163
180
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
164
|
-
body = ObjectSerializer.deserialize(body, "MasterDetailsResponse");
|
|
165
181
|
resolve({ response: response, body: body });
|
|
166
182
|
} else {
|
|
167
183
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -172,13 +188,13 @@ export class MasterAccountApi {
|
|
|
172
188
|
});
|
|
173
189
|
}
|
|
174
190
|
/**
|
|
175
|
-
* This endpoint
|
|
176
|
-
* @summary
|
|
177
|
-
* @param
|
|
178
|
-
* @param limit Number of sub-accounts to be displayed on each page
|
|
191
|
+
* This endpoint allows you to retrieve a specific group’s information such as the list of sub-organizations and the user associated with the group.
|
|
192
|
+
* @summary GET a group details
|
|
193
|
+
* @param id Id of the group of sub-organization
|
|
179
194
|
*/
|
|
180
|
-
public async
|
|
181
|
-
const localVarPath = this.basePath + '/corporate/
|
|
195
|
+
public async corporateGroupIdGet (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CorporateGroupDetailsResponse; }> {
|
|
196
|
+
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
197
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
182
198
|
let localVarQueryParameters: any = {};
|
|
183
199
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
184
200
|
const produces = ['application/json'];
|
|
@@ -190,22 +206,9 @@ export class MasterAccountApi {
|
|
|
190
206
|
}
|
|
191
207
|
let localVarFormParams: any = {};
|
|
192
208
|
|
|
193
|
-
// verify required parameter '
|
|
194
|
-
if (
|
|
195
|
-
throw new Error('Required parameter
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// verify required parameter 'limit' is not null or undefined
|
|
199
|
-
if (limit === null || limit === undefined) {
|
|
200
|
-
throw new Error('Required parameter limit was null or undefined when calling corporateSubAccountGet.');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
if (offset !== undefined) {
|
|
204
|
-
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
if (limit !== undefined) {
|
|
208
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
209
|
+
// verify required parameter 'id' is not null or undefined
|
|
210
|
+
if (id === null || id === undefined) {
|
|
211
|
+
throw new Error('Required parameter id was null or undefined when calling corporateGroupIdGet.');
|
|
209
212
|
}
|
|
210
213
|
|
|
211
214
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -243,13 +246,13 @@ export class MasterAccountApi {
|
|
|
243
246
|
localVarRequestOptions.form = localVarFormParams;
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
249
|
+
return new Promise<{ response: http.IncomingMessage; body: CorporateGroupDetailsResponse; }>((resolve, reject) => {
|
|
247
250
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
248
251
|
if (error) {
|
|
249
252
|
reject(error);
|
|
250
253
|
} else {
|
|
251
254
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
252
|
-
body = ObjectSerializer.deserialize(body, "
|
|
255
|
+
body = ObjectSerializer.deserialize(body, "CorporateGroupDetailsResponse");
|
|
253
256
|
resolve({ response: response, body: body });
|
|
254
257
|
} else {
|
|
255
258
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -260,13 +263,13 @@ export class MasterAccountApi {
|
|
|
260
263
|
});
|
|
261
264
|
}
|
|
262
265
|
/**
|
|
263
|
-
*
|
|
264
|
-
* @summary
|
|
265
|
-
* @param id Id of the
|
|
266
|
-
* @param
|
|
266
|
+
* This endpoint allows you to update a group of sub-accounts
|
|
267
|
+
* @summary Update a group of sub-accounts
|
|
268
|
+
* @param id Id of the group
|
|
269
|
+
* @param body Group details to be updated.
|
|
267
270
|
*/
|
|
268
|
-
public async
|
|
269
|
-
const localVarPath = this.basePath + '/corporate/
|
|
271
|
+
public async corporateGroupIdPut (id: string, body: CorporateGroupPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
272
|
+
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
270
273
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
271
274
|
let localVarQueryParameters: any = {};
|
|
272
275
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -281,12 +284,12 @@ export class MasterAccountApi {
|
|
|
281
284
|
|
|
282
285
|
// verify required parameter 'id' is not null or undefined
|
|
283
286
|
if (id === null || id === undefined) {
|
|
284
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
287
|
+
throw new Error('Required parameter id was null or undefined when calling corporateGroupIdPut.');
|
|
285
288
|
}
|
|
286
289
|
|
|
287
|
-
// verify required parameter '
|
|
288
|
-
if (
|
|
289
|
-
throw new Error('Required parameter
|
|
290
|
+
// verify required parameter 'body' is not null or undefined
|
|
291
|
+
if (body === null || body === undefined) {
|
|
292
|
+
throw new Error('Required parameter body was null or undefined when calling corporateGroupIdPut.');
|
|
290
293
|
}
|
|
291
294
|
|
|
292
295
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -300,7 +303,7 @@ export class MasterAccountApi {
|
|
|
300
303
|
uri: localVarPath,
|
|
301
304
|
useQuerystring: this._useQuerystring,
|
|
302
305
|
json: true,
|
|
303
|
-
body: ObjectSerializer.serialize(
|
|
306
|
+
body: ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
|
|
304
307
|
};
|
|
305
308
|
|
|
306
309
|
let authenticationPromise = Promise.resolve();
|
|
@@ -341,13 +344,12 @@ export class MasterAccountApi {
|
|
|
341
344
|
});
|
|
342
345
|
}
|
|
343
346
|
/**
|
|
344
|
-
*
|
|
345
|
-
* @summary
|
|
346
|
-
* @param
|
|
347
|
+
* This endpoint allows to create a group of sub-accounts
|
|
348
|
+
* @summary Create a new group of sub-accounts
|
|
349
|
+
* @param body Group details to be created.
|
|
347
350
|
*/
|
|
348
|
-
public async
|
|
349
|
-
const localVarPath = this.basePath + '/corporate/
|
|
350
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
351
|
+
public async corporateGroupPost (body: CorporateGroupPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CorporateGroupPost201Response; }> {
|
|
352
|
+
const localVarPath = this.basePath + '/corporate/group';
|
|
351
353
|
let localVarQueryParameters: any = {};
|
|
352
354
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
353
355
|
const produces = ['application/json'];
|
|
@@ -359,9 +361,9 @@ export class MasterAccountApi {
|
|
|
359
361
|
}
|
|
360
362
|
let localVarFormParams: any = {};
|
|
361
363
|
|
|
362
|
-
// verify required parameter '
|
|
363
|
-
if (
|
|
364
|
-
throw new Error('Required parameter
|
|
364
|
+
// verify required parameter 'body' is not null or undefined
|
|
365
|
+
if (body === null || body === undefined) {
|
|
366
|
+
throw new Error('Required parameter body was null or undefined when calling corporateGroupPost.');
|
|
365
367
|
}
|
|
366
368
|
|
|
367
369
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -369,12 +371,13 @@ export class MasterAccountApi {
|
|
|
369
371
|
let localVarUseFormData = false;
|
|
370
372
|
|
|
371
373
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
372
|
-
method: '
|
|
374
|
+
method: 'POST',
|
|
373
375
|
qs: localVarQueryParameters,
|
|
374
376
|
headers: localVarHeaderParams,
|
|
375
377
|
uri: localVarPath,
|
|
376
378
|
useQuerystring: this._useQuerystring,
|
|
377
379
|
json: true,
|
|
380
|
+
body: ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
|
|
378
381
|
};
|
|
379
382
|
|
|
380
383
|
let authenticationPromise = Promise.resolve();
|
|
@@ -399,12 +402,13 @@ export class MasterAccountApi {
|
|
|
399
402
|
localVarRequestOptions.form = localVarFormParams;
|
|
400
403
|
}
|
|
401
404
|
}
|
|
402
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
405
|
+
return new Promise<{ response: http.IncomingMessage; body: CorporateGroupPost201Response; }>((resolve, reject) => {
|
|
403
406
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
404
407
|
if (error) {
|
|
405
408
|
reject(error);
|
|
406
409
|
} else {
|
|
407
410
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
411
|
+
body = ObjectSerializer.deserialize(body, "CorporateGroupPost201Response");
|
|
408
412
|
resolve({ response: response, body: body });
|
|
409
413
|
} else {
|
|
410
414
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -415,13 +419,14 @@ export class MasterAccountApi {
|
|
|
415
419
|
});
|
|
416
420
|
}
|
|
417
421
|
/**
|
|
418
|
-
* This endpoint
|
|
419
|
-
* @summary
|
|
420
|
-
* @param
|
|
422
|
+
* This endpoint allows you to remove a sub-organization from a group.
|
|
423
|
+
* @summary Delete sub-account from group
|
|
424
|
+
* @param groupId Id of the group
|
|
425
|
+
* @param body List of sub-account ids
|
|
421
426
|
*/
|
|
422
|
-
public async
|
|
423
|
-
const localVarPath = this.basePath + '/corporate/
|
|
424
|
-
.replace('{' + '
|
|
427
|
+
public async corporateGroupUnlinkGroupIdSubAccountsPut (groupId: string, body: CorporateGroupUnlinkGroupIdSubAccountsPutRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
428
|
+
const localVarPath = this.basePath + '/corporate/group/unlink/{groupId}/subAccounts'
|
|
429
|
+
.replace('{' + 'groupId' + '}', encodeURIComponent(String(groupId)));
|
|
425
430
|
let localVarQueryParameters: any = {};
|
|
426
431
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
427
432
|
const produces = ['application/json'];
|
|
@@ -433,9 +438,14 @@ export class MasterAccountApi {
|
|
|
433
438
|
}
|
|
434
439
|
let localVarFormParams: any = {};
|
|
435
440
|
|
|
436
|
-
// verify required parameter '
|
|
437
|
-
if (
|
|
438
|
-
throw new Error('Required parameter
|
|
441
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
442
|
+
if (groupId === null || groupId === undefined) {
|
|
443
|
+
throw new Error('Required parameter groupId was null or undefined when calling corporateGroupUnlinkGroupIdSubAccountsPut.');
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// verify required parameter 'body' is not null or undefined
|
|
447
|
+
if (body === null || body === undefined) {
|
|
448
|
+
throw new Error('Required parameter body was null or undefined when calling corporateGroupUnlinkGroupIdSubAccountsPut.');
|
|
439
449
|
}
|
|
440
450
|
|
|
441
451
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -443,12 +453,13 @@ export class MasterAccountApi {
|
|
|
443
453
|
let localVarUseFormData = false;
|
|
444
454
|
|
|
445
455
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
446
|
-
method: '
|
|
456
|
+
method: 'PUT',
|
|
447
457
|
qs: localVarQueryParameters,
|
|
448
458
|
headers: localVarHeaderParams,
|
|
449
459
|
uri: localVarPath,
|
|
450
460
|
useQuerystring: this._useQuerystring,
|
|
451
461
|
json: true,
|
|
462
|
+
body: ObjectSerializer.serialize(body, "CorporateGroupUnlinkGroupIdSubAccountsPutRequest")
|
|
452
463
|
};
|
|
453
464
|
|
|
454
465
|
let authenticationPromise = Promise.resolve();
|
|
@@ -473,13 +484,12 @@ export class MasterAccountApi {
|
|
|
473
484
|
localVarRequestOptions.form = localVarFormParams;
|
|
474
485
|
}
|
|
475
486
|
}
|
|
476
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
487
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
477
488
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
478
489
|
if (error) {
|
|
479
490
|
reject(error);
|
|
480
491
|
} else {
|
|
481
492
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
482
|
-
body = ObjectSerializer.deserialize(body, "SubAccountDetailsResponse");
|
|
483
493
|
resolve({ response: response, body: body });
|
|
484
494
|
} else {
|
|
485
495
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -490,14 +500,11 @@ export class MasterAccountApi {
|
|
|
490
500
|
});
|
|
491
501
|
}
|
|
492
502
|
/**
|
|
493
|
-
* This endpoint will
|
|
494
|
-
* @summary
|
|
495
|
-
* @param id Id of the sub-account organization
|
|
496
|
-
* @param updatePlanDetails Values to update a sub-account plan
|
|
503
|
+
* This endpoint will provide the details of the master account.
|
|
504
|
+
* @summary Get the details of requested master account
|
|
497
505
|
*/
|
|
498
|
-
public async
|
|
499
|
-
const localVarPath = this.basePath + '/corporate/
|
|
500
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
506
|
+
public async corporateMasterAccountGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: MasterDetailsResponse; }> {
|
|
507
|
+
const localVarPath = this.basePath + '/corporate/masterAccount';
|
|
501
508
|
let localVarQueryParameters: any = {};
|
|
502
509
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
503
510
|
const produces = ['application/json'];
|
|
@@ -509,28 +516,17 @@ export class MasterAccountApi {
|
|
|
509
516
|
}
|
|
510
517
|
let localVarFormParams: any = {};
|
|
511
518
|
|
|
512
|
-
// verify required parameter 'id' is not null or undefined
|
|
513
|
-
if (id === null || id === undefined) {
|
|
514
|
-
throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdPlanPut.');
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
// verify required parameter 'updatePlanDetails' is not null or undefined
|
|
518
|
-
if (updatePlanDetails === null || updatePlanDetails === undefined) {
|
|
519
|
-
throw new Error('Required parameter updatePlanDetails was null or undefined when calling corporateSubAccountIdPlanPut.');
|
|
520
|
-
}
|
|
521
|
-
|
|
522
519
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
523
520
|
|
|
524
521
|
let localVarUseFormData = false;
|
|
525
522
|
|
|
526
523
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
527
|
-
method: '
|
|
524
|
+
method: 'GET',
|
|
528
525
|
qs: localVarQueryParameters,
|
|
529
526
|
headers: localVarHeaderParams,
|
|
530
527
|
uri: localVarPath,
|
|
531
528
|
useQuerystring: this._useQuerystring,
|
|
532
529
|
json: true,
|
|
533
|
-
body: ObjectSerializer.serialize(updatePlanDetails, "SubAccountUpdatePlanRequest")
|
|
534
530
|
};
|
|
535
531
|
|
|
536
532
|
let authenticationPromise = Promise.resolve();
|
|
@@ -555,12 +551,13 @@ export class MasterAccountApi {
|
|
|
555
551
|
localVarRequestOptions.form = localVarFormParams;
|
|
556
552
|
}
|
|
557
553
|
}
|
|
558
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
554
|
+
return new Promise<{ response: http.IncomingMessage; body: MasterDetailsResponse; }>((resolve, reject) => {
|
|
559
555
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
560
556
|
if (error) {
|
|
561
557
|
reject(error);
|
|
562
558
|
} else {
|
|
563
559
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
560
|
+
body = ObjectSerializer.deserialize(body, "MasterDetailsResponse");
|
|
564
561
|
resolve({ response: response, body: body });
|
|
565
562
|
} else {
|
|
566
563
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -571,12 +568,12 @@ export class MasterAccountApi {
|
|
|
571
568
|
});
|
|
572
569
|
}
|
|
573
570
|
/**
|
|
574
|
-
* This endpoint
|
|
575
|
-
* @summary
|
|
576
|
-
* @param
|
|
571
|
+
* This endpoint generates an SSO token to authenticate and access the admin account using the endpoint https://account-app.brevo.com/account/login/corporate/sso/[token], where [token] will be replaced by the actual token.
|
|
572
|
+
* @summary Generate SSO token to access admin account
|
|
573
|
+
* @param ssoTokenRequestCorporate User email of admin account
|
|
577
574
|
*/
|
|
578
|
-
public async
|
|
579
|
-
const localVarPath = this.basePath + '/corporate/
|
|
575
|
+
public async corporateSsoTokenPost (ssoTokenRequestCorporate: SsoTokenRequestCorporate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSsoToken; }> {
|
|
576
|
+
const localVarPath = this.basePath + '/corporate/ssoToken';
|
|
580
577
|
let localVarQueryParameters: any = {};
|
|
581
578
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
582
579
|
const produces = ['application/json'];
|
|
@@ -588,9 +585,9 @@ export class MasterAccountApi {
|
|
|
588
585
|
}
|
|
589
586
|
let localVarFormParams: any = {};
|
|
590
587
|
|
|
591
|
-
// verify required parameter '
|
|
592
|
-
if (
|
|
593
|
-
throw new Error('Required parameter
|
|
588
|
+
// verify required parameter 'ssoTokenRequestCorporate' is not null or undefined
|
|
589
|
+
if (ssoTokenRequestCorporate === null || ssoTokenRequestCorporate === undefined) {
|
|
590
|
+
throw new Error('Required parameter ssoTokenRequestCorporate was null or undefined when calling corporateSsoTokenPost.');
|
|
594
591
|
}
|
|
595
592
|
|
|
596
593
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -604,7 +601,7 @@ export class MasterAccountApi {
|
|
|
604
601
|
uri: localVarPath,
|
|
605
602
|
useQuerystring: this._useQuerystring,
|
|
606
603
|
json: true,
|
|
607
|
-
body: ObjectSerializer.serialize(
|
|
604
|
+
body: ObjectSerializer.serialize(ssoTokenRequestCorporate, "SsoTokenRequestCorporate")
|
|
608
605
|
};
|
|
609
606
|
|
|
610
607
|
let authenticationPromise = Promise.resolve();
|
|
@@ -629,13 +626,13 @@ export class MasterAccountApi {
|
|
|
629
626
|
localVarRequestOptions.form = localVarFormParams;
|
|
630
627
|
}
|
|
631
628
|
}
|
|
632
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
629
|
+
return new Promise<{ response: http.IncomingMessage; body: GetSsoToken; }>((resolve, reject) => {
|
|
633
630
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
634
631
|
if (error) {
|
|
635
632
|
reject(error);
|
|
636
633
|
} else {
|
|
637
634
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
638
|
-
body = ObjectSerializer.deserialize(body, "
|
|
635
|
+
body = ObjectSerializer.deserialize(body, "GetSsoToken");
|
|
639
636
|
resolve({ response: response, body: body });
|
|
640
637
|
} else {
|
|
641
638
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -646,11 +643,12 @@ export class MasterAccountApi {
|
|
|
646
643
|
});
|
|
647
644
|
}
|
|
648
645
|
/**
|
|
649
|
-
* This endpoint will
|
|
650
|
-
* @summary
|
|
651
|
-
* @param
|
|
646
|
+
* This endpoint will provide the list all the sub-accounts of the master account.
|
|
647
|
+
* @summary Get the list of all the sub-accounts of the master account.
|
|
648
|
+
* @param offset Index of the first sub-account in the page
|
|
649
|
+
* @param limit Number of sub-accounts to be displayed on each page
|
|
652
650
|
*/
|
|
653
|
-
public async
|
|
651
|
+
public async corporateSubAccountGet (offset: number, limit: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: SubAccountsResponse; }> {
|
|
654
652
|
const localVarPath = this.basePath + '/corporate/subAccount';
|
|
655
653
|
let localVarQueryParameters: any = {};
|
|
656
654
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -663,9 +661,22 @@ export class MasterAccountApi {
|
|
|
663
661
|
}
|
|
664
662
|
let localVarFormParams: any = {};
|
|
665
663
|
|
|
666
|
-
// verify required parameter '
|
|
667
|
-
if (
|
|
668
|
-
throw new Error('Required parameter
|
|
664
|
+
// verify required parameter 'offset' is not null or undefined
|
|
665
|
+
if (offset === null || offset === undefined) {
|
|
666
|
+
throw new Error('Required parameter offset was null or undefined when calling corporateSubAccountGet.');
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// verify required parameter 'limit' is not null or undefined
|
|
670
|
+
if (limit === null || limit === undefined) {
|
|
671
|
+
throw new Error('Required parameter limit was null or undefined when calling corporateSubAccountGet.');
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
if (offset !== undefined) {
|
|
675
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (limit !== undefined) {
|
|
679
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
669
680
|
}
|
|
670
681
|
|
|
671
682
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -673,13 +684,12 @@ export class MasterAccountApi {
|
|
|
673
684
|
let localVarUseFormData = false;
|
|
674
685
|
|
|
675
686
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
676
|
-
method: '
|
|
687
|
+
method: 'GET',
|
|
677
688
|
qs: localVarQueryParameters,
|
|
678
689
|
headers: localVarHeaderParams,
|
|
679
690
|
uri: localVarPath,
|
|
680
691
|
useQuerystring: this._useQuerystring,
|
|
681
692
|
json: true,
|
|
682
|
-
body: ObjectSerializer.serialize(subAccountCreate, "CreateSubAccount")
|
|
683
693
|
};
|
|
684
694
|
|
|
685
695
|
let authenticationPromise = Promise.resolve();
|
|
@@ -704,13 +714,13 @@ export class MasterAccountApi {
|
|
|
704
714
|
localVarRequestOptions.form = localVarFormParams;
|
|
705
715
|
}
|
|
706
716
|
}
|
|
707
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
717
|
+
return new Promise<{ response: http.IncomingMessage; body: SubAccountsResponse; }>((resolve, reject) => {
|
|
708
718
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
709
719
|
if (error) {
|
|
710
720
|
reject(error);
|
|
711
721
|
} else {
|
|
712
722
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
713
|
-
body = ObjectSerializer.deserialize(body, "
|
|
723
|
+
body = ObjectSerializer.deserialize(body, "SubAccountsResponse");
|
|
714
724
|
resolve({ response: response, body: body });
|
|
715
725
|
} else {
|
|
716
726
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -721,12 +731,14 @@ export class MasterAccountApi {
|
|
|
721
731
|
});
|
|
722
732
|
}
|
|
723
733
|
/**
|
|
724
|
-
*
|
|
725
|
-
* @summary
|
|
726
|
-
* @param
|
|
734
|
+
* API endpoint for the Corporate owner to enable/disable applications on the sub-account
|
|
735
|
+
* @summary Enable/disable sub-account application(s)
|
|
736
|
+
* @param id Id of the sub-account organization (mandatory)
|
|
737
|
+
* @param toggleApplications List of applications to activate or deactivate on a sub-account
|
|
727
738
|
*/
|
|
728
|
-
public async
|
|
729
|
-
const localVarPath = this.basePath + '/corporate/subAccount/
|
|
739
|
+
public async corporateSubAccountIdApplicationsTogglePut (id: number, toggleApplications: SubAccountAppsToggleRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
740
|
+
const localVarPath = this.basePath + '/corporate/subAccount/{id}/applications/toggle'
|
|
741
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
730
742
|
let localVarQueryParameters: any = {};
|
|
731
743
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
732
744
|
const produces = ['application/json'];
|
|
@@ -738,9 +750,14 @@ export class MasterAccountApi {
|
|
|
738
750
|
}
|
|
739
751
|
let localVarFormParams: any = {};
|
|
740
752
|
|
|
741
|
-
// verify required parameter '
|
|
742
|
-
if (
|
|
743
|
-
throw new Error('Required parameter
|
|
753
|
+
// verify required parameter 'id' is not null or undefined
|
|
754
|
+
if (id === null || id === undefined) {
|
|
755
|
+
throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdApplicationsTogglePut.');
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
// verify required parameter 'toggleApplications' is not null or undefined
|
|
759
|
+
if (toggleApplications === null || toggleApplications === undefined) {
|
|
760
|
+
throw new Error('Required parameter toggleApplications was null or undefined when calling corporateSubAccountIdApplicationsTogglePut.');
|
|
744
761
|
}
|
|
745
762
|
|
|
746
763
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -748,13 +765,13 @@ export class MasterAccountApi {
|
|
|
748
765
|
let localVarUseFormData = false;
|
|
749
766
|
|
|
750
767
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
751
|
-
method: '
|
|
768
|
+
method: 'PUT',
|
|
752
769
|
qs: localVarQueryParameters,
|
|
753
770
|
headers: localVarHeaderParams,
|
|
754
771
|
uri: localVarPath,
|
|
755
772
|
useQuerystring: this._useQuerystring,
|
|
756
773
|
json: true,
|
|
757
|
-
body: ObjectSerializer.serialize(
|
|
774
|
+
body: ObjectSerializer.serialize(toggleApplications, "SubAccountAppsToggleRequest")
|
|
758
775
|
};
|
|
759
776
|
|
|
760
777
|
let authenticationPromise = Promise.resolve();
|
|
@@ -779,13 +796,12 @@ export class MasterAccountApi {
|
|
|
779
796
|
localVarRequestOptions.form = localVarFormParams;
|
|
780
797
|
}
|
|
781
798
|
}
|
|
782
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
799
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
783
800
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
784
801
|
if (error) {
|
|
785
802
|
reject(error);
|
|
786
803
|
} else {
|
|
787
804
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
788
|
-
body = ObjectSerializer.deserialize(body, "GetSsoToken");
|
|
789
805
|
resolve({ response: response, body: body });
|
|
790
806
|
} else {
|
|
791
807
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -797,14 +813,12 @@ export class MasterAccountApi {
|
|
|
797
813
|
}
|
|
798
814
|
/**
|
|
799
815
|
*
|
|
800
|
-
* @summary
|
|
801
|
-
* @param
|
|
802
|
-
* @param endDate Mandatory if startDate is used. Enter end date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month.
|
|
803
|
-
* @param limit Number of documents per page
|
|
804
|
-
* @param offset Index of the first document in the page.
|
|
816
|
+
* @summary Delete a sub-account
|
|
817
|
+
* @param id Id of the sub-account organization to be deleted
|
|
805
818
|
*/
|
|
806
|
-
public async
|
|
807
|
-
const localVarPath = this.basePath + '/
|
|
819
|
+
public async corporateSubAccountIdDelete (id: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
820
|
+
const localVarPath = this.basePath + '/corporate/subAccount/{id}'
|
|
821
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
808
822
|
let localVarQueryParameters: any = {};
|
|
809
823
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
810
824
|
const produces = ['application/json'];
|
|
@@ -816,20 +830,9 @@ export class MasterAccountApi {
|
|
|
816
830
|
}
|
|
817
831
|
let localVarFormParams: any = {};
|
|
818
832
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
if (endDate !== undefined) {
|
|
824
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
if (limit !== undefined) {
|
|
828
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
if (offset !== undefined) {
|
|
832
|
-
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
833
|
+
// verify required parameter 'id' is not null or undefined
|
|
834
|
+
if (id === null || id === undefined) {
|
|
835
|
+
throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdDelete.');
|
|
833
836
|
}
|
|
834
837
|
|
|
835
838
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -837,7 +840,7 @@ export class MasterAccountApi {
|
|
|
837
840
|
let localVarUseFormData = false;
|
|
838
841
|
|
|
839
842
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
840
|
-
method: '
|
|
843
|
+
method: 'DELETE',
|
|
841
844
|
qs: localVarQueryParameters,
|
|
842
845
|
headers: localVarHeaderParams,
|
|
843
846
|
uri: localVarPath,
|
|
@@ -867,13 +870,923 @@ export class MasterAccountApi {
|
|
|
867
870
|
localVarRequestOptions.form = localVarFormParams;
|
|
868
871
|
}
|
|
869
872
|
}
|
|
870
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
873
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
871
874
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
872
875
|
if (error) {
|
|
873
876
|
reject(error);
|
|
874
877
|
} else {
|
|
875
878
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
876
|
-
|
|
879
|
+
resolve({ response: response, body: body });
|
|
880
|
+
} else {
|
|
881
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* This endpoint will provide the details for the specified sub-account company
|
|
890
|
+
* @summary Get sub-account details
|
|
891
|
+
* @param id Id of the sub-account organization
|
|
892
|
+
*/
|
|
893
|
+
public async corporateSubAccountIdGet (id: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: SubAccountDetailsResponse; }> {
|
|
894
|
+
const localVarPath = this.basePath + '/corporate/subAccount/{id}'
|
|
895
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
896
|
+
let localVarQueryParameters: any = {};
|
|
897
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
898
|
+
const produces = ['application/json'];
|
|
899
|
+
// give precedence to 'application/json'
|
|
900
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
901
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
902
|
+
} else {
|
|
903
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
904
|
+
}
|
|
905
|
+
let localVarFormParams: any = {};
|
|
906
|
+
|
|
907
|
+
// verify required parameter 'id' is not null or undefined
|
|
908
|
+
if (id === null || id === undefined) {
|
|
909
|
+
throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdGet.');
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
913
|
+
|
|
914
|
+
let localVarUseFormData = false;
|
|
915
|
+
|
|
916
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
917
|
+
method: 'GET',
|
|
918
|
+
qs: localVarQueryParameters,
|
|
919
|
+
headers: localVarHeaderParams,
|
|
920
|
+
uri: localVarPath,
|
|
921
|
+
useQuerystring: this._useQuerystring,
|
|
922
|
+
json: true,
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
let authenticationPromise = Promise.resolve();
|
|
926
|
+
if (this.authentications.apiKey.apiKey) {
|
|
927
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
928
|
+
}
|
|
929
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
930
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
931
|
+
}
|
|
932
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
933
|
+
|
|
934
|
+
let interceptorPromise = authenticationPromise;
|
|
935
|
+
for (const interceptor of this.interceptors) {
|
|
936
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
return interceptorPromise.then(() => {
|
|
940
|
+
if (Object.keys(localVarFormParams).length) {
|
|
941
|
+
if (localVarUseFormData) {
|
|
942
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
943
|
+
} else {
|
|
944
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
return new Promise<{ response: http.IncomingMessage; body: SubAccountDetailsResponse; }>((resolve, reject) => {
|
|
948
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
949
|
+
if (error) {
|
|
950
|
+
reject(error);
|
|
951
|
+
} else {
|
|
952
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
953
|
+
body = ObjectSerializer.deserialize(body, "SubAccountDetailsResponse");
|
|
954
|
+
resolve({ response: response, body: body });
|
|
955
|
+
} else {
|
|
956
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
});
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* This endpoint will update the sub-account plan
|
|
965
|
+
* @summary Update sub-account plan
|
|
966
|
+
* @param id Id of the sub-account organization
|
|
967
|
+
* @param updatePlanDetails Values to update a sub-account plan
|
|
968
|
+
*/
|
|
969
|
+
public async corporateSubAccountIdPlanPut (id: number, updatePlanDetails: SubAccountUpdatePlanRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
970
|
+
const localVarPath = this.basePath + '/corporate/subAccount/{id}/plan'
|
|
971
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
972
|
+
let localVarQueryParameters: any = {};
|
|
973
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
974
|
+
const produces = ['application/json'];
|
|
975
|
+
// give precedence to 'application/json'
|
|
976
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
977
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
978
|
+
} else {
|
|
979
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
980
|
+
}
|
|
981
|
+
let localVarFormParams: any = {};
|
|
982
|
+
|
|
983
|
+
// verify required parameter 'id' is not null or undefined
|
|
984
|
+
if (id === null || id === undefined) {
|
|
985
|
+
throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdPlanPut.');
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
// verify required parameter 'updatePlanDetails' is not null or undefined
|
|
989
|
+
if (updatePlanDetails === null || updatePlanDetails === undefined) {
|
|
990
|
+
throw new Error('Required parameter updatePlanDetails was null or undefined when calling corporateSubAccountIdPlanPut.');
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
994
|
+
|
|
995
|
+
let localVarUseFormData = false;
|
|
996
|
+
|
|
997
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
998
|
+
method: 'PUT',
|
|
999
|
+
qs: localVarQueryParameters,
|
|
1000
|
+
headers: localVarHeaderParams,
|
|
1001
|
+
uri: localVarPath,
|
|
1002
|
+
useQuerystring: this._useQuerystring,
|
|
1003
|
+
json: true,
|
|
1004
|
+
body: ObjectSerializer.serialize(updatePlanDetails, "SubAccountUpdatePlanRequest")
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
let authenticationPromise = Promise.resolve();
|
|
1008
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1009
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1010
|
+
}
|
|
1011
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1012
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1013
|
+
}
|
|
1014
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1015
|
+
|
|
1016
|
+
let interceptorPromise = authenticationPromise;
|
|
1017
|
+
for (const interceptor of this.interceptors) {
|
|
1018
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
return interceptorPromise.then(() => {
|
|
1022
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1023
|
+
if (localVarUseFormData) {
|
|
1024
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1025
|
+
} else {
|
|
1026
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1030
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1031
|
+
if (error) {
|
|
1032
|
+
reject(error);
|
|
1033
|
+
} else {
|
|
1034
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1035
|
+
resolve({ response: response, body: body });
|
|
1036
|
+
} else {
|
|
1037
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* This endpoint will generate an API v3 key for a sub account
|
|
1046
|
+
* @summary Create an API key for a sub-account
|
|
1047
|
+
* @param createApiKeyRequest Values to generate API key for sub-account
|
|
1048
|
+
*/
|
|
1049
|
+
public async corporateSubAccountKeyPost (createApiKeyRequest: CreateApiKeyRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateApiKeyResponse; }> {
|
|
1050
|
+
const localVarPath = this.basePath + '/corporate/subAccount/key';
|
|
1051
|
+
let localVarQueryParameters: any = {};
|
|
1052
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1053
|
+
const produces = ['application/json'];
|
|
1054
|
+
// give precedence to 'application/json'
|
|
1055
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1056
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1057
|
+
} else {
|
|
1058
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1059
|
+
}
|
|
1060
|
+
let localVarFormParams: any = {};
|
|
1061
|
+
|
|
1062
|
+
// verify required parameter 'createApiKeyRequest' is not null or undefined
|
|
1063
|
+
if (createApiKeyRequest === null || createApiKeyRequest === undefined) {
|
|
1064
|
+
throw new Error('Required parameter createApiKeyRequest was null or undefined when calling corporateSubAccountKeyPost.');
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1068
|
+
|
|
1069
|
+
let localVarUseFormData = false;
|
|
1070
|
+
|
|
1071
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1072
|
+
method: 'POST',
|
|
1073
|
+
qs: localVarQueryParameters,
|
|
1074
|
+
headers: localVarHeaderParams,
|
|
1075
|
+
uri: localVarPath,
|
|
1076
|
+
useQuerystring: this._useQuerystring,
|
|
1077
|
+
json: true,
|
|
1078
|
+
body: ObjectSerializer.serialize(createApiKeyRequest, "CreateApiKeyRequest")
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
let authenticationPromise = Promise.resolve();
|
|
1082
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1083
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1084
|
+
}
|
|
1085
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1086
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1087
|
+
}
|
|
1088
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1089
|
+
|
|
1090
|
+
let interceptorPromise = authenticationPromise;
|
|
1091
|
+
for (const interceptor of this.interceptors) {
|
|
1092
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
return interceptorPromise.then(() => {
|
|
1096
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1097
|
+
if (localVarUseFormData) {
|
|
1098
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1099
|
+
} else {
|
|
1100
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return new Promise<{ response: http.IncomingMessage; body: CreateApiKeyResponse; }>((resolve, reject) => {
|
|
1104
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1105
|
+
if (error) {
|
|
1106
|
+
reject(error);
|
|
1107
|
+
} else {
|
|
1108
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1109
|
+
body = ObjectSerializer.deserialize(body, "CreateApiKeyResponse");
|
|
1110
|
+
resolve({ response: response, body: body });
|
|
1111
|
+
} else {
|
|
1112
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
});
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* This endpoint will create a new sub-account under a master account
|
|
1121
|
+
* @summary Create a new sub-account under a master account.
|
|
1122
|
+
* @param subAccountCreate values to create new sub-account
|
|
1123
|
+
*/
|
|
1124
|
+
public async corporateSubAccountPost (subAccountCreate: CreateSubAccount, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateSubAccountResponse; }> {
|
|
1125
|
+
const localVarPath = this.basePath + '/corporate/subAccount';
|
|
1126
|
+
let localVarQueryParameters: any = {};
|
|
1127
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1128
|
+
const produces = ['application/json'];
|
|
1129
|
+
// give precedence to 'application/json'
|
|
1130
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1131
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1132
|
+
} else {
|
|
1133
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1134
|
+
}
|
|
1135
|
+
let localVarFormParams: any = {};
|
|
1136
|
+
|
|
1137
|
+
// verify required parameter 'subAccountCreate' is not null or undefined
|
|
1138
|
+
if (subAccountCreate === null || subAccountCreate === undefined) {
|
|
1139
|
+
throw new Error('Required parameter subAccountCreate was null or undefined when calling corporateSubAccountPost.');
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1143
|
+
|
|
1144
|
+
let localVarUseFormData = false;
|
|
1145
|
+
|
|
1146
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1147
|
+
method: 'POST',
|
|
1148
|
+
qs: localVarQueryParameters,
|
|
1149
|
+
headers: localVarHeaderParams,
|
|
1150
|
+
uri: localVarPath,
|
|
1151
|
+
useQuerystring: this._useQuerystring,
|
|
1152
|
+
json: true,
|
|
1153
|
+
body: ObjectSerializer.serialize(subAccountCreate, "CreateSubAccount")
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
let authenticationPromise = Promise.resolve();
|
|
1157
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1158
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1159
|
+
}
|
|
1160
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1161
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1162
|
+
}
|
|
1163
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1164
|
+
|
|
1165
|
+
let interceptorPromise = authenticationPromise;
|
|
1166
|
+
for (const interceptor of this.interceptors) {
|
|
1167
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
return interceptorPromise.then(() => {
|
|
1171
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1172
|
+
if (localVarUseFormData) {
|
|
1173
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1174
|
+
} else {
|
|
1175
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
return new Promise<{ response: http.IncomingMessage; body: CreateSubAccountResponse; }>((resolve, reject) => {
|
|
1179
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1180
|
+
if (error) {
|
|
1181
|
+
reject(error);
|
|
1182
|
+
} else {
|
|
1183
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1184
|
+
body = ObjectSerializer.deserialize(body, "CreateSubAccountResponse");
|
|
1185
|
+
resolve({ response: response, body: body });
|
|
1186
|
+
} else {
|
|
1187
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
});
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
|
|
1196
|
+
* @summary Generate SSO token to access sub-account
|
|
1197
|
+
* @param ssoTokenRequest Values to generate SSO token for sub-account
|
|
1198
|
+
*/
|
|
1199
|
+
public async corporateSubAccountSsoTokenPost (ssoTokenRequest: SsoTokenRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSsoToken; }> {
|
|
1200
|
+
const localVarPath = this.basePath + '/corporate/subAccount/ssoToken';
|
|
1201
|
+
let localVarQueryParameters: any = {};
|
|
1202
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1203
|
+
const produces = ['application/json'];
|
|
1204
|
+
// give precedence to 'application/json'
|
|
1205
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1206
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1207
|
+
} else {
|
|
1208
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1209
|
+
}
|
|
1210
|
+
let localVarFormParams: any = {};
|
|
1211
|
+
|
|
1212
|
+
// verify required parameter 'ssoTokenRequest' is not null or undefined
|
|
1213
|
+
if (ssoTokenRequest === null || ssoTokenRequest === undefined) {
|
|
1214
|
+
throw new Error('Required parameter ssoTokenRequest was null or undefined when calling corporateSubAccountSsoTokenPost.');
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1218
|
+
|
|
1219
|
+
let localVarUseFormData = false;
|
|
1220
|
+
|
|
1221
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1222
|
+
method: 'POST',
|
|
1223
|
+
qs: localVarQueryParameters,
|
|
1224
|
+
headers: localVarHeaderParams,
|
|
1225
|
+
uri: localVarPath,
|
|
1226
|
+
useQuerystring: this._useQuerystring,
|
|
1227
|
+
json: true,
|
|
1228
|
+
body: ObjectSerializer.serialize(ssoTokenRequest, "SsoTokenRequest")
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
let authenticationPromise = Promise.resolve();
|
|
1232
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1233
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1234
|
+
}
|
|
1235
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1236
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1237
|
+
}
|
|
1238
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1239
|
+
|
|
1240
|
+
let interceptorPromise = authenticationPromise;
|
|
1241
|
+
for (const interceptor of this.interceptors) {
|
|
1242
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
return interceptorPromise.then(() => {
|
|
1246
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1247
|
+
if (localVarUseFormData) {
|
|
1248
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1249
|
+
} else {
|
|
1250
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
return new Promise<{ response: http.IncomingMessage; body: GetSsoToken; }>((resolve, reject) => {
|
|
1254
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1255
|
+
if (error) {
|
|
1256
|
+
reject(error);
|
|
1257
|
+
} else {
|
|
1258
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1259
|
+
body = ObjectSerializer.deserialize(body, "GetSsoToken");
|
|
1260
|
+
resolve({ response: response, body: body });
|
|
1261
|
+
} else {
|
|
1262
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
});
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitation
|
|
1271
|
+
* @summary Resend / cancel admin user invitation
|
|
1272
|
+
* @param action Action to be performed (cancel / resend)
|
|
1273
|
+
* @param email Email address of the recipient
|
|
1274
|
+
*/
|
|
1275
|
+
public async corporateUserInvitationActionEmailPut (action: string, email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CorporateUserInvitationActionEmailPut200Response; }> {
|
|
1276
|
+
const localVarPath = this.basePath + '/corporate/user/invitation/{action}/{email}'
|
|
1277
|
+
.replace('{' + 'action' + '}', encodeURIComponent(String(action)))
|
|
1278
|
+
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1279
|
+
let localVarQueryParameters: any = {};
|
|
1280
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1281
|
+
const produces = ['application/json'];
|
|
1282
|
+
// give precedence to 'application/json'
|
|
1283
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1284
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1285
|
+
} else {
|
|
1286
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1287
|
+
}
|
|
1288
|
+
let localVarFormParams: any = {};
|
|
1289
|
+
|
|
1290
|
+
// verify required parameter 'action' is not null or undefined
|
|
1291
|
+
if (action === null || action === undefined) {
|
|
1292
|
+
throw new Error('Required parameter action was null or undefined when calling corporateUserInvitationActionEmailPut.');
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
// verify required parameter 'email' is not null or undefined
|
|
1296
|
+
if (email === null || email === undefined) {
|
|
1297
|
+
throw new Error('Required parameter email was null or undefined when calling corporateUserInvitationActionEmailPut.');
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1301
|
+
|
|
1302
|
+
let localVarUseFormData = false;
|
|
1303
|
+
|
|
1304
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1305
|
+
method: 'PUT',
|
|
1306
|
+
qs: localVarQueryParameters,
|
|
1307
|
+
headers: localVarHeaderParams,
|
|
1308
|
+
uri: localVarPath,
|
|
1309
|
+
useQuerystring: this._useQuerystring,
|
|
1310
|
+
json: true,
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
let authenticationPromise = Promise.resolve();
|
|
1314
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1315
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1316
|
+
}
|
|
1317
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1318
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1319
|
+
}
|
|
1320
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1321
|
+
|
|
1322
|
+
let interceptorPromise = authenticationPromise;
|
|
1323
|
+
for (const interceptor of this.interceptors) {
|
|
1324
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
return interceptorPromise.then(() => {
|
|
1328
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1329
|
+
if (localVarUseFormData) {
|
|
1330
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1331
|
+
} else {
|
|
1332
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
return new Promise<{ response: http.IncomingMessage; body: CorporateUserInvitationActionEmailPut200Response; }>((resolve, reject) => {
|
|
1336
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1337
|
+
if (error) {
|
|
1338
|
+
reject(error);
|
|
1339
|
+
} else {
|
|
1340
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1341
|
+
body = ObjectSerializer.deserialize(body, "CorporateUserInvitationActionEmailPut200Response");
|
|
1342
|
+
resolve({ response: response, body: body });
|
|
1343
|
+
} else {
|
|
1344
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
});
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* This endpoint allows to revoke/remove an invited member of your Admin account
|
|
1353
|
+
* @summary Revoke an admin user
|
|
1354
|
+
* @param email Email of the invited user
|
|
1355
|
+
*/
|
|
1356
|
+
public async corporateUserRevokeEmailDelete (email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
1357
|
+
const localVarPath = this.basePath + '/corporate/user/revoke/{email}'
|
|
1358
|
+
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1359
|
+
let localVarQueryParameters: any = {};
|
|
1360
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1361
|
+
const produces = ['application/json'];
|
|
1362
|
+
// give precedence to 'application/json'
|
|
1363
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1364
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1365
|
+
} else {
|
|
1366
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1367
|
+
}
|
|
1368
|
+
let localVarFormParams: any = {};
|
|
1369
|
+
|
|
1370
|
+
// verify required parameter 'email' is not null or undefined
|
|
1371
|
+
if (email === null || email === undefined) {
|
|
1372
|
+
throw new Error('Required parameter email was null or undefined when calling corporateUserRevokeEmailDelete.');
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1376
|
+
|
|
1377
|
+
let localVarUseFormData = false;
|
|
1378
|
+
|
|
1379
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1380
|
+
method: 'DELETE',
|
|
1381
|
+
qs: localVarQueryParameters,
|
|
1382
|
+
headers: localVarHeaderParams,
|
|
1383
|
+
uri: localVarPath,
|
|
1384
|
+
useQuerystring: this._useQuerystring,
|
|
1385
|
+
json: true,
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
let authenticationPromise = Promise.resolve();
|
|
1389
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1390
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1391
|
+
}
|
|
1392
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1393
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1394
|
+
}
|
|
1395
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1396
|
+
|
|
1397
|
+
let interceptorPromise = authenticationPromise;
|
|
1398
|
+
for (const interceptor of this.interceptors) {
|
|
1399
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
return interceptorPromise.then(() => {
|
|
1403
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1404
|
+
if (localVarUseFormData) {
|
|
1405
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1406
|
+
} else {
|
|
1407
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1411
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1412
|
+
if (error) {
|
|
1413
|
+
reject(error);
|
|
1414
|
+
} else {
|
|
1415
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1416
|
+
resolve({ response: response, body: body });
|
|
1417
|
+
} else {
|
|
1418
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
});
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
*
|
|
1427
|
+
* @summary Get user activity logs
|
|
1428
|
+
* @param startDate Mandatory if endDate is used. Enter start date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. Additionally, you can retrieve activity logs from the past 12 months from the date of your search.
|
|
1429
|
+
* @param endDate Mandatory if startDate is used. Enter end date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month.
|
|
1430
|
+
* @param limit Number of documents per page
|
|
1431
|
+
* @param offset Index of the first document in the page.
|
|
1432
|
+
*/
|
|
1433
|
+
public async getAccountActivity (startDate?: string, endDate?: string, limit?: number, offset?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAccountActivity; }> {
|
|
1434
|
+
const localVarPath = this.basePath + '/organization/activities';
|
|
1435
|
+
let localVarQueryParameters: any = {};
|
|
1436
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1437
|
+
const produces = ['application/json'];
|
|
1438
|
+
// give precedence to 'application/json'
|
|
1439
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1440
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1441
|
+
} else {
|
|
1442
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1443
|
+
}
|
|
1444
|
+
let localVarFormParams: any = {};
|
|
1445
|
+
|
|
1446
|
+
if (startDate !== undefined) {
|
|
1447
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
if (endDate !== undefined) {
|
|
1451
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (limit !== undefined) {
|
|
1455
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
if (offset !== undefined) {
|
|
1459
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1463
|
+
|
|
1464
|
+
let localVarUseFormData = false;
|
|
1465
|
+
|
|
1466
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1467
|
+
method: 'GET',
|
|
1468
|
+
qs: localVarQueryParameters,
|
|
1469
|
+
headers: localVarHeaderParams,
|
|
1470
|
+
uri: localVarPath,
|
|
1471
|
+
useQuerystring: this._useQuerystring,
|
|
1472
|
+
json: true,
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
let authenticationPromise = Promise.resolve();
|
|
1476
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1477
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1478
|
+
}
|
|
1479
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1480
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1481
|
+
}
|
|
1482
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1483
|
+
|
|
1484
|
+
let interceptorPromise = authenticationPromise;
|
|
1485
|
+
for (const interceptor of this.interceptors) {
|
|
1486
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
return interceptorPromise.then(() => {
|
|
1490
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1491
|
+
if (localVarUseFormData) {
|
|
1492
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1493
|
+
} else {
|
|
1494
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
return new Promise<{ response: http.IncomingMessage; body: GetAccountActivity; }>((resolve, reject) => {
|
|
1498
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1499
|
+
if (error) {
|
|
1500
|
+
reject(error);
|
|
1501
|
+
} else {
|
|
1502
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1503
|
+
body = ObjectSerializer.deserialize(body, "GetAccountActivity");
|
|
1504
|
+
resolve({ response: response, body: body });
|
|
1505
|
+
} else {
|
|
1506
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
});
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* This endpoint allows you to list all Admin users of your Admin account
|
|
1515
|
+
* @summary Get the list of all admin users
|
|
1516
|
+
*/
|
|
1517
|
+
public async getCorporateInvitedUsersList (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetCorporateInvitedUsersList; }> {
|
|
1518
|
+
const localVarPath = this.basePath + '/corporate/invited/users';
|
|
1519
|
+
let localVarQueryParameters: any = {};
|
|
1520
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1521
|
+
const produces = ['application/json'];
|
|
1522
|
+
// give precedence to 'application/json'
|
|
1523
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1524
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1525
|
+
} else {
|
|
1526
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1527
|
+
}
|
|
1528
|
+
let localVarFormParams: any = {};
|
|
1529
|
+
|
|
1530
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1531
|
+
|
|
1532
|
+
let localVarUseFormData = false;
|
|
1533
|
+
|
|
1534
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1535
|
+
method: 'GET',
|
|
1536
|
+
qs: localVarQueryParameters,
|
|
1537
|
+
headers: localVarHeaderParams,
|
|
1538
|
+
uri: localVarPath,
|
|
1539
|
+
useQuerystring: this._useQuerystring,
|
|
1540
|
+
json: true,
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
let authenticationPromise = Promise.resolve();
|
|
1544
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1545
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1546
|
+
}
|
|
1547
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1548
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1549
|
+
}
|
|
1550
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1551
|
+
|
|
1552
|
+
let interceptorPromise = authenticationPromise;
|
|
1553
|
+
for (const interceptor of this.interceptors) {
|
|
1554
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
return interceptorPromise.then(() => {
|
|
1558
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1559
|
+
if (localVarUseFormData) {
|
|
1560
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1561
|
+
} else {
|
|
1562
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
return new Promise<{ response: http.IncomingMessage; body: GetCorporateInvitedUsersList; }>((resolve, reject) => {
|
|
1566
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1567
|
+
if (error) {
|
|
1568
|
+
reject(error);
|
|
1569
|
+
} else {
|
|
1570
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1571
|
+
body = ObjectSerializer.deserialize(body, "GetCorporateInvitedUsersList");
|
|
1572
|
+
resolve({ response: response, body: body });
|
|
1573
|
+
} else {
|
|
1574
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
});
|
|
1578
|
+
});
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
/**
|
|
1582
|
+
*
|
|
1583
|
+
* @summary Check admin user permissions
|
|
1584
|
+
* @param email Email of the invited user
|
|
1585
|
+
*/
|
|
1586
|
+
public async getCorporateUserPermission (email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetCorporateUserPermission; }> {
|
|
1587
|
+
const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
|
|
1588
|
+
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1589
|
+
let localVarQueryParameters: any = {};
|
|
1590
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1591
|
+
const produces = ['application/json'];
|
|
1592
|
+
// give precedence to 'application/json'
|
|
1593
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1594
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1595
|
+
} else {
|
|
1596
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1597
|
+
}
|
|
1598
|
+
let localVarFormParams: any = {};
|
|
1599
|
+
|
|
1600
|
+
// verify required parameter 'email' is not null or undefined
|
|
1601
|
+
if (email === null || email === undefined) {
|
|
1602
|
+
throw new Error('Required parameter email was null or undefined when calling getCorporateUserPermission.');
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1606
|
+
|
|
1607
|
+
let localVarUseFormData = false;
|
|
1608
|
+
|
|
1609
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1610
|
+
method: 'GET',
|
|
1611
|
+
qs: localVarQueryParameters,
|
|
1612
|
+
headers: localVarHeaderParams,
|
|
1613
|
+
uri: localVarPath,
|
|
1614
|
+
useQuerystring: this._useQuerystring,
|
|
1615
|
+
json: true,
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
let authenticationPromise = Promise.resolve();
|
|
1619
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1620
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1621
|
+
}
|
|
1622
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1623
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1624
|
+
}
|
|
1625
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1626
|
+
|
|
1627
|
+
let interceptorPromise = authenticationPromise;
|
|
1628
|
+
for (const interceptor of this.interceptors) {
|
|
1629
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
return interceptorPromise.then(() => {
|
|
1633
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1634
|
+
if (localVarUseFormData) {
|
|
1635
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1636
|
+
} else {
|
|
1637
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
return new Promise<{ response: http.IncomingMessage; body: GetCorporateUserPermission; }>((resolve, reject) => {
|
|
1641
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1642
|
+
if (error) {
|
|
1643
|
+
reject(error);
|
|
1644
|
+
} else {
|
|
1645
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1646
|
+
body = ObjectSerializer.deserialize(body, "GetCorporateUserPermission");
|
|
1647
|
+
resolve({ response: response, body: body });
|
|
1648
|
+
} else {
|
|
1649
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
});
|
|
1653
|
+
});
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* This endpoint allows you to list all groups created on your Admin account.
|
|
1658
|
+
* @summary Get the list of groups
|
|
1659
|
+
*/
|
|
1660
|
+
public async getSubAccountGroups (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<GetSubAccountGroups200ResponseInner>; }> {
|
|
1661
|
+
const localVarPath = this.basePath + '/corporate/groups';
|
|
1662
|
+
let localVarQueryParameters: any = {};
|
|
1663
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1664
|
+
const produces = ['application/json'];
|
|
1665
|
+
// give precedence to 'application/json'
|
|
1666
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1667
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1668
|
+
} else {
|
|
1669
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1670
|
+
}
|
|
1671
|
+
let localVarFormParams: any = {};
|
|
1672
|
+
|
|
1673
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1674
|
+
|
|
1675
|
+
let localVarUseFormData = false;
|
|
1676
|
+
|
|
1677
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1678
|
+
method: 'GET',
|
|
1679
|
+
qs: localVarQueryParameters,
|
|
1680
|
+
headers: localVarHeaderParams,
|
|
1681
|
+
uri: localVarPath,
|
|
1682
|
+
useQuerystring: this._useQuerystring,
|
|
1683
|
+
json: true,
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
let authenticationPromise = Promise.resolve();
|
|
1687
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1688
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1689
|
+
}
|
|
1690
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1691
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1692
|
+
}
|
|
1693
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1694
|
+
|
|
1695
|
+
let interceptorPromise = authenticationPromise;
|
|
1696
|
+
for (const interceptor of this.interceptors) {
|
|
1697
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
return interceptorPromise.then(() => {
|
|
1701
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1702
|
+
if (localVarUseFormData) {
|
|
1703
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1704
|
+
} else {
|
|
1705
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<GetSubAccountGroups200ResponseInner>; }>((resolve, reject) => {
|
|
1709
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1710
|
+
if (error) {
|
|
1711
|
+
reject(error);
|
|
1712
|
+
} else {
|
|
1713
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1714
|
+
body = ObjectSerializer.deserialize(body, "Array<GetSubAccountGroups200ResponseInner>");
|
|
1715
|
+
resolve({ response: response, body: body });
|
|
1716
|
+
} else {
|
|
1717
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
});
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it\'s assumed that all permissions will be there for the invited admin user.
|
|
1726
|
+
* @summary Send invitation to an admin user
|
|
1727
|
+
* @param sendInvitation Payload to send an invitation
|
|
1728
|
+
*/
|
|
1729
|
+
public async inviteAdminUser (sendInvitation: InviteAdminUser, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InviteAdminUser; }> {
|
|
1730
|
+
const localVarPath = this.basePath + '/corporate/user/invitation/send';
|
|
1731
|
+
let localVarQueryParameters: any = {};
|
|
1732
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1733
|
+
const produces = ['application/json'];
|
|
1734
|
+
// give precedence to 'application/json'
|
|
1735
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1736
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1737
|
+
} else {
|
|
1738
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1739
|
+
}
|
|
1740
|
+
let localVarFormParams: any = {};
|
|
1741
|
+
|
|
1742
|
+
// verify required parameter 'sendInvitation' is not null or undefined
|
|
1743
|
+
if (sendInvitation === null || sendInvitation === undefined) {
|
|
1744
|
+
throw new Error('Required parameter sendInvitation was null or undefined when calling inviteAdminUser.');
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1748
|
+
|
|
1749
|
+
let localVarUseFormData = false;
|
|
1750
|
+
|
|
1751
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1752
|
+
method: 'POST',
|
|
1753
|
+
qs: localVarQueryParameters,
|
|
1754
|
+
headers: localVarHeaderParams,
|
|
1755
|
+
uri: localVarPath,
|
|
1756
|
+
useQuerystring: this._useQuerystring,
|
|
1757
|
+
json: true,
|
|
1758
|
+
body: ObjectSerializer.serialize(sendInvitation, "InviteAdminUser")
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
let authenticationPromise = Promise.resolve();
|
|
1762
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1763
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1764
|
+
}
|
|
1765
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1766
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1767
|
+
}
|
|
1768
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1769
|
+
|
|
1770
|
+
let interceptorPromise = authenticationPromise;
|
|
1771
|
+
for (const interceptor of this.interceptors) {
|
|
1772
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
return interceptorPromise.then(() => {
|
|
1776
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1777
|
+
if (localVarUseFormData) {
|
|
1778
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1779
|
+
} else {
|
|
1780
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
return new Promise<{ response: http.IncomingMessage; body: InviteAdminUser; }>((resolve, reject) => {
|
|
1784
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1785
|
+
if (error) {
|
|
1786
|
+
reject(error);
|
|
1787
|
+
} else {
|
|
1788
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1789
|
+
body = ObjectSerializer.deserialize(body, "InviteAdminUser");
|
|
877
1790
|
resolve({ response: response, body: body });
|
|
878
1791
|
} else {
|
|
879
1792
|
reject(new HttpError(response, body, response.statusCode));
|