(projectCode, quantity, { emailType, domain } = {})
| 2064 | return { |
| 2065 | user: { |
| 2066 | async purchaseEmails(projectCode, quantity, { emailType, domain } = {}) { |
| 2067 | const body = { |
| 2068 | project_code: projectCode, |
| 2069 | quantity, |
| 2070 | email_type: normalizeLuckmailEmailType(emailType), |
| 2071 | }; |
| 2072 | if (domain) { |
| 2073 | body.domain = String(domain).trim(); |
| 2074 | } |
| 2075 | return request('POST', '/api/v1/openapi/email/purchase', { |
| 2076 | jsonData: body, |
| 2077 | }); |
| 2078 | }, |
| 2079 | async getPurchases({ page = 1, pageSize = 100, projectId, tagId, keyword, userDisabled } = {}) { |
| 2080 | return normalizeLuckmailPurchaseListPage(await request('GET', '/api/v1/openapi/email/purchases', { |
| 2081 | params: { |
nothing calls this directly
no test coverage detected