@getbrevo/brevo 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +113 -24
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -5
- package/api/accountApi.ts +6 -1
- package/api/apis.ts +9 -3
- package/api/balanceApi.ts +1725 -0
- package/api/companiesApi.ts +247 -69
- package/api/contactsApi.ts +119 -25
- package/api/dealsApi.ts +181 -1
- package/api/ecommerceApi.ts +29 -14
- package/api/emailCampaignsApi.ts +2 -2
- package/api/masterAccountApi.ts +233 -4
- package/api/programApi.ts +992 -0
- package/api/rewardApi.ts +975 -0
- package/api/tierApi.ts +952 -0
- package/api/transactionalEmailsApi.ts +78 -1
- package/api/transactionalSMSApi.ts +60 -0
- package/api/userApi.ts +2 -2
- package/dist/api/accountApi.d.ts +1 -2
- package/dist/api/accountApi.js +9 -5
- package/dist/api/accountApi.js.map +1 -1
- package/dist/api/apis.d.ts +9 -4
- package/dist/api/apis.js +9 -3
- package/dist/api/apis.js.map +1 -1
- package/dist/api/balanceApi.d.ts +187 -0
- package/dist/api/balanceApi.js +1434 -0
- package/dist/api/balanceApi.js.map +1 -0
- package/dist/api/companiesApi.d.ts +29 -10
- package/dist/api/companiesApi.js +204 -55
- package/dist/api/companiesApi.js.map +1 -1
- package/dist/api/contactsApi.d.ts +13 -6
- package/dist/api/contactsApi.js +142 -65
- package/dist/api/contactsApi.js.map +1 -1
- package/dist/api/conversationsApi.d.ts +0 -1
- package/dist/api/conversationsApi.js +19 -19
- package/dist/api/conversationsApi.js.map +1 -1
- package/dist/api/couponsApi.d.ts +0 -1
- package/dist/api/couponsApi.js +11 -11
- package/dist/api/couponsApi.js.map +1 -1
- package/dist/api/dealsApi.d.ts +21 -2
- package/dist/api/dealsApi.js +170 -21
- package/dist/api/dealsApi.js.map +1 -1
- package/dist/api/domainsApi.d.ts +0 -1
- package/dist/api/domainsApi.js +11 -11
- package/dist/api/domainsApi.js.map +1 -1
- package/dist/api/ecommerceApi.d.ts +3 -4
- package/dist/api/ecommerceApi.js +45 -36
- package/dist/api/ecommerceApi.js.map +1 -1
- package/dist/api/emailCampaignsApi.d.ts +1 -2
- package/dist/api/emailCampaignsApi.js +28 -28
- package/dist/api/emailCampaignsApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +0 -1
- package/dist/api/eventsApi.js +3 -3
- package/dist/api/eventsApi.js.map +1 -1
- package/dist/api/externalFeedsApi.d.ts +0 -1
- package/dist/api/externalFeedsApi.js +11 -11
- package/dist/api/externalFeedsApi.js.map +1 -1
- package/dist/api/filesApi.d.ts +0 -1
- package/dist/api/filesApi.js +11 -11
- package/dist/api/filesApi.js.map +1 -1
- package/dist/api/inboundParsingApi.d.ts +0 -2
- package/dist/api/inboundParsingApi.js +7 -7
- package/dist/api/inboundParsingApi.js.map +1 -1
- package/dist/api/masterAccountApi.d.ts +27 -2
- package/dist/api/masterAccountApi.js +250 -49
- package/dist/api/masterAccountApi.js.map +1 -1
- package/dist/api/notesApi.d.ts +0 -1
- package/dist/api/notesApi.js +11 -11
- package/dist/api/notesApi.js.map +1 -1
- package/dist/api/paymentsApi.d.ts +0 -1
- package/dist/api/paymentsApi.js +7 -7
- package/dist/api/paymentsApi.js.map +1 -1
- package/dist/api/processApi.d.ts +0 -1
- package/dist/api/processApi.js +5 -5
- package/dist/api/processApi.js.map +1 -1
- package/dist/api/programApi.d.ts +125 -0
- package/dist/api/programApi.js +847 -0
- package/dist/api/programApi.js.map +1 -0
- package/dist/api/resellerApi.d.ts +0 -1
- package/dist/api/resellerApi.js +33 -33
- package/dist/api/resellerApi.js.map +1 -1
- package/dist/api/rewardApi.d.ts +119 -0
- package/dist/api/rewardApi.js +814 -0
- package/dist/api/rewardApi.js.map +1 -0
- package/dist/api/sMSCampaignsApi.d.ts +0 -1
- package/dist/api/sMSCampaignsApi.js +21 -21
- package/dist/api/sMSCampaignsApi.js.map +1 -1
- package/dist/api/sendersApi.d.ts +0 -1
- package/dist/api/sendersApi.js +15 -15
- package/dist/api/sendersApi.js.map +1 -1
- package/dist/api/tasksApi.d.ts +0 -1
- package/dist/api/tasksApi.js +13 -13
- package/dist/api/tasksApi.js.map +1 -1
- package/dist/api/tierApi.d.ts +116 -0
- package/dist/api/tierApi.js +801 -0
- package/dist/api/tierApi.js.map +1 -0
- package/dist/api/transactionalEmailsApi.d.ts +10 -1
- package/dist/api/transactionalEmailsApi.js +112 -45
- package/dist/api/transactionalEmailsApi.js.map +1 -1
- package/dist/api/transactionalSMSApi.d.ts +8 -1
- package/dist/api/transactionalSMSApi.js +64 -9
- package/dist/api/transactionalSMSApi.js.map +1 -1
- package/dist/api/transactionalWhatsAppApi.d.ts +0 -1
- package/dist/api/transactionalWhatsAppApi.js +5 -5
- package/dist/api/transactionalWhatsAppApi.js.map +1 -1
- package/dist/api/userApi.d.ts +0 -1
- package/dist/api/userApi.js +13 -13
- package/dist/api/userApi.js.map +1 -1
- package/dist/api/webhooksApi.d.ts +0 -1
- package/dist/api/webhooksApi.js +13 -13
- package/dist/api/webhooksApi.js.map +1 -1
- package/dist/api/whatsAppCampaignsApi.d.ts +0 -1
- package/dist/api/whatsAppCampaignsApi.js +19 -19
- package/dist/api/whatsAppCampaignsApi.js.map +1 -1
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/common.js.map +1 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/model/abTestCampaignResult.js +1 -1
- package/dist/model/abTestCampaignResult.js.map +1 -1
- package/dist/model/addContactToList.d.ts +1 -0
- package/dist/model/addContactToList.js +5 -0
- package/dist/model/addContactToList.js.map +1 -1
- package/dist/model/addSubscriptionMemberPayload.d.ts +16 -0
- package/dist/model/addSubscriptionMemberPayload.js +28 -0
- package/dist/model/addSubscriptionMemberPayload.js.map +1 -0
- package/dist/model/aggregateBalance.d.ts +15 -0
- package/dist/model/aggregateBalance.js +23 -0
- package/dist/model/aggregateBalance.js.map +1 -0
- package/dist/model/balance.d.ts +22 -0
- package/dist/model/balance.js +58 -0
- package/dist/model/balance.js.map +1 -0
- package/dist/model/balanceDataPerContact.d.ts +17 -0
- package/dist/model/balanceDataPerContact.js +33 -0
- package/dist/model/balanceDataPerContact.js.map +1 -0
- package/dist/model/balanceDefinition.d.ts +42 -0
- package/dist/model/balanceDefinition.js +121 -0
- package/dist/model/balanceDefinition.js.map +1 -0
- package/dist/model/balanceDefinitionPage.d.ts +15 -0
- package/dist/model/balanceDefinitionPage.js +18 -0
- package/dist/model/balanceDefinitionPage.js.map +1 -0
- package/dist/model/balanceLimit.d.ts +23 -0
- package/dist/model/balanceLimit.js +63 -0
- package/dist/model/balanceLimit.js.map +1 -0
- package/dist/model/balanceOrder.d.ts +27 -0
- package/dist/model/balanceOrder.js +73 -0
- package/dist/model/balanceOrder.js.map +1 -0
- package/dist/model/cart.js +1 -1
- package/dist/model/cart.js.map +1 -1
- package/dist/model/companiesIdPatchRequest.d.ts +2 -0
- package/dist/model/companiesIdPatchRequest.js +10 -0
- package/dist/model/companiesIdPatchRequest.js.map +1 -1
- package/dist/model/companiesImportPost200Response.d.ts +14 -0
- package/dist/model/companiesImportPost200Response.js +18 -0
- package/dist/model/companiesImportPost200Response.js.map +1 -0
- package/dist/model/companiesImportPost400Response.d.ts +14 -0
- package/dist/model/companiesImportPost400Response.js +18 -0
- package/dist/model/companiesImportPost400Response.js.map +1 -0
- package/dist/model/contactBalancesResp.d.ts +18 -0
- package/dist/model/contactBalancesResp.js +33 -0
- package/dist/model/contactBalancesResp.js.map +1 -0
- package/dist/model/contactErrorModel.d.ts +27 -0
- package/dist/model/contactErrorModel.js +40 -0
- package/dist/model/contactErrorModel.js.map +1 -0
- package/dist/model/conversationsMessage.d.ts +20 -0
- package/dist/model/conversationsMessage.js +76 -1
- package/dist/model/conversationsMessage.js.map +1 -1
- package/dist/model/conversationsMessageAttachmentsInner.d.ts +19 -0
- package/dist/model/conversationsMessageAttachmentsInner.js +43 -0
- package/dist/model/conversationsMessageAttachmentsInner.js.map +1 -0
- package/dist/model/conversationsMessageForwardedToSourceStatus.d.ts +15 -0
- package/dist/model/conversationsMessageForwardedToSourceStatus.js +23 -0
- package/dist/model/conversationsMessageForwardedToSourceStatus.js.map +1 -0
- package/dist/model/conversationsMessageFrom.d.ts +15 -0
- package/dist/model/conversationsMessageFrom.js +23 -0
- package/dist/model/conversationsMessageFrom.js.map +1 -0
- package/dist/model/conversationsMessageReplyTo.d.ts +15 -0
- package/dist/model/conversationsMessageReplyTo.js +23 -0
- package/dist/model/conversationsMessageReplyTo.js.map +1 -0
- package/dist/model/conversationsMessageToInner.d.ts +15 -0
- package/dist/model/conversationsMessageToInner.js +23 -0
- package/dist/model/conversationsMessageToInner.js.map +1 -0
- package/dist/model/conversionSourceMetrics.d.ts +5 -2
- package/dist/model/conversionSourceMetrics.js +5 -2
- package/dist/model/conversionSourceMetrics.js.map +1 -1
- package/dist/model/corporateUserEmailPermissionsPutRequest.d.ts +16 -0
- package/dist/model/corporateUserEmailPermissionsPutRequest.js +23 -0
- package/dist/model/corporateUserEmailPermissionsPutRequest.js.map +1 -0
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.d.ts +38 -0
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js +48 -0
- package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js.map +1 -0
- package/dist/model/createAttribute.d.ts +3 -1
- package/dist/model/createAttribute.js +7 -1
- package/dist/model/createAttribute.js.map +1 -1
- package/dist/model/createBalanceDefinitionPayload.d.ts +75 -0
- package/dist/model/createBalanceDefinitionPayload.js +145 -0
- package/dist/model/createBalanceDefinitionPayload.js.map +1 -0
- package/dist/model/createBalanceLimitPayload.d.ts +35 -0
- package/dist/model/createBalanceLimitPayload.js +62 -0
- package/dist/model/createBalanceLimitPayload.js.map +1 -0
- package/dist/model/createBalancePayload.d.ts +14 -0
- package/dist/model/createBalancePayload.js +18 -0
- package/dist/model/createBalancePayload.js.map +1 -0
- package/dist/model/createChild.js +1 -1
- package/dist/model/createChild.js.map +1 -1
- package/dist/model/createContact.d.ts +3 -1
- package/dist/model/createContact.js +1 -1
- package/dist/model/createContact.js.map +1 -1
- package/dist/model/createDoiContact.d.ts +3 -1
- package/dist/model/createDoiContact.js +1 -1
- package/dist/model/createDoiContact.js.map +1 -1
- package/dist/model/createEmailCampaign.d.ts +2 -0
- package/dist/model/createEmailCampaign.js +6 -1
- package/dist/model/createEmailCampaign.js.map +1 -1
- package/dist/model/createEmailCampaignEmailExpirationDate.d.ts +22 -0
- package/dist/model/createEmailCampaignEmailExpirationDate.js +31 -0
- package/dist/model/createEmailCampaignEmailExpirationDate.js.map +1 -0
- package/dist/model/createEmailCampaignRecipients.d.ts +1 -0
- package/dist/model/createEmailCampaignRecipients.js +5 -0
- package/dist/model/createEmailCampaignRecipients.js.map +1 -1
- package/dist/model/createExternalFeed.js +1 -1
- package/dist/model/createExternalFeed.js.map +1 -1
- package/dist/model/createLoyaltyProgramPayload.d.ts +19 -0
- package/dist/model/createLoyaltyProgramPayload.js +33 -0
- package/dist/model/createLoyaltyProgramPayload.js.map +1 -0
- package/dist/model/createOrderPayload.d.ts +22 -0
- package/dist/model/createOrderPayload.js +48 -0
- package/dist/model/createOrderPayload.js.map +1 -0
- package/dist/model/createSmsCampaign.js.map +1 -1
- package/dist/model/createSubAccount.js +1 -1
- package/dist/model/createSubAccount.js.map +1 -1
- package/dist/model/createSubscriptionPayload.d.ts +16 -0
- package/dist/model/createSubscriptionPayload.js +28 -0
- package/dist/model/createSubscriptionPayload.js.map +1 -0
- package/dist/model/createSubscriptionResponse.d.ts +20 -0
- package/dist/model/createSubscriptionResponse.js +48 -0
- package/dist/model/createSubscriptionResponse.js.map +1 -0
- package/dist/model/createTierGroupRequest.d.ts +29 -0
- package/dist/model/createTierGroupRequest.js +51 -0
- package/dist/model/createTierGroupRequest.js.map +1 -0
- package/dist/model/createTransactionPayload.d.ts +24 -0
- package/dist/model/createTransactionPayload.js +58 -0
- package/dist/model/createTransactionPayload.js.map +1 -0
- package/dist/model/createUpdateCategory.js.map +1 -1
- package/dist/model/createUpdateProduct.js.map +1 -1
- package/dist/model/createWebhook.d.ts +5 -0
- package/dist/model/createWebhook.js +12 -1
- package/dist/model/createWebhook.js.map +1 -1
- package/dist/model/createWhatsAppTemplate.js +1 -1
- package/dist/model/createWhatsAppTemplate.js.map +1 -1
- package/dist/model/crmAttributesPost200Response.d.ts +14 -0
- package/dist/model/crmAttributesPost200Response.js +18 -0
- package/dist/model/crmAttributesPost200Response.js.map +1 -0
- package/dist/model/crmAttributesPostRequest.d.ts +33 -0
- package/dist/model/crmAttributesPostRequest.js +55 -0
- package/dist/model/crmAttributesPostRequest.js.map +1 -0
- package/dist/model/crmDealsIdPatchRequest.d.ts +2 -0
- package/dist/model/crmDealsIdPatchRequest.js +10 -0
- package/dist/model/crmDealsIdPatchRequest.js.map +1 -1
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +5 -2
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +5 -2
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -1
- package/dist/model/emailExportRecipients.js +1 -1
- package/dist/model/emailExportRecipients.js.map +1 -1
- package/dist/model/errorModel.d.ts +0 -1
- package/dist/model/errorModel.js +1 -2
- package/dist/model/errorModel.js.map +1 -1
- package/dist/model/errorResponse.d.ts +14 -0
- package/dist/model/errorResponse.js +18 -0
- package/dist/model/errorResponse.js.map +1 -0
- package/dist/model/exportWebhooksHistory.js +1 -1
- package/dist/model/exportWebhooksHistory.js.map +1 -1
- package/dist/model/fetchTemplatePreview.d.ts +16 -0
- package/dist/model/fetchTemplatePreview.js +28 -0
- package/dist/model/fetchTemplatePreview.js.map +1 -0
- package/dist/model/getAccountAllOfPlan.d.ts +1 -3
- package/dist/model/getAccountAllOfPlan.js +1 -7
- package/dist/model/getAccountAllOfPlan.js.map +1 -1
- package/dist/model/getAllExternalFeedsFeedsInner.js +1 -1
- package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -1
- package/dist/model/getAttributesAttributesInner.d.ts +4 -1
- package/dist/model/getAttributesAttributesInner.js +8 -1
- package/dist/model/getAttributesAttributesInner.js.map +1 -1
- package/dist/model/getCampaignOverview.js +1 -1
- package/dist/model/getCampaignOverview.js.map +1 -1
- package/dist/model/getCampaignStats.d.ts +2 -0
- package/dist/model/getCampaignStats.js +10 -0
- package/dist/model/getCampaignStats.js.map +1 -1
- package/dist/model/getContactCampaignStats.d.ts +6 -6
- package/dist/model/getContactCampaignStats.js +5 -5
- package/dist/model/getContactCampaignStats.js.map +1 -1
- package/dist/model/getContactCampaignStatsClickedInner.d.ts +2 -2
- package/dist/model/getContactCampaignStatsClickedInner.js +1 -1
- package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +4 -4
- package/dist/model/getContactCampaignStatsUnsubscriptions.js +2 -2
- package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -1
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +5 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +25 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -1
- package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +5 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js +25 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -1
- package/dist/model/getEmailCampaign.d.ts +2 -4
- package/dist/model/getEmailCampaign.js +3 -3
- package/dist/model/getEmailCampaign.js.map +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.js +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getEmailEventReportEventsInner.js +1 -1
- package/dist/model/getEmailEventReportEventsInner.js.map +1 -1
- package/dist/model/getExtendedCampaignOverview.js +1 -1
- package/dist/model/getExtendedCampaignOverview.js.map +1 -1
- package/dist/model/getExtendedCampaignStats.js.map +1 -1
- package/dist/model/getExternalFeedByUUID.js +1 -1
- package/dist/model/getExternalFeedByUUID.js.map +1 -1
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js +1 -1
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -1
- package/dist/model/getOrdersOrdersInner.d.ts +6 -1
- package/dist/model/getOrdersOrdersInner.js +15 -5
- package/dist/model/getOrdersOrdersInner.js.map +1 -1
- package/dist/model/getPaymentRequest.js +1 -1
- package/dist/model/getPaymentRequest.js.map +1 -1
- package/dist/model/getProcess.js +1 -1
- package/dist/model/getProcess.js.map +1 -1
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +1 -1
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -1
- package/dist/model/getScheduledEmailByMessageId.js +1 -1
- package/dist/model/getScheduledEmailByMessageId.js.map +1 -1
- package/dist/model/getSegment.d.ts +17 -0
- package/dist/model/getSegment.js +33 -0
- package/dist/model/getSegment.js.map +1 -0
- package/dist/model/getSegments.d.ts +2 -2
- package/dist/model/getSegments.js +1 -1
- package/dist/model/getSegments.js.map +1 -1
- package/dist/model/getSmsCampaign.d.ts +2 -4
- package/dist/model/getSmsCampaign.js +3 -3
- package/dist/model/getSmsCampaign.js.map +1 -1
- package/dist/model/getSmsCampaignOverview.js +1 -1
- package/dist/model/getSmsCampaignOverview.js.map +1 -1
- package/dist/model/getSmsCampaignsCampaignsInner.js +1 -1
- package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getSmsEventReportEventsInner.js +1 -1
- package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js +1 -1
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -1
- package/dist/model/getWebhook.js +1 -1
- package/dist/model/getWebhook.js.map +1 -1
- package/dist/model/getWhatsAppConfig.js +1 -1
- package/dist/model/getWhatsAppConfig.js.map +1 -1
- package/dist/model/getWhatsappCampaignOverview.js +1 -1
- package/dist/model/getWhatsappCampaignOverview.js.map +1 -1
- package/dist/model/getWhatsappCampaignsCampaignsInner.js +1 -1
- package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getWhatsappEventReportEventsInner.js +1 -1
- package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -1
- package/dist/model/inviteAdminUserPrivilegesInner.d.ts +11 -2
- package/dist/model/inviteAdminUserPrivilegesInner.js +10 -1
- package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -1
- package/dist/model/inviteuserPrivilegesInner.d.ts +5 -3
- package/dist/model/inviteuserPrivilegesInner.js +6 -4
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
- package/dist/model/loyaltyProgram.d.ts +33 -0
- package/dist/model/loyaltyProgram.js +80 -0
- package/dist/model/loyaltyProgram.js.map +1 -0
- package/dist/model/loyaltyProgramPage.d.ts +15 -0
- package/dist/model/loyaltyProgramPage.js +18 -0
- package/dist/model/loyaltyProgramPage.js.map +1 -0
- package/dist/model/loyaltyProgramValidationError.d.ts +16 -0
- package/dist/model/loyaltyProgramValidationError.js +28 -0
- package/dist/model/loyaltyProgramValidationError.js.map +1 -0
- package/dist/model/loyaltyTierPage.d.ts +15 -0
- package/dist/model/loyaltyTierPage.js +18 -0
- package/dist/model/loyaltyTierPage.js.map +1 -0
- package/dist/model/mainAttributeRewardPayload.d.ts +22 -0
- package/dist/model/mainAttributeRewardPayload.js +48 -0
- package/dist/model/mainAttributeRewardPayload.js.map +1 -0
- package/dist/model/mainBillingPayload.d.ts +20 -0
- package/dist/model/mainBillingPayload.js +48 -0
- package/dist/model/mainBillingPayload.js.map +1 -0
- package/dist/model/mainCodeCountHttpResponse.d.ts +14 -0
- package/dist/model/mainCodeCountHttpResponse.js +18 -0
- package/dist/model/mainCodeCountHttpResponse.js.map +1 -0
- package/dist/model/mainCreateRedeemPayload.d.ts +24 -0
- package/dist/model/mainCreateRedeemPayload.js +53 -0
- package/dist/model/mainCreateRedeemPayload.js.map +1 -0
- package/dist/model/mainCreateRewardPayload.d.ts +17 -0
- package/dist/model/mainCreateRewardPayload.js +33 -0
- package/dist/model/mainCreateRewardPayload.js.map +1 -0
- package/dist/model/mainCreateRewardResponse.d.ts +21 -0
- package/dist/model/mainCreateRewardResponse.js +53 -0
- package/dist/model/mainCreateRewardResponse.js.map +1 -0
- package/dist/model/mainErrorResponse.d.ts +14 -0
- package/dist/model/mainErrorResponse.js +18 -0
- package/dist/model/mainErrorResponse.js.map +1 -0
- package/dist/model/mainFilter.d.ts +15 -0
- package/dist/model/mainFilter.js +23 -0
- package/dist/model/mainFilter.js.map +1 -0
- package/dist/model/mainGenerator.d.ts +19 -0
- package/dist/model/mainGenerator.js +43 -0
- package/dist/model/mainGenerator.js.map +1 -0
- package/dist/model/mainGetContactRewardsPayload.d.ts +31 -0
- package/dist/model/mainGetContactRewardsPayload.js +60 -0
- package/dist/model/mainGetContactRewardsPayload.js.map +1 -0
- package/dist/model/mainIdentifiersPayload.d.ts +15 -0
- package/dist/model/mainIdentifiersPayload.js +23 -0
- package/dist/model/mainIdentifiersPayload.js.map +1 -0
- package/dist/model/mainLimit.d.ts +21 -0
- package/dist/model/mainLimit.js +53 -0
- package/dist/model/mainLimit.js.map +1 -0
- package/dist/model/mainModelContactReward.d.ts +25 -0
- package/dist/model/mainModelContactReward.js +63 -0
- package/dist/model/mainModelContactReward.js.map +1 -0
- package/dist/model/mainModelContactRewardsResp.d.ts +19 -0
- package/dist/model/mainModelContactRewardsResp.js +38 -0
- package/dist/model/mainModelContactRewardsResp.js.map +1 -0
- package/dist/model/mainNodeResponse.d.ts +21 -0
- package/dist/model/mainNodeResponse.js +53 -0
- package/dist/model/mainNodeResponse.js.map +1 -0
- package/dist/model/mainOrderPayload.d.ts +28 -0
- package/dist/model/mainOrderPayload.js +73 -0
- package/dist/model/mainOrderPayload.js.map +1 -0
- package/dist/model/mainProduct.d.ts +17 -0
- package/dist/model/mainProduct.js +33 -0
- package/dist/model/mainProduct.js.map +1 -0
- package/dist/model/mainProductPayload.d.ts +18 -0
- package/dist/model/mainProductPayload.js +38 -0
- package/dist/model/mainProductPayload.js.map +1 -0
- package/dist/model/mainRedeem.d.ts +29 -0
- package/dist/model/mainRedeem.js +83 -0
- package/dist/model/mainRedeem.js.map +1 -0
- package/dist/model/mainResultParameterResponse.d.ts +16 -0
- package/dist/model/mainResultParameterResponse.js +23 -0
- package/dist/model/mainResultParameterResponse.js.map +1 -0
- package/dist/model/mainReward.d.ts +67 -0
- package/dist/model/mainReward.js +224 -0
- package/dist/model/mainReward.js.map +1 -0
- package/dist/model/mainRewardAttribution.d.ts +26 -0
- package/dist/model/mainRewardAttribution.js +68 -0
- package/dist/model/mainRewardAttribution.js.map +1 -0
- package/dist/model/mainRewardConfigurations.d.ts +16 -0
- package/dist/model/mainRewardConfigurations.js +28 -0
- package/dist/model/mainRewardConfigurations.js.map +1 -0
- package/dist/model/mainRewardPage.d.ts +16 -0
- package/dist/model/mainRewardPage.js +23 -0
- package/dist/model/mainRewardPage.js.map +1 -0
- package/dist/model/mainRewardPageObj.d.ts +22 -0
- package/dist/model/mainRewardPageObj.js +58 -0
- package/dist/model/mainRewardPageObj.js.map +1 -0
- package/dist/model/mainRewardValidate.d.ts +14 -0
- package/dist/model/mainRewardValidate.js +18 -0
- package/dist/model/mainRewardValidate.js.map +1 -0
- package/dist/model/mainRule.d.ts +31 -0
- package/dist/model/mainRule.js +78 -0
- package/dist/model/mainRule.js.map +1 -0
- package/dist/model/mainRuleConditionResponse.d.ts +19 -0
- package/dist/model/mainRuleConditionResponse.js +38 -0
- package/dist/model/mainRuleConditionResponse.js.map +1 -0
- package/dist/model/mainRuleEventResponse.d.ts +15 -0
- package/dist/model/mainRuleEventResponse.js +23 -0
- package/dist/model/mainRuleEventResponse.js.map +1 -0
- package/dist/model/mainRuleResultResponse.d.ts +17 -0
- package/dist/model/mainRuleResultResponse.js +28 -0
- package/dist/model/mainRuleResultResponse.js.map +1 -0
- package/dist/model/mainValidateRewardPayload.d.ts +19 -0
- package/dist/model/mainValidateRewardPayload.js +43 -0
- package/dist/model/mainValidateRewardPayload.js.map +1 -0
- package/dist/model/mainValueResponse.d.ts +22 -0
- package/dist/model/mainValueResponse.js +53 -0
- package/dist/model/mainValueResponse.js.map +1 -0
- package/dist/model/mainVoucherRevokePayload.d.ts +14 -0
- package/dist/model/mainVoucherRevokePayload.js +18 -0
- package/dist/model/mainVoucherRevokePayload.js.map +1 -0
- package/dist/model/masterDetailsResponsePlanInfo.js +1 -1
- package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -1
- package/dist/model/memberContact.d.ts +16 -0
- package/dist/model/memberContact.js +28 -0
- package/dist/model/memberContact.js.map +1 -0
- package/dist/model/modelSubscriptionBalanceResp.d.ts +15 -0
- package/dist/model/modelSubscriptionBalanceResp.js +18 -0
- package/dist/model/modelSubscriptionBalanceResp.js.map +1 -0
- package/dist/model/models.d.ts +109 -25
- package/dist/model/models.js +412 -75
- package/dist/model/models.js.map +1 -1
- package/dist/model/notification.js +1 -1
- package/dist/model/notification.js.map +1 -1
- package/dist/model/order.d.ts +6 -1
- package/dist/model/order.js +15 -5
- package/dist/model/order.js.map +1 -1
- package/dist/model/orderBatch.js.map +1 -1
- package/dist/model/orderIdentifiers.d.ts +17 -0
- package/dist/model/orderIdentifiers.js +33 -0
- package/dist/model/orderIdentifiers.js.map +1 -0
- package/dist/model/patchLoyaltyProgramPayload.d.ts +16 -0
- package/dist/model/patchLoyaltyProgramPayload.js +28 -0
- package/dist/model/patchLoyaltyProgramPayload.js.map +1 -0
- package/dist/model/removeContactFromList.d.ts +1 -0
- package/dist/model/removeContactFromList.js +5 -0
- package/dist/model/removeContactFromList.js.map +1 -1
- package/dist/model/requestContactExport.d.ts +4 -0
- package/dist/model/requestContactExport.js +24 -0
- package/dist/model/requestContactExport.js.map +1 -1
- package/dist/model/requestContactExportCustomContactFilter.d.ts +1 -0
- package/dist/model/requestContactExportCustomContactFilter.js +6 -1
- package/dist/model/requestContactExportCustomContactFilter.js.map +1 -1
- package/dist/model/requestContactImport.js.map +1 -1
- package/dist/model/requestSmsRecipientExport.js +1 -1
- package/dist/model/requestSmsRecipientExport.js.map +1 -1
- package/dist/model/sendReport.js +1 -1
- package/dist/model/sendReport.js.map +1 -1
- package/dist/model/sendTransacSms.d.ts +2 -1
- package/dist/model/sendTransacSms.js +2 -2
- package/dist/model/sendTransacSms.js.map +1 -1
- package/dist/model/sendTransacSmsTag.d.ts +14 -0
- package/dist/model/sendTransacSmsTag.js +18 -0
- package/dist/model/sendTransacSmsTag.js.map +1 -0
- package/dist/model/ssoTokenRequest.js +1 -1
- package/dist/model/ssoTokenRequest.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +4 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +10 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +2 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +5 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +2 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js +10 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
- package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +1 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js +5 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -1
- package/dist/model/subAccountsUpdatePlanRequest.d.ts +18 -0
- package/dist/model/subAccountsUpdatePlanRequest.js +28 -0
- package/dist/model/subAccountsUpdatePlanRequest.js.map +1 -0
- package/dist/model/subAccountsUpdatePlanRequestCredits.d.ts +18 -0
- package/dist/model/subAccountsUpdatePlanRequestCredits.js +38 -0
- package/dist/model/subAccountsUpdatePlanRequestCredits.js.map +1 -0
- package/dist/model/subAccountsUpdatePlanRequestFeatures.d.ts +16 -0
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js +28 -0
- package/dist/model/subAccountsUpdatePlanRequestFeatures.js.map +1 -0
- package/dist/model/subscription.d.ts +20 -0
- package/dist/model/subscription.js +48 -0
- package/dist/model/subscription.js.map +1 -0
- package/dist/model/subscriptionAggregateBalance.d.ts +15 -0
- package/dist/model/subscriptionAggregateBalance.js +23 -0
- package/dist/model/subscriptionAggregateBalance.js.map +1 -0
- package/dist/model/subscriptionAttributedReward.d.ts +24 -0
- package/dist/model/subscriptionAttributedReward.js +58 -0
- package/dist/model/subscriptionAttributedReward.js.map +1 -0
- package/dist/model/subscriptionBalances.d.ts +17 -0
- package/dist/model/subscriptionBalances.js +28 -0
- package/dist/model/subscriptionBalances.js.map +1 -0
- package/dist/model/subscriptionHandlerInfo.d.ts +21 -0
- package/dist/model/subscriptionHandlerInfo.js +33 -0
- package/dist/model/subscriptionHandlerInfo.js.map +1 -0
- package/dist/model/subscriptionMember.d.ts +18 -0
- package/dist/model/subscriptionMember.js +38 -0
- package/dist/model/subscriptionMember.js.map +1 -0
- package/dist/model/subscriptionTier.d.ts +22 -0
- package/dist/model/subscriptionTier.js +48 -0
- package/dist/model/subscriptionTier.js.map +1 -0
- package/dist/model/taskReminder.js +1 -1
- package/dist/model/taskReminder.js.map +1 -1
- package/dist/model/templatePreview.d.ts +19 -0
- package/dist/model/templatePreview.js +43 -0
- package/dist/model/templatePreview.js.map +1 -0
- package/dist/model/tier.d.ts +24 -0
- package/dist/model/tier.js +58 -0
- package/dist/model/tier.js.map +1 -0
- package/dist/model/tierAccessConditionsInner.d.ts +17 -0
- package/dist/model/tierAccessConditionsInner.js +33 -0
- package/dist/model/tierAccessConditionsInner.js.map +1 -0
- package/dist/model/tierForContact.d.ts +22 -0
- package/dist/model/tierForContact.js +48 -0
- package/dist/model/tierForContact.js.map +1 -0
- package/dist/model/tierGroup.d.ts +33 -0
- package/dist/model/tierGroup.js +71 -0
- package/dist/model/tierGroup.js.map +1 -0
- package/dist/model/tierGroupPage.d.ts +15 -0
- package/dist/model/tierGroupPage.js +18 -0
- package/dist/model/tierGroupPage.js.map +1 -0
- package/dist/model/tierRequest.d.ts +19 -0
- package/dist/model/tierRequest.js +33 -0
- package/dist/model/tierRequest.js.map +1 -0
- package/dist/model/tierRequestAccessConditionsInner.d.ts +15 -0
- package/dist/model/tierRequestAccessConditionsInner.js +23 -0
- package/dist/model/tierRequestAccessConditionsInner.js.map +1 -0
- package/dist/model/tierRequestPutPayload.d.ts +19 -0
- package/dist/model/tierRequestPutPayload.js +33 -0
- package/dist/model/tierRequestPutPayload.js.map +1 -0
- package/dist/model/tierRequestTierRewardsInner.d.ts +14 -0
- package/dist/model/tierRequestTierRewardsInner.js +18 -0
- package/dist/model/tierRequestTierRewardsInner.js.map +1 -0
- package/dist/model/tierTierRewardsInner.d.ts +16 -0
- package/dist/model/tierTierRewardsInner.js +28 -0
- package/dist/model/tierTierRewardsInner.js.map +1 -0
- package/dist/model/transaction.d.ts +30 -0
- package/dist/model/transaction.js +88 -0
- package/dist/model/transaction.js.map +1 -0
- package/dist/model/transactionHistory.d.ts +25 -0
- package/dist/model/transactionHistory.js +63 -0
- package/dist/model/transactionHistory.js.map +1 -0
- package/dist/model/transactionHistoryResp.d.ts +19 -0
- package/dist/model/transactionHistoryResp.js +38 -0
- package/dist/model/transactionHistoryResp.js.map +1 -0
- package/dist/model/unauthorizedResponse.d.ts +14 -0
- package/dist/model/unauthorizedResponse.js +18 -0
- package/dist/model/unauthorizedResponse.js.map +1 -0
- package/dist/model/updateAttribute.d.ts +1 -0
- package/dist/model/updateAttribute.js +5 -0
- package/dist/model/updateAttribute.js.map +1 -1
- package/dist/model/updateBalanceDefinitionPayload.d.ts +77 -0
- package/dist/model/updateBalanceDefinitionPayload.js +145 -0
- package/dist/model/updateBalanceDefinitionPayload.js.map +1 -0
- package/dist/model/updateBalanceLimitPayload.d.ts +35 -0
- package/dist/model/updateBalanceLimitPayload.js +62 -0
- package/dist/model/updateBalanceLimitPayload.js.map +1 -0
- package/dist/model/updateCampaignStatus.js +1 -1
- package/dist/model/updateCampaignStatus.js.map +1 -1
- package/dist/model/updateContact.d.ts +3 -1
- package/dist/model/updateContact.js +1 -1
- package/dist/model/updateContact.js.map +1 -1
- package/dist/model/updateEmailCampaign.d.ts +2 -0
- package/dist/model/updateEmailCampaign.js +6 -1
- package/dist/model/updateEmailCampaign.js.map +1 -1
- package/dist/model/updateEmailCampaignEmailExpirationDate.d.ts +22 -0
- package/dist/model/updateEmailCampaignEmailExpirationDate.js +31 -0
- package/dist/model/updateEmailCampaignEmailExpirationDate.js.map +1 -0
- package/dist/model/updateEmailCampaignRecipients.d.ts +1 -0
- package/dist/model/updateEmailCampaignRecipients.js +5 -0
- package/dist/model/updateEmailCampaignRecipients.js.map +1 -1
- package/dist/model/updateExternalFeed.js +1 -1
- package/dist/model/updateExternalFeed.js.map +1 -1
- package/dist/model/updateLoyaltyProgramPayload.d.ts +16 -0
- package/dist/model/updateLoyaltyProgramPayload.js +28 -0
- package/dist/model/updateLoyaltyProgramPayload.js.map +1 -0
- package/dist/model/updateSmsCampaign.js.map +1 -1
- package/dist/model/updateTierGroupRequest.d.ts +29 -0
- package/dist/model/updateTierGroupRequest.js +51 -0
- package/dist/model/updateTierGroupRequest.js.map +1 -0
- package/dist/model/updateWebhook.js +1 -1
- package/dist/model/updateWebhook.js.map +1 -1
- package/dist/model/updateWhatsAppCampaign.js +1 -1
- package/dist/model/updateWhatsAppCampaign.js.map +1 -1
- package/model/addContactToList.ts +11 -2
- package/model/addSubscriptionMemberPayload.ts +52 -0
- package/model/aggregateBalance.ts +43 -0
- package/model/balance.ts +106 -0
- package/model/balanceDataPerContact.ts +49 -0
- package/model/balanceDefinition.ts +212 -0
- package/model/balanceDefinitionPage.ts +35 -0
- package/model/balanceLimit.ts +115 -0
- package/model/balanceOrder.ts +136 -0
- package/model/companiesIdPatchRequest.ts +18 -0
- package/model/companiesImportPost200Response.ts +34 -0
- package/model/companiesImportPost400Response.ts +31 -0
- package/model/contactBalancesResp.ts +50 -0
- package/model/contactErrorModel.ts +63 -0
- package/model/conversationsMessage.ts +131 -0
- package/model/conversationsMessageAttachmentsInner.ts +79 -0
- package/model/conversationsMessageForwardedToSourceStatus.ts +40 -0
- package/model/conversationsMessageFrom.ts +40 -0
- package/model/conversationsMessageReplyTo.ts +40 -0
- package/model/conversationsMessageToInner.ts +37 -0
- package/model/conversionSourceMetrics.ts +6 -3
- package/model/corporateUserEmailPermissionsPutRequest.ts +41 -0
- package/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.ts +69 -0
- package/model/createAttribute.ts +13 -3
- package/model/createBalanceDefinitionPayload.ts +218 -0
- package/model/createBalanceLimitPayload.ts +98 -0
- package/model/createBalancePayload.ts +37 -0
- package/model/createContact.ts +4 -4
- package/model/createDoiContact.ts +3 -3
- package/model/createEmailCampaign.ts +7 -0
- package/model/createEmailCampaignEmailExpirationDate.ts +53 -0
- package/model/createEmailCampaignRecipients.ts +9 -0
- package/model/createLoyaltyProgramPayload.ts +61 -0
- package/model/createOrderPayload.ts +91 -0
- package/model/createSubscriptionPayload.ts +52 -0
- package/model/createSubscriptionResponse.ts +88 -0
- package/model/createTierGroupRequest.ts +73 -0
- package/model/createTransactionPayload.ts +109 -0
- package/model/createUpdateProduct.ts +1 -1
- package/model/createUpdateProducts.ts +1 -1
- package/model/createWebhook.ts +14 -1
- package/model/crmAttributesPost200Response.ts +34 -0
- package/model/crmAttributesPostRequest.ts +85 -0
- package/model/crmDealsIdPatchRequest.ts +18 -0
- package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +6 -3
- package/model/errorModel.ts +0 -1
- package/model/errorResponse.ts +31 -0
- package/model/fetchTemplatePreview.ts +52 -0
- package/model/getAccountAllOfPlan.ts +3 -13
- package/model/getAttributesAttributesInner.ts +12 -1
- package/model/getCampaignStats.ts +18 -0
- package/model/getContactCampaignStats.ts +11 -11
- package/model/getContactCampaignStatsClickedInner.ts +3 -3
- package/model/getContactCampaignStatsUnsubscriptions.ts +6 -6
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +45 -0
- package/model/getCorporateUserPermissionFeatureAccess.ts +45 -0
- package/model/getEmailCampaign.ts +4 -6
- package/model/getExtendedCampaignStats.ts +3 -0
- package/model/getOrdersOrdersInner.ts +24 -8
- package/model/getSegment.ts +61 -0
- package/model/getSegments.ts +3 -3
- package/model/getSmsCampaign.ts +4 -6
- package/model/inviteAdminUserPrivilegesInner.ts +11 -2
- package/model/inviteuserPrivilegesInner.ts +5 -3
- package/model/loyaltyProgram.ts +139 -0
- package/model/loyaltyProgramPage.ts +35 -0
- package/model/loyaltyProgramValidationError.ts +52 -0
- package/model/loyaltyTierPage.ts +32 -0
- package/model/mainAttributeRewardPayload.ts +88 -0
- package/model/mainBillingPayload.ts +88 -0
- package/model/mainCodeCountHttpResponse.ts +34 -0
- package/model/mainCreateRedeemPayload.ts +98 -0
- package/model/mainCreateRewardPayload.ts +61 -0
- package/model/mainCreateRewardResponse.ts +97 -0
- package/model/mainErrorResponse.ts +34 -0
- package/model/mainFilter.ts +43 -0
- package/model/mainGenerator.ts +79 -0
- package/model/mainGetContactRewardsPayload.ts +99 -0
- package/model/mainIdentifiersPayload.ts +43 -0
- package/model/mainLimit.ts +97 -0
- package/model/mainModelContactReward.ts +115 -0
- package/model/mainModelContactRewardsResp.ts +71 -0
- package/model/mainNodeResponse.ts +97 -0
- package/model/mainOrderPayload.ts +136 -0
- package/model/mainProduct.ts +61 -0
- package/model/mainProductPayload.ts +70 -0
- package/model/mainRedeem.ts +151 -0
- package/model/mainResultParameterResponse.ts +44 -0
- package/model/mainReward.ts +397 -0
- package/model/mainRewardAttribution.ts +124 -0
- package/model/mainRewardConfigurations.ts +52 -0
- package/model/mainRewardPage.ts +44 -0
- package/model/mainRewardPageObj.ts +106 -0
- package/model/mainRewardValidate.ts +34 -0
- package/model/mainRule.ts +145 -0
- package/model/mainRuleConditionResponse.ts +71 -0
- package/model/mainRuleEventResponse.ts +43 -0
- package/model/mainRuleResultResponse.ts +53 -0
- package/model/mainValidateRewardPayload.ts +79 -0
- package/model/mainValueResponse.ts +98 -0
- package/model/mainVoucherRevokePayload.ts +34 -0
- package/model/memberContact.ts +52 -0
- package/model/modelSubscriptionBalanceResp.ts +32 -0
- package/model/models.ts +419 -77
- package/model/order.ts +24 -8
- package/model/orderBilling.ts +1 -1
- package/model/orderIdentifiers.ts +64 -0
- package/model/patchLoyaltyProgramPayload.ts +52 -0
- package/model/removeContactFromList.ts +12 -3
- package/model/requestContactExport.ts +37 -1
- package/model/requestContactExportCustomContactFilter.ts +10 -1
- package/model/sendSmtpEmail.ts +1 -1
- package/model/sendTransacSms.ts +3 -5
- package/model/sendTransacSmsTag.ts +37 -0
- package/model/subAccountDetailsResponsePlanInfoCredits.ts +14 -0
- package/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeatures.ts +7 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +3 -3
- package/model/subAccountUpdatePlanRequestCredits.ts +20 -2
- package/model/subAccountUpdatePlanRequestFeatures.ts +10 -1
- package/model/subAccountsUpdatePlanRequest.ts +51 -0
- package/model/subAccountsUpdatePlanRequestCredits.ts +73 -0
- package/model/subAccountsUpdatePlanRequestFeatures.ts +55 -0
- package/model/subscription.ts +88 -0
- package/model/subscriptionAggregateBalance.ts +43 -0
- package/model/subscriptionAttributedReward.ts +106 -0
- package/model/subscriptionBalances.ts +53 -0
- package/model/subscriptionHandlerInfo.ts +65 -0
- package/model/subscriptionMember.ts +70 -0
- package/model/subscriptionTier.ts +88 -0
- package/model/templatePreview.ts +76 -0
- package/model/tier.ts +102 -0
- package/model/tierAccessConditionsInner.ts +55 -0
- package/model/tierForContact.ts +82 -0
- package/model/tierGroup.ts +109 -0
- package/model/tierGroupPage.ts +32 -0
- package/model/tierRequest.ts +57 -0
- package/model/tierRequestAccessConditionsInner.ts +43 -0
- package/model/tierRequestPutPayload.ts +57 -0
- package/model/tierRequestTierRewardsInner.ts +34 -0
- package/model/tierTierRewardsInner.ts +46 -0
- package/model/transaction.ts +163 -0
- package/model/transactionHistory.ts +118 -0
- package/model/transactionHistoryResp.ts +74 -0
- package/model/unauthorizedResponse.ts +34 -0
- package/model/updateAttribute.ts +10 -1
- package/model/updateBalanceDefinitionPayload.ts +218 -0
- package/model/updateBalanceLimitPayload.ts +98 -0
- package/model/updateContact.ts +3 -3
- package/model/updateEmailCampaign.ts +7 -0
- package/model/updateEmailCampaignEmailExpirationDate.ts +53 -0
- package/model/updateEmailCampaignRecipients.ts +9 -0
- package/model/updateLoyaltyProgramPayload.ts +52 -0
- package/model/updateTierGroupRequest.ts +73 -0
- package/package.json +5 -6
- package/tsconfig.json +0 -1
|
@@ -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 = 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_1) {
|
|
73
|
+
return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
|
|
74
74
|
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
75
75
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
76
76
|
let localVarQueryParameters = {};
|
|
@@ -135,8 +135,8 @@ class MasterAccountApi {
|
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
corporateGroupIdGet(
|
|
139
|
-
return __awaiter(this,
|
|
138
|
+
corporateGroupIdGet(id_1) {
|
|
139
|
+
return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
|
|
140
140
|
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
141
141
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
142
142
|
let localVarQueryParameters = {};
|
|
@@ -202,8 +202,8 @@ class MasterAccountApi {
|
|
|
202
202
|
});
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
corporateGroupIdPut(
|
|
206
|
-
return __awaiter(this,
|
|
205
|
+
corporateGroupIdPut(id_1, body_1) {
|
|
206
|
+
return __awaiter(this, arguments, void 0, function* (id, body, options = { headers: {} }) {
|
|
207
207
|
const localVarPath = this.basePath + '/corporate/group/{id}'
|
|
208
208
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
209
209
|
let localVarQueryParameters = {};
|
|
@@ -272,8 +272,8 @@ class MasterAccountApi {
|
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
corporateGroupPost(
|
|
276
|
-
return __awaiter(this,
|
|
275
|
+
corporateGroupPost(body_1) {
|
|
276
|
+
return __awaiter(this, arguments, void 0, function* (body, options = { headers: {} }) {
|
|
277
277
|
const localVarPath = this.basePath + '/corporate/group';
|
|
278
278
|
let localVarQueryParameters = {};
|
|
279
279
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -339,8 +339,8 @@ class MasterAccountApi {
|
|
|
339
339
|
});
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
corporateGroupUnlinkGroupIdSubAccountsPut(
|
|
343
|
-
return __awaiter(this,
|
|
342
|
+
corporateGroupUnlinkGroupIdSubAccountsPut(groupId_1, body_1) {
|
|
343
|
+
return __awaiter(this, arguments, void 0, function* (groupId, body, options = { headers: {} }) {
|
|
344
344
|
const localVarPath = this.basePath + '/corporate/group/unlink/{groupId}/subAccounts'
|
|
345
345
|
.replace('{' + 'groupId' + '}', encodeURIComponent(String(groupId)));
|
|
346
346
|
let localVarQueryParameters = {};
|
|
@@ -409,8 +409,70 @@ class MasterAccountApi {
|
|
|
409
409
|
});
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
return __awaiter(this,
|
|
412
|
+
corporateIpGet() {
|
|
413
|
+
return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
|
|
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: {} }) {
|
|
414
476
|
const localVarPath = this.basePath + '/corporate/masterAccount';
|
|
415
477
|
let localVarQueryParameters = {};
|
|
416
478
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -472,8 +534,8 @@ class MasterAccountApi {
|
|
|
472
534
|
});
|
|
473
535
|
});
|
|
474
536
|
}
|
|
475
|
-
corporateSsoTokenPost(
|
|
476
|
-
return __awaiter(this,
|
|
537
|
+
corporateSsoTokenPost(ssoTokenRequestCorporate_1) {
|
|
538
|
+
return __awaiter(this, arguments, void 0, function* (ssoTokenRequestCorporate, options = { headers: {} }) {
|
|
477
539
|
const localVarPath = this.basePath + '/corporate/ssoToken';
|
|
478
540
|
let localVarQueryParameters = {};
|
|
479
541
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -539,8 +601,8 @@ class MasterAccountApi {
|
|
|
539
601
|
});
|
|
540
602
|
});
|
|
541
603
|
}
|
|
542
|
-
corporateSubAccountGet(
|
|
543
|
-
return __awaiter(this,
|
|
604
|
+
corporateSubAccountGet(offset_1, limit_1) {
|
|
605
|
+
return __awaiter(this, arguments, void 0, function* (offset, limit, options = { headers: {} }) {
|
|
544
606
|
const localVarPath = this.basePath + '/corporate/subAccount';
|
|
545
607
|
let localVarQueryParameters = {};
|
|
546
608
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -614,8 +676,8 @@ class MasterAccountApi {
|
|
|
614
676
|
});
|
|
615
677
|
});
|
|
616
678
|
}
|
|
617
|
-
corporateSubAccountIdApplicationsTogglePut(
|
|
618
|
-
return __awaiter(this,
|
|
679
|
+
corporateSubAccountIdApplicationsTogglePut(id_1, toggleApplications_1) {
|
|
680
|
+
return __awaiter(this, arguments, void 0, function* (id, toggleApplications, options = { headers: {} }) {
|
|
619
681
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}/applications/toggle'
|
|
620
682
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
621
683
|
let localVarQueryParameters = {};
|
|
@@ -684,8 +746,8 @@ class MasterAccountApi {
|
|
|
684
746
|
});
|
|
685
747
|
});
|
|
686
748
|
}
|
|
687
|
-
corporateSubAccountIdDelete(
|
|
688
|
-
return __awaiter(this,
|
|
749
|
+
corporateSubAccountIdDelete(id_1) {
|
|
750
|
+
return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
|
|
689
751
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}'
|
|
690
752
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
691
753
|
let localVarQueryParameters = {};
|
|
@@ -750,8 +812,8 @@ class MasterAccountApi {
|
|
|
750
812
|
});
|
|
751
813
|
});
|
|
752
814
|
}
|
|
753
|
-
corporateSubAccountIdGet(
|
|
754
|
-
return __awaiter(this,
|
|
815
|
+
corporateSubAccountIdGet(id_1) {
|
|
816
|
+
return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
|
|
755
817
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}'
|
|
756
818
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
757
819
|
let localVarQueryParameters = {};
|
|
@@ -817,8 +879,8 @@ class MasterAccountApi {
|
|
|
817
879
|
});
|
|
818
880
|
});
|
|
819
881
|
}
|
|
820
|
-
corporateSubAccountIdPlanPut(
|
|
821
|
-
return __awaiter(this,
|
|
882
|
+
corporateSubAccountIdPlanPut(id_1, updatePlanDetails_1) {
|
|
883
|
+
return __awaiter(this, arguments, void 0, function* (id, updatePlanDetails, options = { headers: {} }) {
|
|
822
884
|
const localVarPath = this.basePath + '/corporate/subAccount/{id}/plan'
|
|
823
885
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
824
886
|
let localVarQueryParameters = {};
|
|
@@ -887,8 +949,8 @@ class MasterAccountApi {
|
|
|
887
949
|
});
|
|
888
950
|
});
|
|
889
951
|
}
|
|
890
|
-
corporateSubAccountIpAssociatePost(
|
|
891
|
-
return __awaiter(this,
|
|
952
|
+
corporateSubAccountIpAssociatePost(body_1) {
|
|
953
|
+
return __awaiter(this, arguments, void 0, function* (body, options = { headers: {} }) {
|
|
892
954
|
const localVarPath = this.basePath + '/corporate/subAccount/ip/associate';
|
|
893
955
|
let localVarQueryParameters = {};
|
|
894
956
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -954,8 +1016,8 @@ class MasterAccountApi {
|
|
|
954
1016
|
});
|
|
955
1017
|
});
|
|
956
1018
|
}
|
|
957
|
-
corporateSubAccountIpDissociatePut(
|
|
958
|
-
return __awaiter(this,
|
|
1019
|
+
corporateSubAccountIpDissociatePut(body_1) {
|
|
1020
|
+
return __awaiter(this, arguments, void 0, function* (body, options = { headers: {} }) {
|
|
959
1021
|
const localVarPath = this.basePath + '/corporate/subAccount/ip/dissociate';
|
|
960
1022
|
let localVarQueryParameters = {};
|
|
961
1023
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1020,8 +1082,8 @@ class MasterAccountApi {
|
|
|
1020
1082
|
});
|
|
1021
1083
|
});
|
|
1022
1084
|
}
|
|
1023
|
-
corporateSubAccountKeyPost(
|
|
1024
|
-
return __awaiter(this,
|
|
1085
|
+
corporateSubAccountKeyPost(createApiKeyRequest_1) {
|
|
1086
|
+
return __awaiter(this, arguments, void 0, function* (createApiKeyRequest, options = { headers: {} }) {
|
|
1025
1087
|
const localVarPath = this.basePath + '/corporate/subAccount/key';
|
|
1026
1088
|
let localVarQueryParameters = {};
|
|
1027
1089
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1087,8 +1149,8 @@ class MasterAccountApi {
|
|
|
1087
1149
|
});
|
|
1088
1150
|
});
|
|
1089
1151
|
}
|
|
1090
|
-
corporateSubAccountPost(
|
|
1091
|
-
return __awaiter(this,
|
|
1152
|
+
corporateSubAccountPost(subAccountCreate_1) {
|
|
1153
|
+
return __awaiter(this, arguments, void 0, function* (subAccountCreate, options = { headers: {} }) {
|
|
1092
1154
|
const localVarPath = this.basePath + '/corporate/subAccount';
|
|
1093
1155
|
let localVarQueryParameters = {};
|
|
1094
1156
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1154,8 +1216,8 @@ class MasterAccountApi {
|
|
|
1154
1216
|
});
|
|
1155
1217
|
});
|
|
1156
1218
|
}
|
|
1157
|
-
corporateSubAccountSsoTokenPost(
|
|
1158
|
-
return __awaiter(this,
|
|
1219
|
+
corporateSubAccountSsoTokenPost(ssoTokenRequest_1) {
|
|
1220
|
+
return __awaiter(this, arguments, void 0, function* (ssoTokenRequest, options = { headers: {} }) {
|
|
1159
1221
|
const localVarPath = this.basePath + '/corporate/subAccount/ssoToken';
|
|
1160
1222
|
let localVarQueryParameters = {};
|
|
1161
1223
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1221,8 +1283,144 @@ class MasterAccountApi {
|
|
|
1221
1283
|
});
|
|
1222
1284
|
});
|
|
1223
1285
|
}
|
|
1224
|
-
|
|
1225
|
-
return __awaiter(this,
|
|
1286
|
+
corporateSubAccountsPlanPut(updatePlanDetails_1) {
|
|
1287
|
+
return __awaiter(this, arguments, void 0, function* (updatePlanDetails, options = { headers: {} }) {
|
|
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: {} }) {
|
|
1226
1424
|
const localVarPath = this.basePath + '/corporate/user/invitation/{action}/{email}'
|
|
1227
1425
|
.replace('{' + 'action' + '}', encodeURIComponent(String(action)))
|
|
1228
1426
|
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
@@ -1292,8 +1490,8 @@ class MasterAccountApi {
|
|
|
1292
1490
|
});
|
|
1293
1491
|
});
|
|
1294
1492
|
}
|
|
1295
|
-
corporateUserRevokeEmailDelete(
|
|
1296
|
-
return __awaiter(this,
|
|
1493
|
+
corporateUserRevokeEmailDelete(email_1) {
|
|
1494
|
+
return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
|
|
1297
1495
|
const localVarPath = this.basePath + '/corporate/user/revoke/{email}'
|
|
1298
1496
|
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1299
1497
|
let localVarQueryParameters = {};
|
|
@@ -1358,8 +1556,8 @@ class MasterAccountApi {
|
|
|
1358
1556
|
});
|
|
1359
1557
|
});
|
|
1360
1558
|
}
|
|
1361
|
-
getAccountActivity(
|
|
1362
|
-
return __awaiter(this,
|
|
1559
|
+
getAccountActivity(startDate_1, endDate_1, email_1, limit_1, offset_1) {
|
|
1560
|
+
return __awaiter(this, arguments, void 0, function* (startDate, endDate, email, limit, offset, options = { headers: {} }) {
|
|
1363
1561
|
const localVarPath = this.basePath + '/organization/activities';
|
|
1364
1562
|
let localVarQueryParameters = {};
|
|
1365
1563
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1377,6 +1575,9 @@ class MasterAccountApi {
|
|
|
1377
1575
|
if (endDate !== undefined) {
|
|
1378
1576
|
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
1379
1577
|
}
|
|
1578
|
+
if (email !== undefined) {
|
|
1579
|
+
localVarQueryParameters['email'] = models_1.ObjectSerializer.serialize(email, "string");
|
|
1580
|
+
}
|
|
1380
1581
|
if (limit !== undefined) {
|
|
1381
1582
|
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1382
1583
|
}
|
|
@@ -1433,8 +1634,8 @@ class MasterAccountApi {
|
|
|
1433
1634
|
});
|
|
1434
1635
|
});
|
|
1435
1636
|
}
|
|
1436
|
-
getCorporateInvitedUsersList(
|
|
1437
|
-
return __awaiter(this,
|
|
1637
|
+
getCorporateInvitedUsersList() {
|
|
1638
|
+
return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
|
|
1438
1639
|
const localVarPath = this.basePath + '/corporate/invited/users';
|
|
1439
1640
|
let localVarQueryParameters = {};
|
|
1440
1641
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1496,8 +1697,8 @@ class MasterAccountApi {
|
|
|
1496
1697
|
});
|
|
1497
1698
|
});
|
|
1498
1699
|
}
|
|
1499
|
-
getCorporateUserPermission(
|
|
1500
|
-
return __awaiter(this,
|
|
1700
|
+
getCorporateUserPermission(email_1) {
|
|
1701
|
+
return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
|
|
1501
1702
|
const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
|
|
1502
1703
|
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1503
1704
|
let localVarQueryParameters = {};
|
|
@@ -1563,8 +1764,8 @@ class MasterAccountApi {
|
|
|
1563
1764
|
});
|
|
1564
1765
|
});
|
|
1565
1766
|
}
|
|
1566
|
-
getSubAccountGroups(
|
|
1567
|
-
return __awaiter(this,
|
|
1767
|
+
getSubAccountGroups() {
|
|
1768
|
+
return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
|
|
1568
1769
|
const localVarPath = this.basePath + '/corporate/groups';
|
|
1569
1770
|
let localVarQueryParameters = {};
|
|
1570
1771
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -1626,8 +1827,8 @@ class MasterAccountApi {
|
|
|
1626
1827
|
});
|
|
1627
1828
|
});
|
|
1628
1829
|
}
|
|
1629
|
-
inviteAdminUser(
|
|
1630
|
-
return __awaiter(this,
|
|
1830
|
+
inviteAdminUser(sendInvitation_1) {
|
|
1831
|
+
return __awaiter(this, arguments, void 0, function* (sendInvitation, options = { headers: {} }) {
|
|
1631
1832
|
const localVarPath = this.basePath + '/corporate/user/invitation/send';
|
|
1632
1833
|
let localVarQueryParameters = {};
|
|
1633
1834
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|