@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.
- package/dist/actionNotifications.js +73 -0
- package/dist/address.js +22 -0
- package/dist/aiAssistant.js +134 -0
- package/dist/avatar.js +32 -0
- package/dist/axiosClient.js +89 -0
- package/dist/cjs/departmentTrainingPlans.d.ts +4 -4
- package/dist/cjs/departmentTrainingPlans.js +2 -2
- package/dist/cjs/departmentTrainingPlans.js.map +1 -1
- package/dist/cjs/integration.d.ts +2 -2
- package/dist/cjs/integration.d.ts.map +1 -1
- package/dist/cjs/integration.js +1 -1
- package/dist/cjs/integration.js.map +1 -1
- package/dist/cjs/integrationConfiguration.d.ts +2 -2
- package/dist/cjs/integrationConfiguration.js +1 -1
- package/dist/config.js +63 -0
- package/dist/constants.js +94 -0
- package/dist/dashboard.js +74 -0
- package/dist/departmentTrainingPlans.js +154 -0
- package/dist/esm/departmentTrainingPlans.d.ts +4 -4
- package/dist/esm/departmentTrainingPlans.js +2 -2
- package/dist/esm/departmentTrainingPlans.js.map +1 -1
- package/dist/esm/integration.d.ts +2 -2
- package/dist/esm/integration.d.ts.map +1 -1
- package/dist/esm/integration.js +1 -1
- package/dist/esm/integration.js.map +1 -1
- package/dist/esm/integrationConfiguration.d.ts +2 -2
- package/dist/esm/integrationConfiguration.js +1 -1
- package/dist/exports.js +77 -0
- package/dist/groups.js +273 -0
- package/dist/index.js +77 -0
- package/dist/integration.js +319 -0
- package/dist/integrationConfiguration.js +86 -0
- package/dist/integrations/contentGenerator.js +70 -0
- package/dist/learningContent.js +394 -0
- package/dist/learningPath.js +205 -0
- package/dist/logger.js +57 -0
- package/dist/microSkillsQuizes.js +53 -0
- package/dist/quotas.js +50 -0
- package/dist/role.js +363 -0
- package/dist/roleTemplate.js +236 -0
- package/dist/security.js +79 -0
- package/dist/skill.js +439 -0
- package/dist/skillAssessmentTestingSession.js +156 -0
- package/dist/skillAssessments.js +156 -0
- package/dist/skillTemplate.js +281 -0
- package/dist/talentTransfromation.js +100 -0
- package/dist/teams.js +252 -0
- package/dist/tenants.js +52 -0
- package/dist/trainingPlans.js +308 -0
- package/dist/trainingPlansProficiencyLevels.js +98 -0
- package/dist/userInformation.js +81 -0
- package/dist/users.js +694 -0
- package/dist/utils.js +65 -0
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const axiosClient_1 = require("./axiosClient");
|
|
4
|
+
/**
|
|
5
|
+
* Get all permissions
|
|
6
|
+
* @param {String} token The authentication token
|
|
7
|
+
* @returns {Promise<Object>}
|
|
8
|
+
*/
|
|
9
|
+
const getAllUserNotifications = (token) => {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
const request = axiosClient_1.client.get(`api/v1/actionnotifications`, {
|
|
12
|
+
headers: { authorization: token },
|
|
13
|
+
});
|
|
14
|
+
request
|
|
15
|
+
.then((response) => {
|
|
16
|
+
resolve(response.data);
|
|
17
|
+
})
|
|
18
|
+
.catch((error) => {
|
|
19
|
+
reject(error);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Mark notifications as open or viewed
|
|
25
|
+
* @param {Array<String>} ids The id of the notifications to be marked
|
|
26
|
+
* @param {String} status The new status
|
|
27
|
+
* @param {String} authToken The authentication token
|
|
28
|
+
* @returns {Promise<Object>}
|
|
29
|
+
*/
|
|
30
|
+
const markNotifications = (ids, status, authToken) => {
|
|
31
|
+
return new Promise((resolve, reject) => {
|
|
32
|
+
const request = axiosClient_1.client.put(`api/v1/actionnotifications/mark`, {
|
|
33
|
+
ids: ids,
|
|
34
|
+
status: status,
|
|
35
|
+
}, { headers: { authorization: authToken } });
|
|
36
|
+
request
|
|
37
|
+
.then((response) => {
|
|
38
|
+
resolve(response.data);
|
|
39
|
+
})
|
|
40
|
+
.catch((error) => {
|
|
41
|
+
reject(error);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Process a notification
|
|
47
|
+
* @param {String} id The notification id
|
|
48
|
+
* @param {String} action The action to be executed
|
|
49
|
+
* @param {String} comments The comments to be saved in the notification
|
|
50
|
+
* @param {String} authToken The authentication token
|
|
51
|
+
* @returns {Promise<Object>}
|
|
52
|
+
*/
|
|
53
|
+
const processNotification = (id, action, comments, authToken) => {
|
|
54
|
+
return new Promise((resolve, reject) => {
|
|
55
|
+
const request = axiosClient_1.client.put(`api/v1/actionnotifications/process`, {
|
|
56
|
+
id: id,
|
|
57
|
+
action: action,
|
|
58
|
+
comments: comments,
|
|
59
|
+
}, { headers: { authorization: authToken } });
|
|
60
|
+
request
|
|
61
|
+
.then((response) => {
|
|
62
|
+
resolve(response.data);
|
|
63
|
+
})
|
|
64
|
+
.catch((error) => {
|
|
65
|
+
reject(error);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
exports.default = {
|
|
70
|
+
getAllUserNotifications,
|
|
71
|
+
markNotifications,
|
|
72
|
+
processNotification,
|
|
73
|
+
};
|
package/dist/address.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const axiosClient_1 = require("./axiosClient");
|
|
4
|
+
/**
|
|
5
|
+
* Validate Address
|
|
6
|
+
* @param {String} input - the address in raw format
|
|
7
|
+
* @param {String} authToken - Authorization token
|
|
8
|
+
* @returns {Promise<Object>}
|
|
9
|
+
*/
|
|
10
|
+
const autoComplete = (input, authToken) => {
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
const getAddressesRequest = axiosClient_1.client.post(`api/v1/address/autocomplete/`, { input: input }, { headers: { authorization: authToken } });
|
|
13
|
+
getAddressesRequest
|
|
14
|
+
.then((response) => {
|
|
15
|
+
resolve(response.data);
|
|
16
|
+
})
|
|
17
|
+
.catch((error) => {
|
|
18
|
+
reject(error);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
exports.default = { autoComplete };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const axiosClient_1 = require("./axiosClient");
|
|
4
|
+
/**
|
|
5
|
+
* Ask Question to the AI
|
|
6
|
+
* @param {String} conversationId
|
|
7
|
+
* @param {String} question
|
|
8
|
+
* @param {String} updatedContext
|
|
9
|
+
* @param {String} token Authorization token
|
|
10
|
+
* @returns {Promise<Object>}
|
|
11
|
+
*/
|
|
12
|
+
const askQuestion = (conversationId, question, updatedContext, token) => {
|
|
13
|
+
return new Promise((resolve, reject) => {
|
|
14
|
+
let data = {
|
|
15
|
+
conversationId: conversationId,
|
|
16
|
+
question: question,
|
|
17
|
+
updatedContext: updatedContext,
|
|
18
|
+
};
|
|
19
|
+
let confirmationRequest = axiosClient_1.client.post("/api/v1/aiassistant/askquestion", data, {
|
|
20
|
+
headers: { authorization: token },
|
|
21
|
+
});
|
|
22
|
+
confirmationRequest
|
|
23
|
+
.then((response) => {
|
|
24
|
+
resolve(response.data);
|
|
25
|
+
})
|
|
26
|
+
.catch((error) => {
|
|
27
|
+
reject(error);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* End conversation with the AI
|
|
33
|
+
* @param {String} conversationId
|
|
34
|
+
* @param {String} token Authorization token
|
|
35
|
+
* @returns {Promise<Object>}
|
|
36
|
+
*/
|
|
37
|
+
const endConversation = (conversationId, token) => {
|
|
38
|
+
return new Promise((resolve, reject) => {
|
|
39
|
+
let data = {
|
|
40
|
+
conversationId: conversationId,
|
|
41
|
+
};
|
|
42
|
+
let confirmationRequest = axiosClient_1.client.post("/api/v1/aiassistant/endconversation", data, {
|
|
43
|
+
headers: { authorization: token },
|
|
44
|
+
});
|
|
45
|
+
confirmationRequest
|
|
46
|
+
.then((response) => {
|
|
47
|
+
resolve(response.data);
|
|
48
|
+
})
|
|
49
|
+
.catch((error) => {
|
|
50
|
+
reject(error);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Get conversation by elementId
|
|
56
|
+
* @param {String} elementId
|
|
57
|
+
* @param {String} token
|
|
58
|
+
* @returns {Promise<Object>}
|
|
59
|
+
*/
|
|
60
|
+
const getConversationByElementId = (elementId, token) => {
|
|
61
|
+
return new Promise((resolve, reject) => {
|
|
62
|
+
let confirmationRequest = axiosClient_1.client.get(`/api/v1/aiassistant/getconversation/${elementId}`, {
|
|
63
|
+
headers: { authorization: token },
|
|
64
|
+
});
|
|
65
|
+
confirmationRequest
|
|
66
|
+
.then((response) => {
|
|
67
|
+
resolve(response.data);
|
|
68
|
+
})
|
|
69
|
+
.catch((error) => {
|
|
70
|
+
reject(error);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Get the voice assistant URL
|
|
76
|
+
* @param {String} language
|
|
77
|
+
* @param {String} token
|
|
78
|
+
* @returns {Promise<Object>}
|
|
79
|
+
*/
|
|
80
|
+
const getVoiceAssistantUrl = (language, token) => {
|
|
81
|
+
return new Promise((resolve, reject) => {
|
|
82
|
+
let confirmationRequest = axiosClient_1.client.get(`/api/v1/aiassistant/getvoiceassistanturl/${language}`, {
|
|
83
|
+
headers: { authorization: token },
|
|
84
|
+
});
|
|
85
|
+
confirmationRequest
|
|
86
|
+
.then((response) => {
|
|
87
|
+
resolve(response.data);
|
|
88
|
+
})
|
|
89
|
+
.catch((error) => {
|
|
90
|
+
reject(error);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Start conversation with the AI
|
|
96
|
+
* @param {String} elementId
|
|
97
|
+
* @param {String} elementType
|
|
98
|
+
* @param {String} context
|
|
99
|
+
* @param {Boolean} autoContextRefresh
|
|
100
|
+
* @param {String} token
|
|
101
|
+
* @param {String} conversationId Optional
|
|
102
|
+
* @returns {Promise<Object>}
|
|
103
|
+
*/
|
|
104
|
+
const startConversation = (elementId, elementType, question, context, autoContextRefresh, token, conversationId = null) => {
|
|
105
|
+
return new Promise((resolve, reject) => {
|
|
106
|
+
let data = {
|
|
107
|
+
autoContextRefresh: autoContextRefresh,
|
|
108
|
+
context: context,
|
|
109
|
+
question: question,
|
|
110
|
+
elementId: elementId,
|
|
111
|
+
elementType: elementType,
|
|
112
|
+
};
|
|
113
|
+
if (conversationId) {
|
|
114
|
+
data.conversationId = conversationId;
|
|
115
|
+
}
|
|
116
|
+
let confirmationRequest = axiosClient_1.client.post("/api/v1/aiassistant/startconversation", data, {
|
|
117
|
+
headers: { authorization: token },
|
|
118
|
+
});
|
|
119
|
+
confirmationRequest
|
|
120
|
+
.then((response) => {
|
|
121
|
+
resolve(response.data);
|
|
122
|
+
})
|
|
123
|
+
.catch((error) => {
|
|
124
|
+
reject(error);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
exports.default = {
|
|
129
|
+
askQuestion,
|
|
130
|
+
endConversation,
|
|
131
|
+
getConversationByElementId,
|
|
132
|
+
getVoiceAssistantUrl,
|
|
133
|
+
startConversation,
|
|
134
|
+
};
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const axiosClient_1 = require("./axiosClient");
|
|
4
|
+
/**
|
|
5
|
+
* Get avatar for an elementId
|
|
6
|
+
* @param {String} elementId
|
|
7
|
+
* @param {String} type
|
|
8
|
+
* @param {Number} width
|
|
9
|
+
* @param {Number} height
|
|
10
|
+
* @param {String} token
|
|
11
|
+
* @returns {Promise<Blob>}
|
|
12
|
+
*/
|
|
13
|
+
const getAvatar = (elementId, type, width, height, token) => {
|
|
14
|
+
return new Promise((resolve, reject) => {
|
|
15
|
+
let confirmationRequest = axiosClient_1.client.get(`/api/v1/avatar/getavatar/${elementId}/${type}/${width}/${height}`, {
|
|
16
|
+
headers: {
|
|
17
|
+
authorization: token,
|
|
18
|
+
},
|
|
19
|
+
responseType: "blob",
|
|
20
|
+
});
|
|
21
|
+
confirmationRequest
|
|
22
|
+
.then((response) => {
|
|
23
|
+
resolve(response.data);
|
|
24
|
+
})
|
|
25
|
+
.catch(() => {
|
|
26
|
+
reject("Error getting avatar");
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.default = {
|
|
31
|
+
getAvatar,
|
|
32
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.shouldReturnError = exports.getErrorInformation = exports.getErrorType = exports.errorToString = exports.client = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
const utils_1 = __importDefault(require("./utils"));
|
|
10
|
+
const baseUrl = utils_1.default.getBaseUrl();
|
|
11
|
+
const client = axios_1.default.create({
|
|
12
|
+
baseURL: baseUrl,
|
|
13
|
+
withCredentials: true,
|
|
14
|
+
});
|
|
15
|
+
exports.client = client;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the error as a string
|
|
18
|
+
* @param {AxiosError} error
|
|
19
|
+
* @returns {string}
|
|
20
|
+
*/
|
|
21
|
+
const errorToString = (error) => {
|
|
22
|
+
var _a;
|
|
23
|
+
if (error != null) {
|
|
24
|
+
if ((_a = error.response) === null || _a === void 0 ? void 0 : _a.data) {
|
|
25
|
+
let asString = "";
|
|
26
|
+
if (Array.isArray(error.response.data.errors)) {
|
|
27
|
+
error.response.data.errors.forEach((item, index) => {
|
|
28
|
+
asString += `${index > 0 ? ", " : ""} ${item.msg} param ${item.param} ${item.value ? `value ${item.value.toString()}` : ""}`;
|
|
29
|
+
});
|
|
30
|
+
return asString;
|
|
31
|
+
}
|
|
32
|
+
else if (error.response.data.error) {
|
|
33
|
+
return error.response.data.error.toString();
|
|
34
|
+
}
|
|
35
|
+
else if (error.response.statusText) {
|
|
36
|
+
return error.response.statusText.toString();
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return error.response.data.toString();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return error.message ? error.message : "Unknown error";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return "Unknown error";
|
|
47
|
+
};
|
|
48
|
+
exports.errorToString = errorToString;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the code of the error as a number
|
|
51
|
+
* @param {AxiosError} error
|
|
52
|
+
* @returns {number} The error code
|
|
53
|
+
*/
|
|
54
|
+
const getErrorType = (error) => {
|
|
55
|
+
var _a;
|
|
56
|
+
if ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) {
|
|
57
|
+
return error.response.status;
|
|
58
|
+
}
|
|
59
|
+
else
|
|
60
|
+
return constants_1.RESPONSE_TYPE.SERVICE_UNAVAILABLE;
|
|
61
|
+
};
|
|
62
|
+
exports.getErrorType = getErrorType;
|
|
63
|
+
/**
|
|
64
|
+
* Return the error information to include just the status and the message
|
|
65
|
+
* @param {AxiosError} error
|
|
66
|
+
* @returns {Object}
|
|
67
|
+
*/
|
|
68
|
+
const getErrorInformation = (error) => {
|
|
69
|
+
return {
|
|
70
|
+
status: getErrorType(error),
|
|
71
|
+
message: errorToString(error),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
exports.getErrorInformation = getErrorInformation;
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if an exception should be handled to the business and presentation layer
|
|
77
|
+
* @param {boolean} returnAllExceptions - If set true all exceptions will be passed
|
|
78
|
+
* @param {AxiosError} error - The error returned by the server
|
|
79
|
+
* @returns {boolean}
|
|
80
|
+
*/
|
|
81
|
+
const shouldReturnError = (returnAllExceptions, error) => {
|
|
82
|
+
if (getErrorType(error) === constants_1.RESPONSE_TYPE.UNAUTHORIZED) {
|
|
83
|
+
return returnAllExceptions;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
exports.shouldReturnError = shouldReturnError;
|
|
@@ -20,12 +20,12 @@ export declare const createDepartmentTrainingPlan: (name: string, summary: strin
|
|
|
20
20
|
export declare const deleteDepartmentTrainingPlan: (id: string, token: string) => Promise<object>;
|
|
21
21
|
/**
|
|
22
22
|
* Get department training plan information
|
|
23
|
-
* @param {
|
|
23
|
+
* @param {String} id The id of the plan
|
|
24
24
|
* @param {String} version The version of the plan
|
|
25
25
|
* @param {String} token Authorization token
|
|
26
26
|
* @returns {Promise<object>}
|
|
27
27
|
*/
|
|
28
|
-
export declare const getDepartmentTrainingPlanInformationById: (id:
|
|
28
|
+
export declare const getDepartmentTrainingPlanInformationById: (id: string, version: string, token: string) => Promise<object>;
|
|
29
29
|
/**
|
|
30
30
|
* Get department training plan list
|
|
31
31
|
* @param {String} filter The filter used to select the plan
|
|
@@ -36,11 +36,11 @@ export declare const getDepartmentTrainingPlanInformationById: (id: number, vers
|
|
|
36
36
|
export declare const getDepartmentTrainingPlanList: (filter: string, version: string, token: string) => Promise<object>;
|
|
37
37
|
/**
|
|
38
38
|
* Publish department training plan
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {String} id The id of the plan to be published
|
|
40
40
|
* @param {String} token Authorization token
|
|
41
41
|
* @returns {Promise<object>}
|
|
42
42
|
*/
|
|
43
|
-
export declare const publishDepartmentTrainingPlan: (id:
|
|
43
|
+
export declare const publishDepartmentTrainingPlan: (id: string, token: string) => Promise<object>;
|
|
44
44
|
/**
|
|
45
45
|
* Set department training plan profile information
|
|
46
46
|
* @param {String} id The id of the plan to be updated
|
|
@@ -58,7 +58,7 @@ var deleteDepartmentTrainingPlan = function (id, token) {
|
|
|
58
58
|
exports.deleteDepartmentTrainingPlan = deleteDepartmentTrainingPlan;
|
|
59
59
|
/**
|
|
60
60
|
* Get department training plan information
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {String} id The id of the plan
|
|
62
62
|
* @param {String} version The version of the plan
|
|
63
63
|
* @param {String} token Authorization token
|
|
64
64
|
* @returns {Promise<object>}
|
|
@@ -106,7 +106,7 @@ var getDepartmentTrainingPlanList = function (filter, version, token) {
|
|
|
106
106
|
exports.getDepartmentTrainingPlanList = getDepartmentTrainingPlanList;
|
|
107
107
|
/**
|
|
108
108
|
* Publish department training plan
|
|
109
|
-
* @param {
|
|
109
|
+
* @param {String} id The id of the plan to be published
|
|
110
110
|
* @param {String} token Authorization token
|
|
111
111
|
* @returns {Promise<object>}
|
|
112
112
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"departmentTrainingPlans.js","sourceRoot":"","sources":["../../src/lib/departmentTrainingPlans.ts"],"names":[],"mappings":";;;AACA,mDAA0C;AAM1C;;;;;;;;GAQG;AACI,IAAM,4BAA4B,GAAG,UAC1C,IAAY,EACZ,OAAe,EACf,KAAa,EACb,UAA2B,EAC3B,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,WAAW,GAAG;YAClB,IAAI,EAAE,IAAI,IAAI,EAAE;YAChB,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,KAAK,EAAE,KAAK,IAAI,EAAE;YAClB,UAAU,EAAE,UAAU,IAAI,EAAE;SAC7B,CAAC;QACF,IAAM,mBAAmB,GAAG,uBAAM,CAAC,GAAG,CACpC,gCAAgC,EAChC,WAAW,EACX;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,UAAC,
|
|
1
|
+
{"version":3,"file":"departmentTrainingPlans.js","sourceRoot":"","sources":["../../src/lib/departmentTrainingPlans.ts"],"names":[],"mappings":";;;AACA,mDAA0C;AAM1C;;;;;;;;GAQG;AACI,IAAM,4BAA4B,GAAG,UAC1C,IAAY,EACZ,OAAe,EACf,KAAa,EACb,UAA2B,EAC3B,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,WAAW,GAAG;YAClB,IAAI,EAAE,IAAI,IAAI,EAAE;YAChB,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,KAAK,EAAE,KAAK,IAAI,EAAE;YAClB,UAAU,EAAE,UAAU,IAAI,EAAE;SAC7B,CAAC;QACF,IAAM,mBAAmB,GAAG,uBAAM,CAAC,GAAG,CACpC,gCAAgC,EAChC,WAAW,EACX;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,UAAC,QAAuB;YAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,KAAiB;YACvB,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA7BW,QAAA,4BAA4B,gCA6BvC;AAEF;;;;;GAKG;AACI,IAAM,4BAA4B,GAAG,UAC1C,EAAU,EACV,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,OAAO,GAAG,uBAAM,CAAC,MAAM,CAAC,iCAAiC,EAAE;YAC/D,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;YACjC,IAAI,EAAE;gBACJ,EAAE,EAAE,EAAE;aACP;SACF,CAAC,CAAC;QACH,OAAO;aACJ,IAAI,CAAC,UAA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C,KAAiB;YACvB,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,oCAAoC,wCAwB/C"}
|
|
@@ -34,12 +34,12 @@ export declare const getIntegrationInformationById: (id: string, version: string
|
|
|
34
34
|
/**
|
|
35
35
|
* Get integrations list
|
|
36
36
|
* @param {Array<String>} filter The filter used to select the integration
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {Number} type The type of the integration
|
|
38
38
|
* @param {String} version The version to be retrieved
|
|
39
39
|
* @param {Boolean} includeSupportedCapabilities If true, the supported capabilities will be included in the response
|
|
40
40
|
* @param {String} token Authorization token
|
|
41
41
|
*/
|
|
42
|
-
export declare const getIntegrationsList: (filter: string[], type:
|
|
42
|
+
export declare const getIntegrationsList: (filter: string[], type: number, version: string, includeSupportedCapabilities: boolean, token: string) => Promise<object>;
|
|
43
43
|
/**
|
|
44
44
|
* Get content information by Url
|
|
45
45
|
* @param {String} url The training url
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/lib/integration.ts"],"names":[],"mappings":"AAsBA,UAAU,0BAA0B;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,SACtB,MAAM,SACL,MAAM,KACZ,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/lib/integration.ts"],"names":[],"mappings":"AAsBA,UAAU,0BAA0B;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,K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AAM,SACH,MAAM,KACZ,OAAO,CAAC,MAAM,CAiBhB,CAAC"}
|
package/dist/cjs/integration.js
CHANGED
|
@@ -100,7 +100,7 @@ exports.getIntegrationInformationById = getIntegrationInformationById;
|
|
|
100
100
|
/**
|
|
101
101
|
* Get integrations list
|
|
102
102
|
* @param {Array<String>} filter The filter used to select the integration
|
|
103
|
-
* @param {
|
|
103
|
+
* @param {Number} type The type of the integration
|
|
104
104
|
* @param {String} version The version to be retrieved
|
|
105
105
|
* @param {Boolean} includeSupportedCapabilities If true, the supported capabilities will be included in the response
|
|
106
106
|
* @param {String} token Authorization token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../src/lib/integration.ts"],"names":[],"mappings":";;;;;;AACA,mDAAyD;AACzD,gDAA6B;AAC7B,sEAA0C;AAC1C,kEAAwC;AA2BxC;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAC/B,IAAY,EACZ,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,WAAW,GAAoB;YACnC,IAAI,EAAE,IAAI;SACX,CAAC;QACF,IAAM,mBAAmB,GAAG,uBAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../src/lib/integration.ts"],"names":[],"mappings":";;;;;;AACA,mDAAyD;AACzD,gDAA6B;AAC7B,sEAA0C;AAC1C,kEAAwC;AA2BxC;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAC/B,IAAY,EACZ,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,WAAW,GAAoB;YACnC,IAAI,EAAE,IAAI;SACX,CAAC;QACF,IAAM,mBAAmB,GAAG,uBAAM,CAAC,GAAG,CACpC,sBAAsB,EACtB,WAAW,EACX;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;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CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,yBAAyB,6BAwBpC;AAEF;;;;GAIG;AACI,IAAM,qBAAqB,GAAG,UACnC,EAAU,EACV,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,mBAAmB,GAAG,uBAAM,CAAC,IAAI,CACrC,8BAAuB,EAAE,aAAU,EACnC,EAAE,EACF;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,UAAC,QAAuB;YAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,KAAiB;YACvB,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AApBW,QAAA,qBAAqB,yBAoBhC"}
|
|
@@ -18,10 +18,10 @@ export declare const saveIntegrationConfiguration: (id: string, type: number, co
|
|
|
18
18
|
/**
|
|
19
19
|
* Test integration configuration
|
|
20
20
|
* @param {String} id The id of the integration to be updated
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {Number} type The type of configuration
|
|
22
22
|
* @param {Object} configuration Configuration to be tested
|
|
23
23
|
* @param {String} token Authorization token
|
|
24
24
|
* @returns {Promise<object>}
|
|
25
25
|
*/
|
|
26
|
-
export declare const testIntegrationConfiguration: (id: string, type:
|
|
26
|
+
export declare const testIntegrationConfiguration: (id: string, type: number, configuration: object, token: string) => Promise<object>;
|
|
27
27
|
//# sourceMappingURL=integrationConfiguration.d.ts.map
|
|
@@ -58,7 +58,7 @@ exports.saveIntegrationConfiguration = saveIntegrationConfiguration;
|
|
|
58
58
|
/**
|
|
59
59
|
* Test integration configuration
|
|
60
60
|
* @param {String} id The id of the integration to be updated
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {Number} type The type of configuration
|
|
62
62
|
* @param {Object} configuration Configuration to be tested
|
|
63
63
|
* @param {String} token Authorization token
|
|
64
64
|
* @returns {Promise<object>}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const axiosClient_1 = require("./axiosClient");
|
|
4
|
+
/**
|
|
5
|
+
* Get the specified configuration by Id. It returns a promise
|
|
6
|
+
* @param {String} id - the id of the configuration element
|
|
7
|
+
* @param {String} authToken - Authorization token
|
|
8
|
+
* @returns {Promise<Object>}
|
|
9
|
+
*/
|
|
10
|
+
const getConfigurationById = (id, authToken) => {
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
const getConfigInformationRequest = axiosClient_1.client.get(`api/v1/configurations/configuration/id/${id}`, { headers: { authorization: authToken } });
|
|
13
|
+
getConfigInformationRequest
|
|
14
|
+
.then((response) => {
|
|
15
|
+
resolve(response.data);
|
|
16
|
+
})
|
|
17
|
+
.catch((error) => {
|
|
18
|
+
reject(error);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Get the specified configuration by type. It returns a promise
|
|
24
|
+
* @param {String} type - the id of the configuration element
|
|
25
|
+
* @param {String} authToken - Authorization token
|
|
26
|
+
* @returns {Promise<Object>}
|
|
27
|
+
*/
|
|
28
|
+
const getConfigurationByType = (type, authToken) => {
|
|
29
|
+
return new Promise((resolve, reject) => {
|
|
30
|
+
const getConfigInformationRequest = axiosClient_1.client.get(`api/v1/configurations/configuration/type/${type}`, { headers: { authorization: authToken } });
|
|
31
|
+
getConfigInformationRequest
|
|
32
|
+
.then((response) => {
|
|
33
|
+
resolve(response.data);
|
|
34
|
+
})
|
|
35
|
+
.catch((error) => {
|
|
36
|
+
reject(error);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Set the specified configuration by Id. It returns a promise
|
|
42
|
+
* @param {String} id - the id of the configuration element
|
|
43
|
+
* @param {Object} data - the object containing the updated configuration element
|
|
44
|
+
* @param {String} authToken - Authorization token
|
|
45
|
+
* @returns {Promise<Object>}
|
|
46
|
+
*/
|
|
47
|
+
const setConfigurationById = (id, data, authToken) => {
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
const getConfigInformationRequest = axiosClient_1.client.post(`api/v1/configurations/configuration/${id}`, { data: data }, { headers: { authorization: authToken } });
|
|
50
|
+
getConfigInformationRequest
|
|
51
|
+
.then((response) => {
|
|
52
|
+
resolve(response.data);
|
|
53
|
+
})
|
|
54
|
+
.catch((error) => {
|
|
55
|
+
reject(error);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
exports.default = {
|
|
60
|
+
getConfigurationById,
|
|
61
|
+
getConfigurationByType,
|
|
62
|
+
setConfigurationById,
|
|
63
|
+
};
|