@stackfactor/client-api 1.1.140 → 1.1.143
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.
- package/dist/cjs/actionNotifications.d.ts +24 -0
- package/dist/cjs/actionNotifications.d.ts.map +1 -0
- package/dist/cjs/actionNotifications.js +73 -0
- package/dist/cjs/actionNotifications.js.map +1 -0
- package/dist/cjs/address.d.ts +8 -0
- package/dist/cjs/address.d.ts.map +1 -0
- package/dist/cjs/address.js +24 -0
- package/dist/cjs/address.js.map +1 -0
- package/dist/cjs/aiAssistant.d.ts +42 -0
- package/dist/cjs/aiAssistant.d.ts.map +1 -0
- package/dist/cjs/aiAssistant.js +135 -0
- package/dist/cjs/aiAssistant.js.map +1 -0
- package/dist/cjs/avatar.d.ts +11 -0
- package/dist/cjs/avatar.d.ts.map +1 -0
- package/dist/cjs/avatar.js +32 -0
- package/dist/cjs/avatar.js.map +1 -0
- package/dist/cjs/axiosClient.d.ts +31 -0
- package/dist/cjs/axiosClient.d.ts.map +1 -0
- package/dist/cjs/axiosClient.js +123 -0
- package/dist/cjs/axiosClient.js.map +1 -0
- package/dist/cjs/config.d.ts +23 -0
- package/dist/cjs/config.d.ts.map +1 -0
- package/dist/cjs/config.js +63 -0
- package/dist/cjs/config.js.map +1 -0
- package/dist/cjs/constants.d.ts +69 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +91 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/dashboard.d.ts +23 -0
- package/dist/cjs/dashboard.d.ts.map +1 -0
- package/dist/cjs/dashboard.js +74 -0
- package/dist/cjs/dashboard.js.map +1 -0
- package/dist/cjs/departmentTrainingPlans.d.ts +53 -0
- package/dist/cjs/departmentTrainingPlans.d.ts.map +1 -0
- package/dist/cjs/departmentTrainingPlans.js +153 -0
- package/dist/cjs/departmentTrainingPlans.js.map +1 -0
- package/dist/cjs/groups.d.ts +90 -0
- package/dist/cjs/groups.d.ts.map +1 -0
- package/dist/cjs/groups.js +273 -0
- package/dist/cjs/groups.js.map +1 -0
- package/{src/lib/index.ts → dist/cjs/index.d.ts} +3 -13
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +77 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/integration.d.ts +82 -0
- package/dist/cjs/integration.d.ts.map +1 -0
- package/dist/cjs/integration.js +316 -0
- package/dist/cjs/integration.js.map +1 -0
- package/dist/cjs/integrationConfiguration.d.ts +27 -0
- package/dist/cjs/integrationConfiguration.d.ts.map +1 -0
- package/dist/cjs/integrationConfiguration.js +86 -0
- package/dist/cjs/integrationConfiguration.js.map +1 -0
- package/dist/cjs/integrations/contentGenerator.d.ts +22 -0
- package/dist/cjs/integrations/contentGenerator.d.ts.map +1 -0
- package/dist/cjs/integrations/contentGenerator.js +69 -0
- package/dist/cjs/integrations/contentGenerator.js.map +1 -0
- package/dist/cjs/learningContent.d.ts +122 -0
- package/dist/cjs/learningContent.d.ts.map +1 -0
- package/dist/cjs/learningContent.js +394 -0
- package/dist/cjs/learningContent.js.map +1 -0
- package/dist/cjs/learningPath.d.ts +64 -0
- package/dist/cjs/learningPath.d.ts.map +1 -0
- package/dist/cjs/learningPath.js +205 -0
- package/dist/cjs/learningPath.js.map +1 -0
- package/dist/cjs/logger.d.ts +19 -0
- package/dist/cjs/logger.d.ts.map +1 -0
- package/dist/cjs/logger.js +60 -0
- package/dist/cjs/logger.js.map +1 -0
- package/dist/cjs/microSkillsQuizes.d.ts +18 -0
- package/dist/cjs/microSkillsQuizes.d.ts.map +1 -0
- package/dist/cjs/microSkillsQuizes.js +53 -0
- package/dist/cjs/microSkillsQuizes.js.map +1 -0
- package/dist/cjs/quotas.d.ts +15 -0
- package/dist/cjs/quotas.d.ts.map +1 -0
- package/dist/cjs/quotas.js +50 -0
- package/dist/cjs/quotas.js.map +1 -0
- package/dist/cjs/role.d.ts +113 -0
- package/dist/cjs/role.d.ts.map +1 -0
- package/dist/cjs/role.js +363 -0
- package/dist/cjs/role.js.map +1 -0
- package/dist/cjs/roleTemplate.d.ts +73 -0
- package/dist/cjs/roleTemplate.d.ts.map +1 -0
- package/dist/cjs/roleTemplate.js +236 -0
- package/dist/cjs/roleTemplate.js.map +1 -0
- package/dist/cjs/security.d.ts +27 -0
- package/dist/cjs/security.d.ts.map +1 -0
- package/dist/cjs/security.js +79 -0
- package/dist/cjs/security.js.map +1 -0
- package/dist/cjs/skill.d.ts +141 -0
- package/dist/cjs/skill.d.ts.map +1 -0
- package/dist/cjs/skill.js +440 -0
- package/dist/cjs/skill.js.map +1 -0
- package/dist/cjs/skillAssessmentTestingSession.d.ts +49 -0
- package/dist/cjs/skillAssessmentTestingSession.d.ts.map +1 -0
- package/dist/cjs/skillAssessmentTestingSession.js +156 -0
- package/dist/cjs/skillAssessmentTestingSession.js.map +1 -0
- package/dist/cjs/skillAssessments.d.ts +49 -0
- package/dist/cjs/skillAssessments.d.ts.map +1 -0
- package/dist/cjs/skillAssessments.js +156 -0
- package/dist/cjs/skillAssessments.js.map +1 -0
- package/dist/cjs/skillTemplate.d.ts +87 -0
- package/dist/cjs/skillTemplate.d.ts.map +1 -0
- package/dist/cjs/skillTemplate.js +281 -0
- package/dist/cjs/skillTemplate.js.map +1 -0
- package/dist/cjs/talentTransfromation.d.ts +29 -0
- package/dist/cjs/talentTransfromation.d.ts.map +1 -0
- package/dist/cjs/talentTransfromation.js +100 -0
- package/dist/cjs/talentTransfromation.js.map +1 -0
- package/dist/cjs/teams.d.ts +85 -0
- package/dist/cjs/teams.d.ts.map +1 -0
- package/dist/cjs/teams.js +252 -0
- package/dist/cjs/teams.js.map +1 -0
- package/dist/cjs/tenants.d.ts +16 -0
- package/dist/cjs/tenants.d.ts.map +1 -0
- package/dist/cjs/tenants.js +55 -0
- package/dist/cjs/tenants.js.map +1 -0
- package/dist/cjs/trainingPlans.d.ts +92 -0
- package/dist/cjs/trainingPlans.d.ts.map +1 -0
- package/dist/cjs/trainingPlans.js +309 -0
- package/dist/cjs/trainingPlans.js.map +1 -0
- package/dist/cjs/trainingPlansProficiencyLevels.d.ts +32 -0
- package/dist/cjs/trainingPlansProficiencyLevels.d.ts.map +1 -0
- package/dist/cjs/trainingPlansProficiencyLevels.js +97 -0
- package/dist/cjs/trainingPlansProficiencyLevels.js.map +1 -0
- package/dist/cjs/userInformation.d.ts +29 -0
- package/dist/cjs/userInformation.d.ts.map +1 -0
- package/dist/cjs/userInformation.js +81 -0
- package/dist/cjs/userInformation.js.map +1 -0
- package/dist/cjs/users.d.ts +206 -0
- package/dist/cjs/users.d.ts.map +1 -0
- package/dist/cjs/users.js +694 -0
- package/dist/cjs/users.js.map +1 -0
- package/dist/cjs/utils.d.ts +14 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +58 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/esm/actionNotifications.d.ts +24 -0
- package/dist/esm/actionNotifications.d.ts.map +1 -0
- package/dist/esm/actionNotifications.js +67 -0
- package/dist/esm/actionNotifications.js.map +1 -0
- package/dist/esm/address.d.ts +8 -0
- package/dist/esm/address.d.ts.map +1 -0
- package/dist/esm/address.js +20 -0
- package/dist/esm/address.js.map +1 -0
- package/dist/esm/aiAssistant.d.ts +42 -0
- package/dist/esm/aiAssistant.d.ts.map +1 -0
- package/dist/esm/aiAssistant.js +126 -0
- package/dist/esm/aiAssistant.js.map +1 -0
- package/dist/esm/avatar.d.ts +11 -0
- package/dist/esm/avatar.d.ts.map +1 -0
- package/dist/esm/avatar.js +28 -0
- package/dist/esm/avatar.js.map +1 -0
- package/dist/esm/axiosClient.d.ts +31 -0
- package/dist/esm/axiosClient.d.ts.map +1 -0
- package/dist/esm/axiosClient.js +78 -0
- package/dist/esm/axiosClient.js.map +1 -0
- package/dist/esm/config.d.ts +23 -0
- package/dist/esm/config.d.ts.map +1 -0
- package/dist/esm/config.js +57 -0
- package/dist/esm/config.js.map +1 -0
- package/dist/esm/constants.d.ts +69 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +88 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/dashboard.d.ts +23 -0
- package/dist/esm/dashboard.d.ts.map +1 -0
- package/dist/esm/dashboard.js +68 -0
- package/dist/esm/dashboard.js.map +1 -0
- package/dist/esm/departmentTrainingPlans.d.ts +53 -0
- package/dist/esm/departmentTrainingPlans.d.ts.map +1 -0
- package/dist/esm/departmentTrainingPlans.js +144 -0
- package/dist/esm/departmentTrainingPlans.js.map +1 -0
- package/dist/esm/groups.d.ts +90 -0
- package/dist/esm/groups.d.ts.map +1 -0
- package/dist/esm/groups.js +258 -0
- package/dist/esm/groups.js.map +1 -0
- package/dist/esm/index.d.ts +33 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +33 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/integration.d.ts +82 -0
- package/dist/esm/integration.d.ts.map +1 -0
- package/dist/esm/integration.js +299 -0
- package/dist/esm/integration.js.map +1 -0
- package/dist/esm/integrationConfiguration.d.ts +27 -0
- package/dist/esm/integrationConfiguration.d.ts.map +1 -0
- package/dist/esm/integrationConfiguration.js +80 -0
- package/dist/esm/integrationConfiguration.js.map +1 -0
- package/dist/esm/integrations/contentGenerator.d.ts +22 -0
- package/dist/esm/integrations/contentGenerator.d.ts.map +1 -0
- package/dist/esm/integrations/contentGenerator.js +64 -0
- package/dist/esm/integrations/contentGenerator.js.map +1 -0
- package/dist/esm/learningContent.d.ts +122 -0
- package/dist/esm/learningContent.d.ts.map +1 -0
- package/dist/esm/learningContent.js +376 -0
- package/dist/esm/learningContent.js.map +1 -0
- package/dist/esm/learningPath.d.ts +64 -0
- package/dist/esm/learningPath.d.ts.map +1 -0
- package/dist/esm/learningPath.js +194 -0
- package/dist/esm/learningPath.js.map +1 -0
- package/dist/esm/logger.d.ts +19 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +55 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/microSkillsQuizes.d.ts +18 -0
- package/dist/esm/microSkillsQuizes.d.ts.map +1 -0
- package/dist/esm/microSkillsQuizes.js +48 -0
- package/dist/esm/microSkillsQuizes.js.map +1 -0
- package/dist/esm/quotas.d.ts +15 -0
- package/dist/esm/quotas.d.ts.map +1 -0
- package/dist/esm/quotas.js +45 -0
- package/dist/esm/quotas.js.map +1 -0
- package/dist/esm/role.d.ts +113 -0
- package/dist/esm/role.d.ts.map +1 -0
- package/dist/esm/role.js +346 -0
- package/dist/esm/role.js.map +1 -0
- package/dist/esm/roleTemplate.d.ts +73 -0
- package/dist/esm/roleTemplate.d.ts.map +1 -0
- package/dist/esm/roleTemplate.js +224 -0
- package/dist/esm/roleTemplate.js.map +1 -0
- package/dist/esm/security.d.ts +27 -0
- package/dist/esm/security.d.ts.map +1 -0
- package/dist/esm/security.js +72 -0
- package/dist/esm/security.js.map +1 -0
- package/dist/esm/skill.d.ts +141 -0
- package/dist/esm/skill.d.ts.map +1 -0
- package/dist/esm/skill.js +418 -0
- package/dist/esm/skill.js.map +1 -0
- package/dist/esm/skillAssessmentTestingSession.d.ts +49 -0
- package/dist/esm/skillAssessmentTestingSession.d.ts.map +1 -0
- package/dist/esm/skillAssessmentTestingSession.js +147 -0
- package/dist/esm/skillAssessmentTestingSession.js.map +1 -0
- package/dist/esm/skillAssessments.d.ts +49 -0
- package/dist/esm/skillAssessments.d.ts.map +1 -0
- package/dist/esm/skillAssessments.js +147 -0
- package/dist/esm/skillAssessments.js.map +1 -0
- package/dist/esm/skillTemplate.d.ts +87 -0
- package/dist/esm/skillTemplate.d.ts.map +1 -0
- package/dist/esm/skillTemplate.js +267 -0
- package/dist/esm/skillTemplate.js.map +1 -0
- package/dist/esm/talentTransfromation.d.ts +29 -0
- package/dist/esm/talentTransfromation.d.ts.map +1 -0
- package/dist/esm/talentTransfromation.js +93 -0
- package/dist/esm/talentTransfromation.js.map +1 -0
- package/dist/esm/teams.d.ts +85 -0
- package/dist/esm/teams.d.ts.map +1 -0
- package/dist/esm/teams.js +238 -0
- package/dist/esm/teams.js.map +1 -0
- package/dist/esm/tenants.d.ts +16 -0
- package/dist/esm/tenants.d.ts.map +1 -0
- package/dist/esm/tenants.js +50 -0
- package/dist/esm/tenants.js.map +1 -0
- package/dist/esm/trainingPlans.d.ts +92 -0
- package/dist/esm/trainingPlans.d.ts.map +1 -0
- package/dist/esm/trainingPlans.js +293 -0
- package/dist/esm/trainingPlans.js.map +1 -0
- package/dist/esm/trainingPlansProficiencyLevels.d.ts +32 -0
- package/dist/esm/trainingPlansProficiencyLevels.d.ts.map +1 -0
- package/dist/esm/trainingPlansProficiencyLevels.js +90 -0
- package/dist/esm/trainingPlansProficiencyLevels.js.map +1 -0
- package/dist/esm/userInformation.d.ts +29 -0
- package/dist/esm/userInformation.d.ts.map +1 -0
- package/dist/esm/userInformation.js +75 -0
- package/dist/esm/userInformation.js.map +1 -0
- package/dist/esm/users.d.ts +206 -0
- package/dist/esm/users.d.ts.map +1 -0
- package/dist/esm/users.js +663 -0
- package/dist/esm/users.js.map +1 -0
- package/dist/esm/utils.d.ts +14 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +50 -0
- package/dist/esm/utils.js.map +1 -0
- package/package.json +9 -2
- package/. npmignore +0 -11
- package/.eslintrc.json +0 -14
- package/src/lib/actionNotifications.ts +0 -87
- package/src/lib/address.ts +0 -25
- package/src/lib/aiAssistant.ts +0 -190
- package/src/lib/avatar.ts +0 -38
- package/src/lib/axiosClient.ts +0 -97
- package/src/lib/config.ts +0 -80
- package/src/lib/constants.ts +0 -90
- package/src/lib/dashboard.ts +0 -83
- package/src/lib/departmentTrainingPlans.ts +0 -197
- package/src/lib/groups.ts +0 -327
- package/src/lib/integration.ts +0 -395
- package/src/lib/integrationConfiguration.ts +0 -108
- package/src/lib/integrations/contentGenerator.ts +0 -97
- package/src/lib/learningContent.ts +0 -522
- package/src/lib/learningPath.ts +0 -237
- package/src/lib/logger.ts +0 -69
- package/src/lib/microSkillsQuizes.ts +0 -66
- package/src/lib/quotas.ts +0 -55
- package/src/lib/role.ts +0 -438
- package/src/lib/roleTemplate.ts +0 -282
- package/src/lib/security.ts +0 -93
- package/src/lib/skill.ts +0 -532
- package/src/lib/skillAssessmentTestingSession.ts +0 -184
- package/src/lib/skillAssessments.ts +0 -184
- package/src/lib/skillTemplate.ts +0 -336
- package/src/lib/talentTransfromation.ts +0 -120
- package/src/lib/teams.ts +0 -316
- package/src/lib/tenants.ts +0 -63
- package/src/lib/trainingPlans.ts +0 -368
- package/src/lib/trainingPlansProficiencyLevels.ts +0 -124
- package/src/lib/userInformation.ts +0 -105
- package/src/lib/users.ts +0 -764
- package/src/lib/utils.ts +0 -51
- package/tsconfig.cjs.json +0 -9
- package/tsconfig.esm.json +0 -9
- package/tsconfig.json +0 -23
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { AxiosError, AxiosResponse } from "axios";
|
|
2
|
-
import { client } from "./axiosClient";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Add new entry skill assessment
|
|
6
|
-
* @param {String} id
|
|
7
|
-
* @param {Object} data
|
|
8
|
-
* @param {String} comments
|
|
9
|
-
* @param {String} token Authorization token
|
|
10
|
-
* @returns {Promise<object>}
|
|
11
|
-
*/
|
|
12
|
-
export const addEntry = (
|
|
13
|
-
id: string,
|
|
14
|
-
data: object,
|
|
15
|
-
comments: string,
|
|
16
|
-
token: string
|
|
17
|
-
): Promise<object> => {
|
|
18
|
-
return new Promise((resolve, reject) => {
|
|
19
|
-
const requestData = {
|
|
20
|
-
comments: comments,
|
|
21
|
-
data: data,
|
|
22
|
-
id: id,
|
|
23
|
-
};
|
|
24
|
-
const confirmationRequest = client.put(
|
|
25
|
-
"api/v1/skillassessments/addentry",
|
|
26
|
-
requestData,
|
|
27
|
-
{
|
|
28
|
-
headers: { authorization: token },
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
confirmationRequest
|
|
32
|
-
.then((response : AxiosResponse) => {
|
|
33
|
-
resolve(response.data);
|
|
34
|
-
})
|
|
35
|
-
.catch((error : AxiosError) => {
|
|
36
|
-
reject(error);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Create skill assessment
|
|
43
|
-
* @param {Object} data
|
|
44
|
-
* @param {String} comments
|
|
45
|
-
* @param {String} userId
|
|
46
|
-
* @param {String} token Authorization token
|
|
47
|
-
* @returns {Promise<object>}
|
|
48
|
-
*/
|
|
49
|
-
export const create = (
|
|
50
|
-
data: object,
|
|
51
|
-
comments: string,
|
|
52
|
-
userId: string,
|
|
53
|
-
token: string
|
|
54
|
-
): Promise<object> => {
|
|
55
|
-
return new Promise((resolve, reject) => {
|
|
56
|
-
const requestData = {
|
|
57
|
-
comments: comments,
|
|
58
|
-
data: data,
|
|
59
|
-
userId: userId,
|
|
60
|
-
};
|
|
61
|
-
const confirmationRequest = client.put(
|
|
62
|
-
"api/v1/skillassessments/",
|
|
63
|
-
requestData,
|
|
64
|
-
{
|
|
65
|
-
headers: { authorization: token },
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
confirmationRequest
|
|
69
|
-
.then((response : AxiosResponse) => {
|
|
70
|
-
resolve(response.data);
|
|
71
|
-
})
|
|
72
|
-
.catch((error : AxiosError) => {
|
|
73
|
-
reject(error);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Delete skill assessment
|
|
80
|
-
* @param {number} id The id of the skill to be deleted
|
|
81
|
-
* @param {String} comments The comments included with the deletion
|
|
82
|
-
* @param {String} token Authorization token
|
|
83
|
-
* @returns {Promise<object>}
|
|
84
|
-
*/
|
|
85
|
-
export const deleteSkillAssessment = (
|
|
86
|
-
id: number,
|
|
87
|
-
comments: string,
|
|
88
|
-
token: string
|
|
89
|
-
): Promise<object> => {
|
|
90
|
-
return new Promise((resolve, reject) => {
|
|
91
|
-
const data: { id: number, comments?: string } = {
|
|
92
|
-
id: id,
|
|
93
|
-
};
|
|
94
|
-
if (comments) data.comments = comments;
|
|
95
|
-
const request = client.delete(`api/v1/skillassessments`, {
|
|
96
|
-
headers: { authorization: token },
|
|
97
|
-
data: data,
|
|
98
|
-
});
|
|
99
|
-
request
|
|
100
|
-
.then((response : AxiosResponse) => {
|
|
101
|
-
resolve(response.data);
|
|
102
|
-
})
|
|
103
|
-
.catch((error : AxiosError) => {
|
|
104
|
-
reject(error);
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Get skill assessment by id
|
|
111
|
-
* @param {String} id
|
|
112
|
-
* @param {String} token
|
|
113
|
-
* @returns {Promise<object>}
|
|
114
|
-
*/
|
|
115
|
-
export const getById = (id: string, token: string): Promise<object> => {
|
|
116
|
-
return new Promise((resolve, reject) => {
|
|
117
|
-
const confirmationRequest = client.get(`api/v1/skillassessments/${id}`, {
|
|
118
|
-
headers: { authorization: token },
|
|
119
|
-
});
|
|
120
|
-
confirmationRequest
|
|
121
|
-
.then((response : AxiosResponse) => {
|
|
122
|
-
resolve(response.data);
|
|
123
|
-
})
|
|
124
|
-
.catch((error : AxiosError) => {
|
|
125
|
-
reject(error);
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Get skill assessment by user and skill
|
|
132
|
-
* @param {String} userId
|
|
133
|
-
* @param {String} skillId
|
|
134
|
-
* @param {String} token
|
|
135
|
-
* @returns {Promise<object>} The skill assessment
|
|
136
|
-
*/
|
|
137
|
-
export const getByUserAndSkill = (
|
|
138
|
-
userId: string,
|
|
139
|
-
skillId: string,
|
|
140
|
-
token: string
|
|
141
|
-
): Promise<object> => {
|
|
142
|
-
return new Promise((resolve, reject) => {
|
|
143
|
-
const confirmationRequest = client.get(
|
|
144
|
-
`api/v1/skillassessments/getbyuserandskill/${userId}/${skillId}`,
|
|
145
|
-
{
|
|
146
|
-
headers: { authorization: token },
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
confirmationRequest
|
|
150
|
-
.then((response : AxiosResponse) => {
|
|
151
|
-
resolve(response.data);
|
|
152
|
-
})
|
|
153
|
-
.catch((error : AxiosError) => {
|
|
154
|
-
reject(error);
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Get list
|
|
161
|
-
* @param {String} userId The user used to select the skill
|
|
162
|
-
* @param {String} token Authorization token
|
|
163
|
-
* @returns {Promise<object>}
|
|
164
|
-
*/
|
|
165
|
-
export const getList = (userId: string, token: string): Promise<object> => {
|
|
166
|
-
return new Promise((resolve, reject) => {
|
|
167
|
-
const requestData: { userId?: string } = {};
|
|
168
|
-
if (userId) requestData.userId = userId;
|
|
169
|
-
const confirmationRequest = client.post(
|
|
170
|
-
`api/v1/skillassessments`,
|
|
171
|
-
requestData,
|
|
172
|
-
{
|
|
173
|
-
headers: { authorization: token },
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
confirmationRequest
|
|
177
|
-
.then((response : AxiosResponse) => {
|
|
178
|
-
resolve(response.data);
|
|
179
|
-
})
|
|
180
|
-
.catch((error : AxiosError) => {
|
|
181
|
-
reject(error);
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
};
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { AxiosError, AxiosResponse } from "axios";
|
|
2
|
-
import { client } from "./axiosClient";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Add new entry skill assessment
|
|
6
|
-
* @param {String} id
|
|
7
|
-
* @param {Object} data
|
|
8
|
-
* @param {String} comments
|
|
9
|
-
* @param {String} token Authorization token
|
|
10
|
-
* @returns {Promise<object>}
|
|
11
|
-
*/
|
|
12
|
-
export const addEntry = (
|
|
13
|
-
id: string,
|
|
14
|
-
data: object,
|
|
15
|
-
comments: string,
|
|
16
|
-
token: string
|
|
17
|
-
): Promise<object> => {
|
|
18
|
-
return new Promise((resolve, reject) => {
|
|
19
|
-
const requestData = {
|
|
20
|
-
comments: comments,
|
|
21
|
-
data: data,
|
|
22
|
-
id: id,
|
|
23
|
-
};
|
|
24
|
-
const confirmationRequest = client.put(
|
|
25
|
-
"api/v1/skillassessments/addentry",
|
|
26
|
-
requestData,
|
|
27
|
-
{
|
|
28
|
-
headers: { authorization: token },
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
confirmationRequest
|
|
32
|
-
.then((response : AxiosResponse) => {
|
|
33
|
-
resolve(response.data);
|
|
34
|
-
})
|
|
35
|
-
.catch((error : AxiosError) => {
|
|
36
|
-
reject(error);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Create skill assessment
|
|
43
|
-
* @param {Object} data
|
|
44
|
-
* @param {String} comments
|
|
45
|
-
* @param {String} userId
|
|
46
|
-
* @param {String} token Authorization token
|
|
47
|
-
* @returns {Promise<object>}
|
|
48
|
-
*/
|
|
49
|
-
export const create = (
|
|
50
|
-
data: object,
|
|
51
|
-
comments: string,
|
|
52
|
-
userId: string,
|
|
53
|
-
token: string
|
|
54
|
-
): Promise<object> => {
|
|
55
|
-
return new Promise((resolve, reject) => {
|
|
56
|
-
const requestData = {
|
|
57
|
-
comments: comments,
|
|
58
|
-
data: data,
|
|
59
|
-
userId: userId,
|
|
60
|
-
};
|
|
61
|
-
const confirmationRequest = client.put(
|
|
62
|
-
"api/v1/skillassessments/",
|
|
63
|
-
requestData,
|
|
64
|
-
{
|
|
65
|
-
headers: { authorization: token },
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
confirmationRequest
|
|
69
|
-
.then((response : AxiosResponse) => {
|
|
70
|
-
resolve(response.data);
|
|
71
|
-
})
|
|
72
|
-
.catch((error : AxiosError) => {
|
|
73
|
-
reject(error);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Delete skill assessment
|
|
80
|
-
* @param {number} id The id of the skill to be deleted
|
|
81
|
-
* @param {String} comments The comments included with the deletion
|
|
82
|
-
* @param {String} token Authorization token
|
|
83
|
-
* @returns {Promise<object>}
|
|
84
|
-
*/
|
|
85
|
-
export const deleteSkillAssessment = (
|
|
86
|
-
id: number,
|
|
87
|
-
comments: string,
|
|
88
|
-
token: string
|
|
89
|
-
): Promise<object> => {
|
|
90
|
-
return new Promise((resolve, reject) => {
|
|
91
|
-
const data: { id: number, comments?: string } = {
|
|
92
|
-
id: id,
|
|
93
|
-
};
|
|
94
|
-
if (comments) data.comments = comments;
|
|
95
|
-
const request = client.delete(`api/v1/skillassessments`, {
|
|
96
|
-
headers: { authorization: token },
|
|
97
|
-
data: data,
|
|
98
|
-
});
|
|
99
|
-
request
|
|
100
|
-
.then((response : AxiosResponse) => {
|
|
101
|
-
resolve(response.data);
|
|
102
|
-
})
|
|
103
|
-
.catch((error : AxiosError) => {
|
|
104
|
-
reject(error);
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Get skill assessment by id
|
|
111
|
-
* @param {String} id
|
|
112
|
-
* @param {String} token
|
|
113
|
-
* @returns {Promise<object>}
|
|
114
|
-
*/
|
|
115
|
-
export const getById = (id: string, token: string): Promise<object> => {
|
|
116
|
-
return new Promise((resolve, reject) => {
|
|
117
|
-
const confirmationRequest = client.get(`api/v1/skillassessments/${id}`, {
|
|
118
|
-
headers: { authorization: token },
|
|
119
|
-
});
|
|
120
|
-
confirmationRequest
|
|
121
|
-
.then((response : AxiosResponse) => {
|
|
122
|
-
resolve(response.data);
|
|
123
|
-
})
|
|
124
|
-
.catch((error : AxiosError) => {
|
|
125
|
-
reject(error);
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Get skill assessment by user and skill
|
|
132
|
-
* @param {String} userId
|
|
133
|
-
* @param {String} skillId
|
|
134
|
-
* @param {String} token
|
|
135
|
-
* @returns {Promise<object>} The skill assessment
|
|
136
|
-
*/
|
|
137
|
-
export const getByUserAndSkill = (
|
|
138
|
-
userId: string,
|
|
139
|
-
skillId: string,
|
|
140
|
-
token: string
|
|
141
|
-
): Promise<object> => {
|
|
142
|
-
return new Promise((resolve, reject) => {
|
|
143
|
-
const confirmationRequest = client.get(
|
|
144
|
-
`api/v1/skillassessments/getbyuserandskill/${userId}/${skillId}`,
|
|
145
|
-
{
|
|
146
|
-
headers: { authorization: token },
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
confirmationRequest
|
|
150
|
-
.then((response : AxiosResponse) => {
|
|
151
|
-
resolve(response.data);
|
|
152
|
-
})
|
|
153
|
-
.catch((error : AxiosError) => {
|
|
154
|
-
reject(error);
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Get list
|
|
161
|
-
* @param {String} userId The user used to select the skill
|
|
162
|
-
* @param {String} token Authorization token
|
|
163
|
-
* @returns {Promise<object>}
|
|
164
|
-
*/
|
|
165
|
-
export const getList = (userId: string, token: string): Promise<object> => {
|
|
166
|
-
return new Promise((resolve, reject) => {
|
|
167
|
-
const requestData: { userId?: string } = {};
|
|
168
|
-
if (userId) requestData.userId = userId;
|
|
169
|
-
const confirmationRequest = client.post(
|
|
170
|
-
`api/v1/skillassessments`,
|
|
171
|
-
requestData,
|
|
172
|
-
{
|
|
173
|
-
headers: { authorization: token },
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
confirmationRequest
|
|
177
|
-
.then((response : AxiosResponse) => {
|
|
178
|
-
resolve(response.data);
|
|
179
|
-
})
|
|
180
|
-
.catch((error : AxiosError) => {
|
|
181
|
-
reject(error);
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
};
|
package/src/lib/skillTemplate.ts
DELETED
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
import { AxiosError, AxiosResponse } from "axios";
|
|
2
|
-
import { client } from "./axiosClient";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Create skill template and set information
|
|
6
|
-
* @param {Object} data
|
|
7
|
-
* @param {String} token Authorization token
|
|
8
|
-
* @returns {Promise<object>}
|
|
9
|
-
*/
|
|
10
|
-
export const createSkillTemplate = (data: object, token: string): Promise<object> => {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
const requestData = {
|
|
13
|
-
data: data,
|
|
14
|
-
};
|
|
15
|
-
const confirmationRequest = client.put("api/v1/skilltemplates", requestData, {
|
|
16
|
-
headers: { authorization: token },
|
|
17
|
-
});
|
|
18
|
-
confirmationRequest
|
|
19
|
-
.then((response : AxiosResponse) => {
|
|
20
|
-
resolve(response.data);
|
|
21
|
-
})
|
|
22
|
-
.catch((error : AxiosError) => {
|
|
23
|
-
reject(error);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Delete skill template
|
|
30
|
-
* @param {number} id The id of the template to be deleted
|
|
31
|
-
* @param {String} comments The comments included with the deletion
|
|
32
|
-
* @param {String} token Authorization token
|
|
33
|
-
* @returns {Promise<object>}
|
|
34
|
-
*/
|
|
35
|
-
export const deleteSkillTemplate = (
|
|
36
|
-
id: number,
|
|
37
|
-
comments: string,
|
|
38
|
-
token: string
|
|
39
|
-
): Promise<object> => {
|
|
40
|
-
const data: { id: number; comments?: string } = {
|
|
41
|
-
id: id,
|
|
42
|
-
};
|
|
43
|
-
if (comments) data.comments = comments;
|
|
44
|
-
return new Promise((resolve, reject) => {
|
|
45
|
-
const request = client.delete(`api/v1/skilltemplates/`, {
|
|
46
|
-
headers: { authorization: token },
|
|
47
|
-
data: data,
|
|
48
|
-
});
|
|
49
|
-
request
|
|
50
|
-
.then((response : AxiosResponse) => {
|
|
51
|
-
resolve(response.data);
|
|
52
|
-
})
|
|
53
|
-
.catch((error : AxiosError) => {
|
|
54
|
-
reject(error);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Discard the skill template draft changes
|
|
61
|
-
* @param {String} id The id of the skill template to be deleted
|
|
62
|
-
* @param {String} token Authorization token
|
|
63
|
-
* @returns {Promise<object>}
|
|
64
|
-
*/
|
|
65
|
-
export const discardSkillTemplateChanges = (
|
|
66
|
-
id: string,
|
|
67
|
-
token: string
|
|
68
|
-
): Promise<object> => {
|
|
69
|
-
return new Promise((resolve, reject) => {
|
|
70
|
-
const data = {};
|
|
71
|
-
const request = client.get(`api/v1/skilltemplates/discard/${id}`, {
|
|
72
|
-
headers: { authorization: token },
|
|
73
|
-
data: data,
|
|
74
|
-
});
|
|
75
|
-
request
|
|
76
|
-
.then((response : AxiosResponse) => {
|
|
77
|
-
resolve(response.data);
|
|
78
|
-
})
|
|
79
|
-
.catch((error : AxiosError) => {
|
|
80
|
-
reject(error);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Get skill template information
|
|
87
|
-
* @param {String} id The id of the template
|
|
88
|
-
* @param {String} version The version of the template
|
|
89
|
-
* @param {Boolean} returnNullIfVersionNotFound When true it will return null if the version is not found
|
|
90
|
-
* @param {String} token Authorization token
|
|
91
|
-
* @returns {Promise<object>}
|
|
92
|
-
*/
|
|
93
|
-
export const getSkillTemplateInformationById = (
|
|
94
|
-
id: string,
|
|
95
|
-
version: string,
|
|
96
|
-
returnNullIfVersionNotFound: boolean,
|
|
97
|
-
token: string
|
|
98
|
-
): Promise<object> => {
|
|
99
|
-
return new Promise((resolve, reject) => {
|
|
100
|
-
const confirmationRequest = client.get(
|
|
101
|
-
`api/v1/skilltemplates/${id}/${version}/${returnNullIfVersionNotFound}`,
|
|
102
|
-
{
|
|
103
|
-
headers: { authorization: token },
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
confirmationRequest
|
|
107
|
-
.then((response : AxiosResponse) => {
|
|
108
|
-
resolve(response.data);
|
|
109
|
-
})
|
|
110
|
-
.catch((error : AxiosError) => {
|
|
111
|
-
reject(error);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Get skill template list
|
|
118
|
-
* @param {Array<String>} filter The filter used to select the template
|
|
119
|
-
* @param {String} version The version to be retrieved
|
|
120
|
-
* @param {Boolean} includeDeleted When true it will return the deleted records as well
|
|
121
|
-
* @param {Boolean} namesOnly When true it will return only the names of the templates
|
|
122
|
-
* @param {String} token Authorization token
|
|
123
|
-
* @returns {Promise<object>}
|
|
124
|
-
*/
|
|
125
|
-
export const getSkillTemplateList = (
|
|
126
|
-
filter: string[],
|
|
127
|
-
version: string,
|
|
128
|
-
includeDeleted: boolean,
|
|
129
|
-
namesOnly: boolean,
|
|
130
|
-
token: string
|
|
131
|
-
): Promise<object> => {
|
|
132
|
-
return new Promise((resolve, reject) => {
|
|
133
|
-
const requestData: { includeDeleted: boolean; namesOnly: boolean; version: string; filter?: string[] } = {
|
|
134
|
-
includeDeleted: includeDeleted,
|
|
135
|
-
namesOnly: namesOnly,
|
|
136
|
-
version: version,
|
|
137
|
-
};
|
|
138
|
-
if (filter) requestData.filter = filter;
|
|
139
|
-
const confirmationRequest = client.post(
|
|
140
|
-
`api/v1/skilltemplates`,
|
|
141
|
-
requestData,
|
|
142
|
-
{
|
|
143
|
-
headers: { authorization: token },
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
confirmationRequest
|
|
147
|
-
.then((response : AxiosResponse) => {
|
|
148
|
-
resolve(response.data);
|
|
149
|
-
})
|
|
150
|
-
.catch((error : AxiosError) => {
|
|
151
|
-
reject(error);
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Get skill technology stacks template list
|
|
158
|
-
* @param {String} token Authorization token
|
|
159
|
-
* @returns {Promise<object>}
|
|
160
|
-
*/
|
|
161
|
-
export const getTechnologyStacks = (token: string): Promise<object> => {
|
|
162
|
-
return new Promise((resolve, reject) => {
|
|
163
|
-
const confirmationRequest = client.get(`api/v1/skilltemplates/stacks`, {
|
|
164
|
-
headers: { authorization: token },
|
|
165
|
-
});
|
|
166
|
-
confirmationRequest
|
|
167
|
-
.then((response : AxiosResponse) => {
|
|
168
|
-
resolve(response.data);
|
|
169
|
-
})
|
|
170
|
-
.catch((error : AxiosError) => {
|
|
171
|
-
reject(error);
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Publish template
|
|
178
|
-
* @param {number} id The id of the template to be published
|
|
179
|
-
* @param {String} comments The comments to be include with the request
|
|
180
|
-
* @param {String} token Authorization token
|
|
181
|
-
* @returns {Promise<object>}
|
|
182
|
-
*/
|
|
183
|
-
export const publishTemplate = (
|
|
184
|
-
id: number,
|
|
185
|
-
comments: string,
|
|
186
|
-
token: string
|
|
187
|
-
): Promise<object> => {
|
|
188
|
-
return new Promise((resolve, reject) => {
|
|
189
|
-
const data: { comments?: string } = {};
|
|
190
|
-
if (comments) data.comments = comments;
|
|
191
|
-
const confirmationRequest = client.post(
|
|
192
|
-
`api/v1/skilltemplates/publish/${id}`,
|
|
193
|
-
data,
|
|
194
|
-
{
|
|
195
|
-
headers: { authorization: token },
|
|
196
|
-
}
|
|
197
|
-
);
|
|
198
|
-
confirmationRequest
|
|
199
|
-
.then((response : AxiosResponse) => {
|
|
200
|
-
resolve(response.data);
|
|
201
|
-
})
|
|
202
|
-
.catch((error : AxiosError) => {
|
|
203
|
-
reject(error);
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Set template profile information
|
|
210
|
-
* @param {String} id The id of the template to be updated
|
|
211
|
-
* @param {Object} data Data used to update the template
|
|
212
|
-
* @param {String} token Authorization token
|
|
213
|
-
* @returns {Promise<object>}
|
|
214
|
-
*/
|
|
215
|
-
export const setTemplateInformation = (
|
|
216
|
-
id: string,
|
|
217
|
-
data: object,
|
|
218
|
-
token: string
|
|
219
|
-
): Promise<object> => {
|
|
220
|
-
return new Promise((resolve, reject) => {
|
|
221
|
-
const requestData = {
|
|
222
|
-
data: data,
|
|
223
|
-
id: id,
|
|
224
|
-
};
|
|
225
|
-
const confirmationRequest = client.post(
|
|
226
|
-
`api/v1/skilltemplates/update`,
|
|
227
|
-
requestData,
|
|
228
|
-
{
|
|
229
|
-
headers: { authorization: token },
|
|
230
|
-
}
|
|
231
|
-
);
|
|
232
|
-
confirmationRequest
|
|
233
|
-
.then((response : AxiosResponse) => {
|
|
234
|
-
resolve(response.data);
|
|
235
|
-
})
|
|
236
|
-
.catch((error : AxiosError) => {
|
|
237
|
-
reject(error);
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Update the skill template tags
|
|
244
|
-
* @param {String} id The id of the template to be updated
|
|
245
|
-
* @param {Object} tags Updated template tags
|
|
246
|
-
* @param {String} token Authorization token
|
|
247
|
-
* @returns {Promise<object>}
|
|
248
|
-
*/
|
|
249
|
-
export const setTemplateTags = (
|
|
250
|
-
id: string,
|
|
251
|
-
tags: object,
|
|
252
|
-
token: string
|
|
253
|
-
): Promise<object> => {
|
|
254
|
-
return new Promise((resolve, reject) => {
|
|
255
|
-
const requestData = {
|
|
256
|
-
tags: tags,
|
|
257
|
-
id: id,
|
|
258
|
-
};
|
|
259
|
-
const confirmationRequest = client.post(
|
|
260
|
-
`api/v1/skilltemplates/updatetags/`,
|
|
261
|
-
requestData,
|
|
262
|
-
{
|
|
263
|
-
headers: { authorization: token },
|
|
264
|
-
}
|
|
265
|
-
);
|
|
266
|
-
confirmationRequest
|
|
267
|
-
.then((response : AxiosResponse) => {
|
|
268
|
-
resolve(response.data);
|
|
269
|
-
})
|
|
270
|
-
.catch((error : AxiosError) => {
|
|
271
|
-
reject(error);
|
|
272
|
-
});
|
|
273
|
-
});
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Validate skill template information
|
|
278
|
-
* @param {String} id The id of the skill to be updated
|
|
279
|
-
* @param {String} token Authorization token
|
|
280
|
-
* @returns {Promise<object>}
|
|
281
|
-
*/
|
|
282
|
-
export const validateTemplate = (id: string, token: string): Promise<object> => {
|
|
283
|
-
return new Promise((resolve, reject) => {
|
|
284
|
-
const requestData = {
|
|
285
|
-
id: id,
|
|
286
|
-
};
|
|
287
|
-
const confirmationRequest = client.post(
|
|
288
|
-
`api/v1/skilltemplates/validate/`,
|
|
289
|
-
requestData,
|
|
290
|
-
{
|
|
291
|
-
headers: { authorization: token },
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
confirmationRequest
|
|
295
|
-
.then((response : AxiosResponse) => {
|
|
296
|
-
resolve(response.data);
|
|
297
|
-
})
|
|
298
|
-
.catch((error : AxiosError) => {
|
|
299
|
-
reject(error);
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Watch skill template
|
|
306
|
-
* @param {String} id The id of the skill template to be updated
|
|
307
|
-
* @param {Boolean} watch Set to true or false
|
|
308
|
-
* @param {String} token Authorization token
|
|
309
|
-
* @returns {Promise<object>}
|
|
310
|
-
*/
|
|
311
|
-
export const watchSkillTemplate = (
|
|
312
|
-
id: string,
|
|
313
|
-
watch: boolean,
|
|
314
|
-
token: string
|
|
315
|
-
): Promise<object> => {
|
|
316
|
-
return new Promise((resolve, reject) => {
|
|
317
|
-
const requestData = {
|
|
318
|
-
id: id,
|
|
319
|
-
watch: watch,
|
|
320
|
-
};
|
|
321
|
-
const confirmationRequest = client.post(
|
|
322
|
-
`api/v1/skilltemplates/watch`,
|
|
323
|
-
requestData,
|
|
324
|
-
{
|
|
325
|
-
headers: { authorization: token },
|
|
326
|
-
}
|
|
327
|
-
);
|
|
328
|
-
confirmationRequest
|
|
329
|
-
.then((response : AxiosResponse) => {
|
|
330
|
-
resolve(response.data);
|
|
331
|
-
})
|
|
332
|
-
.catch((error : AxiosError) => {
|
|
333
|
-
reject(error);
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
};
|