0.3.0-alpha12 • Published 6 months ago

@ikonintegration/mod-config-client v0.3.0-alpha12

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

module-config-client Node.js Package

Config Module Client (LMS exclusive)

Overall

  • npm npm npm (tag) Libraries.io dependency status for latest release, scoped npm package
  • GitHub commit activity
  • GitHub last commit

How to Use

This client has 2 main functionalities, bridging calls to the API via HTTP protocol and bridging retrieval calls from the cache of the config (redis). You should decide what mode your instance will be using before initializing it. If both modes are required for your integration, 2 instance of the config client is recommeded.

import SMConfig from '@ikonintegration/mod-config-client';

const config = new SMConfig({
  //Cache layer
  username: 'default', endpoint: 'domain.example.com', password: 'ABC@123',
  //API Layer
  endpoint: 'domain.example.com', port: 90, customerID: 'xx', tenantID: 'yy'
});

//Get tenant by cache
const resp = await API.getTenantByID(ID);
if (!resp) { return ERROR; } 
return SUCCESS;

Available API methods

Course Provider:

  • API.courseProvider.createCourseProvider(providerObj)
  • API.courseProvider.updateCourseProvider(providerObj)
  • API.courseProvider.deleteCourseProvider(providerID)
  • API.courseProvider.getCourseProvider(providerID)
  • API.courseProvider.getAllProviders()

CertEquivalency:

  • API.certEquivalency.createCertEquivalency(certificationID, equivalencyObj, type)
  • API.certEquivalency.updateCertEquivalency(certificationID, equivalencyObj, type)
  • API.certEquivalency.deleteCertEquivalency(certificationID, equivalencyID, type)
  • API.certEquivalency.getCertEquivalency(certificationID, equivalencyID, type)
  • API.certEquivalency.getCertEquivalences(certificationID)

Certification:

  • API.certification.createCertification(certificationObj)
  • API.certification.updateCertification(certificationObj)
  • API.certification.deleteCertification(certificationID)
  • API.certification.getCertification(certificationID)
  • API.certification.getAllCertifications(optTenantID)

CertRequirement:

  • API.certRequirement.createCertRequirement(certificationID, requirementObj, type)
  • API.certRequirement.updateCertRequirement(certificationID, requirementObj, type)
  • API.certRequirement.deleteCertRequirement(certificationID, requirementID, type)
  • API.certRequirement.getCertRequirement(certificationID, requirementID, type)
  • API.certRequirement.getAllCertRequirements(certificationID)

Course:

  • API.course.createCourse(certificationID, courseObj)
  • API.course.updateCourse(certificationID, courseObj)
  • API.course.deleteCourse(certificationID, courseID)
  • API.course.getCourse(certificationID, courseID)
  • API.course.getCourses(certificationID)

Customer:

  • API.customer.createCustomer(customerObj)
  • API.customer.updateCustomer(customerObj)
  • API.customer.deleteCustomer(customerID)
  • API.customer.getCustomer(customerID)
  • API.customer.getAllCustomers()

Equivalency:

  • API.equivalency.createEquivalency(providerObj)
  • API.equivalency.updateEquivalency(providerObj)
  • API.equivalency.deleteEquivalency(providerID)
  • API.equivalency.getEquivalency(providerID)
  • API.equivalency.getAllEquivalencies()

Requirement:

  • API.requirement.createRequirement(providerObj)
  • API.requirement.updateRequirement(providerObj)
  • API.requirement.deleteRequirement(providerID)
  • API.requirement.getRequirement(providerID)
  • API.requirement.getAllRequirements()

Tenant:

  • API.tenant.createTenant(tenantObj)
  • API.tenant.updateTenant(tenantObj)
  • API.tenant.deleteTenant(tenantID)
  • API.tenant.getTenant(tenantID)
  • API.tenant.getAllTenants(customerID)

Training Provider:

  • API.trainingProvider.createTrainingProvider(providerObj)
  • API.trainingProvider.updateTrainingProvider(providerObj)
  • API.trainingProvider.deleteTrainingProvider(providerID)
  • API.trainingProvider.getTrainingProvider(providerID)
  • API.trainingProvider.getAllProviders()

Available Cache methods

Customer:

  • API.getAllCustomers()
  • API.getCustomerByID(customerID)

Customer Course Provider:

  • API.getCourseProviderByIDs(courseProviderID, customerID)

Tenant:

  • API.getAllTenants()
  • API.getTenantByID(tenantID)

Certification & Courses:

  • API.getCertificationByID(certID, tenantID)
  • API.getCourseByID(courseID, tenantID)
  • API.getAllCourses()
  • API.getAllCoursesByCustomerID(customerID)
  • API.getAllCoursesByTenantID(tenantID)
0.3.0-alpha10

10 months ago

0.3.0-alpha11

10 months ago

0.3.0-alpha12

6 months ago

0.3.0-alpha6

10 months ago

0.3.0-alpha7

10 months ago

0.3.0-alpha4

10 months ago

0.3.0-alpha5

10 months ago

0.3.0-alpha2

10 months ago

0.3.0-alpha3

10 months ago

0.3.0-alpha1

10 months ago

0.2.6

6 months ago

0.3.0-alpha8

10 months ago

0.3.0-alpha9

10 months ago

0.2.3

1 year ago

0.2.2

2 years ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.1

2 years ago

0.1.27

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.2.0

2 years ago

0.1.19

2 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago