@stackfactor/client-api 1.1.133 → 1.1.134

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 (66) hide show
  1. package/dist/actionNotifications.js +4 -4
  2. package/dist/address.js +2 -2
  3. package/dist/aiAssistant.js +6 -6
  4. package/dist/avatar.js +2 -2
  5. package/dist/axiosClient.js +5 -5
  6. package/dist/config.js +4 -4
  7. package/dist/dashboard.js +4 -4
  8. package/dist/departmentTrainingPlans.js +7 -7
  9. package/dist/groups.js +13 -13
  10. package/dist/index.js +74 -14
  11. package/dist/integration.js +12 -12
  12. package/dist/integrationConfiguration.js +4 -4
  13. package/dist/integrations/contentGenerator.js +3 -3
  14. package/dist/learningContent.js +16 -16
  15. package/dist/learningPath.js +9 -9
  16. package/dist/logger.js +3 -3
  17. package/dist/microSkillsQuizes.js +3 -3
  18. package/dist/quotas.js +3 -3
  19. package/dist/role.js +15 -15
  20. package/dist/roleTemplate.js +10 -10
  21. package/dist/security.js +5 -5
  22. package/dist/skill.js +19 -19
  23. package/dist/skillAssessmentTestingSession.js +7 -7
  24. package/dist/skillAssessments.js +7 -7
  25. package/dist/skillTemplate.js +12 -12
  26. package/dist/talentTransfromation.js +5 -5
  27. package/dist/teams.js +12 -12
  28. package/dist/tenants.js +3 -3
  29. package/dist/trainingPlans.js +13 -13
  30. package/dist/trainingPlansProficiencyLevels.js +5 -5
  31. package/dist/userInformation.js +4 -4
  32. package/dist/users.js +28 -28
  33. package/package.json +1 -1
  34. package/src/lib/actionNotifications.ts +1 -1
  35. package/src/lib/address.ts +1 -1
  36. package/src/lib/aiAssistant.ts +1 -1
  37. package/src/lib/avatar.ts +1 -1
  38. package/src/lib/axiosClient.ts +2 -2
  39. package/src/lib/config.ts +1 -1
  40. package/src/lib/dashboard.ts +1 -1
  41. package/src/lib/departmentTrainingPlans.ts +1 -1
  42. package/src/lib/groups.ts +1 -1
  43. package/src/lib/index.ts +85 -1
  44. package/src/lib/integration.ts +1 -1
  45. package/src/lib/integrationConfiguration.ts +1 -1
  46. package/src/lib/integrations/contentGenerator.ts +1 -1
  47. package/src/lib/learningContent.ts +1 -1
  48. package/src/lib/learningPath.ts +1 -1
  49. package/src/lib/logger.ts +1 -1
  50. package/src/lib/microSkillsQuizes.ts +1 -1
  51. package/src/lib/quotas.ts +1 -1
  52. package/src/lib/role.ts +1 -1
  53. package/src/lib/roleTemplate.ts +1 -1
  54. package/src/lib/security.ts +1 -1
  55. package/src/lib/skill.ts +1 -1
  56. package/src/lib/skillAssessmentTestingSession.ts +1 -1
  57. package/src/lib/skillAssessments.ts +1 -1
  58. package/src/lib/skillTemplate.ts +1 -1
  59. package/src/lib/talentTransfromation.ts +1 -1
  60. package/src/lib/teams.ts +1 -1
  61. package/src/lib/tenants.ts +1 -1
  62. package/src/lib/trainingPlans.ts +1 -1
  63. package/src/lib/trainingPlansProficiencyLevels.ts +1 -1
  64. package/src/lib/userInformation.ts +1 -1
  65. package/src/lib/users.ts +1 -1
  66. package/src/lib/exports.ts +0 -85
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const axiosClient_js_1 = require("./axiosClient.js");
3
+ const axiosClient_1 = require("./axiosClient");
4
4
  /**
5
5
  * Archive the training plan
6
6
  * @param {String} id The id of the training plan to be deleted
@@ -8,7 +8,7 @@ const axiosClient_js_1 = require("./axiosClient.js");
8
8
  */
