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
214
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 2.11.0 to 2.12.0

2

dist/cjs/index.d.ts

@@ -133,3 +133,3 @@ import { AbsenceBansEndpoint } from './absenceBans';

export { Feature } from './features/types';
export { MonitoringRulesFrequency, MonitoringRulesRead, MonitotingRulesUpdate } from './monitoringRule/monitoringRules/types';
export { MonitoringRulesFrequency, MonitoringRulesRead, MonitoringRulesUpdate, MonitoringRulesCreate, MonitoringRuleNotificationOption, } from './monitoringRule/monitoringRules/types';
export { MonitoringRuleTemplatesRead } from './monitoringRule/monitoringRuleTemplates/types';

@@ -136,0 +136,0 @@ export { MonitoringRuleRecipientsRead } from './monitoringRule/monitoringRuleRecipients/types';

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MonitoringRulesFrequency = exports.requiredSingle = exports.plainObject = exports.resourceNameArray = exports.RequestParamsBuilder = exports.DeltaSyncParams = exports.testAxiosObject = exports.BaseApi = void 0;
exports.MonitoringRuleNotificationOption = exports.MonitoringRulesFrequency = exports.requiredSingle = exports.plainObject = exports.resourceNameArray = exports.RequestParamsBuilder = exports.DeltaSyncParams = exports.testAxiosObject = exports.BaseApi = void 0;
const absenceBans_1 = require("./absenceBans");

@@ -98,2 +98,3 @@ const absenceDays_1 = require("./absenceDays");

Object.defineProperty(exports, "MonitoringRulesFrequency", { enumerable: true, get: function () { return types_1.MonitoringRulesFrequency; } });
Object.defineProperty(exports, "MonitoringRuleNotificationOption", { enumerable: true, get: function () { return types_1.MonitoringRuleNotificationOption; } });
const DEFAULT_HOST = 'go.timetac.com';

@@ -100,0 +101,0 @@ class Api {

import BaseApi from '../../baseApi';
import { RequestParams } from '../../utils/params/requestParams';
import { Entity, LibraryReturn } from '../../utils/response/apiResponse';
import { MonitotingRulesUpdate } from './types';
import { MonitoringRulesCreate, MonitoringRulesUpdate } from './types';
declare const resourceName = "monitoringRules";

@@ -10,4 +10,5 @@ type ResourceName = typeof resourceName;

read(params?: RequestParams<Entity<typeof resourceName>> | string): Promise<LibraryReturn<typeof resourceName, Entity<typeof resourceName>[]>>;
update(data: MonitotingRulesUpdate, params?: RequestParams<Entity<ResourceName>>): import("../../utils/response/responseHandlers").Required<"monitoringRules", import("./types").MonitoringRulesRead[]>;
update(data: MonitoringRulesUpdate, params?: RequestParams<Entity<ResourceName>>): import("../../utils/response/responseHandlers").Required<"monitoringRules", import("./types").MonitoringRulesRead[]>;
create(data: MonitoringRulesCreate, params?: RequestParams<Entity<ResourceName>>): Promise<LibraryReturn<"monitoringRules">>;
}
export {};

