• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / iznik-nuxt3 / c048d5d9-f95f-4246-9591-5caf910754e3

02 Sep 2025 03:31PM UTC coverage: 45.697% (+4.6%) from 41.088%
c048d5d9-f95f-4246-9591-5caf910754e3

push

circleci

edwh
WIP FreegleDocker CircleCI

1766 of 4622 branches covered (38.21%)

Branch coverage included in aggregate %.

4032 of 8066 relevant lines covered (49.99%)

112.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

12.0
/api/UserAPI.js
1
import BaseAPI from '@/api/BaseAPI'
2

3
export default class UserAPI extends BaseAPI {
39✔
4
  async fetch(id) {
5
    if (isNaN(id)) {
×
6
      throw new TypeError('Invalid user ID: ' + id)
×
7
    }
8

9
    return await this.$getv2('/user/' + id)
×
10
  }
11

12
  async fetchMT(params) {
13
    return await this.$get('/user', params)
×
14
  }
15

16
  async fetchByEmail(email, logError = true) {
×
17
    return await this.$get(
×
18
      '/user',
19
      {
20
        email,
21
      },
22
      logError
23
    )
24
  }
25

26
  async fetchPublicLocation(id) {
27
    return await this.$getv2('/user/' + id + '/publiclocation')
×
28
  }
29

30
  rate(id, rating, reason, text) {
31
    return this.$post('/user', {
×
32
      ratee: id,
33
      rating,
34
      action: 'Rate',
35
      reason,
36
      text,
37
    })
38
  }
39

40
  ratingReviewed(ratingid) {
41
    return this.$post('/user', {
×
42
      ratingid,
43
      action: 'RatingReviewed',
44
    })
45
  }
46

47
  unbounce(id) {
48
    return this.$post('/user', { id, action: 'Unbounce' })
×
49
  }
50

51
  addEmail(id, email, primary) {
52
    return this.$post('/user', { id, action: 'AddEmail', email, primary })
×
53
  }
54

55
  removeEmail(id, email) {
56
    return this.$post('/user', { id, action: 'RemoveEmail', email })
×
57
  }
58

59
  add(email, logError = true) {
×
60
    return this.$put('/user', { email }, logError)
×
61
  }
62

63
  signUp(params, logError = true) {
7✔
64
    return this.$put('/user', params, logError)
7✔
65
  }
66

67
  merge(email1, email2, id1, id2, reason) {
68
    return this.$post('/user', {
×
69
      email1,
70
      email2,
71
      id1,
72
      id2,
73
      reason,
74
      action: 'Merge',
75
    })
76
  }
77

78
  save(event) {
79
    return this.$patch('/user', event)
×
80
  }
81

82
  muteOnChitChat(userid) {
83
    return this.$patch('/user', {
×
84
      id: userid,
85
      newsfeedmodstatus: 'Suppressed',
86
    })
87
  }
88

89
  unMuteOnChitChat(userid) {
90
    return this.$patch('/user', {
×
91
      id: userid,
92
      newsfeedmodstatus: 'Unmoderated',
93
    })
94
  }
95

96
  purge(id) {
97
    return this.$del('/user', {
×
98
      id,
99
    })
100
  }
101

102
  engaged(engageid) {
103
    return this.$post('/user', {
×
104
      engageid,
105
    })
106
  }
107
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc