JSPM

paismo-integration-sdk

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q14911F
    • License ISC

    This package is created by Paismo HR. It allows clients to upload timesheets data from their source (Ex. biometric device).

    Package Exports

    • paismo-integration-sdk
    • paismo-integration-sdk/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (paismo-integration-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    This package is created by Paismo HR that allows their clients to upload timesheets (Employees data) to their server.

    functions

    This package has two functions:

    1. init(client_id, client_secret)
    2. pushData(data)

    init(client_id, client_secret)

    This functions initializes the package so that the data can be sent to Paismo HR's server. It expects a client_id and client_secret.

    pushData(data)

    This functions sends the given data to Paismo HR's server. It expects the json data in the following format:

    [
        {
          "company_employee_id": "12345",
          "start_time": "2023-08-10T09:00:00",
          "end_time": "2023-08-10T05:00:00"
        },
        {
          "company_employee_id": "12345",
          "start_time": "2023-08-10T09:00:00",
          "end_time": "2023-08-10T05:00:00"
        },
        ...
    ]
    

    If you face any issues or have any queries. You can reach out to us at abdullah@paismo.com :D.