@stackfactor/client-api 1.1.205 → 1.1.207
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/reports.d.ts +19 -7
- package/dist/cjs/reports.d.ts.map +1 -1
- package/dist/cjs/reports.js +7 -5
- package/dist/cjs/reports.js.map +1 -1
- package/dist/esm/reports.d.ts +19 -7
- package/dist/esm/reports.d.ts.map +1 -1
- package/dist/esm/reports.js +7 -5
- package/dist/esm/reports.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/reports.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
interface TrainingSummaryFilter {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
businessUnit?: string[];
|
|
3
|
+
organization?: string[];
|
|
4
|
+
costCenter?: string[];
|
|
5
5
|
teamIds?: string[];
|
|
6
6
|
}
|
|
7
|
+
type TrainingSummaryInterval = "lastWeek" | {
|
|
8
|
+
start: {
|
|
9
|
+
month: number;
|
|
10
|
+
year: number;
|
|
11
|
+
};
|
|
12
|
+
end: {
|
|
13
|
+
month: number;
|
|
14
|
+
year: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type TrainingSummarySchema = "LEARNING_ACTIVITIES_COMPLETED" | "TIME_SPENT_IN_TRAINING" | "PROFICIENCY_LEVEL_COMPLETION";
|
|
7
18
|
/**
|
|
8
19
|
* Get available filters for training summary details
|
|
9
20
|
* @param {String} token Authorization token
|
|
@@ -11,12 +22,13 @@ interface TrainingSummaryFilter {
|
|
|
11
22
|
*/
|
|
12
23
|
export declare const getTrainingSummaryDetailFilters: (token: string) => Promise<object>;
|
|
13
24
|
/**
|
|
14
|
-
* Get training summary details filtered by team dimensions and time interval
|
|
15
|
-
* @param {Object} filter Filter with optional businessUnit, organization, costCenter,
|
|
16
|
-
* @param {String}
|
|
25
|
+
* Get training summary details filtered by team dimensions, schema, and time interval
|
|
26
|
+
* @param {Object} filter Filter with optional businessUnit, organization, costCenter, teamIds
|
|
27
|
+
* @param {String} schema The data schema to return
|
|
28
|
+
* @param {String|Object} interval "lastWeek" or a custom range with start/end month and year
|
|
17
29
|
* @param {String} token Authorization token
|
|
18
30
|
* @returns {Promise<object[]>} The training summary details
|
|
19
31
|
*/
|
|
20
|
-
export declare const getTrainingSummaryDetails: (filter: TrainingSummaryFilter,
|
|
32
|
+
export declare const getTrainingSummaryDetails: (filter: TrainingSummaryFilter, schema: TrainingSummarySchema, interval: TrainingSummaryInterval, token: string) => Promise<object[]>;
|
|
21
33
|
export {};
|
|
22
34
|
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":"AAGA,UAAU,qBAAqB;IAC7B,
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":"AAGA,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,KAAK,uBAAuB,GACxB,UAAU,GACV;IACE,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC,CAAC;AAEN,KAAK,qBAAqB,GACtB,+BAA+B,GAC/B,wBAAwB,GACxB,8BAA8B,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,UACnC,MAAM,KACZ,OAAO,CAAC,MAAM,CAahB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,WAC5B,qBAAqB,UACrB,qBAAqB,YACnB,uBAAuB,SAC1B,MAAM,KACZ,OAAO,CAAC,MAAM,EAAE,CAsBlB,CAAC"}
|
package/dist/cjs/reports.js
CHANGED
|
@@ -9,7 +9,7 @@ var axiosClient_js_1 = require("./axiosClient.js");
|
|
|
9
9
|
*/
|
|
10
10
|
var getTrainingSummaryDetailFilters = function (token) {
|
|
11
11
|
return new Promise(function (resolve, reject) {
|
|
12
|
-
var request = axiosClient_js_1.client.get("/api/v1/reports/trainingsummarydetailfilters
|
|
12
|
+
var request = axiosClient_js_1.client.get("/api/v1/reports/trainingsummarydetailfilters", {
|
|
13
13
|
headers: { authorization: token },
|
|
14
14
|
});
|
|
15
15
|
request
|
|
@@ -23,16 +23,18 @@ var getTrainingSummaryDetailFilters = function (token) {
|
|
|
23
23
|
};
|
|
24
24
|
exports.getTrainingSummaryDetailFilters = getTrainingSummaryDetailFilters;
|
|
25
25
|
/**
|
|
26
|
-
* Get training summary details filtered by team dimensions and time interval
|
|
27
|
-
* @param {Object} filter Filter with optional businessUnit, organization, costCenter,
|
|
28
|
-
* @param {String}
|
|
26
|
+
* Get training summary details filtered by team dimensions, schema, and time interval
|
|
27
|
+
* @param {Object} filter Filter with optional businessUnit, organization, costCenter, teamIds
|
|
28
|
+
* @param {String} schema The data schema to return
|
|
29
|
+
* @param {String|Object} interval "lastWeek" or a custom range with start/end month and year
|
|
29
30
|
* @param {String} token Authorization token
|
|
30
31
|
* @returns {Promise<object[]>} The training summary details
|
|
31
32
|
*/
|
|
32
|
-
var getTrainingSummaryDetails = function (filter, interval, token) {
|
|
33
|
+
var getTrainingSummaryDetails = function (filter, schema, interval, token) {
|
|
33
34
|
return new Promise(function (resolve, reject) {
|
|
34
35
|
var requestData = {
|
|
35
36
|
filter: filter,
|
|
37
|
+
schema: schema,
|
|
36
38
|
interval: interval,
|
|
37
39
|
};
|
|
38
40
|
var confirmationRequest = axiosClient_js_1.client.post("/api/v1/reports/trainingsummarydetails", requestData, {
|
package/dist/cjs/reports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":";;;AACA,mDAA0C;
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":";;;AACA,mDAA0C;AAqB1C;;;;GAIG;AACI,IAAM,+BAA+B,GAAG,UAC7C,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,OAAO,GAAG,uBAAM,CAAC,GAAG,CAAC,8CAA8C,EAAE;YACzE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CAAC,CAAC;QACH,OAAO;aACJ,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;AAfW,QAAA,+BAA+B,mCAe1C;AAEF;;;;;;;GAOG;AACI,IAAM,yBAAyB,GAAG,UACvC,MAA6B,EAC7B,MAA6B,EAC7B,QAAiC,EACjC,KAAa;IAEb,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,WAAW,GAAG;YAClB,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,QAAQ;SACnB,CAAC;QACF,IAAM,mBAAmB,GAAG,uBAAM,CAAC,IAAI,CACrC,wCAAwC,EACxC,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;AA3BW,QAAA,yBAAyB,6BA2BpC"}
|
package/dist/esm/reports.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
interface TrainingSummaryFilter {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
businessUnit?: string[];
|
|
3
|
+
organization?: string[];
|
|
4
|
+
costCenter?: string[];
|
|
5
5
|
teamIds?: string[];
|
|
6
6
|
}
|
|
7
|
+
type TrainingSummaryInterval = "lastWeek" | {
|
|
8
|
+
start: {
|
|
9
|
+
month: number;
|
|
10
|
+
year: number;
|
|
11
|
+
};
|
|
12
|
+
end: {
|
|
13
|
+
month: number;
|
|
14
|
+
year: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type TrainingSummarySchema = "LEARNING_ACTIVITIES_COMPLETED" | "TIME_SPENT_IN_TRAINING" | "PROFICIENCY_LEVEL_COMPLETION";
|
|
7
18
|
/**
|
|
8
19
|
* Get available filters for training summary details
|
|
9
20
|
* @param {String} token Authorization token
|
|
@@ -11,12 +22,13 @@ interface TrainingSummaryFilter {
|
|
|
11
22
|
*/
|
|
12
23
|
export declare const getTrainingSummaryDetailFilters: (token: string) => Promise<object>;
|
|
13
24
|
/**
|
|
14
|
-
* Get training summary details filtered by team dimensions and time interval
|
|
15
|
-
* @param {Object} filter Filter with optional businessUnit, organization, costCenter,
|
|
16
|
-
* @param {String}
|
|
25
|
+
* Get training summary details filtered by team dimensions, schema, and time interval
|
|
26
|
+
* @param {Object} filter Filter with optional businessUnit, organization, costCenter, teamIds
|
|
27
|
+
* @param {String} schema The data schema to return
|
|
28
|
+
* @param {String|Object} interval "lastWeek" or a custom range with start/end month and year
|
|
17
29
|
* @param {String} token Authorization token
|
|
18
30
|
* @returns {Promise<object[]>} The training summary details
|
|
19
31
|
*/
|
|
20
|
-
export declare const getTrainingSummaryDetails: (filter: TrainingSummaryFilter,
|
|
32
|
+
export declare const getTrainingSummaryDetails: (filter: TrainingSummaryFilter, schema: TrainingSummarySchema, interval: TrainingSummaryInterval, token: string) => Promise<object[]>;
|
|
21
33
|
export {};
|
|
22
34
|
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":"AAGA,UAAU,qBAAqB;IAC7B,
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":"AAGA,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,KAAK,uBAAuB,GACxB,UAAU,GACV;IACE,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC,CAAC;AAEN,KAAK,qBAAqB,GACtB,+BAA+B,GAC/B,wBAAwB,GACxB,8BAA8B,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,UACnC,MAAM,KACZ,OAAO,CAAC,MAAM,CAahB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,WAC5B,qBAAqB,UACrB,qBAAqB,YACnB,uBAAuB,SAC1B,MAAM,KACZ,OAAO,CAAC,MAAM,EAAE,CAsBlB,CAAC"}
|
package/dist/esm/reports.js
CHANGED
|
@@ -6,7 +6,7 @@ import { client } from "./axiosClient.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export const getTrainingSummaryDetailFilters = (token) => {
|
|
8
8
|
return new Promise((resolve, reject) => {
|
|
9
|
-
const request = client.get(`/api/v1/reports/trainingsummarydetailfilters
|
|
9
|
+
const request = client.get(`/api/v1/reports/trainingsummarydetailfilters`, {
|
|
10
10
|
headers: { authorization: token },
|
|
11
11
|
});
|
|
12
12
|
request
|
|
@@ -19,16 +19,18 @@ export const getTrainingSummaryDetailFilters = (token) => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* Get training summary details filtered by team dimensions and time interval
|
|
23
|
-
* @param {Object} filter Filter with optional businessUnit, organization, costCenter,
|
|
24
|
-
* @param {String}
|
|
22
|
+
* Get training summary details filtered by team dimensions, schema, and time interval
|
|
23
|
+
* @param {Object} filter Filter with optional businessUnit, organization, costCenter, teamIds
|
|
24
|
+
* @param {String} schema The data schema to return
|
|
25
|
+
* @param {String|Object} interval "lastWeek" or a custom range with start/end month and year
|
|
25
26
|
* @param {String} token Authorization token
|
|
26
27
|
* @returns {Promise<object[]>} The training summary details
|
|
27
28
|
*/
|
|
28
|
-
export const getTrainingSummaryDetails = (filter, interval, token) => {
|
|
29
|
+
export const getTrainingSummaryDetails = (filter, schema, interval, token) => {
|
|
29
30
|
return new Promise((resolve, reject) => {
|
|
30
31
|
const requestData = {
|
|
31
32
|
filter: filter,
|
|
33
|
+
schema: schema,
|
|
32
34
|
interval: interval,
|
|
33
35
|
};
|
|
34
36
|
const confirmationRequest = client.post(`/api/v1/reports/trainingsummarydetails`, requestData, {
|
package/dist/esm/reports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../src/lib/reports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"reports.js","sourceR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