Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@timetac/js-client-library

Package Overview
Dependencies
Maintainers
2
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@timetac/js-client-library - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

dist/userDefinedFieldDefinitions/index.d.ts

2

dist/favouriteTasks/index.d.ts
import BaseApi from '../baseApi';
import { RequestParams } from '../utils/params/requestParams';
import { ReadRawResponse } from '../utils/response/readRawResponse';
import { FavouriteTask, FavouriteTaskCreate } from './types';

@@ -8,4 +9,5 @@ export declare class FavouriteTasksEndpoint extends BaseApi {

readById(id: number, params?: RequestParams<FavouriteTask>): Promise<FavouriteTask>;
readRaw(params: RequestParams<FavouriteTask>): Promise<ReadRawResponse<FavouriteTask>>;
create(data: FavouriteTaskCreate): Promise<FavouriteTask>;
delete(id: number): Promise<FavouriteTask>;
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FavouriteTasksEndpoint = void 0;
const baseApi_1 = require("../baseApi");
const rawApiResponse_1 = require("../utils/response/rawApiResponse");
const readRawResponse_1 = require("../utils/response/readRawResponse");
const resourceResponse_1 = require("../utils/response/resourceResponse");
const responseHandlers = require("../utils/response/responseHandlers");

@@ -19,2 +31,8 @@ class FavouriteTasksEndpoint extends baseApi_1.default {

}
readRaw(params) {
return __awaiter(this, void 0, void 0, function* () {
const response = this._get(`${this.getResourceName()}/read`, { params });
return readRawResponse_1.createReadRawResponse(resourceResponse_1.createResourceResponse(yield rawApiResponse_1.createRawApiResponse(response)), params);
});
}
create(data) {

@@ -21,0 +39,0 @@ const response = this._post(`${this.getResourceName()}/create`, data);

@@ -20,2 +20,3 @@ import { AbsenceDaysEndpoint } from './absenceDays';

import { TodoTasksEndpoint } from './todoTasks';
import { UserDefinedFieldDefinitionsEndpoint } from './userDefinedFieldDefinitions';
import { UsersEndpoint } from './users';

@@ -44,2 +45,3 @@ import { UserStatusOverviewsEndpoint } from './userStatusOverview';

export { TodoTask, TodoTaskCreate } from './todoTasks/types';
export { UserDefinedFieldDefinitions, UserDefinedFieldDefinitionsIds } from './userDefinedFieldDefinitions/types';
export { User, UserUpdate } from './users/types';

@@ -78,2 +80,3 @@ export { UserStatusOverview } from './userStatusOverview/types';

userStatusOverviews: UserStatusOverviewsEndpoint;
userDefinedFieldDefinitions: UserDefinedFieldDefinitionsEndpoint;
constructor(config: ApiConfig);

@@ -80,0 +83,0 @@ setConfig(config: unknown): void;

@@ -32,2 +32,3 @@ "use strict";

const todoTasks_1 = require("./todoTasks");
const userDefinedFieldDefinitions_1 = require("./userDefinedFieldDefinitions");
const users_1 = require("./users");

@@ -72,2 +73,3 @@ const userStatusOverview_1 = require("./userStatusOverview");

this.userStatusOverviews = new userStatusOverview_1.UserStatusOverviewsEndpoint(this.config);
this.userDefinedFieldDefinitions = new userDefinedFieldDefinitions_1.UserDefinedFieldDefinitionsEndpoint(this.config);
axiosSetup_1.interceptor({ state: this.state, config: this.config, authentication: this.authentication });

@@ -74,0 +76,0 @@ }

import BaseApi from '../baseApi';
import { RequestParams } from '../utils/params/requestParams';
import { ReadRawResponse } from '../utils/response/readRawResponse';
import { RecentTask } from './types';

@@ -8,2 +9,3 @@ export declare class RecentTasksEndpoint extends BaseApi {

readById(id: number, params?: RequestParams<RecentTask>): Promise<RecentTask>;
readRaw(params: RequestParams<RecentTask>): Promise<ReadRawResponse<RecentTask>>;
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RecentTasksEndpoint = void 0;
const baseApi_1 = require("../baseApi");
const rawApiResponse_1 = require("../utils/response/rawApiResponse");
const readRawResponse_1 = require("../utils/response/readRawResponse");
const resourceResponse_1 = require("../utils/response/resourceResponse");
const responseHandlers = require("../utils/response/responseHandlers");

@@ -19,4 +31,10 @@ class RecentTasksEndpoint extends baseApi_1.default {

}
readRaw(params) {
return __awaiter(this, void 0, void 0, function* () {
const response = this._get(`${this.getResourceName()}/read`, { params });
return readRawResponse_1.createReadRawResponse(resourceResponse_1.createResourceResponse(yield rawApiResponse_1.createRawApiResponse(response)), params);
});
}
}
exports.RecentTasksEndpoint = RecentTasksEndpoint;
//# sourceMappingURL=index.js.map

@@ -27,2 +27,13 @@ export interface TimeTracking {

t_iv_1?: string;
t_iv_2?: string;
t_iv_3?: string;
t_iv_4?: string;
t_iv_5?: string;
t_iv_6?: string;
u_iv_1?: string;
u_iv_2?: string;
u_iv_3?: string;
u_iv_4?: string;
u_iv_5?: string;
u_iv_6?: string;
approved_by_admin?: boolean;

@@ -47,2 +58,3 @@ geo_start_lat?: number;

is_paid_non_working?: boolean;
_temp_record_id?: string;
}

@@ -49,0 +61,0 @@ export declare type TimeTrackingCreate = Omit<TimeTracking, 'id'>;

import BaseApi from '../baseApi';
import { RequestParams } from '../utils/params/requestParams';
import { ReadRawResponse } from '../utils/response/readRawResponse';
import { TodoTask, TodoTaskCreate } from './types';

@@ -8,4 +9,5 @@ export declare class TodoTasksEndpoint extends BaseApi {

readById(id: number, params?: RequestParams<TodoTask>): Promise<TodoTask>;
readRaw(params: RequestParams<TodoTask>): Promise<ReadRawResponse<TodoTask>>;
create(data: TodoTaskCreate): Promise<TodoTask>;
delete(id: number): Promise<TodoTask>;
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TodoTasksEndpoint = void 0;
const baseApi_1 = require("../baseApi");
const rawApiResponse_1 = require("../utils/response/rawApiResponse");
const readRawResponse_1 = require("../utils/response/readRawResponse");
const resourceResponse_1 = require("../utils/response/resourceResponse");
const responseHandlers = require("../utils/response/responseHandlers");

@@ -19,2 +31,8 @@ class TodoTasksEndpoint extends baseApi_1.default {

}
readRaw(params) {
return __awaiter(this, void 0, void 0, function* () {
const response = this._get(`${this.getResourceName()}/read`, { params });
return readRawResponse_1.createReadRawResponse(resourceResponse_1.createResourceResponse(yield rawApiResponse_1.createRawApiResponse(response)), params);
});
}
create(data) {

@@ -21,0 +39,0 @@ const response = this._post(`${this.getResourceName()}/create`, data);

2

package.json
{
"name": "@timetac/js-client-library",
"version": "0.5.5",
"version": "0.5.6",
"description": "TimeTac API JS client library",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/TimeTac/js-client-library#readme",

@@ -195,3 +195,3 @@ # TimeTac Client Library

- [ ] [userDefinedFieldDefinitionOptions](https://api.timetac.com/doc/v3#tag/userDefinedFieldDefinitionOptions)
- [ ] [userDefinedFieldDefinitions](https://api.timetac.com/doc/v3#tag/userDefinedFieldDefinitions)
- [x] [userDefinedFieldDefinitions](https://api.timetac.com/doc/v3#tag/userDefinedFieldDefinitions)
- [x] [users](https://api.timetac.com/doc/v3#tag/users)

@@ -198,0 +198,0 @@ - [x] [userStatusOverview](https://api.timetac.com/doc/v3#tag/userStatusOverview)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc