skedify-types
Advanced tools
Comparing version 0.0.0-canary-202202614408 to 0.0.0-canary-20220517083819
{ | ||
"version": "0.0.0-canary-202202614408", | ||
"version": "0.0.0-canary-20220517083819", | ||
"name": "skedify-types", | ||
@@ -18,10 +18,9 @@ "description": "Skedify Types", | ||
"dist", | ||
"CHANGELOG.md", | ||
"typings", | ||
"src" | ||
], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"tsconfig": "0.0.0-canary-202202614408", | ||
"scripts": "0.0.0-canary-202202614408" | ||
"scripts": "0.0.6", | ||
"tsconfig": "0.0.2" | ||
}, | ||
@@ -31,2 +30,5 @@ "jest": { | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
}, | ||
"publishConfig": { | ||
@@ -61,4 +63,4 @@ "registry": "https://registry.npmjs.org", | ||
"test": "jest --passWithNoTests", | ||
"lint": "TIMING=1 eslint src", | ||
"lint:fix": "TIMING=1 eslint src --fix", | ||
"lint": "cross-env TIMING=1 eslint src", | ||
"lint:fix": "cross-env TIMING=1 eslint src --fix", | ||
"clean": "rm -rf .turbo node_modules dist typings" | ||
@@ -65,0 +67,0 @@ }, |
export * from "./logger"; | ||
export * from "./resources"; | ||
export * from "./utils"; |
@@ -17,5 +17,17 @@ export interface LoggerMeta { | ||
sessionId?: string; | ||
error?: Error; | ||
} | ||
export enum LOG_LEVEL { | ||
TRACE = "trace", | ||
DEBUG = "debug", | ||
INFO = "info", | ||
WARN = "warn", | ||
ERROR = "error", | ||
FATAL = "fatal", | ||
EMERG = "emerg", | ||
} | ||
export interface Logger { | ||
log: (level: LOG_LEVEL, message: string, meta?: LoggerMeta) => void; | ||
trace: (message: string, meta?: LoggerMeta) => void; | ||
@@ -22,0 +34,0 @@ debug: (message: string, meta?: LoggerMeta) => void; |
@@ -19,2 +19,11 @@ import { | ||
export enum AppointmentStateEnum { | ||
ACCEPTED = "accepted", | ||
INCOMING = "incoming", | ||
OUTGOING = "outgoing", | ||
COMPLETED = "completed", | ||
CANCELLED = "cancelled", | ||
OCCURRED = "occurred", | ||
} | ||
export enum AppointmentUserType { | ||
@@ -61,3 +70,3 @@ CUSTOMER = "customer", | ||
cancelled_by_type: AppointmentUserType | null; | ||
initiated_from: string; | ||
initiated_from: string | null; | ||
initiated_by_id: string; | ||
@@ -86,4 +95,4 @@ initiated_by_type: AppointmentUserType; | ||
created_by_type: AppointmentUserType; | ||
updated_by_id: string; | ||
updated_by_type: AppointmentUserType; | ||
updated_by_id: string | null; | ||
updated_by_type: AppointmentUserType | null; | ||
updated_at: string; | ||
@@ -90,0 +99,0 @@ } |
@@ -31,2 +31,3 @@ export interface SyncAccount { | ||
min_access_role: string; | ||
read_only?: boolean; | ||
originally_created: unknown; | ||
@@ -33,0 +34,0 @@ last_modified: unknown; |
@@ -1,2 +0,2 @@ | ||
import { BaseFields } from "."; | ||
import { BaseFields, Location } from "."; | ||
@@ -14,3 +14,3 @@ export interface Customer extends BaseFields { | ||
date_of_birth: string | null; | ||
language: string; | ||
language: string | null; | ||
phone_number: string | null; | ||
@@ -24,3 +24,3 @@ profile_picture: number | null; | ||
updated_at: string; | ||
location: string | null; | ||
location: Location | null; | ||
} |
@@ -30,3 +30,3 @@ import { BaseFields } from "."; | ||
export interface ContactRole extends BaseRole { | ||
uuid: string; | ||
uuid: string | null; | ||
default_week_template: string | null; | ||
@@ -33,0 +33,0 @@ function: string | null; |
@@ -65,2 +65,6 @@ import { Locale } from "."; | ||
export enum WebAppCustomerBehaviour { | ||
ENABLED = "enabled", | ||
DISABLED = "disabled", | ||
} | ||
export interface EnterpriseCustomerSettings { | ||
@@ -71,3 +75,3 @@ appointment_create_allow_change_customer: boolean; | ||
appointment_create_allow_invite_customer: boolean; | ||
web_app_customers_behaviour: "enabled" | "disabled"; | ||
web_app_customers_behaviour: WebAppCustomerBehaviour; | ||
} | ||
@@ -74,0 +78,0 @@ |
@@ -1,11 +0,8 @@ | ||
export type UserEventProvider = "google" | "office365" | "exchange"; | ||
export type UserEventAvailability = "free" | "busy" | "all"; | ||
export interface Event { | ||
// id: string; | ||
provider: UserEventProvider; | ||
calendar_id: string; | ||
event_uid: string; | ||
title?: string; | ||
description: string; | ||
description: string | null; | ||
start: string; | ||
@@ -19,6 +16,4 @@ end: string; | ||
skedify_is_sync_availability: boolean; | ||
resource_id: string | null; | ||
resource_type: string | null; | ||
created_at: string; | ||
updated_at: string; | ||
} |
@@ -10,3 +10,2 @@ export * from "./appointment"; | ||
export * from "./dayWeekTemplates"; | ||
export * from "./definedAvailability"; | ||
export * from "./employees"; | ||
@@ -30,2 +29,3 @@ export * from "./enterprise"; | ||
export * from "./subject"; | ||
export * from "./timeslot"; | ||
export * from "./users"; |
@@ -67,2 +67,9 @@ import { BaseFields, Locale } from "."; | ||
export type MeetingType = "office" | "on_location" | "phone" | "video"; | ||
export enum MeetingTypeEnum { | ||
OFFICE = "office", | ||
ON_LOCATION = "on_location", | ||
PHONE = "phone", | ||
VIDEO = "video", | ||
} | ||
export type ReceiverType = "customer" | "contact"; | ||
@@ -69,0 +76,0 @@ |
export * from "./logger"; | ||
export * from "./resources"; | ||
export * from "./utils"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,4 +17,15 @@ export interface LoggerMeta { | ||
sessionId?: string; | ||
error?: Error; | ||
} | ||
export declare enum LOG_LEVEL { | ||
TRACE = "trace", | ||
DEBUG = "debug", | ||
INFO = "info", | ||
WARN = "warn", | ||
ERROR = "error", | ||
FATAL = "fatal", | ||
EMERG = "emerg" | ||
} | ||
export interface Logger { | ||
log: (level: LOG_LEVEL, message: string, meta?: LoggerMeta) => void; | ||
trace: (message: string, meta?: LoggerMeta) => void; | ||
@@ -21,0 +32,0 @@ debug: (message: string, meta?: LoggerMeta) => void; |
import { BaseFields, Customer, Employee, Location, MeetingType, Subject, WithEmployeeUser } from "."; | ||
export declare type AppointmentState = "incoming" | "outgoing" | "completed" | "cancelled" | "accepted" | "occurred"; | ||
export declare enum AppointmentStateEnum { | ||
ACCEPTED = "accepted", | ||
INCOMING = "incoming", | ||
OUTGOING = "outgoing", | ||
COMPLETED = "completed", | ||
CANCELLED = "cancelled", | ||
OCCURRED = "occurred" | ||
} | ||
export declare enum AppointmentUserType { | ||
@@ -37,3 +45,3 @@ CUSTOMER = "customer", | ||
cancelled_by_type: AppointmentUserType | null; | ||
initiated_from: string; | ||
initiated_from: string | null; | ||
initiated_by_id: string; | ||
@@ -60,4 +68,4 @@ initiated_by_type: AppointmentUserType; | ||
created_by_type: AppointmentUserType; | ||
updated_by_id: string; | ||
updated_by_type: AppointmentUserType; | ||
updated_by_id: string | null; | ||
updated_by_type: AppointmentUserType | null; | ||
updated_at: string; | ||
@@ -64,0 +72,0 @@ } |
@@ -30,2 +30,3 @@ export interface SyncAccount { | ||
min_access_role: string; | ||
read_only?: boolean; | ||
originally_created: unknown; | ||
@@ -32,0 +33,0 @@ last_modified: unknown; |
@@ -1,2 +0,2 @@ | ||
import { BaseFields } from "."; | ||
import { BaseFields, Location } from "."; | ||
export interface Customer extends BaseFields { | ||
@@ -13,3 +13,3 @@ uuid: string; | ||
date_of_birth: string | null; | ||
language: string; | ||
language: string | null; | ||
phone_number: string | null; | ||
@@ -25,4 +25,4 @@ profile_picture: number | null; | ||
updated_at: string; | ||
location: string | null; | ||
location: Location | null; | ||
} | ||
//# sourceMappingURL=customer.d.ts.map |
@@ -27,3 +27,3 @@ import { BaseFields } from "."; | ||
export interface ContactRole extends BaseRole { | ||
uuid: string; | ||
uuid: string | null; | ||
default_week_template: string | null; | ||
@@ -30,0 +30,0 @@ function: string | null; |
@@ -57,2 +57,6 @@ import { Locale } from "."; | ||
} | ||
export declare enum WebAppCustomerBehaviour { | ||
ENABLED = "enabled", | ||
DISABLED = "disabled" | ||
} | ||
export interface EnterpriseCustomerSettings { | ||
@@ -63,3 +67,3 @@ appointment_create_allow_change_customer: boolean; | ||
appointment_create_allow_invite_customer: boolean; | ||
web_app_customers_behaviour: "enabled" | "disabled"; | ||
web_app_customers_behaviour: WebAppCustomerBehaviour; | ||
} | ||
@@ -66,0 +70,0 @@ export interface EnterpriseSubjectSettings { |
@@ -1,9 +0,7 @@ | ||
export declare type UserEventProvider = "google" | "office365" | "exchange"; | ||
export declare type UserEventAvailability = "free" | "busy" | "all"; | ||
export interface Event { | ||
provider: UserEventProvider; | ||
calendar_id: string; | ||
event_uid: string; | ||
title?: string; | ||
description: string; | ||
description: string | null; | ||
start: string; | ||
@@ -17,4 +15,2 @@ end: string; | ||
skedify_is_sync_availability: boolean; | ||
resource_id: string | null; | ||
resource_type: string | null; | ||
created_at: string; | ||
@@ -21,0 +17,0 @@ updated_at: string; |
@@ -10,3 +10,2 @@ export * from "./appointment"; | ||
export * from "./dayWeekTemplates"; | ||
export * from "./definedAvailability"; | ||
export * from "./employees"; | ||
@@ -30,3 +29,4 @@ export * from "./enterprise"; | ||
export * from "./subject"; | ||
export * from "./timeslot"; | ||
export * from "./users"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -61,2 +61,8 @@ import { BaseFields, Locale } from "."; | ||
export declare type MeetingType = "office" | "on_location" | "phone" | "video"; | ||
export declare enum MeetingTypeEnum { | ||
OFFICE = "office", | ||
ON_LOCATION = "on_location", | ||
PHONE = "phone", | ||
VIDEO = "video" | ||
} | ||
export declare type ReceiverType = "customer" | "contact"; | ||
@@ -63,0 +69,0 @@ export interface SubjectAvailabilitySettings { |
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
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
215353
104
2315