5.0.30 • Published 6 days ago

@keiser/metrics-sdk-admin-typescript v5.0.30

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

@keiser/metrics-sdk-admin-typescript@5.0.30

Project

This SDK facilitates communication between a client system (ie: phone app, website, server) and Keiser Metrics. The SDK is written in TypeScript and supports both browser and NodeJS platforms.

Installation

Navigate to the folder of your consuming project and install with npm:

npm install @keiser/metrics-sdk-admin-typescript@5.0.30 --save

Getting Started

Please follow the installation instruction and execute the following JS code:

import { MetricsAdminApi } from '@keiser/metrics-sdk-admin-typescript';

var api = new MetricsAdminApi()

let body:MetricsAdminApiAdminLoginRequest = {
  // string
  email: email_example,
  // string
  password: password_example,
  // boolean (optional)
  refreshable: true,
  // string (optional)
  token: token_example,
  // string (optional)
  apiVersion: apiVersion_example,
};

try {
  const data = await api.adminLogin(body);
  console.log('API called successfully. Returned data: ' + data);
} catch (error) {
  console.error(error);
}

Documentation for API Endpoints

All URIs are relative to https://metrics-api-v3.keiser.com/api

MethodHTTP requestDescription
adminLoginPOST /admin/loginLogin admin user using email, password, and 2FA token
authExchangeFulfillmentPOST /auth/exchange/fulfillmentExchanges an authorization token for access and refresh tokens
facilityLicenseCreatePOST /facility/licenseCreate a facility license
facilityLicenseDeleteDELETE /facility/license/{id}Delete a facility license
facilityLicenseListGET /facility/license/listList facility licenses
globalAccessControlCreatePOST /global-access-controlCreate a user\'s global access control rights
globalAccessControlDeleteDELETE /global-access-control/{userId}Delete a user\'s global access control
globalAccessControlListGET /global-access-control/listList global access control for users
globalAccessControlRecreateSecretPOST /global-access-control/recreate-secretRecreate a user\'s authenticator secret
globalAccessControlShowGET /global-access-controlShow a global access control
globalAccessControlUpdatePUT /global-access-controlUpdate a user global access control rights
resqueCacheCreatePOST /resque/cacheCreate cached object
resqueCacheDeleteDELETE /resque/cache/{key}Delete cached object
resqueCacheListGET /resque/cache/listList cached objects
resqueCacheShowGET /resque/cacheShow cache object
resqueCacheUpdatePUT /resque/cache/{key}Update cached object
resqueDetailsGET /resque/detailsShow wholistic details about resque system
resqueTaskDeleteAllFailedDELETE /resque/task/delete-all-failedDelete all failed task
resqueTaskDeleteFailedDELETE /resque/task/delete-failedDelete a failed task
resqueTaskDeleteTaskDELETE /resque/task/delete-taskDelete a task from the queue
resqueTaskFailuresGET /resque/task/failuresLists failed tasks
resqueTaskQueueGET /resque/task/queueLists enqueued tasks
resqueTaskRetryAllFailedPOST /resque/task/retry-all-failedRemove and retry all failed task
resqueTaskRetryFailedPOST /resque/task/retry-failedRemove and retry a failed task
resqueWorkerListGET /resque/workerList resque workers
statsListGET /statsShows stats queries
userDeleteDELETE /userDelete a user
userListGET /user/listList users
userMergePUT /user/mergeMerge two user together
userShowGET /userShow a user

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

Copyright and License

Copyright © 2020 Keiser Corporation.

The Keiser Metrics SDK source code and distributed package are made available through the MIT license.

Using any of the APIs made available through the Keiser Metrics SDK to communicate with Keiser Metrics make you subject to the following agreements. Please read all documents in their entirety as they govern your use of the APIs and Keiser Metrics servers.

5.0.30

6 days ago

5.0.29

15 days ago

5.0.28

1 month ago

5.0.27

1 month ago

5.0.26

4 months ago

5.0.23

4 months ago

5.0.24

4 months ago

5.0.25

4 months ago

5.0.20

4 months ago

5.0.21

4 months ago

5.0.22

4 months ago

5.0.17

4 months ago

5.0.18

4 months ago

5.0.19

4 months ago

5.0.16

4 months ago

5.0.14

4 months ago

5.0.15

4 months ago

5.0.13

6 months ago

5.0.12

6 months ago