@stackfactor/client-api 1.1.62 → 1.1.63

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.
Files changed (2) hide show
  1. package/lib/avatar.js +3 -17
  2. package/package.json +1 -1
package/lib/avatar.js CHANGED
@@ -3,30 +3,16 @@ import { client } from "./axiosClient.js";
3
3
  /**
4
4
  * Get avatar for an elementId
5
5
  * @param {String} elementId
6
+ * @param {String} type
6
7
  * @param {Number} width
7
8
  * @param {Number} height
8
- * @param {String} type
9
- * @param {String} public
10
- * @param {String} name
11
- * @param {String} description
12
- * @param {Boolean} autoCreate
13
- * @param {Boolean} publicAccess
14
9
  * @param {String} token
15
10
  * @returns {Promise}
16
11
  */
17
- const getAvatar = (
18
- elementId,
19
- type,
20
- width,
21
- height,
22
- publicAccess,
23
- name,
24
- autoCreate,
25
- token
26
- ) => {
12
+ const getAvatar = (elementId, type, width, height, token) => {
27
13
  return new Promise(function (resolve, reject) {
28
14
  let confirmationRequest = client.get(
29
- `/api/v1/avatar/getavatar/${elementId}/${publicAccess}/${type}/${width}/${height}/${name}/${autoCreate}`,
15
+ `/api/v1/avatar/getavatar/${elementId}/${type}/${width}/${height}`,
30
16
  {
31
17
  headers: {
32
18
  authorization: token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.62",
3
+ "version": "1.1.63",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {