@stackfactor/client-api 1.0.36 → 1.0.37

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 (2) hide show
  1. package/index.js +36 -32
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  import actionNotifications from "./lib/actionNotifications";
2
- import axios from "./lib/axiosClient";
2
+ import axios, {
3
+ errorToString,
4
+ getErrorType,
5
+ shouldReturnError,
6
+ } from "./lib/axiosClient";
3
7
  import address from "./lib/address";
4
8
  import config from "./lib/config";
5
- import importants from "./lib/importants";
9
+ import constants from "./lib/constants";
6
10
  import contentGenerator from "./lib/integrations/contentGenerator";
7
11
  import dashboard from "./lib/dashboard";
8
12
  import departmentTraingPlans from "./lib/departmentTrainingPlans";
@@ -25,34 +29,34 @@ import userInformation from "./lib/userInformation";
25
29
  import users from "./lib/users";
26
30
 
27
31
  export default {
28
- actionNotifications,
29
- address,
30
- axios,
31
- config,
32
- contentGenerator,
33
- dashboard,
34
- errorToString: axios.errorToString,
35
- getErrorType: axios.getErrorType,
36
- DOCUMENT_VERSION: importants.DOCUMENT_VERSION,
37
- integration,
38
- integrationConfiguration,
39
- departmentTraingPlans,
40
- groups,
41
- learningContent,
42
- logger,
43
- PERMISSIONS: importants.PERMISSIONS,
44
- responseType: importants.RESONSE_TYPE,
45
- role,
46
- roleTemplate,
47
- shouldReturnError: axios.shouldReturnError,
48
- skill,
49
- skillAssessment,
50
- skillAssessmentTestingSession,
51
- skillTemplate,
52
- team,
53
- tenant,
54
- trainingPlanTemplate,
55
- trainingPlan,
56
- userInformation,
57
- users,
32
+ actionNotifications: actionNotifications,
33
+ address: address,
34
+ axios: axios,
35
+ config: config,
36
+ contentGenerator: contentGenerator,
37
+ dashboard: dashboard,
38
+ errorToString: errorToString,
39
+ getErrorType: getErrorType,
40
+ DOCUMENT_VERSION: constants.DOCUMENT_VERSION,
41
+ integration: integration,
42
+ integrationConfiguration: integrationConfiguration,
43
+ departmentTraingPlans: departmentTraingPlans,
44
+ groups: groups,
45
+ learningContent: learningContent,
46
+ logger: logger,
47
+ PERMISSIONS: constants.PERMISSIONS,
48
+ RESONSE_TYPE: constants.RESONSE_TYPE,
49
+ role: role,
50
+ roleTemplate: roleTemplate,
51
+ shouldReturnError: shouldReturnError,
52
+ skill: skill,
53
+ skillAssessment: skillAssessment,
54
+ skillAssessmentTestingSession: skillAssessmentTestingSession,
55
+ skillTemplate: skillTemplate,
56
+ team: team,
57
+ tenant: tenant,
58
+ trainingPlanTemplate: trainingPlanTemplate,
59
+ trainingPlan: trainingPlan,
60
+ userInformation: userInformation,
61
+ users: users,
58
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {