@getbrevo/brevo 2.5.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +178 -100
- package/api/accountApi.ts +5 -5
- package/api/companiesApi.ts +15 -15
- package/api/contactsApi.ts +148 -151
- package/api/conversationsApi.ts +46 -47
- package/api/couponsApi.ts +11 -11
- package/api/dealsApi.ts +51 -52
- package/api/domainsApi.ts +11 -11
- package/api/ecommerceApi.ts +86 -87
- package/api/emailCampaignsApi.ts +82 -105
- package/api/eventsApi.ts +3 -3
- package/api/externalFeedsApi.ts +11 -11
- package/api/filesApi.ts +11 -11
- package/api/inboundParsingApi.ts +7 -7
- package/api/masterAccountApi.ts +49 -49
- package/api/notesApi.ts +11 -11
- package/api/paymentsApi.ts +7 -7
- package/api/processApi.ts +5 -5
- package/api/resellerApi.ts +33 -33
- package/api/sMSCampaignsApi.ts +51 -52
- package/api/sendersApi.ts +15 -15
- package/api/tasksApi.ts +13 -13
- package/api/transactionalEmailsApi.ts +45 -45
- package/api/transactionalSMSApi.ts +9 -9
- package/api/transactionalWhatsAppApi.ts +5 -5
- package/api/userApi.ts +13 -13
- package/api/webhooksApi.ts +13 -13
- package/api/whatsAppCampaignsApi.ts +19 -19
- package/dist/api/accountApi.d.ts +2 -1
- package/dist/api/accountApi.js +10 -14
- package/dist/api/accountApi.js.map +1 -1
- package/dist/api/apis.d.ts +4 -9
- package/dist/api/apis.js +3 -9
- package/dist/api/apis.js.map +1 -1
- package/dist/api/companiesApi.d.ts +10 -29
- package/dist/api/companiesApi.js +70 -219
- package/dist/api/companiesApi.js.map +1 -1
- package/dist/api/contactsApi.d.ts +35 -43
- package/dist/api/contactsApi.js +155 -232
- package/dist/api/contactsApi.js.map +1 -1
- package/dist/api/conversationsApi.d.ts +10 -10
- package/dist/api/conversationsApi.js +47 -47
- package/dist/api/conversationsApi.js.map +1 -1
- package/dist/api/couponsApi.d.ts +1 -0
- package/dist/api/couponsApi.js +22 -22
- package/dist/api/couponsApi.js.map +1 -1
- package/dist/api/dealsApi.d.ts +12 -32
- package/dist/api/dealsApi.js +52 -201
- package/dist/api/dealsApi.js.map +1 -1
- package/dist/api/domainsApi.d.ts +1 -0
- package/dist/api/domainsApi.js +22 -22
- package/dist/api/domainsApi.js.map +1 -1
- package/dist/api/ecommerceApi.d.ts +21 -21
- package/dist/api/ecommerceApi.js +88 -97
- package/dist/api/ecommerceApi.js.map +1 -1
- package/dist/api/emailCampaignsApi.d.ts +15 -15
- package/dist/api/emailCampaignsApi.js +86 -108
- package/dist/api/emailCampaignsApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +1 -0
- package/dist/api/eventsApi.js +6 -6
- package/dist/api/eventsApi.js.map +1 -1
- package/dist/api/externalFeedsApi.d.ts +1 -0
- package/dist/api/externalFeedsApi.js +22 -22
- package/dist/api/externalFeedsApi.js.map +1 -1
- package/dist/api/filesApi.d.ts +1 -0
- package/dist/api/filesApi.js +22 -22
- package/dist/api/filesApi.js.map +1 -1
- package/dist/api/inboundParsingApi.d.ts +2 -0
- package/dist/api/inboundParsingApi.js +14 -14
- package/dist/api/inboundParsingApi.js.map +1 -1
- package/dist/api/masterAccountApi.d.ts +2 -27
- package/dist/api/masterAccountApi.js +98 -299
- package/dist/api/masterAccountApi.js.map +1 -1
- package/dist/api/notesApi.d.ts +1 -0
- package/dist/api/notesApi.js +22 -22
- package/dist/api/notesApi.js.map +1 -1
- package/dist/api/paymentsApi.d.ts +1 -0
- package/dist/api/paymentsApi.js +14 -14
- package/dist/api/paymentsApi.js.map +1 -1
- package/dist/api/processApi.d.ts +1 -0
- package/dist/api/processApi.js +10 -10
- package/dist/api/processApi.js.map +1 -1
- package/dist/api/resellerApi.d.ts +1 -0
- package/dist/api/resellerApi.js +66 -66
- package/dist/api/resellerApi.js.map +1 -1
- package/dist/api/sMSCampaignsApi.d.ts +11 -11
- package/dist/api/sMSCampaignsApi.js +52 -52
- package/dist/api/sMSCampaignsApi.js.map +1 -1
- package/dist/api/sendersApi.d.ts +1 -0
- package/dist/api/sendersApi.js +30 -30
- package/dist/api/sendersApi.js.map +1 -1
- package/dist/api/tasksApi.d.ts +1 -0
- package/dist/api/tasksApi.js +26 -26
- package/dist/api/tasksApi.js.map +1 -1
- package/dist/api/transactionalEmailsApi.d.ts +1 -10
- package/dist/api/transactionalEmailsApi.js +90 -157
- package/dist/api/transactionalEmailsApi.js.map +1 -1
- package/dist/api/transactionalSMSApi.d.ts +1 -8
- package/dist/api/transactionalSMSApi.js +18 -73
- package/dist/api/transactionalSMSApi.js.map +1 -1
- package/dist/api/transactionalWhatsAppApi.d.ts +1 -0
- package/dist/api/transactionalWhatsAppApi.js +10 -10
- package/dist/api/transactionalWhatsAppApi.js.map +1 -1
- package/dist/api/userApi.d.ts +1 -0
- package/dist/api/userApi.js +26 -26
- package/dist/api/userApi.js.map +1 -1
- package/dist/api/webhooksApi.d.ts +1 -0
- package/dist/api/webhooksApi.js +26 -26
- package/dist/api/webhooksApi.js.map +1 -1
- package/dist/api/whatsAppCampaignsApi.d.ts +1 -0
- package/dist/api/whatsAppCampaignsApi.js +38 -38
- package/dist/api/whatsAppCampaignsApi.js.map +1 -1
- package/dist/model/abTestCampaignResult.js +1 -1
- package/dist/model/abTestCampaignResult.js.map +1 -1
- package/dist/model/addContactToList.d.ts +0 -1
- package/dist/model/addContactToList.js +0 -5
- package/dist/model/addContactToList.js.map +1 -1
- package/dist/model/cart.js +1 -1
- package/dist/model/cart.js.map +1 -1
- package/dist/model/companiesIdPatchRequest.d.ts +0 -2
- package/dist/model/companiesIdPatchRequest.js +0 -10
- package/dist/model/companiesIdPatchRequest.js.map +1 -1
- package/dist/model/conversationsMessage.d.ts +0 -20
- package/dist/model/conversationsMessage.js +1 -76
- package/dist/model/conversationsMessage.js.map +1 -1
- package/dist/model/conversionSourceMetrics.d.ts +2 -5
- package/dist/model/conversionSourceMetrics.js +2 -5
- package/dist/model/conversionSourceMetrics.js.map +1 -1
- package/dist/model/createAttribute.d.ts +1 -3
- package/dist/model/createAttribute.js +1 -7
- package/dist/model/createAttribute.js.map +1 -1
- package/dist/model/createChild.js +1 -1
- package/dist/model/createChild.js.map +1 -1
- package/dist/model/createContact.d.ts +1 -3
- package/dist/model/createContact.js +1 -1
- package/dist/model/createContact.js.map +1 -1
- package/dist/model/createDoiContact.d.ts +1 -3
- package/dist/model/createDoiContact.js +1 -1
- package/dist/model/createDoiContact.js.map +1 -1
- package/dist/model/createEmailCampaign.d.ts +0 -2
- package/dist/model/createEmailCampaign.js +1 -6
- package/dist/model/createEmailCampaign.js.map +1 -1
- package/dist/model/createEmailCampaignRecipients.d.ts +0 -1
- package/dist/model/createEmailCampaignRecipients.js +0 -5
- package/dist/model/createEmailCampaignRecipients.js.map +1 -1
- package/dist/model/createExternalFeed.js +1 -1
- package/dist/model/createExternalFeed.js.map +1 -1
- package/dist/model/createSmsCampaign.js.map +1 -1
- package/dist/model/createSubAccount.js +1 -1
- package/dist/model/createSubAccount.js.map +1 -1
- package/dist/model/createUpdateCategory.js.map +1 -1
- package/dist/model/createUpdateProduct.js.map +1 -1
- package/dist/model/createWebhook.d.ts +0 -5
- package/dist/model/createWebhook.js +1 -12
- package/dist/model/createWebhook.js.map +1 -1
- package/dist/model/createWhatsAppTemplate.js +1 -1
- package/dist/model/createWhatsAppTemplate.js.map +1 -1
- package/dist/model/crmDealsIdPatchRequest.d.ts +0 -2
- package/dist/model/crmDealsIdPatchRequest.js +0 -10
- package/dist/model/crmDealsIdPatchRequest.js.map +1 -1
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +2 -5
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +2 -5
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -1
- package/dist/model/emailExportRecipients.js +1 -1
- package/dist/model/emailExportRecipients.js.map +1 -1
- package/dist/model/errorModel.d.ts +1 -0
- package/dist/model/errorModel.js +2 -1
- package/dist/model/errorModel.js.map +1 -1
- package/dist/model/exportWebhooksHistory.js +1 -1
- package/dist/model/exportWebhooksHistory.js.map +1 -1
- package/dist/model/getAccountAllOfPlan.d.ts +3 -1
- package/dist/model/getAccountAllOfPlan.js +7 -1
- package/dist/model/getAccountAllOfPlan.js.map +1 -1
- package/dist/model/getAllExternalFeedsFeedsInner.js +1 -1
- package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -1
- package/dist/model/getAttributesAttributesInner.d.ts +1 -4
- package/dist/model/getAttributesAttributesInner.js +1 -8
- package/dist/model/getAttributesAttributesInner.js.map +1 -1
- package/dist/model/getCampaignOverview.js +1 -1
- package/dist/model/getCampaignOverview.js.map +1 -1
- package/dist/model/getCampaignStats.d.ts +0 -2
- package/dist/model/getCampaignStats.js +0 -10
- package/dist/model/getCampaignStats.js.map +1 -1
- package/dist/model/getContactCampaignStats.d.ts +6 -6
- package/dist/model/getContactCampaignStats.js +5 -5
- package/dist/model/getContactCampaignStats.js.map +1 -1
- package/dist/model/getContactCampaignStatsClickedInner.d.ts +2 -2
- package/dist/model/getContactCampaignStatsClickedInner.js +1 -1
- package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +4 -4
- package/dist/model/getContactCampaignStatsUnsubscriptions.js +2 -2
- package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -1
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +0 -5
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +0 -25
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -1
- package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +0 -5
- package/dist/model/getCorporateUserPermissionFeatureAccess.js +0 -25
- package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -1
- package/dist/model/getEmailCampaign.d.ts +4 -2
- package/dist/model/getEmailCampaign.js +3 -3
- package/dist/model/getEmailCampaign.js.map +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.js +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getEmailEventReportEventsInner.js +1 -1
- package/dist/model/getEmailEventReportEventsInner.js.map +1 -1
- package/dist/model/getExtendedCampaignOverview.js +1 -1
- package/dist/model/getExtendedCampaignOverview.js.map +1 -1
- package/dist/model/getExtendedCampaignStats.js.map +1 -1
- package/dist/model/getExternalFeedByUUID.js +1 -1
- package/dist/model/getExternalFeedByUUID.js.map +1 -1
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js +1 -1
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -1
- package/dist/model/getOrdersOrdersInner.d.ts +1 -6
- package/dist/model/getOrdersOrdersInner.js +5 -15
- package/dist/model/getOrdersOrdersInner.js.map +1 -1
- package/dist/model/getPaymentRequest.js +1 -1
- package/dist/model/getPaymentRequest.js.map +1 -1
- package/dist/model/getProcess.js +1 -1
- package/dist/model/getProcess.js.map +1 -1
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +1 -1
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -1
- package/dist/model/getScheduledEmailByMessageId.js +1 -1
- package/dist/model/getScheduledEmailByMessageId.js.map +1 -1
- package/dist/model/getSegments.d.ts +2 -2
- package/dist/model/getSegments.js +1 -1
- package/dist/model/getSegments.js.map +1 -1
- package/dist/model/getSmsCampaign.d.ts +4 -2
- package/dist/model/getSmsCampaign.js +3 -3
- package/dist/model/getSmsCampaign.js.map +1 -1
- package/dist/model/getSmsCampaignOverview.js +1 -1
- package/dist/model/getSmsCampaignOverview.js.map +1 -1
- package/dist/model/getSmsCampaignsCampaignsInner.js +1 -1
- package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getSmsEventReportEventsInner.js +1 -1
- package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js +1 -1
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -1
- package/dist/model/getWebhook.js +1 -1
- package/dist/model/getWebhook.js.map +1 -1
- package/dist/model/getWhatsAppConfig.js +1 -1
- package/dist/model/getWhatsAppConfig.js.map +1 -1
- package/dist/model/getWhatsappCampaignOverview.js +1 -1
- package/dist/model/getWhatsappCampaignOverview.js.map +1 -1
- package/dist/model/getWhatsappCampaignsCampaignsInner.js +1 -1
- package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getWhatsappEventReportEventsInner.js +1 -1
- package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -1
- package/dist/model/inviteAdminUserPrivilegesInner.d.ts +2 -11
- package/dist/model/inviteAdminUserPrivilegesInner.js +1 -10
- package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -1
- package/dist/model/inviteuserPrivilegesInner.d.ts +3 -5
- package/dist/model/inviteuserPrivilegesInner.js +4 -6
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
- package/dist/model/masterDetailsResponsePlanInfo.js +1 -1
- package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -1
- package/dist/model/models.d.ts +33 -117
- package/dist/model/models.js +75 -412
- package/dist/model/models.js.map +1 -1
- package/dist/model/notification.js +1 -1
- package/dist/model/notification.js.map +1 -1
- package/dist/model/order.d.ts +1 -6
- package/dist/model/order.js +5 -15
- package/dist/model/order.js.map +1 -1
- package/dist/model/orderBatch.js.map +1 -1
- package/dist/model/removeContactFromList.d.ts +0 -1
- package/dist/model/removeContactFromList.js +0 -5
- package/dist/model/removeContactFromList.js.map +1 -1
- package/dist/model/requestContactExport.d.ts +0 -4
- package/dist/model/requestContactExport.js +0 -24
- package/dist/model/requestContactExport.js.map +1 -1
- package/dist/model/requestContactExportCustomContactFilter.d.ts +0 -1
- package/dist/model/requestContactExportCustomContactFilter.js +1 -6
- package/dist/model/requestContactExportCustomContactFilter.js.map +1 -1
- package/dist/model/requestContactImport.js.map +1 -1
- package/dist/model/requestSmsRecipientExport.js +1 -1
- package/dist/model/requestSmsRecipientExport.js.map +1 -1
- package/dist/model/sendReport.js +1 -1
- package/dist/model/sendReport.js.map +1 -1
- package/dist/model/sendTransacSms.d.ts +1 -2
- package/dist/model/sendTransacSms.js +2 -2
- package/dist/model/sendTransacSms.js.map +1 -1
- package/dist/model/ssoTokenRequest.js +1 -1
- package/dist/model/ssoTokenRequest.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +0 -4
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +0 -10
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +0 -2
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +0 -5
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -1
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +0 -2
- package/dist/model/subAccountUpdatePlanRequestCredits.js +0 -10
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
- package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +0 -1
- package/dist/model/subAccountUpdatePlanRequestFeatures.js +0 -5
- package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -1
- package/dist/model/taskReminder.js +1 -1
- package/dist/model/taskReminder.js.map +1 -1
- package/dist/model/updateAttribute.d.ts +0 -1
- package/dist/model/updateAttribute.js +0 -5
- package/dist/model/updateAttribute.js.map +1 -1
- package/dist/model/updateCampaignStatus.js +1 -1
- package/dist/model/updateCampaignStatus.js.map +1 -1
- package/dist/model/updateContact.d.ts +1 -3
- package/dist/model/updateContact.js +1 -1
- package/dist/model/updateContact.js.map +1 -1
- package/dist/model/updateEmailCampaign.d.ts +0 -2
- package/dist/model/updateEmailCampaign.js +1 -6
- package/dist/model/updateEmailCampaign.js.map +1 -1
- package/dist/model/updateEmailCampaignRecipients.d.ts +0 -1
- package/dist/model/updateEmailCampaignRecipients.js +0 -5
- package/dist/model/updateEmailCampaignRecipients.js.map +1 -1
- package/dist/model/updateExternalFeed.js +1 -1
- package/dist/model/updateExternalFeed.js.map +1 -1
- package/dist/model/updateSmsCampaign.js.map +1 -1
- package/dist/model/updateWebhook.js +1 -1
- package/dist/model/updateWebhook.js.map +1 -1
- package/dist/model/updateWhatsAppCampaign.js +1 -1
- package/dist/model/updateWhatsAppCampaign.js.map +1 -1
- package/dist/requestCompat.d.ts +29 -0
- package/dist/requestCompat.js +110 -0
- package/dist/requestCompat.js.map +1 -0
- package/model/models.ts +8 -8
- package/package.json +2 -3
- package/requestCompat.ts +138 -0
- package/tsconfig.json +0 -1
- package/dist/api/balanceApi.d.ts +0 -187
- package/dist/api/balanceApi.js +0 -1434
- package/dist/api/balanceApi.js.map +0 -1
- package/dist/api/programApi.d.ts +0 -125
- package/dist/api/programApi.js +0 -847
- package/dist/api/programApi.js.map +0 -1
- package/dist/api/rewardApi.d.ts +0 -119
- package/dist/api/rewardApi.js +0 -814
- package/dist/api/rewardApi.js.map +0 -1
- package/dist/api/tierApi.d.ts +0 -116
- package/dist/api/tierApi.js +0 -801
- package/dist/api/tierApi.js.map +0 -1
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -65
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -161
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -44
- package/dist/configuration.js.map +0 -1
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -31
- package/dist/index.js.map +0 -1
- package/dist/model/addSubscriptionMemberPayload.d.ts +0 -16
- package/dist/model/addSubscriptionMemberPayload.js +0 -28
- package/dist/model/addSubscriptionMemberPayload.js.map +0 -1
- package/dist/model/aggregateBalance.d.ts +0 -15
- package/dist/model/aggregateBalance.js +0 -23
- package/dist/model/aggregateBalance.js.map +0 -1
- package/dist/model/balance.d.ts +0 -22
- package/dist/model/balance.js +0 -58
- package/dist/model/balance.js.map +0 -1
- package/dist/model/balanceDataPerContact.d.ts +0 -17
- package/dist/model/balanceDataPerContact.js +0 -33
- package/dist/model/balanceDataPerContact.js.map +0 -1
- package/dist/model/balanceDefinition.d.ts +0 -42
- package/dist/model/balanceDefinition.js +0 -121
- package/dist/model/balanceDefinition.js.map +0 -1
- package/dist/model/balanceDefinitionPage.d.ts +0 -15
- package/dist/model/balanceDefinitionPage.js +0 -18
- package/dist/model/balanceDefinitionPage.js.map +0 -1
- package/dist/model/balanceLimit.d.ts +0 -23
- package/dist/model/balanceLimit.js +0 -63
- package/dist/model/balanceLimit.js.map +0 -1
- package/dist/model/balanceOrder.d.ts +0 -27
- package/dist/model/balanceOrder.js +0 -73
- package/dist/model/balanceOrder.js.map +0 -1
- package/dist/model/companiesImportPost200Response.d.ts +0 -14
- package/dist/model/companiesImportPost200Response.js +0 -18
- package/dist/model/companiesImportPost200Response.js.map +0 -1
- package/dist/model/companiesImportPost400Response.d.ts +0 -14
- package/dist/model/companiesImportPost400Response.js +0 -18
- package/dist/model/companiesImportPost400Response.js.map +0 -1
- package/dist/model/contactBalancesResp.d.ts +0 -18
- package/dist/model/contactBalancesResp.js +0 -33
- package/dist/model/contactBalancesResp.js.map +0 -1
- package/dist/model/contactErrorModel.d.ts +0 -27
- package/dist/model/contactErrorModel.js +0 -40
- package/dist/model/contactErrorModel.js.map +0 -1
- package/dist/model/conversationsMessageAttachmentsInner.d.ts +0 -19
- package/dist/model/conversationsMessageAttachmentsInner.js +0 -43
- package/dist/model/conversationsMessageAttachmentsInner.js.map +0 -1
- package/dist/model/conversationsMessageForwardedToSourceStatus.d.ts +0 -15
- package/dist/model/conversationsMessageForwardedToSourceStatus.js +0 -23
- package/dist/model/conversationsMessageForwardedToSourceStatus.js.map +0 -1
- package/dist/model/conversationsMessageFrom.d.ts +0 -15
- package/dist/model/conversationsMessageFrom.js +0 -23
- package/dist/model/conversationsMessageFrom.js.map +0 -1
- package/dist/model/conversationsMessageReplyTo.d.ts +0 -15
- package/dist/model/conversationsMessageReplyTo.js +0 -23
- package/dist/model/conversationsMessageReplyTo.js.map +0 -1
- package/dist/model/conversationsMessageToInner.d.ts +0 -15
- package/dist/model/conversationsMessageToInner.js +0 -23
- package/dist/model/conversationsMessageToInner.js.map +0 -1
- package/dist/model/corporateUserEmailPermissionsPutRequest.d.ts +0 -16
- package/dist/model/corporateUserEmailPermissionsPutRequest.js +0 -23
- package/dist/model/corporateUserEmailPermissionsPutRequest.js.map +0 -1
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.d.ts +0 -38
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js +0 -48
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js.map +0 -1
- package/dist/model/createBalanceDefinitionPayload.d.ts +0 -75
- package/dist/model/createBalanceDefinitionPayload.js +0 -145
- package/dist/model/createBalanceDefinitionPayload.js.map +0 -1
- package/dist/model/createBalanceLimitPayload.d.ts +0 -35
- package/dist/model/createBalanceLimitPayload.js +0 -62
- package/dist/model/createBalanceLimitPayload.js.map +0 -1
- package/dist/model/createBalancePayload.d.ts +0 -14
- package/dist/model/createBalancePayload.js +0 -18
- package/dist/model/createBalancePayload.js.map +0 -1
- package/dist/model/createEmailCampaignEmailExpirationDate.d.ts +0 -22
- package/dist/model/createEmailCampaignEmailExpirationDate.js +0 -31
- package/dist/model/createEmailCampaignEmailExpirationDate.js.map +0 -1
- package/dist/model/createLoyaltyProgramPayload.d.ts +0 -19
- package/dist/model/createLoyaltyProgramPayload.js +0 -33
- package/dist/model/createLoyaltyProgramPayload.js.map +0 -1
- package/dist/model/createOrderPayload.d.ts +0 -22
- package/dist/model/createOrderPayload.js +0 -48
- package/dist/model/createOrderPayload.js.map +0 -1
- package/dist/model/createSubscriptionPayload.d.ts +0 -16
- package/dist/model/createSubscriptionPayload.js +0 -28
- package/dist/model/createSubscriptionPayload.js.map +0 -1
- package/dist/model/createSubscriptionResponse.d.ts +0 -20
- package/dist/model/createSubscriptionResponse.js +0 -48
- package/dist/model/createSubscriptionResponse.js.map +0 -1
- package/dist/model/createTierGroupRequest.d.ts +0 -29
- package/dist/model/createTierGroupRequest.js +0 -51
- package/dist/model/createTierGroupRequest.js.map +0 -1
- package/dist/model/createTransactionPayload.d.ts +0 -24
- package/dist/model/createTransactionPayload.js +0 -58
- package/dist/model/createTransactionPayload.js.map +0 -1
- package/dist/model/crmAttributesPost200Response.d.ts +0 -14
- package/dist/model/crmAttributesPost200Response.js +0 -18
- package/dist/model/crmAttributesPost200Response.js.map +0 -1
- package/dist/model/crmAttributesPostRequest.d.ts +0 -33
- package/dist/model/crmAttributesPostRequest.js +0 -55
- package/dist/model/crmAttributesPostRequest.js.map +0 -1
- package/dist/model/errorResponse.d.ts +0 -14
- package/dist/model/errorResponse.js +0 -18
- package/dist/model/errorResponse.js.map +0 -1
- package/dist/model/fetchTemplatePreview.d.ts +0 -16
- package/dist/model/fetchTemplatePreview.js +0 -28
- package/dist/model/fetchTemplatePreview.js.map +0 -1
- package/dist/model/getSegment.d.ts +0 -17
- package/dist/model/getSegment.js +0 -33
- package/dist/model/getSegment.js.map +0 -1
- package/dist/model/loyaltyProgram.d.ts +0 -33
- package/dist/model/loyaltyProgram.js +0 -80
- package/dist/model/loyaltyProgram.js.map +0 -1
- package/dist/model/loyaltyProgramPage.d.ts +0 -15
- package/dist/model/loyaltyProgramPage.js +0 -18
- package/dist/model/loyaltyProgramPage.js.map +0 -1
- package/dist/model/loyaltyProgramValidationError.d.ts +0 -16
- package/dist/model/loyaltyProgramValidationError.js +0 -28
- package/dist/model/loyaltyProgramValidationError.js.map +0 -1
- package/dist/model/loyaltyTierPage.d.ts +0 -15
- package/dist/model/loyaltyTierPage.js +0 -18
- package/dist/model/loyaltyTierPage.js.map +0 -1
- package/dist/model/mainAttributeRewardPayload.d.ts +0 -22
- package/dist/model/mainAttributeRewardPayload.js +0 -48
- package/dist/model/mainAttributeRewardPayload.js.map +0 -1
- package/dist/model/mainBillingPayload.d.ts +0 -20
- package/dist/model/mainBillingPayload.js +0 -48
- package/dist/model/mainBillingPayload.js.map +0 -1
- package/dist/model/mainCodeCountHttpResponse.d.ts +0 -14
- package/dist/model/mainCodeCountHttpResponse.js +0 -18
- package/dist/model/mainCodeCountHttpResponse.js.map +0 -1
- package/dist/model/mainCreateRedeemPayload.d.ts +0 -24
- package/dist/model/mainCreateRedeemPayload.js +0 -53
- package/dist/model/mainCreateRedeemPayload.js.map +0 -1
- package/dist/model/mainCreateRewardPayload.d.ts +0 -17
- package/dist/model/mainCreateRewardPayload.js +0 -33
- package/dist/model/mainCreateRewardPayload.js.map +0 -1
- package/dist/model/mainCreateRewardResponse.d.ts +0 -21
- package/dist/model/mainCreateRewardResponse.js +0 -53
- package/dist/model/mainCreateRewardResponse.js.map +0 -1
- package/dist/model/mainErrorResponse.d.ts +0 -14
- package/dist/model/mainErrorResponse.js +0 -18
- package/dist/model/mainErrorResponse.js.map +0 -1
- package/dist/model/mainFilter.d.ts +0 -15
- package/dist/model/mainFilter.js +0 -23
- package/dist/model/mainFilter.js.map +0 -1
- package/dist/model/mainGenerator.d.ts +0 -19
- package/dist/model/mainGenerator.js +0 -43
- package/dist/model/mainGenerator.js.map +0 -1
- package/dist/model/mainGetContactRewardsPayload.d.ts +0 -31
- package/dist/model/mainGetContactRewardsPayload.js +0 -60
- package/dist/model/mainGetContactRewardsPayload.js.map +0 -1
- package/dist/model/mainIdentifiersPayload.d.ts +0 -15
- package/dist/model/mainIdentifiersPayload.js +0 -23
- package/dist/model/mainIdentifiersPayload.js.map +0 -1
- package/dist/model/mainLimit.d.ts +0 -21
- package/dist/model/mainLimit.js +0 -53
- package/dist/model/mainLimit.js.map +0 -1
- package/dist/model/mainModelContactReward.d.ts +0 -25
- package/dist/model/mainModelContactReward.js +0 -63
- package/dist/model/mainModelContactReward.js.map +0 -1
- package/dist/model/mainModelContactRewardsResp.d.ts +0 -19
- package/dist/model/mainModelContactRewardsResp.js +0 -38
- package/dist/model/mainModelContactRewardsResp.js.map +0 -1
- package/dist/model/mainNodeResponse.d.ts +0 -21
- package/dist/model/mainNodeResponse.js +0 -53
- package/dist/model/mainNodeResponse.js.map +0 -1
- package/dist/model/mainOrderPayload.d.ts +0 -28
- package/dist/model/mainOrderPayload.js +0 -73
- package/dist/model/mainOrderPayload.js.map +0 -1
- package/dist/model/mainProduct.d.ts +0 -17
- package/dist/model/mainProduct.js +0 -33
- package/dist/model/mainProduct.js.map +0 -1
- package/dist/model/mainProductPayload.d.ts +0 -18
- package/dist/model/mainProductPayload.js +0 -38
- package/dist/model/mainProductPayload.js.map +0 -1
- package/dist/model/mainRedeem.d.ts +0 -29
- package/dist/model/mainRedeem.js +0 -83
- package/dist/model/mainRedeem.js.map +0 -1
- package/dist/model/mainResultParameterResponse.d.ts +0 -16
- package/dist/model/mainResultParameterResponse.js +0 -23
- package/dist/model/mainResultParameterResponse.js.map +0 -1
- package/dist/model/mainReward.d.ts +0 -67
- package/dist/model/mainReward.js +0 -224
- package/dist/model/mainReward.js.map +0 -1
- package/dist/model/mainRewardAttribution.d.ts +0 -26
- package/dist/model/mainRewardAttribution.js +0 -68
- package/dist/model/mainRewardAttribution.js.map +0 -1
- package/dist/model/mainRewardConfigurations.d.ts +0 -16
- package/dist/model/mainRewardConfigurations.js +0 -28
- package/dist/model/mainRewardConfigurations.js.map +0 -1
- package/dist/model/mainRewardPage.d.ts +0 -16
- package/dist/model/mainRewardPage.js +0 -23
- package/dist/model/mainRewardPage.js.map +0 -1
- package/dist/model/mainRewardPageObj.d.ts +0 -22
- package/dist/model/mainRewardPageObj.js +0 -58
- package/dist/model/mainRewardPageObj.js.map +0 -1
- package/dist/model/mainRewardValidate.d.ts +0 -14
- package/dist/model/mainRewardValidate.js +0 -18
- package/dist/model/mainRewardValidate.js.map +0 -1
- package/dist/model/mainRule.d.ts +0 -31
- package/dist/model/mainRule.js +0 -78
- package/dist/model/mainRule.js.map +0 -1
- package/dist/model/mainRuleConditionResponse.d.ts +0 -19
- package/dist/model/mainRuleConditionResponse.js +0 -38
- package/dist/model/mainRuleConditionResponse.js.map +0 -1
- package/dist/model/mainRuleEventResponse.d.ts +0 -15
- package/dist/model/mainRuleEventResponse.js +0 -23
- package/dist/model/mainRuleEventResponse.js.map +0 -1
- package/dist/model/mainRuleResultResponse.d.ts +0 -17
- package/dist/model/mainRuleResultResponse.js +0 -28
- package/dist/model/mainRuleResultResponse.js.map +0 -1
- package/dist/model/mainValidateRewardPayload.d.ts +0 -19
- package/dist/model/mainValidateRewardPayload.js +0 -43
- package/dist/model/mainValidateRewardPayload.js.map +0 -1
- package/dist/model/mainValueResponse.d.ts +0 -22
- package/dist/model/mainValueResponse.js +0 -53
- package/dist/model/mainValueResponse.js.map +0 -1
- package/dist/model/mainVoucherRevokePayload.d.ts +0 -14
- package/dist/model/mainVoucherRevokePayload.js +0 -18
- package/dist/model/mainVoucherRevokePayload.js.map +0 -1
- package/dist/model/memberContact.d.ts +0 -16
- package/dist/model/memberContact.js +0 -28
- package/dist/model/memberContact.js.map +0 -1
- package/dist/model/modelSubscriptionBalanceResp.d.ts +0 -15
- package/dist/model/modelSubscriptionBalanceResp.js +0 -18
- package/dist/model/modelSubscriptionBalanceResp.js.map +0 -1
- package/dist/model/orderIdentifiers.d.ts +0 -17
- package/dist/model/orderIdentifiers.js +0 -33
- package/dist/model/orderIdentifiers.js.map +0 -1
- package/dist/model/patchLoyaltyProgramPayload.d.ts +0 -16
- package/dist/model/patchLoyaltyProgramPayload.js +0 -28
- package/dist/model/patchLoyaltyProgramPayload.js.map +0 -1
- package/dist/model/sendTransacSmsTag.d.ts +0 -14
- package/dist/model/sendTransacSmsTag.js +0 -18
- package/dist/model/sendTransacSmsTag.js.map +0 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.d.ts +0 -15
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js +0 -23
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js.map +0 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.d.ts +0 -15
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js +0 -23
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js.map +0 -1
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.d.ts +0 -15
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js +0 -23
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js.map +0 -1
- package/dist/model/subAccountsUpdatePlanRequest.d.ts +0 -18
- package/dist/model/subAccountsUpdatePlanRequest.js +0 -28
- package/dist/model/subAccountsUpdatePlanRequest.js.map +0 -1
- package/dist/model/subAccountsUpdatePlanRequestCredits.d.ts +0 -18
- package/dist/model/subAccountsUpdatePlanRequestCredits.js +0 -38
- package/dist/model/subAccountsUpdatePlanRequestCredits.js.map +0 -1
- package/dist/model/subAccountsUpdatePlanRequestFeatures.d.ts +0 -16
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js +0 -28
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js.map +0 -1
- package/dist/model/subscription.d.ts +0 -20
- package/dist/model/subscription.js +0 -48
- package/dist/model/subscription.js.map +0 -1
- package/dist/model/subscriptionAggregateBalance.d.ts +0 -15
- package/dist/model/subscriptionAggregateBalance.js +0 -23
- package/dist/model/subscriptionAggregateBalance.js.map +0 -1
- package/dist/model/subscriptionAttributedReward.d.ts +0 -24
- package/dist/model/subscriptionAttributedReward.js +0 -58
- package/dist/model/subscriptionAttributedReward.js.map +0 -1
- package/dist/model/subscriptionBalances.d.ts +0 -17
- package/dist/model/subscriptionBalances.js +0 -28
- package/dist/model/subscriptionBalances.js.map +0 -1
- package/dist/model/subscriptionHandlerInfo.d.ts +0 -21
- package/dist/model/subscriptionHandlerInfo.js +0 -33
- package/dist/model/subscriptionHandlerInfo.js.map +0 -1
- package/dist/model/subscriptionMember.d.ts +0 -18
- package/dist/model/subscriptionMember.js +0 -38
- package/dist/model/subscriptionMember.js.map +0 -1
- package/dist/model/subscriptionTier.d.ts +0 -22
- package/dist/model/subscriptionTier.js +0 -48
- package/dist/model/subscriptionTier.js.map +0 -1
- package/dist/model/templatePreview.d.ts +0 -19
- package/dist/model/templatePreview.js +0 -43
- package/dist/model/templatePreview.js.map +0 -1
- package/dist/model/tier.d.ts +0 -24
- package/dist/model/tier.js +0 -58
- package/dist/model/tier.js.map +0 -1
- package/dist/model/tierAccessConditionsInner.d.ts +0 -17
- package/dist/model/tierAccessConditionsInner.js +0 -33
- package/dist/model/tierAccessConditionsInner.js.map +0 -1
- package/dist/model/tierForContact.d.ts +0 -22
- package/dist/model/tierForContact.js +0 -48
- package/dist/model/tierForContact.js.map +0 -1
- package/dist/model/tierGroup.d.ts +0 -33
- package/dist/model/tierGroup.js +0 -71
- package/dist/model/tierGroup.js.map +0 -1
- package/dist/model/tierGroupPage.d.ts +0 -15
- package/dist/model/tierGroupPage.js +0 -18
- package/dist/model/tierGroupPage.js.map +0 -1
- package/dist/model/tierRequest.d.ts +0 -19
- package/dist/model/tierRequest.js +0 -33
- package/dist/model/tierRequest.js.map +0 -1
- package/dist/model/tierRequestAccessConditionsInner.d.ts +0 -15
- package/dist/model/tierRequestAccessConditionsInner.js +0 -23
- package/dist/model/tierRequestAccessConditionsInner.js.map +0 -1
- package/dist/model/tierRequestPutPayload.d.ts +0 -19
- package/dist/model/tierRequestPutPayload.js +0 -33
- package/dist/model/tierRequestPutPayload.js.map +0 -1
- package/dist/model/tierRequestTierRewardsInner.d.ts +0 -14
- package/dist/model/tierRequestTierRewardsInner.js +0 -18
- package/dist/model/tierRequestTierRewardsInner.js.map +0 -1
- package/dist/model/tierTierRewardsInner.d.ts +0 -16
- package/dist/model/tierTierRewardsInner.js +0 -28
- package/dist/model/tierTierRewardsInner.js.map +0 -1
- package/dist/model/transaction.d.ts +0 -30
- package/dist/model/transaction.js +0 -88
- package/dist/model/transaction.js.map +0 -1
- package/dist/model/transactionHistory.d.ts +0 -25
- package/dist/model/transactionHistory.js +0 -63
- package/dist/model/transactionHistory.js.map +0 -1
- package/dist/model/transactionHistoryResp.d.ts +0 -19
- package/dist/model/transactionHistoryResp.js +0 -38
- package/dist/model/transactionHistoryResp.js.map +0 -1
- package/dist/model/unauthorizedResponse.d.ts +0 -14
- package/dist/model/unauthorizedResponse.js +0 -18
- package/dist/model/unauthorizedResponse.js.map +0 -1
- package/dist/model/updateBalanceDefinitionPayload.d.ts +0 -77
- package/dist/model/updateBalanceDefinitionPayload.js +0 -145
- package/dist/model/updateBalanceDefinitionPayload.js.map +0 -1
- package/dist/model/updateBalanceLimitPayload.d.ts +0 -35
- package/dist/model/updateBalanceLimitPayload.js +0 -62
- package/dist/model/updateBalanceLimitPayload.js.map +0 -1
- package/dist/model/updateEmailCampaignEmailExpirationDate.d.ts +0 -22
- package/dist/model/updateEmailCampaignEmailExpirationDate.js +0 -31
- package/dist/model/updateEmailCampaignEmailExpirationDate.js.map +0 -1
- package/dist/model/updateLoyaltyProgramPayload.d.ts +0 -16
- package/dist/model/updateLoyaltyProgramPayload.js +0 -28
- package/dist/model/updateLoyaltyProgramPayload.js.map +0 -1
- package/dist/model/updateTierGroupRequest.d.ts +0 -29
- package/dist/model/updateTierGroupRequest.js +0 -51
- package/dist/model/updateTierGroupRequest.js.map +0 -1
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.MasterAccountApi = exports.MasterAccountApiApiKeys = void 0;
|
|
16
|
-
const
|
|
16
|
+
const requestCompat_1 = __importDefault(require("../requestCompat"));
|
|
17
17
|
const models_1 = require("../model/models");
|
|
18
18
|
const models_2 = require("../model/models");
|
|
19
19
|
const apis_1 = require("./apis");
|
|
@@ -22,7 +22,7 @@ var MasterAccountApiApiKeys;
|
|
|
22
22
|
(function (MasterAccountApiApiKeys) {
|
|
23
23
|
MasterAccountApiApiKeys[MasterAccountApiApiKeys["apiKey"] = 0] = "apiKey";
|
|
24
24
|
MasterAccountApiApiKeys[MasterAccountApiApiKeys["partnerKey"] = 1] = "partnerKey";
|
|
25
|
-
})(MasterAccountApiApiKeys
|
|
25
|
+
})(MasterAccountApiApiKeys = exports.MasterAccountApiApiKeys || (exports.MasterAccountApiApiKeys = {}));
|
|
26
26
|
class MasterAccountApi {
|
|
27
27
|
constructor(basePathOrUsername, password, basePath) {
|
|
28
28
|
this._basePath = defaultBasePath;
|
|
@@ -69,8 +69,8 @@ class MasterAccountApi {
|
|
|
69
69
|
addInterceptor(interceptor) {
|
|
70
70
|
this.interceptors.push(interceptor);
|
|
71
71
|
}
|
|
72
|
-
corporateGroupIdDelete(
|
|
73
|
-
return __awaiter(this,
|
|
72
|
+
corporateGroupIdDelete(id, options = { headers: {} }) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
75
75
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
76
76
|
let localVarQueryParameters = {};
|
|
@@ -92,7 +92,7 @@ class MasterAccountApi {
|
|
|
92
92
|
method: 'DELETE',
|
|
93
93
|
qs: localVarQueryParameters,
|
|
94
94
|
headers: localVarHeaderParams,
|
|
95
|
-
|
|
95
|
+
url: localVarPath,
|
|
96
96
|
useQuerystring: this._useQuerystring,
|
|
97
97
|
json: true,
|
|
98
98
|
};
|
|
@@ -118,7 +118,7 @@ class MasterAccountApi {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return new Promise((resolve, reject) => {
|
|
121
|
-
(0,
|
|
121
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
122
122
|
if (error) {
|
|
123
123
|
reject(error);
|
|
124
124
|
}
|
|
@@ -135,8 +135,8 @@ class MasterAccountApi {
|
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
corporateGroupIdGet(
|
|
139
|
-
return __awaiter(this,
|
|
138
|
+
corporateGroupIdGet(id, options = { headers: {} }) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
140
|
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
141
141
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
142
142
|
let localVarQueryParameters = {};
|
|
@@ -158,7 +158,7 @@ class MasterAccountApi {
|
|
|
158
158
|
method: 'GET',
|
|
159
159
|
qs: localVarQueryParameters,
|
|
160
160
|
headers: localVarHeaderParams,
|
|
161
|
-
|
|
161
|
+
url: localVarPath,
|
|
162
162
|
useQuerystring: this._useQuerystring,
|
|
163
163
|
json: true,
|
|
164
164
|
};
|
|
@@ -184,7 +184,7 @@ class MasterAccountApi {
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
return new Promise((resolve, reject) => {
|
|
187
|
-
(0,
|
|
187
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
188
188
|
if (error) {
|
|
189
189
|
reject(error);
|
|
190
190
|
}
|
|
@@ -202,8 +202,8 @@ class MasterAccountApi {
|
|
|
202
202
|
});
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
corporateGroupIdPut(
|
|
206
|
-
return __awaiter(this,
|
|
205
|
+
corporateGroupIdPut(id, body, options = { headers: {} }) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
207
|
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
208
208
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
209
209
|
let localVarQueryParameters = {};
|
|
@@ -228,7 +228,7 @@ class MasterAccountApi {
|
|
|
228
228
|
method: 'PUT',
|
|
229
229
|
qs: localVarQueryParameters,
|
|
230
230
|
headers: localVarHeaderParams,
|
|
231
|
-
|
|
231
|
+
url: localVarPath,
|
|
232
232
|
useQuerystring: this._useQuerystring,
|
|
233
233
|
json: true,
|
|
234
234
|
body: models_1.ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
|
|
@@ -255,7 +255,7 @@ class MasterAccountApi {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
return new Promise((resolve, reject) => {
|
|
258
|
-
(0,
|
|
258
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
259
259
|
if (error) {
|
|
260
260
|
reject(error);
|
|
261
261
|
}
|
|
@@ -272,8 +272,8 @@ class MasterAccountApi {
|
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
corporateGroupPost(
|
|
276
|
-
return __awaiter(this,
|
|
275
|
+
corporateGroupPost(body, options = { headers: {} }) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
277
|
const localVarPath = this.basePath + '/corporate/group';
|
|
278
278
|
let localVarQueryParameters = {};
|
|
279
279
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -294,7 +294,7 @@ class MasterAccountApi {
|
|
|
294
294
|
method: 'POST',
|
|
295
295
|
qs: localVarQueryParameters,
|
|
296
296
|
headers: localVarHeaderParams,
|
|
297
|
-
|
|
297
|
+
url: localVarPath,
|
|
298
298
|
useQuerystring: this._useQuerystring,
|
|
299
299
|
json: true,
|
|
300
300
|
body: models_1.ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
|
|
@@ -321,7 +321,7 @@ class MasterAccountApi {
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return new Promise((resolve, reject) => {
|
|
324
|
-
(0,
|
|
324
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
325
325
|
if (error) {
|
|
326
326
|
reject(error);
|
|
327
327
|
}
|
|
@@ -339,8 +339,8 @@ class MasterAccountApi {
|
|
|
339
339
|
});
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
corporateGroupUnlinkGroupIdSubAccountsPut(
|
|
343
|
-
return __awaiter(this,
|
|
342
|
+
corporateGroupUnlinkGroupIdSubAccountsPut(groupId, body, options = { headers: {} }) {
|
|
343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
344
344
|
const localVarPath = this.basePath + '/corporate/group/unlink/{groupId}/subAccounts'
|
|
345
345
|
.replace('{' + 'groupId' + '}', encodeURIComponent(String(groupId)));
|
|
346
346
|
let localVarQueryParameters = {};
|
|
@@ -365,7 +365,7 @@ class MasterAccountApi {
|
|
|
365
365
|
method: 'PUT',
|
|
366
366
|
qs: localVarQueryParameters,
|
|
367
367
|
headers: localVarHeaderParams,
|
|
368
|
-
|
|
368
|
+
url: localVarPath,
|
|
369
369
|
useQuerystring: this._useQuerystring,
|
|
370
370
|
json: true,
|
|
371
371
|
body: models_1.ObjectSerializer.serialize(body, "CorporateGroupUnlinkGroupIdSubAccountsPutRequest")
|
|
@@ -392,7 +392,7 @@ class MasterAccountApi {
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
return new Promise((resolve, reject) => {
|
|
395
|
-
(0,
|
|
395
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
396
396
|
if (error) {
|
|
397
397
|
reject(error);
|
|
398
398
|
}
|
|
@@ -409,70 +409,8 @@ class MasterAccountApi {
|
|
|
409
409
|
});
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
return __awaiter(this,
|
|
414
|
-
const localVarPath = this.basePath + '/corporate/ip';
|
|
415
|
-
let localVarQueryParameters = {};
|
|
416
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
417
|
-
const produces = ['application/json'];
|
|
418
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
419
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
423
|
-
}
|
|
424
|
-
let localVarFormParams = {};
|
|
425
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
426
|
-
let localVarUseFormData = false;
|
|
427
|
-
let localVarRequestOptions = {
|
|
428
|
-
method: 'GET',
|
|
429
|
-
qs: localVarQueryParameters,
|
|
430
|
-
headers: localVarHeaderParams,
|
|
431
|
-
uri: localVarPath,
|
|
432
|
-
useQuerystring: this._useQuerystring,
|
|
433
|
-
json: true,
|
|
434
|
-
};
|
|
435
|
-
let authenticationPromise = Promise.resolve();
|
|
436
|
-
if (this.authentications.apiKey.apiKey) {
|
|
437
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
438
|
-
}
|
|
439
|
-
if (this.authentications.partnerKey.apiKey) {
|
|
440
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
441
|
-
}
|
|
442
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
443
|
-
let interceptorPromise = authenticationPromise;
|
|
444
|
-
for (const interceptor of this.interceptors) {
|
|
445
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
446
|
-
}
|
|
447
|
-
return interceptorPromise.then(() => {
|
|
448
|
-
if (Object.keys(localVarFormParams).length) {
|
|
449
|
-
if (localVarUseFormData) {
|
|
450
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
return new Promise((resolve, reject) => {
|
|
457
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
458
|
-
if (error) {
|
|
459
|
-
reject(error);
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
463
|
-
resolve({ response: response, body: body });
|
|
464
|
-
}
|
|
465
|
-
else {
|
|
466
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
});
|
|
471
|
-
});
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
corporateMasterAccountGet() {
|
|
475
|
-
return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
|
|
412
|
+
corporateMasterAccountGet(options = { headers: {} }) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
476
414
|
const localVarPath = this.basePath + '/corporate/masterAccount';
|
|
477
415
|
let localVarQueryParameters = {};
|
|
478
416
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -490,7 +428,7 @@ class MasterAccountApi {
|
|
|
490
428
|
method: 'GET',
|
|
491
429
|
qs: localVarQueryParameters,
|
|
492
430
|
headers: localVarHeaderParams,
|
|
493
|
-
|
|
431
|
+
url: localVarPath,
|
|
494
432
|
useQuerystring: this._useQuerystring,
|
|
495
433
|
json: true,
|
|
496
434
|
};
|
|
@@ -516,7 +454,7 @@ class MasterAccountApi {
|
|
|
516
454
|
}
|
|
517
455
|
}
|
|
518
456
|
return new Promise((resolve, reject) => {
|
|
519
|
-
(0,
|
|
457
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
520
458
|
if (error) {
|
|
521
459
|
reject(error);
|
|
522
460
|
}
|
|
@@ -534,8 +472,8 @@ class MasterAccountApi {
|
|
|
534
472
|
});
|
|
535
473
|
});
|
|
536
474
|
}
|
|
537
|
-
corporateSsoTokenPost(
|
|
538
|
-
return __awaiter(this,
|
|
475
|
+
corporateSsoTokenPost(ssoTokenRequestCorporate, options = { headers: {} }) {
|
|
476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
539
477
|
const localVarPath = this.basePath + '/corporate/ssoToken';
|
|
540
478
|
let localVarQueryParameters = {};
|
|
541
479
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -556,7 +494,7 @@ class MasterAccountApi {
|
|
|
556
494
|
method: 'POST',
|
|
557
495
|
qs: localVarQueryParameters,
|
|
558
496
|
headers: localVarHeaderParams,
|
|
559
|
-
|
|
497
|
+
url: localVarPath,
|
|
560
498
|
useQuerystring: this._useQuerystring,
|
|
561
499
|
json: true,
|
|
562
500
|
body: models_1.ObjectSerializer.serialize(ssoTokenRequestCorporate, "SsoTokenRequestCorporate")
|
|
@@ -583,7 +521,7 @@ class MasterAccountApi {
|
|
|
583
521
|
}
|
|
584
522
|
}
|
|
585
523
|
return new Promise((resolve, reject) => {
|
|
586
|
-
(0,
|
|
524
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
587
525
|
if (error) {
|
|
588
526
|
reject(error);
|
|
589
527
|
}
|
|
@@ -601,8 +539,8 @@ class MasterAccountApi {
|
|
|
601
539
|
});
|
|
602
540
|
});
|
|
603
541
|
}
|
|
604
|
-
corporateSubAccountGet(
|
|
605
|
-
return __awaiter(this,
|
|
542
|
+
corporateSubAccountGet(offset, limit, options = { headers: {} }) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
606
544
|
const localVarPath = this.basePath + '/corporate/subAccount';
|
|
607
545
|
let localVarQueryParameters = {};
|
|
608
546
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -632,7 +570,7 @@ class MasterAccountApi {
|
|
|
632
570
|
method: 'GET',
|
|
633
571
|
qs: localVarQueryParameters,
|
|
634
572
|
headers: localVarHeaderParams,
|
|
635
|
-
|
|
573
|
+
url: localVarPath,
|
|
636
574
|
useQuerystring: this._useQuerystring,
|
|
637
575
|
json: true,
|
|
638
576
|
};
|
|
@@ -658,7 +596,7 @@ class MasterAccountApi {
|
|
|
658
596
|
}
|
|
659
597
|
}
|
|
660
598
|
return new Promise((resolve, reject) => {
|
|
661
|
-
(0,
|
|
599
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
662
600
|
if (error) {
|
|
663
601
|
reject(error);
|
|
664
602
|
}
|
|
@@ -676,8 +614,8 @@ class MasterAccountApi {
|
|
|
676
614
|
});
|
|
677
615
|
});
|
|
678
616
|
}
|
|
679
|
-
corporateSubAccountIdApplicationsTogglePut(
|
|
680
|
-
return __awaiter(this,
|
|
617
|
+
corporateSubAccountIdApplicationsTogglePut(id, toggleApplications, options = { headers: {} }) {
|
|
618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
681
619
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}/applications/toggle'
|
|
682
620
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
683
621
|
let localVarQueryParameters = {};
|
|
@@ -702,7 +640,7 @@ class MasterAccountApi {
|
|
|
702
640
|
method: 'PUT',
|
|
703
641
|
qs: localVarQueryParameters,
|
|
704
642
|
headers: localVarHeaderParams,
|
|
705
|
-
|
|
643
|
+
url: localVarPath,
|
|
706
644
|
useQuerystring: this._useQuerystring,
|
|
707
645
|
json: true,
|
|
708
646
|
body: models_1.ObjectSerializer.serialize(toggleApplications, "SubAccountAppsToggleRequest")
|
|
@@ -729,7 +667,7 @@ class MasterAccountApi {
|
|
|
729
667
|
}
|
|
730
668
|
}
|
|
731
669
|
return new Promise((resolve, reject) => {
|
|
732
|
-
(0,
|
|
670
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
733
671
|
if (error) {
|
|
734
672
|
reject(error);
|
|
735
673
|
}
|
|
@@ -746,8 +684,8 @@ class MasterAccountApi {
|
|
|
746
684
|
});
|
|
747
685
|
});
|
|
748
686
|
}
|
|
749
|
-
corporateSubAccountIdDelete(
|
|
750
|
-
return __awaiter(this,
|
|
687
|
+
corporateSubAccountIdDelete(id, options = { headers: {} }) {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
751
689
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}'
|
|
752
690
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
753
691
|
let localVarQueryParameters = {};
|
|
@@ -769,7 +707,7 @@ class MasterAccountApi {
|
|
|
769
707
|
method: 'DELETE',
|
|
770
708
|
qs: localVarQueryParameters,
|
|
771
709
|
headers: localVarHeaderParams,
|
|
772
|
-
|
|
710
|
+
url: localVarPath,
|
|
773
711
|
useQuerystring: this._useQuerystring,
|
|
774
712
|
json: true,
|
|
775
713
|
};
|
|
@@ -795,7 +733,7 @@ class MasterAccountApi {
|
|
|
795
733
|
}
|
|
796
734
|
}
|
|
797
735
|
return new Promise((resolve, reject) => {
|
|
798
|
-
(0,
|
|
736
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
799
737
|
if (error) {
|
|
800
738
|
reject(error);
|
|
801
739
|
}
|
|
@@ -812,8 +750,8 @@ class MasterAccountApi {
|
|
|
812
750
|
});
|
|
813
751
|
});
|
|
814
752
|
}
|
|
815
|
-
corporateSubAccountIdGet(
|
|
816
|
-
return __awaiter(this,
|
|
753
|
+
corporateSubAccountIdGet(id, options = { headers: {} }) {
|
|
754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
817
755
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}'
|
|
818
756
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
819
757
|
let localVarQueryParameters = {};
|
|
@@ -835,7 +773,7 @@ class MasterAccountApi {
|
|
|
835
773
|
method: 'GET',
|
|
836
774
|
qs: localVarQueryParameters,
|
|
837
775
|
headers: localVarHeaderParams,
|
|
838
|
-
|
|
776
|
+
url: localVarPath,
|
|
839
777
|
useQuerystring: this._useQuerystring,
|
|
840
778
|
json: true,
|
|
841
779
|
};
|
|
@@ -861,7 +799,7 @@ class MasterAccountApi {
|
|
|
861
799
|
}
|
|
862
800
|
}
|
|
863
801
|
return new Promise((resolve, reject) => {
|
|
864
|
-
(0,
|
|
802
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
865
803
|
if (error) {
|
|
866
804
|
reject(error);
|
|
867
805
|
}
|
|
@@ -879,8 +817,8 @@ class MasterAccountApi {
|
|
|
879
817
|
});
|
|
880
818
|
});
|
|
881
819
|
}
|
|
882
|
-
corporateSubAccountIdPlanPut(
|
|
883
|
-
return __awaiter(this,
|
|
820
|
+
corporateSubAccountIdPlanPut(id, updatePlanDetails, options = { headers: {} }) {
|
|
821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
884
822
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}/plan'
|
|
885
823
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
886
824
|
let localVarQueryParameters = {};
|
|
@@ -905,7 +843,7 @@ class MasterAccountApi {
|
|
|
905
843
|
method: 'PUT',
|
|
906
844
|
qs: localVarQueryParameters,
|
|
907
845
|
headers: localVarHeaderParams,
|
|
908
|
-
|
|
846
|
+
url: localVarPath,
|
|
909
847
|
useQuerystring: this._useQuerystring,
|
|
910
848
|
json: true,
|
|
911
849
|
body: models_1.ObjectSerializer.serialize(updatePlanDetails, "SubAccountUpdatePlanRequest")
|
|
@@ -932,7 +870,7 @@ class MasterAccountApi {
|
|
|
932
870
|
}
|
|
933
871
|
}
|
|
934
872
|
return new Promise((resolve, reject) => {
|
|
935
|
-
(0,
|
|
873
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
936
874
|
if (error) {
|
|
937
875
|
reject(error);
|
|
938
876
|
}
|
|
@@ -949,8 +887,8 @@ class MasterAccountApi {
|
|
|
949
887
|
});
|
|
950
888
|
});
|
|
951
889
|
}
|
|
952
|
-
corporateSubAccountIpAssociatePost(
|
|
953
|
-
return __awaiter(this,
|
|
890
|
+
corporateSubAccountIpAssociatePost(body, options = { headers: {} }) {
|
|
891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
954
892
|
const localVarPath = this.basePath + '/corporate/subAccount/ip/associate';
|
|
955
893
|
let localVarQueryParameters = {};
|
|
956
894
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -971,7 +909,7 @@ class MasterAccountApi {
|
|
|
971
909
|
method: 'POST',
|
|
972
910
|
qs: localVarQueryParameters,
|
|
973
911
|
headers: localVarHeaderParams,
|
|
974
|
-
|
|
912
|
+
url: localVarPath,
|
|
975
913
|
useQuerystring: this._useQuerystring,
|
|
976
914
|
json: true,
|
|
977
915
|
body: models_1.ObjectSerializer.serialize(body, "CorporateSubAccountIpAssociatePostRequest")
|
|
@@ -998,7 +936,7 @@ class MasterAccountApi {
|
|
|
998
936
|
}
|
|
999
937
|
}
|
|
1000
938
|
return new Promise((resolve, reject) => {
|
|
1001
|
-
(0,
|
|
939
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1002
940
|
if (error) {
|
|
1003
941
|
reject(error);
|
|
1004
942
|
}
|
|
@@ -1016,8 +954,8 @@ class MasterAccountApi {
|
|
|
1016
954
|
});
|
|
1017
955
|
});
|
|
1018
956
|
}
|
|
1019
|
-
corporateSubAccountIpDissociatePut(
|
|
1020
|
-
return __awaiter(this,
|
|
957
|
+
corporateSubAccountIpDissociatePut(body, options = { headers: {} }) {
|
|
958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
959
|
const localVarPath = this.basePath + '/corporate/subAccount/ip/dissociate';
|
|
1022
960
|
let localVarQueryParameters = {};
|
|
1023
961
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1038,7 +976,7 @@ class MasterAccountApi {
|
|
|
1038
976
|
method: 'PUT',
|
|
1039
977
|
qs: localVarQueryParameters,
|
|
1040
978
|
headers: localVarHeaderParams,
|
|
1041
|
-
|
|
979
|
+
url: localVarPath,
|
|
1042
980
|
useQuerystring: this._useQuerystring,
|
|
1043
981
|
json: true,
|
|
1044
982
|
body: models_1.ObjectSerializer.serialize(body, "CorporateSubAccountIpDissociatePutRequest")
|
|
@@ -1065,7 +1003,7 @@ class MasterAccountApi {
|
|
|
1065
1003
|
}
|
|
1066
1004
|
}
|
|
1067
1005
|
return new Promise((resolve, reject) => {
|
|
1068
|
-
(0,
|
|
1006
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1069
1007
|
if (error) {
|
|
1070
1008
|
reject(error);
|
|
1071
1009
|
}
|
|
@@ -1082,8 +1020,8 @@ class MasterAccountApi {
|
|
|
1082
1020
|
});
|
|
1083
1021
|
});
|
|
1084
1022
|
}
|
|
1085
|
-
corporateSubAccountKeyPost(
|
|
1086
|
-
return __awaiter(this,
|
|
1023
|
+
corporateSubAccountKeyPost(createApiKeyRequest, options = { headers: {} }) {
|
|
1024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1087
1025
|
const localVarPath = this.basePath + '/corporate/subAccount/key';
|
|
1088
1026
|
let localVarQueryParameters = {};
|
|
1089
1027
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1104,7 +1042,7 @@ class MasterAccountApi {
|
|
|
1104
1042
|
method: 'POST',
|
|
1105
1043
|
qs: localVarQueryParameters,
|
|
1106
1044
|
headers: localVarHeaderParams,
|
|
1107
|
-
|
|
1045
|
+
url: localVarPath,
|
|
1108
1046
|
useQuerystring: this._useQuerystring,
|
|
1109
1047
|
json: true,
|
|
1110
1048
|
body: models_1.ObjectSerializer.serialize(createApiKeyRequest, "CreateApiKeyRequest")
|
|
@@ -1131,7 +1069,7 @@ class MasterAccountApi {
|
|
|
1131
1069
|
}
|
|
1132
1070
|
}
|
|
1133
1071
|
return new Promise((resolve, reject) => {
|
|
1134
|
-
(0,
|
|
1072
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1135
1073
|
if (error) {
|
|
1136
1074
|
reject(error);
|
|
1137
1075
|
}
|
|
@@ -1149,8 +1087,8 @@ class MasterAccountApi {
|
|
|
1149
1087
|
});
|
|
1150
1088
|
});
|
|
1151
1089
|
}
|
|
1152
|
-
corporateSubAccountPost(
|
|
1153
|
-
return __awaiter(this,
|
|
1090
|
+
corporateSubAccountPost(subAccountCreate, options = { headers: {} }) {
|
|
1091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1154
1092
|
const localVarPath = this.basePath + '/corporate/subAccount';
|
|
1155
1093
|
let localVarQueryParameters = {};
|
|
1156
1094
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1171,7 +1109,7 @@ class MasterAccountApi {
|
|
|
1171
1109
|
method: 'POST',
|
|
1172
1110
|
qs: localVarQueryParameters,
|
|
1173
1111
|
headers: localVarHeaderParams,
|
|
1174
|
-
|
|
1112
|
+
url: localVarPath,
|
|
1175
1113
|
useQuerystring: this._useQuerystring,
|
|
1176
1114
|
json: true,
|
|
1177
1115
|
body: models_1.ObjectSerializer.serialize(subAccountCreate, "CreateSubAccount")
|
|
@@ -1198,7 +1136,7 @@ class MasterAccountApi {
|
|
|
1198
1136
|
}
|
|
1199
1137
|
}
|
|
1200
1138
|
return new Promise((resolve, reject) => {
|
|
1201
|
-
(0,
|
|
1139
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1202
1140
|
if (error) {
|
|
1203
1141
|
reject(error);
|
|
1204
1142
|
}
|
|
@@ -1216,8 +1154,8 @@ class MasterAccountApi {
|
|
|
1216
1154
|
});
|
|
1217
1155
|
});
|
|
1218
1156
|
}
|
|
1219
|
-
corporateSubAccountSsoTokenPost(
|
|
1220
|
-
return __awaiter(this,
|
|
1157
|
+
corporateSubAccountSsoTokenPost(ssoTokenRequest, options = { headers: {} }) {
|
|
1158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1221
1159
|
const localVarPath = this.basePath + '/corporate/subAccount/ssoToken';
|
|
1222
1160
|
let localVarQueryParameters = {};
|
|
1223
1161
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1238,7 +1176,7 @@ class MasterAccountApi {
|
|
|
1238
1176
|
method: 'POST',
|
|
1239
1177
|
qs: localVarQueryParameters,
|
|
1240
1178
|
headers: localVarHeaderParams,
|
|
1241
|
-
|
|
1179
|
+
url: localVarPath,
|
|
1242
1180
|
useQuerystring: this._useQuerystring,
|
|
1243
1181
|
json: true,
|
|
1244
1182
|
body: models_1.ObjectSerializer.serialize(ssoTokenRequest, "SsoTokenRequest")
|
|
@@ -1265,7 +1203,7 @@ class MasterAccountApi {
|
|
|
1265
1203
|
}
|
|
1266
1204
|
}
|
|
1267
1205
|
return new Promise((resolve, reject) => {
|
|
1268
|
-
(0,
|
|
1206
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1269
1207
|
if (error) {
|
|
1270
1208
|
reject(error);
|
|
1271
1209
|
}
|
|
@@ -1283,144 +1221,8 @@ class MasterAccountApi {
|
|
|
1283
1221
|
});
|
|
1284
1222
|
});
|
|
1285
1223
|
}
|
|
1286
|
-
|
|
1287
|
-
return __awaiter(this,
|
|
1288
|
-
const localVarPath = this.basePath + '/corporate/subAccounts/plan';
|
|
1289
|
-
let localVarQueryParameters = {};
|
|
1290
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1291
|
-
const produces = ['application/json'];
|
|
1292
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1293
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1294
|
-
}
|
|
1295
|
-
else {
|
|
1296
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1297
|
-
}
|
|
1298
|
-
let localVarFormParams = {};
|
|
1299
|
-
if (updatePlanDetails === null || updatePlanDetails === undefined) {
|
|
1300
|
-
throw new Error('Required parameter updatePlanDetails was null or undefined when calling corporateSubAccountsPlanPut.');
|
|
1301
|
-
}
|
|
1302
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1303
|
-
let localVarUseFormData = false;
|
|
1304
|
-
let localVarRequestOptions = {
|
|
1305
|
-
method: 'PUT',
|
|
1306
|
-
qs: localVarQueryParameters,
|
|
1307
|
-
headers: localVarHeaderParams,
|
|
1308
|
-
uri: localVarPath,
|
|
1309
|
-
useQuerystring: this._useQuerystring,
|
|
1310
|
-
json: true,
|
|
1311
|
-
body: models_1.ObjectSerializer.serialize(updatePlanDetails, "SubAccountsUpdatePlanRequest")
|
|
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
|
-
let interceptorPromise = authenticationPromise;
|
|
1322
|
-
for (const interceptor of this.interceptors) {
|
|
1323
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1324
|
-
}
|
|
1325
|
-
return interceptorPromise.then(() => {
|
|
1326
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1327
|
-
if (localVarUseFormData) {
|
|
1328
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1329
|
-
}
|
|
1330
|
-
else {
|
|
1331
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
return new Promise((resolve, reject) => {
|
|
1335
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1336
|
-
if (error) {
|
|
1337
|
-
reject(error);
|
|
1338
|
-
}
|
|
1339
|
-
else {
|
|
1340
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1341
|
-
resolve({ response: response, body: body });
|
|
1342
|
-
}
|
|
1343
|
-
else {
|
|
1344
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
});
|
|
1348
|
-
});
|
|
1349
|
-
});
|
|
1350
|
-
});
|
|
1351
|
-
}
|
|
1352
|
-
corporateUserEmailPermissionsPut(email_1, body_1) {
|
|
1353
|
-
return __awaiter(this, arguments, void 0, function* (email, body, options = { headers: {} }) {
|
|
1354
|
-
const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
|
|
1355
|
-
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1356
|
-
let localVarQueryParameters = {};
|
|
1357
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1358
|
-
const produces = ['application/json'];
|
|
1359
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1360
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1361
|
-
}
|
|
1362
|
-
else {
|
|
1363
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1364
|
-
}
|
|
1365
|
-
let localVarFormParams = {};
|
|
1366
|
-
if (email === null || email === undefined) {
|
|
1367
|
-
throw new Error('Required parameter email was null or undefined when calling corporateUserEmailPermissionsPut.');
|
|
1368
|
-
}
|
|
1369
|
-
if (body === null || body === undefined) {
|
|
1370
|
-
throw new Error('Required parameter body was null or undefined when calling corporateUserEmailPermissionsPut.');
|
|
1371
|
-
}
|
|
1372
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1373
|
-
let localVarUseFormData = false;
|
|
1374
|
-
let localVarRequestOptions = {
|
|
1375
|
-
method: 'PUT',
|
|
1376
|
-
qs: localVarQueryParameters,
|
|
1377
|
-
headers: localVarHeaderParams,
|
|
1378
|
-
uri: localVarPath,
|
|
1379
|
-
useQuerystring: this._useQuerystring,
|
|
1380
|
-
json: true,
|
|
1381
|
-
body: models_1.ObjectSerializer.serialize(body, "CorporateUserEmailPermissionsPutRequest")
|
|
1382
|
-
};
|
|
1383
|
-
let authenticationPromise = Promise.resolve();
|
|
1384
|
-
if (this.authentications.apiKey.apiKey) {
|
|
1385
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1386
|
-
}
|
|
1387
|
-
if (this.authentications.partnerKey.apiKey) {
|
|
1388
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1389
|
-
}
|
|
1390
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1391
|
-
let interceptorPromise = authenticationPromise;
|
|
1392
|
-
for (const interceptor of this.interceptors) {
|
|
1393
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1394
|
-
}
|
|
1395
|
-
return interceptorPromise.then(() => {
|
|
1396
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1397
|
-
if (localVarUseFormData) {
|
|
1398
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1399
|
-
}
|
|
1400
|
-
else {
|
|
1401
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
return new Promise((resolve, reject) => {
|
|
1405
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1406
|
-
if (error) {
|
|
1407
|
-
reject(error);
|
|
1408
|
-
}
|
|
1409
|
-
else {
|
|
1410
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1411
|
-
resolve({ response: response, body: body });
|
|
1412
|
-
}
|
|
1413
|
-
else {
|
|
1414
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
});
|
|
1418
|
-
});
|
|
1419
|
-
});
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
corporateUserInvitationActionEmailPut(action_1, email_1) {
|
|
1423
|
-
return __awaiter(this, arguments, void 0, function* (action, email, options = { headers: {} }) {
|
|
1224
|
+
corporateUserInvitationActionEmailPut(action, email, options = { headers: {} }) {
|
|
1225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1424
1226
|
const localVarPath = this.basePath + '/corporate/user/invitation/{action}/{email}'
|
|
1425
1227
|
.replace('{' + 'action' + '}', encodeURIComponent(String(action)))
|
|
1426
1228
|
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
@@ -1446,7 +1248,7 @@ class MasterAccountApi {
|
|
|
1446
1248
|
method: 'PUT',
|
|
1447
1249
|
qs: localVarQueryParameters,
|
|
1448
1250
|
headers: localVarHeaderParams,
|
|
1449
|
-
|
|
1251
|
+
url: localVarPath,
|
|
1450
1252
|
useQuerystring: this._useQuerystring,
|
|
1451
1253
|
json: true,
|
|
1452
1254
|
};
|
|
@@ -1472,7 +1274,7 @@ class MasterAccountApi {
|
|
|
1472
1274
|
}
|
|
1473
1275
|
}
|
|
1474
1276
|
return new Promise((resolve, reject) => {
|
|
1475
|
-
(0,
|
|
1277
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1476
1278
|
if (error) {
|
|
1477
1279
|
reject(error);
|
|
1478
1280
|
}
|
|
@@ -1490,8 +1292,8 @@ class MasterAccountApi {
|
|
|
1490
1292
|
});
|
|
1491
1293
|
});
|
|
1492
1294
|
}
|
|
1493
|
-
corporateUserRevokeEmailDelete(
|
|
1494
|
-
return __awaiter(this,
|
|
1295
|
+
corporateUserRevokeEmailDelete(email, options = { headers: {} }) {
|
|
1296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1495
1297
|
const localVarPath = this.basePath + '/corporate/user/revoke/{email}'
|
|
1496
1298
|
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1497
1299
|
let localVarQueryParameters = {};
|
|
@@ -1513,7 +1315,7 @@ class MasterAccountApi {
|
|
|
1513
1315
|
method: 'DELETE',
|
|
1514
1316
|
qs: localVarQueryParameters,
|
|
1515
1317
|
headers: localVarHeaderParams,
|
|
1516
|
-
|
|
1318
|
+
url: localVarPath,
|
|
1517
1319
|
useQuerystring: this._useQuerystring,
|
|
1518
1320
|
json: true,
|
|
1519
1321
|
};
|
|
@@ -1539,7 +1341,7 @@ class MasterAccountApi {
|
|
|
1539
1341
|
}
|
|
1540
1342
|
}
|
|
1541
1343
|
return new Promise((resolve, reject) => {
|
|
1542
|
-
(0,
|
|
1344
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1543
1345
|
if (error) {
|
|
1544
1346
|
reject(error);
|
|
1545
1347
|
}
|
|
@@ -1556,8 +1358,8 @@ class MasterAccountApi {
|
|
|
1556
1358
|
});
|
|
1557
1359
|
});
|
|
1558
1360
|
}
|
|
1559
|
-
getAccountActivity(
|
|
1560
|
-
return __awaiter(this,
|
|
1361
|
+
getAccountActivity(startDate, endDate, limit, offset, options = { headers: {} }) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1561
1363
|
const localVarPath = this.basePath + '/organization/activities';
|
|
1562
1364
|
let localVarQueryParameters = {};
|
|
1563
1365
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1575,9 +1377,6 @@ class MasterAccountApi {
|
|
|
1575
1377
|
if (endDate !== undefined) {
|
|
1576
1378
|
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
1577
1379
|
}
|
|
1578
|
-
if (email !== undefined) {
|
|
1579
|
-
localVarQueryParameters['email'] = models_1.ObjectSerializer.serialize(email, "string");
|
|
1580
|
-
}
|
|
1581
1380
|
if (limit !== undefined) {
|
|
1582
1381
|
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1583
1382
|
}
|
|
@@ -1590,7 +1389,7 @@ class MasterAccountApi {
|
|
|
1590
1389
|
method: 'GET',
|
|
1591
1390
|
qs: localVarQueryParameters,
|
|
1592
1391
|
headers: localVarHeaderParams,
|
|
1593
|
-
|
|
1392
|
+
url: localVarPath,
|
|
1594
1393
|
useQuerystring: this._useQuerystring,
|
|
1595
1394
|
json: true,
|
|
1596
1395
|
};
|
|
@@ -1616,7 +1415,7 @@ class MasterAccountApi {
|
|
|
1616
1415
|
}
|
|
1617
1416
|
}
|
|
1618
1417
|
return new Promise((resolve, reject) => {
|
|
1619
|
-
(0,
|
|
1418
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1620
1419
|
if (error) {
|
|
1621
1420
|
reject(error);
|
|
1622
1421
|
}
|
|
@@ -1634,8 +1433,8 @@ class MasterAccountApi {
|
|
|
1634
1433
|
});
|
|
1635
1434
|
});
|
|
1636
1435
|
}
|
|
1637
|
-
getCorporateInvitedUsersList() {
|
|
1638
|
-
return __awaiter(this,
|
|
1436
|
+
getCorporateInvitedUsersList(options = { headers: {} }) {
|
|
1437
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1639
1438
|
const localVarPath = this.basePath + '/corporate/invited/users';
|
|
1640
1439
|
let localVarQueryParameters = {};
|
|
1641
1440
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1653,7 +1452,7 @@ class MasterAccountApi {
|
|
|
1653
1452
|
method: 'GET',
|
|
1654
1453
|
qs: localVarQueryParameters,
|
|
1655
1454
|
headers: localVarHeaderParams,
|
|
1656
|
-
|
|
1455
|
+
url: localVarPath,
|
|
1657
1456
|
useQuerystring: this._useQuerystring,
|
|
1658
1457
|
json: true,
|
|
1659
1458
|
};
|
|
@@ -1679,7 +1478,7 @@ class MasterAccountApi {
|
|
|
1679
1478
|
}
|
|
1680
1479
|
}
|
|
1681
1480
|
return new Promise((resolve, reject) => {
|
|
1682
|
-
(0,
|
|
1481
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1683
1482
|
if (error) {
|
|
1684
1483
|
reject(error);
|
|
1685
1484
|
}
|
|
@@ -1697,8 +1496,8 @@ class MasterAccountApi {
|
|
|
1697
1496
|
});
|
|
1698
1497
|
});
|
|
1699
1498
|
}
|
|
1700
|
-
getCorporateUserPermission(
|
|
1701
|
-
return __awaiter(this,
|
|
1499
|
+
getCorporateUserPermission(email, options = { headers: {} }) {
|
|
1500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1702
1501
|
const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
|
|
1703
1502
|
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1704
1503
|
let localVarQueryParameters = {};
|
|
@@ -1720,7 +1519,7 @@ class MasterAccountApi {
|
|
|
1720
1519
|
method: 'GET',
|
|
1721
1520
|
qs: localVarQueryParameters,
|
|
1722
1521
|
headers: localVarHeaderParams,
|
|
1723
|
-
|
|
1522
|
+
url: localVarPath,
|
|
1724
1523
|
useQuerystring: this._useQuerystring,
|
|
1725
1524
|
json: true,
|
|
1726
1525
|
};
|
|
@@ -1746,7 +1545,7 @@ class MasterAccountApi {
|
|
|
1746
1545
|
}
|
|
1747
1546
|
}
|
|
1748
1547
|
return new Promise((resolve, reject) => {
|
|
1749
|
-
(0,
|
|
1548
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1750
1549
|
if (error) {
|
|
1751
1550
|
reject(error);
|
|
1752
1551
|
}
|
|
@@ -1764,8 +1563,8 @@ class MasterAccountApi {
|
|
|
1764
1563
|
});
|
|
1765
1564
|
});
|
|
1766
1565
|
}
|
|
1767
|
-
getSubAccountGroups() {
|
|
1768
|
-
return __awaiter(this,
|
|
1566
|
+
getSubAccountGroups(options = { headers: {} }) {
|
|
1567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1769
1568
|
const localVarPath = this.basePath + '/corporate/groups';
|
|
1770
1569
|
let localVarQueryParameters = {};
|
|
1771
1570
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1783,7 +1582,7 @@ class MasterAccountApi {
|
|
|
1783
1582
|
method: 'GET',
|
|
1784
1583
|
qs: localVarQueryParameters,
|
|
1785
1584
|
headers: localVarHeaderParams,
|
|
1786
|
-
|
|
1585
|
+
url: localVarPath,
|
|
1787
1586
|
useQuerystring: this._useQuerystring,
|
|
1788
1587
|
json: true,
|
|
1789
1588
|
};
|
|
@@ -1809,7 +1608,7 @@ class MasterAccountApi {
|
|
|
1809
1608
|
}
|
|
1810
1609
|
}
|
|
1811
1610
|
return new Promise((resolve, reject) => {
|
|
1812
|
-
(0,
|
|
1611
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1813
1612
|
if (error) {
|
|
1814
1613
|
reject(error);
|
|
1815
1614
|
}
|
|
@@ -1827,8 +1626,8 @@ class MasterAccountApi {
|
|
|
1827
1626
|
});
|
|
1828
1627
|
});
|
|
1829
1628
|
}
|
|
1830
|
-
inviteAdminUser(
|
|
1831
|
-
return __awaiter(this,
|
|
1629
|
+
inviteAdminUser(sendInvitation, options = { headers: {} }) {
|
|
1630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1832
1631
|
const localVarPath = this.basePath + '/corporate/user/invitation/send';
|
|
1833
1632
|
let localVarQueryParameters = {};
|
|
1834
1633
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1849,7 +1648,7 @@ class MasterAccountApi {
|
|
|
1849
1648
|
method: 'POST',
|
|
1850
1649
|
qs: localVarQueryParameters,
|
|
1851
1650
|
headers: localVarHeaderParams,
|
|
1852
|
-
|
|
1651
|
+
url: localVarPath,
|
|
1853
1652
|
useQuerystring: this._useQuerystring,
|
|
1854
1653
|
json: true,
|
|
1855
1654
|
body: models_1.ObjectSerializer.serialize(sendInvitation, "InviteAdminUser")
|
|
@@ -1876,7 +1675,7 @@ class MasterAccountApi {
|
|
|
1876
1675
|
}
|
|
1877
1676
|
}
|
|
1878
1677
|
return new Promise((resolve, reject) => {
|
|
1879
|
-
(0,
|
|
1678
|
+
(0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1880
1679
|
if (error) {
|
|
1881
1680
|
reject(error);
|
|
1882
1681
|
}
|