@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
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RewardApi = exports.RewardApiApiKeys = void 0;
|
|
16
|
+
const request_1 = __importDefault(require("request"));
|
|
17
|
+
const models_1 = require("../model/models");
|
|
18
|
+
const models_2 = require("../model/models");
|
|
19
|
+
const apis_1 = require("./apis");
|
|
20
|
+
let defaultBasePath = 'https://api.brevo.com/v3';
|
|
21
|
+
var RewardApiApiKeys;
|
|
22
|
+
(function (RewardApiApiKeys) {
|
|
23
|
+
RewardApiApiKeys[RewardApiApiKeys["apiKey"] = 0] = "apiKey";
|
|
24
|
+
RewardApiApiKeys[RewardApiApiKeys["partnerKey"] = 1] = "partnerKey";
|
|
25
|
+
})(RewardApiApiKeys || (exports.RewardApiApiKeys = RewardApiApiKeys = {}));
|
|
26
|
+
class RewardApi {
|
|
27
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
28
|
+
this._basePath = defaultBasePath;
|
|
29
|
+
this._defaultHeaders = {};
|
|
30
|
+
this._useQuerystring = false;
|
|
31
|
+
this.authentications = {
|
|
32
|
+
'default': new models_1.VoidAuth(),
|
|
33
|
+
'apiKey': new models_2.ApiKeyAuth('header', 'api-key'),
|
|
34
|
+
'partnerKey': new models_2.ApiKeyAuth('header', 'partner-key'),
|
|
35
|
+
};
|
|
36
|
+
this.interceptors = [];
|
|
37
|
+
if (password) {
|
|
38
|
+
if (basePath) {
|
|
39
|
+
this.basePath = basePath;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
if (basePathOrUsername) {
|
|
44
|
+
this.basePath = basePathOrUsername;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
set useQuerystring(value) {
|
|
49
|
+
this._useQuerystring = value;
|
|
50
|
+
}
|
|
51
|
+
set basePath(basePath) {
|
|
52
|
+
this._basePath = basePath;
|
|
53
|
+
}
|
|
54
|
+
set defaultHeaders(defaultHeaders) {
|
|
55
|
+
this._defaultHeaders = defaultHeaders;
|
|
56
|
+
}
|
|
57
|
+
get defaultHeaders() {
|
|
58
|
+
return this._defaultHeaders;
|
|
59
|
+
}
|
|
60
|
+
get basePath() {
|
|
61
|
+
return this._basePath;
|
|
62
|
+
}
|
|
63
|
+
setDefaultAuthentication(auth) {
|
|
64
|
+
this.authentications.default = auth;
|
|
65
|
+
}
|
|
66
|
+
setApiKey(key, value) {
|
|
67
|
+
this.authentications[RewardApiApiKeys[key]].apiKey = value;
|
|
68
|
+
}
|
|
69
|
+
addInterceptor(interceptor) {
|
|
70
|
+
this.interceptors.push(interceptor);
|
|
71
|
+
}
|
|
72
|
+
getCodeCount(pid_1, cpid_1) {
|
|
73
|
+
return __awaiter(this, arguments, void 0, function* (pid, cpid, options = { headers: {} }) {
|
|
74
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/code-pools/{cpid}/codes-count'
|
|
75
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)))
|
|
76
|
+
.replace('{' + 'cpid' + '}', encodeURIComponent(String(cpid)));
|
|
77
|
+
let localVarQueryParameters = {};
|
|
78
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
79
|
+
const produces = ['application/json'];
|
|
80
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
81
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
85
|
+
}
|
|
86
|
+
let localVarFormParams = {};
|
|
87
|
+
if (pid === null || pid === undefined) {
|
|
88
|
+
throw new Error('Required parameter pid was null or undefined when calling getCodeCount.');
|
|
89
|
+
}
|
|
90
|
+
if (cpid === null || cpid === undefined) {
|
|
91
|
+
throw new Error('Required parameter cpid was null or undefined when calling getCodeCount.');
|
|
92
|
+
}
|
|
93
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
94
|
+
let localVarUseFormData = false;
|
|
95
|
+
let localVarRequestOptions = {
|
|
96
|
+
method: 'GET',
|
|
97
|
+
qs: localVarQueryParameters,
|
|
98
|
+
headers: localVarHeaderParams,
|
|
99
|
+
uri: localVarPath,
|
|
100
|
+
useQuerystring: this._useQuerystring,
|
|
101
|
+
json: true,
|
|
102
|
+
};
|
|
103
|
+
let authenticationPromise = Promise.resolve();
|
|
104
|
+
if (this.authentications.apiKey.apiKey) {
|
|
105
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
106
|
+
}
|
|
107
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
108
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
109
|
+
}
|
|
110
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
111
|
+
let interceptorPromise = authenticationPromise;
|
|
112
|
+
for (const interceptor of this.interceptors) {
|
|
113
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
114
|
+
}
|
|
115
|
+
return interceptorPromise.then(() => {
|
|
116
|
+
if (Object.keys(localVarFormParams).length) {
|
|
117
|
+
if (localVarUseFormData) {
|
|
118
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return new Promise((resolve, reject) => {
|
|
125
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
126
|
+
if (error) {
|
|
127
|
+
reject(error);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
131
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainCodeCountHttpResponse");
|
|
132
|
+
resolve({ response: response, body: body });
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
loyaltyOfferProgramsPidOffersGet(pid_1, limit_1, offset_1, state_1, version_1) {
|
|
144
|
+
return __awaiter(this, arguments, void 0, function* (pid, limit, offset, state, version, options = { headers: {} }) {
|
|
145
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/offers'
|
|
146
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
147
|
+
let localVarQueryParameters = {};
|
|
148
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
149
|
+
const produces = ['application/json'];
|
|
150
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
151
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
155
|
+
}
|
|
156
|
+
let localVarFormParams = {};
|
|
157
|
+
if (pid === null || pid === undefined) {
|
|
158
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidOffersGet.');
|
|
159
|
+
}
|
|
160
|
+
if (limit !== undefined) {
|
|
161
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
162
|
+
}
|
|
163
|
+
if (offset !== undefined) {
|
|
164
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
165
|
+
}
|
|
166
|
+
if (state !== undefined) {
|
|
167
|
+
localVarQueryParameters['state'] = models_1.ObjectSerializer.serialize(state, "string");
|
|
168
|
+
}
|
|
169
|
+
if (version !== undefined) {
|
|
170
|
+
localVarQueryParameters['version'] = models_1.ObjectSerializer.serialize(version, "'active' | 'draft'");
|
|
171
|
+
}
|
|
172
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
173
|
+
let localVarUseFormData = false;
|
|
174
|
+
let localVarRequestOptions = {
|
|
175
|
+
method: 'GET',
|
|
176
|
+
qs: localVarQueryParameters,
|
|
177
|
+
headers: localVarHeaderParams,
|
|
178
|
+
uri: localVarPath,
|
|
179
|
+
useQuerystring: this._useQuerystring,
|
|
180
|
+
json: true,
|
|
181
|
+
};
|
|
182
|
+
let authenticationPromise = Promise.resolve();
|
|
183
|
+
if (this.authentications.apiKey.apiKey) {
|
|
184
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
185
|
+
}
|
|
186
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
187
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
188
|
+
}
|
|
189
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
190
|
+
let interceptorPromise = authenticationPromise;
|
|
191
|
+
for (const interceptor of this.interceptors) {
|
|
192
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
193
|
+
}
|
|
194
|
+
return interceptorPromise.then(() => {
|
|
195
|
+
if (Object.keys(localVarFormParams).length) {
|
|
196
|
+
if (localVarUseFormData) {
|
|
197
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return new Promise((resolve, reject) => {
|
|
204
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
205
|
+
if (error) {
|
|
206
|
+
reject(error);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
210
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainRewardPage");
|
|
211
|
+
resolve({ response: response, body: body });
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
loyaltyOfferProgramsPidOffersPost(pid_1, payload_1) {
|
|
223
|
+
return __awaiter(this, arguments, void 0, function* (pid, payload, options = { headers: {} }) {
|
|
224
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/offers'
|
|
225
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
226
|
+
let localVarQueryParameters = {};
|
|
227
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
228
|
+
const produces = ['application/json'];
|
|
229
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
230
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
234
|
+
}
|
|
235
|
+
let localVarFormParams = {};
|
|
236
|
+
if (pid === null || pid === undefined) {
|
|
237
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidOffersPost.');
|
|
238
|
+
}
|
|
239
|
+
if (payload === null || payload === undefined) {
|
|
240
|
+
throw new Error('Required parameter payload was null or undefined when calling loyaltyOfferProgramsPidOffersPost.');
|
|
241
|
+
}
|
|
242
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
243
|
+
let localVarUseFormData = false;
|
|
244
|
+
let localVarRequestOptions = {
|
|
245
|
+
method: 'POST',
|
|
246
|
+
qs: localVarQueryParameters,
|
|
247
|
+
headers: localVarHeaderParams,
|
|
248
|
+
uri: localVarPath,
|
|
249
|
+
useQuerystring: this._useQuerystring,
|
|
250
|
+
json: true,
|
|
251
|
+
body: models_1.ObjectSerializer.serialize(payload, "MainCreateRewardPayload")
|
|
252
|
+
};
|
|
253
|
+
let authenticationPromise = Promise.resolve();
|
|
254
|
+
if (this.authentications.apiKey.apiKey) {
|
|
255
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
256
|
+
}
|
|
257
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
258
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
259
|
+
}
|
|
260
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
261
|
+
let interceptorPromise = authenticationPromise;
|
|
262
|
+
for (const interceptor of this.interceptors) {
|
|
263
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
264
|
+
}
|
|
265
|
+
return interceptorPromise.then(() => {
|
|
266
|
+
if (Object.keys(localVarFormParams).length) {
|
|
267
|
+
if (localVarUseFormData) {
|
|
268
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return new Promise((resolve, reject) => {
|
|
275
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
276
|
+
if (error) {
|
|
277
|
+
reject(error);
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
281
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainCreateRewardResponse");
|
|
282
|
+
resolve({ response: response, body: body });
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
loyaltyOfferProgramsPidRewardsAttributePost(pid_1, payload_1) {
|
|
294
|
+
return __awaiter(this, arguments, void 0, function* (pid, payload, options = { headers: {} }) {
|
|
295
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/rewards/attribute'
|
|
296
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
297
|
+
let localVarQueryParameters = {};
|
|
298
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
299
|
+
const produces = ['application/json'];
|
|
300
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
301
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
305
|
+
}
|
|
306
|
+
let localVarFormParams = {};
|
|
307
|
+
if (pid === null || pid === undefined) {
|
|
308
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidRewardsAttributePost.');
|
|
309
|
+
}
|
|
310
|
+
if (payload === null || payload === undefined) {
|
|
311
|
+
throw new Error('Required parameter payload was null or undefined when calling loyaltyOfferProgramsPidRewardsAttributePost.');
|
|
312
|
+
}
|
|
313
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
314
|
+
let localVarUseFormData = false;
|
|
315
|
+
let localVarRequestOptions = {
|
|
316
|
+
method: 'POST',
|
|
317
|
+
qs: localVarQueryParameters,
|
|
318
|
+
headers: localVarHeaderParams,
|
|
319
|
+
uri: localVarPath,
|
|
320
|
+
useQuerystring: this._useQuerystring,
|
|
321
|
+
json: true,
|
|
322
|
+
body: models_1.ObjectSerializer.serialize(payload, "MainAttributeRewardPayload")
|
|
323
|
+
};
|
|
324
|
+
let authenticationPromise = Promise.resolve();
|
|
325
|
+
if (this.authentications.apiKey.apiKey) {
|
|
326
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
327
|
+
}
|
|
328
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
329
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
330
|
+
}
|
|
331
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
332
|
+
let interceptorPromise = authenticationPromise;
|
|
333
|
+
for (const interceptor of this.interceptors) {
|
|
334
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
335
|
+
}
|
|
336
|
+
return interceptorPromise.then(() => {
|
|
337
|
+
if (Object.keys(localVarFormParams).length) {
|
|
338
|
+
if (localVarUseFormData) {
|
|
339
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return new Promise((resolve, reject) => {
|
|
346
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
347
|
+
if (error) {
|
|
348
|
+
reject(error);
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
352
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainRewardAttribution");
|
|
353
|
+
resolve({ response: response, body: body });
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
loyaltyOfferProgramsPidRewardsRedeemPost(pid_1, payload_1) {
|
|
365
|
+
return __awaiter(this, arguments, void 0, function* (pid, payload, options = { headers: {} }) {
|
|
366
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/rewards/redeem'
|
|
367
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
368
|
+
let localVarQueryParameters = {};
|
|
369
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
370
|
+
const produces = ['application/json'];
|
|
371
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
372
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
376
|
+
}
|
|
377
|
+
let localVarFormParams = {};
|
|
378
|
+
if (pid === null || pid === undefined) {
|
|
379
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidRewardsRedeemPost.');
|
|
380
|
+
}
|
|
381
|
+
if (payload === null || payload === undefined) {
|
|
382
|
+
throw new Error('Required parameter payload was null or undefined when calling loyaltyOfferProgramsPidRewardsRedeemPost.');
|
|
383
|
+
}
|
|
384
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
385
|
+
let localVarUseFormData = false;
|
|
386
|
+
let localVarRequestOptions = {
|
|
387
|
+
method: 'POST',
|
|
388
|
+
qs: localVarQueryParameters,
|
|
389
|
+
headers: localVarHeaderParams,
|
|
390
|
+
uri: localVarPath,
|
|
391
|
+
useQuerystring: this._useQuerystring,
|
|
392
|
+
json: true,
|
|
393
|
+
body: models_1.ObjectSerializer.serialize(payload, "MainCreateRedeemPayload")
|
|
394
|
+
};
|
|
395
|
+
let authenticationPromise = Promise.resolve();
|
|
396
|
+
if (this.authentications.apiKey.apiKey) {
|
|
397
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
398
|
+
}
|
|
399
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
400
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
401
|
+
}
|
|
402
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
403
|
+
let interceptorPromise = authenticationPromise;
|
|
404
|
+
for (const interceptor of this.interceptors) {
|
|
405
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
406
|
+
}
|
|
407
|
+
return interceptorPromise.then(() => {
|
|
408
|
+
if (Object.keys(localVarFormParams).length) {
|
|
409
|
+
if (localVarUseFormData) {
|
|
410
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return new Promise((resolve, reject) => {
|
|
417
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
418
|
+
if (error) {
|
|
419
|
+
reject(error);
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
423
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainRedeem");
|
|
424
|
+
resolve({ response: response, body: body });
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
loyaltyOfferProgramsPidRewardsRedeemTidCompletePost(pid_1, tid_1) {
|
|
436
|
+
return __awaiter(this, arguments, void 0, function* (pid, tid, options = { headers: {} }) {
|
|
437
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/rewards/redeem/{tid}/complete'
|
|
438
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)))
|
|
439
|
+
.replace('{' + 'tid' + '}', encodeURIComponent(String(tid)));
|
|
440
|
+
let localVarQueryParameters = {};
|
|
441
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
442
|
+
const produces = ['application/json'];
|
|
443
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
444
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
448
|
+
}
|
|
449
|
+
let localVarFormParams = {};
|
|
450
|
+
if (pid === null || pid === undefined) {
|
|
451
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidRewardsRedeemTidCompletePost.');
|
|
452
|
+
}
|
|
453
|
+
if (tid === null || tid === undefined) {
|
|
454
|
+
throw new Error('Required parameter tid was null or undefined when calling loyaltyOfferProgramsPidRewardsRedeemTidCompletePost.');
|
|
455
|
+
}
|
|
456
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
457
|
+
let localVarUseFormData = false;
|
|
458
|
+
let localVarRequestOptions = {
|
|
459
|
+
method: 'POST',
|
|
460
|
+
qs: localVarQueryParameters,
|
|
461
|
+
headers: localVarHeaderParams,
|
|
462
|
+
uri: localVarPath,
|
|
463
|
+
useQuerystring: this._useQuerystring,
|
|
464
|
+
json: true,
|
|
465
|
+
};
|
|
466
|
+
let authenticationPromise = Promise.resolve();
|
|
467
|
+
if (this.authentications.apiKey.apiKey) {
|
|
468
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
469
|
+
}
|
|
470
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
471
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
472
|
+
}
|
|
473
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
474
|
+
let interceptorPromise = authenticationPromise;
|
|
475
|
+
for (const interceptor of this.interceptors) {
|
|
476
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
477
|
+
}
|
|
478
|
+
return interceptorPromise.then(() => {
|
|
479
|
+
if (Object.keys(localVarFormParams).length) {
|
|
480
|
+
if (localVarUseFormData) {
|
|
481
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
return new Promise((resolve, reject) => {
|
|
488
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
489
|
+
if (error) {
|
|
490
|
+
reject(error);
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
494
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainRedeem");
|
|
495
|
+
resolve({ response: response, body: body });
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
});
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
loyaltyOfferProgramsPidRewardsRevokeDelete(pid_1, attributedRewardIds_1) {
|
|
507
|
+
return __awaiter(this, arguments, void 0, function* (pid, attributedRewardIds, options = { headers: {} }) {
|
|
508
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/rewards/revoke'
|
|
509
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
510
|
+
let localVarQueryParameters = {};
|
|
511
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
512
|
+
const produces = ['application/json'];
|
|
513
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
514
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
518
|
+
}
|
|
519
|
+
let localVarFormParams = {};
|
|
520
|
+
if (pid === null || pid === undefined) {
|
|
521
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidRewardsRevokeDelete.');
|
|
522
|
+
}
|
|
523
|
+
if (attributedRewardIds !== undefined) {
|
|
524
|
+
localVarQueryParameters['attributedRewardIds'] = models_1.ObjectSerializer.serialize(attributedRewardIds, "string");
|
|
525
|
+
}
|
|
526
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
527
|
+
let localVarUseFormData = false;
|
|
528
|
+
let localVarRequestOptions = {
|
|
529
|
+
method: 'DELETE',
|
|
530
|
+
qs: localVarQueryParameters,
|
|
531
|
+
headers: localVarHeaderParams,
|
|
532
|
+
uri: localVarPath,
|
|
533
|
+
useQuerystring: this._useQuerystring,
|
|
534
|
+
json: true,
|
|
535
|
+
};
|
|
536
|
+
let authenticationPromise = Promise.resolve();
|
|
537
|
+
if (this.authentications.apiKey.apiKey) {
|
|
538
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
539
|
+
}
|
|
540
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
541
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
542
|
+
}
|
|
543
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
544
|
+
let interceptorPromise = authenticationPromise;
|
|
545
|
+
for (const interceptor of this.interceptors) {
|
|
546
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
547
|
+
}
|
|
548
|
+
return interceptorPromise.then(() => {
|
|
549
|
+
if (Object.keys(localVarFormParams).length) {
|
|
550
|
+
if (localVarUseFormData) {
|
|
551
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
552
|
+
}
|
|
553
|
+
else {
|
|
554
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return new Promise((resolve, reject) => {
|
|
558
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
559
|
+
if (error) {
|
|
560
|
+
reject(error);
|
|
561
|
+
}
|
|
562
|
+
else {
|
|
563
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
564
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
565
|
+
resolve({ response: response, body: body });
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
loyaltyOfferProgramsPidRewardsRidGet(pid_1, rid_1, version_1) {
|
|
577
|
+
return __awaiter(this, arguments, void 0, function* (pid, rid, version, options = { headers: {} }) {
|
|
578
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/rewards/{rid}'
|
|
579
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)))
|
|
580
|
+
.replace('{' + 'rid' + '}', encodeURIComponent(String(rid)));
|
|
581
|
+
let localVarQueryParameters = {};
|
|
582
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
583
|
+
const produces = ['application/json'];
|
|
584
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
585
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
589
|
+
}
|
|
590
|
+
let localVarFormParams = {};
|
|
591
|
+
if (pid === null || pid === undefined) {
|
|
592
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidRewardsRidGet.');
|
|
593
|
+
}
|
|
594
|
+
if (rid === null || rid === undefined) {
|
|
595
|
+
throw new Error('Required parameter rid was null or undefined when calling loyaltyOfferProgramsPidRewardsRidGet.');
|
|
596
|
+
}
|
|
597
|
+
if (version !== undefined) {
|
|
598
|
+
localVarQueryParameters['version'] = models_1.ObjectSerializer.serialize(version, "'active' | 'draft'");
|
|
599
|
+
}
|
|
600
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
601
|
+
let localVarUseFormData = false;
|
|
602
|
+
let localVarRequestOptions = {
|
|
603
|
+
method: 'GET',
|
|
604
|
+
qs: localVarQueryParameters,
|
|
605
|
+
headers: localVarHeaderParams,
|
|
606
|
+
uri: localVarPath,
|
|
607
|
+
useQuerystring: this._useQuerystring,
|
|
608
|
+
json: true,
|
|
609
|
+
};
|
|
610
|
+
let authenticationPromise = Promise.resolve();
|
|
611
|
+
if (this.authentications.apiKey.apiKey) {
|
|
612
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
613
|
+
}
|
|
614
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
615
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
616
|
+
}
|
|
617
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
618
|
+
let interceptorPromise = authenticationPromise;
|
|
619
|
+
for (const interceptor of this.interceptors) {
|
|
620
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
621
|
+
}
|
|
622
|
+
return interceptorPromise.then(() => {
|
|
623
|
+
if (Object.keys(localVarFormParams).length) {
|
|
624
|
+
if (localVarUseFormData) {
|
|
625
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
626
|
+
}
|
|
627
|
+
else {
|
|
628
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return new Promise((resolve, reject) => {
|
|
632
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
633
|
+
if (error) {
|
|
634
|
+
reject(error);
|
|
635
|
+
}
|
|
636
|
+
else {
|
|
637
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
638
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainReward");
|
|
639
|
+
resolve({ response: response, body: body });
|
|
640
|
+
}
|
|
641
|
+
else {
|
|
642
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
});
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
loyaltyOfferProgramsPidRewardsValidatePost(pid_1, body_1) {
|
|
651
|
+
return __awaiter(this, arguments, void 0, function* (pid, body, options = { headers: {} }) {
|
|
652
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/rewards/validate'
|
|
653
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
654
|
+
let localVarQueryParameters = {};
|
|
655
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
656
|
+
const produces = ['application/json'];
|
|
657
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
658
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
662
|
+
}
|
|
663
|
+
let localVarFormParams = {};
|
|
664
|
+
if (pid === null || pid === undefined) {
|
|
665
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidRewardsValidatePost.');
|
|
666
|
+
}
|
|
667
|
+
if (body === null || body === undefined) {
|
|
668
|
+
throw new Error('Required parameter body was null or undefined when calling loyaltyOfferProgramsPidRewardsValidatePost.');
|
|
669
|
+
}
|
|
670
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
671
|
+
let localVarUseFormData = false;
|
|
672
|
+
let localVarRequestOptions = {
|
|
673
|
+
method: 'POST',
|
|
674
|
+
qs: localVarQueryParameters,
|
|
675
|
+
headers: localVarHeaderParams,
|
|
676
|
+
uri: localVarPath,
|
|
677
|
+
useQuerystring: this._useQuerystring,
|
|
678
|
+
json: true,
|
|
679
|
+
body: models_1.ObjectSerializer.serialize(body, "MainValidateRewardPayload")
|
|
680
|
+
};
|
|
681
|
+
let authenticationPromise = Promise.resolve();
|
|
682
|
+
if (this.authentications.apiKey.apiKey) {
|
|
683
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
684
|
+
}
|
|
685
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
686
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
687
|
+
}
|
|
688
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
689
|
+
let interceptorPromise = authenticationPromise;
|
|
690
|
+
for (const interceptor of this.interceptors) {
|
|
691
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
692
|
+
}
|
|
693
|
+
return interceptorPromise.then(() => {
|
|
694
|
+
if (Object.keys(localVarFormParams).length) {
|
|
695
|
+
if (localVarUseFormData) {
|
|
696
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
return new Promise((resolve, reject) => {
|
|
703
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
704
|
+
if (error) {
|
|
705
|
+
reject(error);
|
|
706
|
+
}
|
|
707
|
+
else {
|
|
708
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
709
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainRewardValidate");
|
|
710
|
+
resolve({ response: response, body: body });
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
});
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
loyaltyOfferProgramsPidVouchersGet(pid_1, contactId_1, limit_1, offset_1, sort_1, sortField_1, metadataKeyValue_1, rewardId_1) {
|
|
722
|
+
return __awaiter(this, arguments, void 0, function* (pid, contactId, limit, offset, sort, sortField, metadataKeyValue, rewardId, options = { headers: {} }) {
|
|
723
|
+
const localVarPath = this.basePath + '/loyalty/offer/programs/{pid}/vouchers'
|
|
724
|
+
.replace('{' + 'pid' + '}', encodeURIComponent(String(pid)));
|
|
725
|
+
let localVarQueryParameters = {};
|
|
726
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
727
|
+
const produces = ['application/json'];
|
|
728
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
729
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
730
|
+
}
|
|
731
|
+
else {
|
|
732
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
733
|
+
}
|
|
734
|
+
let localVarFormParams = {};
|
|
735
|
+
if (pid === null || pid === undefined) {
|
|
736
|
+
throw new Error('Required parameter pid was null or undefined when calling loyaltyOfferProgramsPidVouchersGet.');
|
|
737
|
+
}
|
|
738
|
+
if (contactId === null || contactId === undefined) {
|
|
739
|
+
throw new Error('Required parameter contactId was null or undefined when calling loyaltyOfferProgramsPidVouchersGet.');
|
|
740
|
+
}
|
|
741
|
+
if (limit !== undefined) {
|
|
742
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
743
|
+
}
|
|
744
|
+
if (offset !== undefined) {
|
|
745
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
746
|
+
}
|
|
747
|
+
if (sort !== undefined) {
|
|
748
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
749
|
+
}
|
|
750
|
+
if (sortField !== undefined) {
|
|
751
|
+
localVarQueryParameters['sortField'] = models_1.ObjectSerializer.serialize(sortField, "'updatedAt' | 'createdAt'");
|
|
752
|
+
}
|
|
753
|
+
if (contactId !== undefined) {
|
|
754
|
+
localVarQueryParameters['contactId'] = models_1.ObjectSerializer.serialize(contactId, "number");
|
|
755
|
+
}
|
|
756
|
+
if (metadataKeyValue !== undefined) {
|
|
757
|
+
localVarQueryParameters['metadata[key][value]'] = models_1.ObjectSerializer.serialize(metadataKeyValue, "string");
|
|
758
|
+
}
|
|
759
|
+
if (rewardId !== undefined) {
|
|
760
|
+
localVarQueryParameters['rewardId'] = models_1.ObjectSerializer.serialize(rewardId, "string");
|
|
761
|
+
}
|
|
762
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
763
|
+
let localVarUseFormData = false;
|
|
764
|
+
let localVarRequestOptions = {
|
|
765
|
+
method: 'GET',
|
|
766
|
+
qs: localVarQueryParameters,
|
|
767
|
+
headers: localVarHeaderParams,
|
|
768
|
+
uri: localVarPath,
|
|
769
|
+
useQuerystring: this._useQuerystring,
|
|
770
|
+
json: true,
|
|
771
|
+
};
|
|
772
|
+
let authenticationPromise = Promise.resolve();
|
|
773
|
+
if (this.authentications.apiKey.apiKey) {
|
|
774
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
775
|
+
}
|
|
776
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
777
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
778
|
+
}
|
|
779
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
780
|
+
let interceptorPromise = authenticationPromise;
|
|
781
|
+
for (const interceptor of this.interceptors) {
|
|
782
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
783
|
+
}
|
|
784
|
+
return interceptorPromise.then(() => {
|
|
785
|
+
if (Object.keys(localVarFormParams).length) {
|
|
786
|
+
if (localVarUseFormData) {
|
|
787
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
return new Promise((resolve, reject) => {
|
|
794
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
795
|
+
if (error) {
|
|
796
|
+
reject(error);
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
800
|
+
body = models_1.ObjectSerializer.deserialize(body, "MainModelContactRewardsResp");
|
|
801
|
+
resolve({ response: response, body: body });
|
|
802
|
+
}
|
|
803
|
+
else {
|
|
804
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
});
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
exports.RewardApi = RewardApi;
|
|
814
|
+
//# sourceMappingURL=rewardApi.js.map
|