@stackfactor/client-api 1.1.148 → 1.1.150

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 (54) hide show
  1. package/dist/actionNotifications.js +73 -0
  2. package/dist/address.js +22 -0
  3. package/dist/aiAssistant.js +134 -0
  4. package/dist/avatar.js +32 -0
  5. package/dist/axiosClient.js +89 -0
  6. package/dist/cjs/departmentTrainingPlans.d.ts +4 -4
  7. package/dist/cjs/departmentTrainingPlans.js +2 -2
  8. package/dist/cjs/departmentTrainingPlans.js.map +1 -1
  9. package/dist/cjs/integration.d.ts +2 -2
  10. package/dist/cjs/integration.d.ts.map +1 -1
  11. package/dist/cjs/integration.js +1 -1
  12. package/dist/cjs/integration.js.map +1 -1
  13. package/dist/cjs/integrationConfiguration.d.ts +2 -2
  14. package/dist/cjs/integrationConfiguration.js +1 -1
  15. package/dist/config.js +63 -0
  16. package/dist/constants.js +94 -0
  17. package/dist/dashboard.js +74 -0
  18. package/dist/departmentTrainingPlans.js +154 -0
  19. package/dist/esm/departmentTrainingPlans.d.ts +4 -4
  20. package/dist/esm/departmentTrainingPlans.js +2 -2
  21. package/dist/esm/departmentTrainingPlans.js.map +1 -1
  22. package/dist/esm/integration.d.ts +2 -2
  23. package/dist/esm/integration.d.ts.map +1 -1
  24. package/dist/esm/integration.js +1 -1
  25. package/dist/esm/integration.js.map +1 -1
  26. package/dist/esm/integrationConfiguration.d.ts +2 -2
  27. package/dist/esm/integrationConfiguration.js +1 -1
  28. package/dist/exports.js +77 -0
  29. package/dist/groups.js +273 -0
  30. package/dist/index.js +77 -0
  31. package/dist/integration.js +319 -0
  32. package/dist/integrationConfiguration.js +86 -0
  33. package/dist/integrations/contentGenerator.js +70 -0
  34. package/dist/learningContent.js +394 -0
  35. package/dist/learningPath.js +205 -0
  36. package/dist/logger.js +57 -0
  37. package/dist/microSkillsQuizes.js +53 -0
  38. package/dist/quotas.js +50 -0
  39. package/dist/role.js +363 -0
  40. package/dist/roleTemplate.js +236 -0
  41. package/dist/security.js +79 -0
  42. package/dist/skill.js +439 -0
  43. package/dist/skillAssessmentTestingSession.js +156 -0
  44. package/dist/skillAssessments.js +156 -0
  45. package/dist/skillTemplate.js +281 -0
  46. package/dist/talentTransfromation.js +100 -0
  47. package/dist/teams.js +252 -0
  48. package/dist/tenants.js +52 -0
  49. package/dist/trainingPlans.js +308 -0
  50. package/dist/trainingPlansProficiencyLevels.js +98 -0
  51. package/dist/userInformation.js +81 -0
  52. package/dist/users.js +694 -0
  53. package/dist/utils.js +65 -0
  54. package/package.json +1 -1
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const axiosClient_1 = require("./axiosClient");
4
+ /**
5
+ * Add an entry to an array type business property such as experience, education or certifications
6
+ * @param {String} userId
7
+ * @param {String} property
8
+ * @param {Object} data
9
+ * @param {String} token Authorization token
10
+ * @returns {Promise<Object>}
11
+ */
12
+ const addEntryToArrayBusinessProperty = (userId, property, data, token) => {
13
+ return new Promise((resolve, reject) => {
14
+ const requestData = {
15
+ data: data,
16
+ };
17
+ let confirmationRequest = axiosClient_1.client.post(`api/v1/user/arrayproperty/${userId}/${property}`, requestData, {
18
+ headers: { authorization: token },
19
+ });
20
+ confirmationRequest
21
+ .then((response) => {
22
+ resolve(response.data);
23
+ })
24
+ .catch((error) => {
25
+ reject(error);
26
+ });
27
+ });
28
+ };
29
+ /**
30
+ * Remove an entry from an array type business property such as experience, education or certifications
31
+ * @param {String} userId
32
+ * @param {String} property
33
+ * @param {String} id
34
+ * @param {String} token Authorization token
35
+ * @returns {Promise<Object>}
36
+ */
37
+ const removeEntryFromArrayBusinessProperty = (userId, property, id, token) => {
38
+ return new Promise((resolve, reject) => {
39
+ const confirmationRequest = axiosClient_1.client.delete(`api/v1/user/arrayproperty/${userId}/${property}/${id}`, {
40
+ headers: { authorization: token },
41
+ });
42
+ confirmationRequest
43
+ .then((response) => {
44
+ resolve(response.data);
45
+ })
46
+ .catch((error) => {
47
+ reject(error);
48
+ });
49
+ });
50
+ };
51
+ /**
52
+ * Update an entry from an array type business property such as experience, education or certifications
53
+ * @param {String} userId
54
+ * @param {String} property
55
+ * @param {String} id
56
+ * @param {Object} data
57
+ * @param {String} token Authorization token
58
+ * @returns {Promise<Object>}
59
+ */
60
+ const updateEntryfromArrayBusinessProperty = (userId, property, id, data, token) => {
61
+ return new Promise((resolve, reject) => {
62
+ const requestData = {
63
+ data: data,
64
+ };
65
+ let confirmationRequest = axiosClient_1.client.patch(`api/v1/user/arrayproperty/${userId}/${property}/${id}`, requestData, {
66
+ headers: { authorization: token },
67
+ });
68
+ confirmationRequest
69
+ .then((response) => {
70
+ resolve(response.data);
71
+ })
72
+ .catch((error) => {
73
+ reject(error);
74
+ });
75
+ });
76
+ };
77
+ exports.default = {
78
+ addEntryToArrayBusinessProperty,
79
+ removeEntryFromArrayBusinessProperty,
80
+ updateEntryfromArrayBusinessProperty,
81
+ };