9
9
  const archiveTrainingPlan = (id, token) => {
10
10
  return new Promise((resolve, reject) => {
11
- const request = axiosClient_js_1.client.get(`api/v1/trainingplans/archive/${id}`, {
11
+ const request = axiosClient_1.client.get(`api/v1/trainingplans/archive/${id}`, {
12
12
  headers: { authorization: token },
13
13
  });
14
14
  request
@@ -36,7 +36,7 @@ const createTrainingPlan = (data, type, saveAsDraft, token) => {
36
36
  returnDefaultIfVersionNotAvailable: true,
37
37
  types: [type],
38
38
  };
39
- let confirmationRequest = axiosClient_js_1.client.put("api/v1/trainingplans", requestData, {
39
+ let confirmationRequest = axiosClient_1.client.put("api/v1/trainingplans", requestData, {
40
40
  headers: { authorization: token },
41
41
  });
42
42
  confirmationRequest
@@ -61,7 +61,7 @@ const deleteTrainingPlan = (id, comments, token) => {
61
61
  };
62
62
  if (comments)
63
63
  data.comments = comments;
64
- const request = axiosClient_js_1.client.delete(`api/v1/trainingplans/`, {
64
+ const request = axiosClient_1.client.delete(`api/v1/trainingplans/`, {
65
65
  headers: { authorization: token },
66
66
  data: data,
67
67
  });
@@ -81,7 +81,7 @@ const deleteTrainingPlan = (id, comments, token) => {
81
81
  */
82
82
  const discardTrainingPlanChanges = (id, token) => {
83
83
  return new Promise((resolve, reject) => {
84
- const request = axiosClient_js_1.client.get(`api/v1/trainingplans/discard/${id}`, {
84
+ const request = axiosClient_1.client.get(`api/v1/trainingplans/discard/${id}`, {
85
85
  headers: { authorization: token },
86
86
  });
87
87
  request
@@ -110,7 +110,7 @@ const generateNewBaseline = (id, data, returnMinimized, saveBaseline, token) =>
110
110
  };
111
111
  if (id)
112
112
  requestData.id = id;
113
- let confirmationRequest = axiosClient_js_1.client.post("api/v1/trainingplans/generatenewbaseline", requestData, {
113
+ let confirmationRequest = axiosClient_1.client.post("api/v1/trainingplans/generatenewbaseline", requestData, {
114
114
  headers: { authorization: token },
115
115
  });
116
116
  confirmationRequest
@@ -130,7 +130,7 @@ const generateNewBaseline = (id, data, returnMinimized, saveBaseline, token) =>
130
130
  */
131
131
  const getTrainingPlanById = (id, version, token) => {
132
132
  return new Promise((resolve, reject) => {
133
- let confirmationRequest = axiosClient_js_1.client.get(`api/v1/trainingplans/${id}/${version}`, {
133
+ let confirmationRequest = axiosClient_1.client.get(`api/v1/trainingplans/${id}/${version}`, {
134
134
  headers: { authorization: token },
135
135
  });
136
136
  confirmationRequest
@@ -148,7 +148,7 @@ const getTrainingPlanById = (id, version, token) => {
148
148
  */
149
149
  const getAllTrainingPlansTasksSummary = (token = null) => {
150
150
  return new Promise((resolve, reject) => {
151
- let confirmationRequest = axiosClient_js_1.client.get(`api/v1/trainingplans/taskssummary`, {
151
+ let confirmationRequest = axiosClient_1.client.get(`api/v1/trainingplans/taskssummary`, {
152
152
  headers: token ? { authorization: token } : {},
153
153
  });
154
154
  confirmationRequest
@@ -185,7 +185,7 @@ const getListOfTrainingPlans = (users, types, version, fields, includeDeleted, i
185
185
  requestData.types = types;
186
186
  if (users)
187
187
  requestData.users = users;
188
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans`, requestData, {
188
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans`, requestData, {
189
189
  headers: { authorization: token },
190
190
  });
191
191
  confirmationRequest
@@ -208,7 +208,7 @@ const publishTrainingPlan = (id, comments, token) => {
208
208
  let data = {};
209
209
  if (comments)
210
210
  data.comments = comments;
211
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans/publish/${id}`, data, {
211
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans/publish/${id}`, data, {
212
212
  headers: { authorization: token },
213
213
  });
214
214
  confirmationRequest
@@ -234,7 +234,7 @@ const updateTrainingPlan = (planId, data, saveAsDraft, token) => {
234
234
  id: planId,
235
235
  saveAsDraft,
236
236
  };
237
- let confirmationRequest = axiosClient_js_1.client.put(`api/v1/trainingplans/update/${planId}`, requestData, {
237
+ let confirmationRequest = axiosClient_1.client.put(`api/v1/trainingplans/update/${planId}`, requestData, {
238
238
  headers: { authorization: token },
239
239
  });
240
240
  confirmationRequest
@@ -259,7 +259,7 @@ const updateTrainingPlanTaskStatus = (id, status, token) => {
259
259
  id: id,
260
260
  status: status,
261
261
  };
262
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans/task`, data, {
262
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans/task`, data, {
263
263
  headers: { authorization: token },
264
264
  });
265
265
  confirmationRequest
@@ -280,7 +280,7 @@ const updateTrainingPlanTaskStatus = (id, status, token) => {
280
280
  */
281
281
  const updateActivities = (planId, data, token) => {
282
282
  return new Promise((resolve, reject) => {
283
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans/${planId}/activities`, data, {
283
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans/${planId}/activities`, data, {
284
284
  headers: { authorization: token },
285
285
  });
286
286
  confirmationRequest
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const axiosClient_js_1 = require("./axiosClient.js");
3
+ const axiosClient_1 = require("./axiosClient");
4
4
  /**
5
5
  * Get training plan proficiency level
6
6
  * @param {String} proficiencyLevelId
@@ -9,7 +9,7 @@ const axiosClient_js_1 = require("./axiosClient.js");
9
9
  */
10
10
  const getTrainingPlanProficiencyLevel = (proficiencyLevelId, token) => {
11
11
  return new Promise((resolve, reject) => {
12
- let confirmationRequest = axiosClient_js_1.client.get(`api/v1/trainingplans/proficiencylevels/${proficiencyLevelId}`, {
12
+ let confirmationRequest = axiosClient_1.client.get(`api/v1/trainingplans/proficiencylevels/${proficiencyLevelId}`, {
13
13
  headers: { authorization: token },
14
14
  });
15
15
  confirmationRequest
@@ -36,7 +36,7 @@ const getTrainingPlanProficiencyLevelList = (includeDeleted, includeDetailedInfo
36
36
  includeDeleted: includeDeleted,
37
37
  includeDetailedInformation: includeDetailedInformation,
38
38
  };
39
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans/proficiencylevels`, requestData, {
39
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans/proficiencylevels`, requestData, {
40
40
  headers: { authorization: token },
41
41
  });
42
42
  confirmationRequest
@@ -56,7 +56,7 @@ const getTrainingPlanProficiencyLevelList = (includeDeleted, includeDetailedInfo
56
56
  */
57
57
  const reorderTrainingPlansProficiencyLevels = (order, token) => {
58
58
  return new Promise((resolve, reject) => {
59
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans/proficiencylevels/reorder`, { order: order }, {
59
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans/proficiencylevels/reorder`, { order: order }, {
60
60
  headers: { authorization: token },
61
61
  });
62
62
  confirmationRequest
@@ -77,7 +77,7 @@ const reorderTrainingPlansProficiencyLevels = (order, token) => {
77
77
  */
78
78
  const updateTrainingPlanProficiencyLevel = (proficiencyLevelId, data, token) => {
79
79
  return new Promise((resolve, reject) => {
80
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/trainingplans/proficiencylevel/${proficiencyLevelId}`, data, {
80
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/trainingplans/proficiencylevel/${proficiencyLevelId}`, data, {
81
81
  headers: { authorization: token },
82
82
  });
83
83
  confirmationRequest
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const axiosClient_js_1 = require("./axiosClient.js");
3
+ const axiosClient_1 = require("./axiosClient");
4
4
  /**
5
5
  * Add an entry to an array type business property such as experience, education or certifications
6
6
  * @param {String} userId
@@ -14,7 +14,7 @@ const addEntryToArrayBusinessProperty = (userId, property, data, token) => {
14
14
  const requestData = {
15
15
  data: data,
16
16
  };
17
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/user/arrayproperty/${userId}/${property}`, requestData, {
17
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/user/arrayproperty/${userId}/${property}`, requestData, {
18
18
  headers: { authorization: token },
19
19
  });
20
20
  confirmationRequest
@@ -36,7 +36,7 @@ const addEntryToArrayBusinessProperty = (userId, property, data, token) => {
36
36
  */
37
37
  const removeEntryFromArrayBusinessProperty = (userId, property, id, token) => {
38
38
  return new Promise((resolve, reject) => {
39
- const confirmationRequest = axiosClient_js_1.client.delete(`api/v1/user/arrayproperty/${userId}/${property}/${id}`, {
39
+ const confirmationRequest = axiosClient_1.client.delete(`api/v1/user/arrayproperty/${userId}/${property}/${id}`, {
40
40
  headers: { authorization: token },
41
41
  });
42
42
  confirmationRequest
@@ -62,7 +62,7 @@ const updateEntryfromArrayBusinessProperty = (userId, property, id, data, token)
62
62
  const requestData = {
63
63
  data: data,
64
64
  };
65
- let confirmationRequest = axiosClient_js_1.client.patch(`api/v1/user/arrayproperty/${userId}/${property}/${id}`, requestData, {
65
+ let confirmationRequest = axiosClient_1.client.patch(`api/v1/user/arrayproperty/${userId}/${property}/${id}`, requestData, {
66
66
  headers: { authorization: token },
67
67
  });
68
68
  confirmationRequest
package/dist/users.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable no-undef */
4
- const axiosClient_js_1 = require("./axiosClient.js");
4
+ const axiosClient_1 = require("./axiosClient");
5
5
  /**
6
6
  * Add a new API Token
7
7
  * @param {string} name Name of the token
@@ -15,7 +15,7 @@ const addAPIToken = (name, expiration, token) => {
15
15
  name: name,
16
16
  expiration: expiration,
17
17
  };
18
- const addTokenRequest = axiosClient_js_1.client.post(`api/v1/users/addapitoken`, requestData, {
18
+ const addTokenRequest = axiosClient_1.client.post(`api/v1/users/addapitoken`, requestData, {
19
19
  headers: { authorization: token },
20
20
  });
21
21
  addTokenRequest
@@ -42,7 +42,7 @@ const confirmEmailAddress = (validationCode) => {
42
42
  const requestData = {
43
43
  validationCode: validationCode,
44
44
  };
45
- const confirmationRequest = axiosClient_js_1.client.post("api/v1/users/confirmEmail", requestData);
45
+ const confirmationRequest = axiosClient_1.client.post("api/v1/users/confirmEmail", requestData);
46
46
  confirmationRequest
47
47
  .then(() => {
48
48
  resolve();
@@ -63,7 +63,7 @@ const confirmPhone = (validationCode, token) => {
63
63
  const requestData = {
64
64
  validationCode: validationCode,
65
65
  };
66
- const confirmationRequest = axiosClient_js_1.client.post("api/v1/users/confirmPhone", requestData, {
66
+ const confirmationRequest = axiosClient_1.client.post("api/v1/users/confirmPhone", requestData, {
67
67
  headers: { authorization: token },
68
68
  });
69
69
  confirmationRequest
@@ -86,7 +86,7 @@ const confirmPhoneGenerateCode = (phoneNumber, token) => {
86
86
  const requestData = {
87
87
  phoneNumber: phoneNumber,
88
88
  };
89
- const confirmationRequest = axiosClient_js_1.client.post("api/v1/users/confirmPhoneGenerateCode", requestData, {
89
+ const confirmationRequest = axiosClient_1.client.post("api/v1/users/confirmPhoneGenerateCode", requestData, {
90
90
  headers: { authorization: token },
91
91
  });
92
92
  confirmationRequest
@@ -127,7 +127,7 @@ const createAccount = (email, firstName, lastName, password, subSite, inviteCode
127
127
  password: password,
128
128
  subSite: subSite,
129
129
  };
130
- let request = axiosClient_js_1.client.post("api/v1/users/createAccount", signupData);
130
+ let request = axiosClient_1.client.post("api/v1/users/createAccount", signupData);
131
131
  request
132
132
  .then((result) => {
133
133
  resolve(result.data.user);
@@ -164,7 +164,7 @@ const createUserAccount = (email, firstName, lastName, password, token) => {
164
164
  password: password,
165
165
  token: token,
166
166
  };
167
- let request = axiosClient_js_1.client.post("api/v1/users/createUser", signupData);
167
+ let request = axiosClient_1.client.post("api/v1/users/createUser", signupData);
168
168
  request
169
169
  .then((result) => {
170
170
  resolve(result.data.user);
@@ -183,7 +183,7 @@ const createUserAccount = (email, firstName, lastName, password, token) => {
183
183
  */
184
184
  const deleteAPIToken = (token, authToken) => {
185
185
  return new Promise((resolve, reject) => {
186
- const deleteTokenRequest = axiosClient_js_1.client.delete(`api/v1/users/user/token`, {
186
+ const deleteTokenRequest = axiosClient_1.client.delete(`api/v1/users/user/token`, {
187
187
  headers: { authorization: authToken },
188
188
  data: {
189
189
  token: token,
@@ -206,7 +206,7 @@ const deleteAPIToken = (token, authToken) => {
206
206
  */
207
207
  const deleteUsers = (userIds, token) => {
208
208
  return new Promise((resolve, reject) => {
209
- const deleteTokenRequest = axiosClient_js_1.client.delete(`api/v1/users/`, {
209
+ const deleteTokenRequest = axiosClient_1.client.delete(`api/v1/users/`, {
210
210
  headers: { authorization: token },
211
211
  data: {
212
212
  userIds: userIds,
@@ -228,7 +228,7 @@ const deleteUsers = (userIds, token) => {
228
228
  */
229
229
  const getAPITokens = (token) => {
230
230
  return new Promise((resolve, reject) => {
231
- const getTokensRequest = axiosClient_js_1.client.get(`api/v1/users/getapitokens`, {
231
+ const getTokensRequest = axiosClient_1.client.get(`api/v1/users/getapitokens`, {
232
232
  headers: { authorization: token },
233
233
  });
234
234
  getTokensRequest
@@ -248,7 +248,7 @@ const getAPITokens = (token) => {
248
248
  */
249
249
  const getUserById = (id, token) => {
250
250
  return new Promise((resolve, reject) => {
251
- const getUserInformationRequest = axiosClient_js_1.client.get(`api/v1/users/user/${id}`, {
251
+ const getUserInformationRequest = axiosClient_1.client.get(`api/v1/users/user/${id}`, {
252
252
  headers: { authorization: token },
253
253
  });
254
254
  getUserInformationRequest
@@ -274,7 +274,7 @@ const getUserById = (id, token) => {
274
274
  */
275
275
  const getUserInformation = (userId, category, token) => {
276
276
  return new Promise((resolve, reject) => {
277
- let confirmationRequest = axiosClient_js_1.client.get(`api/v1/users/user/${userId || 0}/${category || "*"}`, {
277
+ let confirmationRequest = axiosClient_1.client.get(`api/v1/users/user/${userId || 0}/${category || "*"}`, {
278
278
  headers: { authorization: token },
279
279
  });
280
280
  confirmationRequest
@@ -299,7 +299,7 @@ const getUsers = (filter, fields, token) => {
299
299
  filter: filter,
300
300
  fields: fields,
301
301
  };
302
- let confirmationRequest = axiosClient_js_1.client.post(`api/v1/users/`, requestData, {
302
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/users/`, requestData, {
303
303
  headers: { authorization: token },
304
304
  });
305
305
  confirmationRequest
@@ -327,7 +327,7 @@ const inviteUsers = (invitees, groupId, teamId, authToken) => {
327
327
  teamId: teamId,
328
328
  token: authToken,
329
329
  };
330
- let request = axiosClient_js_1.client.post("api/v1/users/invite", requestData, {
330
+ let request = axiosClient_1.client.post("api/v1/users/invite", requestData, {
331
331
  headers: { authorization: authToken },
332
332
  });
333
333
  request
@@ -351,7 +351,7 @@ const login = (email, password) => {
351
351
  email: email,
352
352
  password: password,
353
353
  };
354
- let request = axiosClient_js_1.client.post("api/v1/auth/login", requestData);
354
+ let request = axiosClient_1.client.post("api/v1/auth/login", requestData);
355
355
  request
356
356
  .then((response) => {
357
357
  resolve(response.data);
@@ -375,7 +375,7 @@ const loginExchangeKeys = (code, codeVerifier, redirectUri) => {
375
375
  codeVerifier: codeVerifier,
376
376
  redirectUri: redirectUri,
377
377
  };
378
- let request = axiosClient_js_1.client.post("api/v1/auth/loginexchangekeys", requestData);
378
+ let request = axiosClient_1.client.post("api/v1/auth/loginexchangekeys", requestData);
379
379
  request
380
380
  .then((response) => {
381
381
  resolve(response.data);
@@ -392,7 +392,7 @@ const loginExchangeKeys = (code, codeVerifier, redirectUri) => {
392
392
  */
393
393
  const logout = (token) => {
394
394
  return new Promise((resolve, reject) => {
395
- let request = axiosClient_js_1.client.post("api/v1/auth/logout", {}, {
395
+ let request = axiosClient_1.client.post("api/v1/auth/logout", {}, {
396
396
  headers: { authorization: token },
397
397
  });
398
398
  request
@@ -412,7 +412,7 @@ const logout = (token) => {
412
412
  */
413
413
  const refreshToken = (refreshToken) => {
414
414
  return new Promise((resolve, reject) => {
415
- let request = axiosClient_js_1.client.post("api/v1/auth/refreshToken", {
415
+ let request = axiosClient_1.client.post("api/v1/auth/refreshToken", {
416
416
  refreshToken: refreshToken,
417
417
  });
418
418
  request
@@ -435,7 +435,7 @@ const removeAPIToken = (id, authToken) => {
435
435
  const requestData = {
436
436
  id: id,
437
437
  };
438
- const removeTokenRequest = axiosClient_js_1.client.post(`api/v1/users/removeapitoken`, requestData, {
438
+ const removeTokenRequest = axiosClient_1.client.post(`api/v1/users/removeapitoken`, requestData, {
439
439
  headers: { authorization: authToken },
440
440
  });
441
441
  removeTokenRequest
@@ -459,7 +459,7 @@ const resendInvitationEmails = (invitees, authToken) => {
459
459
  invitees: invitees,
460
460
  token: authToken,
461
461
  };
462
- let request = axiosClient_js_1.client.post("api/v1/users/resendinvite", requestData, {
462
+ let request = axiosClient_1.client.post("api/v1/users/resendinvite", requestData, {
463
463
  headers: { authorization: authToken },
464
464
  });
465
465
  request
@@ -485,7 +485,7 @@ const resetPassword = (email, code, password) => {
485
485
  code: code,
486
486
  password: password,
487
487
  };
488
- let request = axiosClient_js_1.client.post("api/v1/users/resetpassword", postData);
488
+ let request = axiosClient_1.client.post("api/v1/users/resetpassword", postData);
489
489
  request
490
490
  .then((response) => {
491
491
  resolve(response.data);
@@ -506,7 +506,7 @@ const sendEmailConfirmationCode = (email, token) => {
506
506
  let postData = {
507
507
  email: email,
508
508
  };
509
- let request = axiosClient_js_1.client.post("api/v1/users/sendemailconfirmationcode", postData, {
509
+ let request = axiosClient_1.client.post("api/v1/users/sendemailconfirmationcode", postData, {
510
510
  headers: { authorization: token },
511
511
  });
512
512
  request
@@ -528,7 +528,7 @@ const sendPasswordResetNotification = (email) => {
528
528
  let postData = {
529
529
  email: email,
530
530
  };
531
- let request = axiosClient_js_1.client.post("api/v1/users/sendpasswordresetnotification", postData);
531
+ let request = axiosClient_1.client.post("api/v1/users/sendpasswordresetnotification", postData);
532
532
  request
533
533
  .then((response) => {
534
534
  resolve(response.data);
@@ -552,7 +552,7 @@ const setUserInformation = (userId, category, data, token) => {
552
552
  data: category ? { [category]: data } : data,
553
553
  userId: userId,
554
554
  };
555
- let confirmationRequest = axiosClient_js_1.client.post("api/v1/users/user", requestData, {
555
+ let confirmationRequest = axiosClient_1.client.post("api/v1/users/user", requestData, {
556
556
  headers: { authorization: token },
557
557
  });
558
558
  confirmationRequest
@@ -579,7 +579,7 @@ const updateUserEmail = (email, verificationCode, password, token) => {
579
579
  verificationCode: verificationCode,
580
580
  password: password,
581
581
  };
582
- let confirmationRequest = axiosClient_js_1.client.post("api/v1/users/updateemail", requestData, {
582
+ let confirmationRequest = axiosClient_1.client.post("api/v1/users/updateemail", requestData, {
583
583
  headers: { authorization: token },
584
584
  });
585
585
  confirmationRequest
@@ -604,7 +604,7 @@ const updateUserGroups = (userId, groups, token) => {
604
604
  userId: userId,
605
605
  groups: groups || [],
606
606
  };
607
- let confirmationRequest = axiosClient_js_1.client.post("api/v1/users/user/updategroups", requestData, {
607
+ let confirmationRequest = axiosClient_1.client.post("api/v1/users/user/updategroups", requestData, {
608
608
  headers: { authorization: token },
609
609
  });
610
610
  confirmationRequest
@@ -629,7 +629,7 @@ const updateUserPassword = (password, newPassword, token) => {
629
629
  password: password,
630
630
  newPassword: newPassword,
631
631
  };
632
- let confirmationRequest = axiosClient_js_1.client.post("api/v1/users/updatepassword", requestData, {
632
+ let confirmationRequest = axiosClient_1.client.post("api/v1/users/updatepassword", requestData, {
633
633
  headers: { authorization: token },
634
634
  });
635
635
  confirmationRequest
@@ -653,7 +653,7 @@ const validateResetPasswordCode = (email, code) => {
653
653
  email: email,
654
654
  code: code,
655
655
  };
656
- let request = axiosClient_js_1.client.post("api/v1/users/validateresetpasswordcode", postData);
656
+ let request = axiosClient_1.client.post("api/v1/users/validateresetpasswordcode", postData);
657
657
  request
658
658
  .then((response) => {
659
659
  resolve(response.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.133",
3
+ "version": "1.1.134",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Get all permissions
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Validate Address
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  interface AskQuestionData {
4
4
  conversationId: string;
package/src/lib/avatar.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Get avatar for an elementId
@@ -1,6 +1,6 @@
1
1
  import axios, { AxiosError } from "axios";
2
- import { RESPONSE_TYPE } from "./constants.js";
3
- import utils from "./utils.js";
2
+ import { RESPONSE_TYPE } from "./constants";
3
+ import utils from "./utils";
4
4
 
5
5
  const baseUrl = utils.getBaseUrl();
6
6
 
package/src/lib/config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Get the specified configuration by Id. It returns a promise
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Add a card to the dashboard
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  interface Activity {
4
4
  // Define the structure of an activity object here
package/src/lib/groups.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Add permissions to group
package/src/lib/index.ts CHANGED
@@ -1 +1,85 @@
1
- export * from "./exports.js";
1
+ import actionNotifications from "./actionNotifications";
2
+ import {
3
+ client,
4
+ errorToString,
5
+ getErrorInformation,
6
+ getErrorType,
7
+ shouldReturnError,
8
+ } from "./axiosClient";
9
+ import aiAssistant from "./aiAssistant";
10
+ import avatar from "./avatar";
11
+ import address from "./address";
12
+ import config from "./config";
13
+ import {
14
+ DOCUMENT_VERSION,
15
+ PERMISSIONS,
16
+ PERMISSION_DESCRIPTIONS,
17
+ RESPONSE_TYPE,
18
+ } from "./constants";
19
+ import contentGenerator from "./integrations/contentGenerator";
20
+ import dashboard from "./dashboard";
21
+ import departmentTraingPlans from "./departmentTrainingPlans";
22
+ import integration from "./integration";
23
+ import integrationConfiguration from "./integrationConfiguration";
24
+ import groups from "./groups";
25
+ import learningContent from "./learningContent";
26
+ import learningPath from "./learningPath";
27
+ import logger from "./logger";
28
+ import microSkillsQuizes from "./microSkillsQuizes";
29
+ import quotas from "./quotas";
30
+ import role from "./role";
31
+ import roleTemplate from "./roleTemplate";
32
+ import security from "./security";
33
+ import skill from "./skill";
34
+ import skillAssessment from "./skillAssessments";
35
+ import skillAssessmentTestingSession from "./skillAssessmentTestingSession";
36
+ import skillTemplate from "./skillTemplate";
37
+ import talentTransfromation from "./talentTransfromation";
38
+ import team from "./teams";
39
+ import tenant from "./tenants";
40
+ import trainingPlan from "./trainingPlans";
41
+ import trainingPlanProficiencyLevel from "./trainingPlansProficiencyLevels";
42
+ import userInformation from "./userInformation";
43
+ import users from "./users";
44
+
45
+ export {
46
+ actionNotifications,
47
+ address,
48
+ aiAssistant,
49
+ avatar,
50
+ client,
51
+ config,
52
+ contentGenerator,
53
+ dashboard,
54
+ errorToString,
55
+ getErrorInformation,
56
+ getErrorType,
57
+ DOCUMENT_VERSION,
58
+ integration,
59
+ integrationConfiguration,
60
+ departmentTraingPlans,
61
+ groups,
62
+ learningContent,
63
+ learningPath,
64
+ logger,
65
+ microSkillsQuizes,
66
+ PERMISSIONS,
67
+ PERMISSION_DESCRIPTIONS,
68
+ quotas,
69
+ RESPONSE_TYPE,
70
+ role,
71
+ roleTemplate,
72
+ security,
73
+ shouldReturnError,
74
+ skill,
75
+ skillAssessment,
76
+ skillAssessmentTestingSession,
77
+ skillTemplate,
78
+ talentTransfromation,
79
+ team,
80
+ tenant,
81
+ trainingPlan,
82
+ trainingPlanProficiencyLevel,
83
+ userInformation,
84
+ users,
85
+ };
@@ -1,4 +1,4 @@
1
- import { client, errorToString } from "./axiosClient.js";
1
+ import { client, errorToString } from "./axiosClient";
2
2
  import axiosLib from "axios";
3
3
  import htmlParser from "node-html-parser";
4
4
  import htmlToText from "html2plaintext";
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Get the integration configuration
@@ -1,4 +1,4 @@
1
- import { client } from "../axiosClient.js";
1
+ import { client } from "../axiosClient";
2
2
 
3
3
  interface GenerateContentData {
4
4
  data: string[];
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  interface LearningContentData {
4
4
  data?: object;
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  interface LearningPathData {
4
4
  data?: object;
package/src/lib/logger.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Create comments for a specified element id
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Get responses for a microskill quiz
package/src/lib/quotas.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { client } from "./axiosClient.js";
1
+ import { client } from "./axiosClient";
2
2
 
3
3
  /**
4
4
  * Get the current quota for the user and tenant