@@ -20,4 +20,8 @@ "use strict";

}
create(data, params) {
const response = this._post('create', data, params);
return (0, responseHandlers_1.requiredSingle)(response);
}
}
exports.MonitoringRulesEndpoint = MonitoringRulesEndpoint;
//# sourceMappingURL=index.js.map
export declare enum MonitoringRulesFrequency {
Day = "DAY",
Hour = "HOUR",
Week = "WEEK",

@@ -8,6 +9,14 @@ Month = "MONTH",

}
export declare enum MonitoringRuleNotificationOption {
Notification = "N",
Mail = "M",
NotificationAndMail = "NM",
Csv = "C",
CsvAndMail = "CM",
CsvAndNotificationAndMail = "CNM"
}
export type MonitoringRulesRead = {
id: number;
default_template_id: string | null;
active: boolean;
active: number;
title: string;

@@ -20,3 +29,3 @@ description: string;

cron_last_run: string;
notification_channels: string;
notification_channels: MonitoringRuleNotificationOption;
spam_protection_unit: string;

@@ -26,5 +35,3 @@ config: string;

};
export type MonitotingRulesUpdate = {
id: number;
active: boolean;
};
export type MonitoringRulesCreate = Required<Pick<MonitoringRulesRead, 'default_template_id' | 'active' | 'title' | 'description' | 'cron_freq_interval' | 'cron_freq' | 'cron_time' | 'cron_last_run' | 'notification_channels'>> & Partial<Pick<MonitoringRulesRead, 'id' | 'handler_class' | 'spam_protection_unit' | 'config'>>;
export type MonitoringRulesUpdate = Required<Pick<MonitoringRulesRead, 'id'>> & Partial<Pick<MonitoringRulesRead, 'default_template_id' | 'active' | 'title' | 'description' | 'handler_class' | 'cron_freq' | 'cron_freq_interval' | 'cron_time' | 'cron_last_run' | 'notification_channels' | 'spam_protection_unit' | 'config'>>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MonitoringRulesFrequency = void 0;
exports.MonitoringRuleNotificationOption = exports.MonitoringRulesFrequency = void 0;
var MonitoringRulesFrequency;
(function (MonitoringRulesFrequency) {
MonitoringRulesFrequency["Day"] = "DAY";
MonitoringRulesFrequency["Hour"] = "HOUR";
MonitoringRulesFrequency["Week"] = "WEEK";

@@ -12,2 +13,11 @@ MonitoringRulesFrequency["Month"] = "MONTH";

})(MonitoringRulesFrequency || (exports.MonitoringRulesFrequency = MonitoringRulesFrequency = {}));
var MonitoringRuleNotificationOption;
(function (MonitoringRuleNotificationOption) {
MonitoringRuleNotificationOption["Notification"] = "N";
MonitoringRuleNotificationOption["Mail"] = "M";
MonitoringRuleNotificationOption["NotificationAndMail"] = "NM";
MonitoringRuleNotificationOption["Csv"] = "C";
MonitoringRuleNotificationOption["CsvAndMail"] = "CM";
MonitoringRuleNotificationOption["CsvAndNotificationAndMail"] = "CNM";
})(MonitoringRuleNotificationOption || (exports.MonitoringRuleNotificationOption = MonitoringRuleNotificationOption = {}));
//# sourceMappingURL=types.js.map

@@ -133,3 +133,3 @@ import { AbsenceBansEndpoint } from './absenceBans';

export { Feature } from './features/types';
export { MonitoringRulesFrequency, MonitoringRulesRead, MonitotingRulesUpdate } from './monitoringRule/monitoringRules/types';
export { MonitoringRulesFrequency, MonitoringRulesRead, MonitoringRulesUpdate, MonitoringRulesCreate, MonitoringRuleNotificationOption, } from './monitoringRule/monitoringRules/types';
export { MonitoringRuleTemplatesRead } from './monitoringRule/monitoringRuleTemplates/types';

@@ -136,0 +136,0 @@ export { MonitoringRuleRecipientsRead } from './monitoringRule/monitoringRuleRecipients/types';

@@ -71,3 +71,3 @@ import { AbsenceBansEndpoint } from './absenceBans';

export { plainObject, requiredSingle } from './utils/response/responseHandlers';
export { MonitoringRulesFrequency } from './monitoringRule/monitoringRules/types';
export { MonitoringRulesFrequency, MonitoringRuleNotificationOption, } from './monitoringRule/monitoringRules/types';
const DEFAULT_HOST = 'go.timetac.com';

