Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Latest commit

 

History

History
111 lines (99 loc) · 2.59 KB

readme.md

File metadata and controls

111 lines (99 loc) · 2.59 KB

Projects

Get projects

Sample

import { Projects } from 'top-tracker'

const parameters = {}
const input = {}

new Projects(parameters)
    .call(input)
    .then((output) => {})
    .catch(({ message, payload }) => {})
  • Parameters
/* whitout parameters */
  • Input
{
    "access_token": "isString",
    "archived": "isBoolean"
}
  • Output
{
    "projects": [
        {
            "id": "isNumber",
            "name": "isString",
            "archived_at": "isString",
            "abilities": [
                "isString"
            ],
            "currency": "isString",
            "admin_id": "isNumber",
            "last_activity_time": "isString",
            "current_user": {
                "role": "isString",
                "joined": "isISODate",
                "creator": "isBoolean"
            },
            "profiles_ids": [
                "isNumber"
            ],
            "pending_invitation_ids": [],
            "is_admin_client": "isBoolean",
            "created_at": "isISODate",
            "engagement_ids": [
                "isNumber"
            ],
            "budget": {
                "amount": "isString",
                "limited": "isBoolean",
                "rate_type": "isString",
                "used": "isNumber"
            },
            "billable": "isBoolean",
            "admin_profile": {
                "id": "isNumber",
                "name": "isString",
                "avatar_url": "isString",
                "address": "isString",
                "phone": "isString",
                "active": "isBoolean"
            },
            "tracking_requirements": {
                "mouse": "isBoolean",
                "keyboard": "isBoolean",
                "screenshots": "isBoolean",
                "web_tracker": "isBoolean",
                "desktop_tracker": "isBoolean",
                "manual_time_entry": "isBoolean",
                "screenshots_interval": "isNumber"
            },
            "invoicing_schedule": {
                "schedule_type": "isString",
                "period": "isString",
                "day": "isNumber"
            },
            "stats": {
                "number_of_workers": "isNumber"
            }
        }
    ],
    "users": {
        "id": "isNumber",
        "email": "isString",
        "name": "isString",
        "time_zone": "isString",
        "avatar_url": "isString",
        "company_name": "isString",
        "invoice_due_period": "isNumber",
        "address": "isString",
        "phone": "isString",
        "currency": "isString"
    }
}