@@ -74,0 +74,0 @@ export default class Api {

import BaseApi from '../../baseApi';
import { RequestParams } from '../../utils/params/requestParams';
import { Entity, LibraryReturn } from '../../utils/response/apiResponse';
import { MonitotingRulesUpdate } from './types';
import { MonitoringRulesCreate, MonitoringRulesUpdate } from './types';
declare const resourceName = "monitoringRules";

@@ -10,4 +10,5 @@ type ResourceName = typeof resourceName;

read(params?: RequestParams<Entity<typeof resourceName>> | string): Promise<LibraryReturn<typeof resourceName, Entity<typeof resourceName>[]>>;
update(data: MonitotingRulesUpdate, params?: RequestParams<Entity<ResourceName>>): import("../../utils/response/responseHandlers").Required<"monitoringRules", import("./types").MonitoringRulesRead[]>;
update(data: MonitoringRulesUpdate, params?: RequestParams<Entity<ResourceName>>): import("../../utils/response/responseHandlers").Required<"monitoringRules", import("./types").MonitoringRulesRead[]>;
create(data: MonitoringRulesCreate, params?: RequestParams<Entity<ResourceName>>): Promise<LibraryReturn<"monitoringRules">>;
}
export {};
import BaseApi from '../../baseApi';
import { list, required } from '../../utils/response/responseHandlers';
import { list, required, requiredSingle } from '../../utils/response/responseHandlers';
const resourceName = 'monitoringRules';

@@ -17,3 +17,7 @@ export class MonitoringRulesEndpoint extends BaseApi {

}
create(data, params) {
const response = this._post('create', data, params);
return requiredSingle(response);
}
}
//# sourceMappingURL=index.js.map
export declare enum MonitoringRulesFrequency {
Day = "DAY",
Hour = "HOUR",
Week = "WEEK",

@@ -8,6 +9,14 @@ Month = "MONTH",

}
export declare enum MonitoringRuleNotificationOption {
Notification = "N",
Mail = "M",
NotificationAndMail = "NM",
Csv = "C",
CsvAndMail = "CM",
CsvAndNotificationAndMail = "CNM"
}
export type MonitoringRulesRead = {
id: number;
default_template_id: string | null;
active: boolean;
active: number;
title: string;

@@ -20,3 +29,3 @@ description: string;

cron_last_run: string;
notification_channels: string;
notification_channels: MonitoringRuleNotificationOption;
spam_protection_unit: string;

@@ -26,5 +35,3 @@ config: string;

};
export type MonitotingRulesUpdate = {
id: number;
active: boolean;
};
export type MonitoringRulesCreate = Required<Pick<MonitoringRulesRead, 'default_template_id' | 'active' | 'title' | 'description' | 'cron_freq_interval' | 'cron_freq' | 'cron_time' | 'cron_last_run' | 'notification_channels'>> & Partial<Pick<MonitoringRulesRead, 'id' | 'handler_class' | 'spam_protection_unit' | 'config'>>;
export type MonitoringRulesUpdate = Required<Pick<MonitoringRulesRead, 'id'>> & Partial<Pick<MonitoringRulesRead, 'default_template_id' | 'active' | 'title' | 'description' | 'handler_class' | 'cron_freq' | 'cron_freq_interval' | 'cron_time' | 'cron_last_run' | 'notification_channels' | 'spam_protection_unit' | 'config'>>;
export var MonitoringRulesFrequency;
(function (MonitoringRulesFrequency) {
MonitoringRulesFrequency["Day"] = "DAY";
MonitoringRulesFrequency["Hour"] = "HOUR";
MonitoringRulesFrequency["Week"] = "WEEK";

@@ -9,2 +10,11 @@ MonitoringRulesFrequency["Month"] = "MONTH";

})(MonitoringRulesFrequency || (MonitoringRulesFrequency = {}));
export var MonitoringRuleNotificationOption;
(function (MonitoringRuleNotificationOption) {
MonitoringRuleNotificationOption["Notification"] = "N";
MonitoringRuleNotificationOption["Mail"] = "M";
MonitoringRuleNotificationOption["NotificationAndMail"] = "NM";
MonitoringRuleNotificationOption["Csv"] = "C";
MonitoringRuleNotificationOption["CsvAndMail"] = "CM";
MonitoringRuleNotificationOption["CsvAndNotificationAndMail"] = "CNM";
})(MonitoringRuleNotificationOption || (MonitoringRuleNotificationOption = {}));
//# sourceMappingURL=types.js.map
{
"name": "@timetac/js-client-library",
"version": "2.11.0",
"version": "2.12.0",
"description": "TimeTac API JS client library",

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

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

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