skedify-types
Advanced tools
Comparing version 0.0.0-canary-2021101216436 to 0.0.0-canary-2021117121011
@@ -1,6 +0,6 @@ | ||
import { BaseFields, Customer, Employee, Subject, WithEmployeeUser } from "."; | ||
import { BaseFields, Customer, Employee, MeetingType, Subject, WithEmployeeUser } from "."; | ||
export declare type AppointmentState = "incoming" | "outgoing" | "completed" | "cancelled" | "accepted" | "occurred"; | ||
export interface Appointment extends Omit<BaseFields, "enterprise_id"> { | ||
uuid: string; | ||
listing_uuid: string; | ||
listing_uuid: string | null; | ||
contact_id: string; | ||
@@ -11,6 +11,6 @@ customer_id: string; | ||
state: AppointmentState; | ||
meeting_type: string; | ||
meeting_type: MeetingType; | ||
first_possibility_id: string; | ||
notes?: string; | ||
outcome_remark?: string; | ||
notes: string | null; | ||
outcome_remark: string | null; | ||
trailing_buffer_time: number; | ||
@@ -20,9 +20,9 @@ metadata: any[]; | ||
is_success: boolean; | ||
video_url_for_contact: string; | ||
video_url_for_customer: string; | ||
video_test_url_for_contact: string; | ||
video_test_url_for_customer: string; | ||
cancellation_reason_id?: string; | ||
cancelled_by_id?: string; | ||
cancelled_by_type?: string; | ||
video_url_for_contact: string | null; | ||
video_url_for_customer: string | null; | ||
video_test_url_for_contact: string | null; | ||
video_test_url_for_customer: string | null; | ||
cancellation_reason_id: string | null; | ||
cancelled_by_id: string | null; | ||
cancelled_by_type: string | null; | ||
initiated_from: string; | ||
@@ -32,7 +32,7 @@ initiated_by_id: string; | ||
updated_at: string; | ||
updated_by_id: string; | ||
updated_by_type: string; | ||
updated_by_id: string | null; | ||
updated_by_type: string | null; | ||
} | ||
export interface Possibility extends Omit<BaseFields, "enterprise_id" | "external_id"> { | ||
appointment_id: number; | ||
appointment_id: string; | ||
start: string; | ||
@@ -44,5 +44,5 @@ end: string; | ||
next_possibility_id: string | null; | ||
created_by_id: number; | ||
created_by_id: string; | ||
created_by_type: string; | ||
updated_by_id: number; | ||
updated_by_id: string; | ||
updated_by_type: string; | ||
@@ -49,0 +49,0 @@ updated_at: string; |
@@ -1,5 +0,19 @@ | ||
import { SyncAccount } from "."; | ||
export interface SyncAccountCalendar { | ||
export interface SyncAccount { | ||
id: string; | ||
user_id: string; | ||
account_email: string; | ||
account_id: string; | ||
provider: "office365" | "exchange" | "google"; | ||
profile_picture: string; | ||
profile_url: any; | ||
access_token?: string | null; | ||
refresh_token?: string | null; | ||
access_token_expire: string; | ||
locale: any; | ||
created_at: string; | ||
updated_at: string; | ||
} | ||
export interface Calendar { | ||
id: string; | ||
provider: "office365" | "exchange" | "google"; | ||
sync_account_id: string; | ||
@@ -22,5 +36,5 @@ syncing: boolean; | ||
} | ||
export interface WithSyncAccount { | ||
sync_account: SyncAccount[]; | ||
export interface WithSyncAccount<T = unknown> { | ||
sync_account: SyncAccount & T; | ||
} | ||
//# sourceMappingURL=calendars.d.ts.map |
import { BaseFields } from "."; | ||
export interface Customer extends BaseFields { | ||
uuid: string; | ||
user_id?: string; | ||
preferred_office_id?: string; | ||
preferred_contact_id?: string; | ||
external_id?: string; | ||
email: string; | ||
first_name: string; | ||
user_id: string | null; | ||
preferred_office_id: string | null; | ||
preferred_contact_id: string | null; | ||
external_id: string | null; | ||
email: string | null; | ||
first_name: string | null; | ||
last_name: string; | ||
gender?: string; | ||
date_of_birth?: string; | ||
gender: string | null; | ||
date_of_birth: string | null; | ||
language: string; | ||
phone_number?: string; | ||
profile_picture?: string; | ||
phone_number: string | null; | ||
profile_picture: string | null; | ||
timezone: string; | ||
customer_number?: string; | ||
company?: string; | ||
notes?: string; | ||
customer_number: string | null; | ||
company: string | null; | ||
notes: string | null; | ||
is_existing: boolean; | ||
updated_at: string; | ||
location?: string; | ||
location: string | null; | ||
} | ||
//# sourceMappingURL=customer.d.ts.map |
@@ -56,6 +56,6 @@ import { BaseFields } from "."; | ||
phone_number: string | null; | ||
profile_picture: string | null; | ||
profile_picture: number | null; | ||
state: State; | ||
updated_at: string; | ||
user_id: string; | ||
user_id: string | null; | ||
} | ||
@@ -85,2 +85,6 @@ export interface WithEmployeeUser { | ||
} | ||
export interface FavoriteContact { | ||
contact_id: string; | ||
office_id: string; | ||
} | ||
export interface Admin extends ContactInfo { | ||
@@ -87,0 +91,0 @@ roles: { |
@@ -0,6 +1,8 @@ | ||
export declare type UserEventProvider = "google" | "office365" | "exchange"; | ||
export declare type UserEventAvailability = "free" | "busy" | "all"; | ||
export interface Event { | ||
provider: "google" | "office365" | "exchange"; | ||
provider: UserEventProvider; | ||
calendar_id: string; | ||
event_uid: string; | ||
title: string; | ||
title?: string; | ||
description: string; | ||
@@ -10,3 +12,3 @@ start: string; | ||
is_full_day: boolean; | ||
availability: "free" | "busy" | "all"; | ||
availability: UserEventAvailability; | ||
private: boolean; | ||
@@ -13,0 +15,0 @@ appointment_id: null | string; |
@@ -9,2 +9,3 @@ export * from "./appointment"; | ||
export * from "./dayWeekTemplates"; | ||
export * from "./definedAvailability"; | ||
export * from "./employees"; | ||
@@ -11,0 +12,0 @@ export * from "./enterprise"; |
@@ -1,23 +0,11 @@ | ||
import { SyncAccountCalendar } from "."; | ||
export interface WithSyncAccounts<T> { | ||
import { Calendar, Employee, SyncAccount } from "."; | ||
export interface WithSyncAccounts<T = unknown> { | ||
sync_accounts: (SyncAccount & T)[]; | ||
} | ||
export interface SyncAccount { | ||
id: string; | ||
user_id: string; | ||
account_email: string; | ||
account_id: string; | ||
provider: "office365" | "exchange" | "google"; | ||
profile_picture: string; | ||
profile_url: any; | ||
access_token?: string | null; | ||
refresh_token?: string | null; | ||
access_token_expire: string; | ||
locale: any; | ||
created_at: string; | ||
updated_at: string; | ||
export interface WithCalendars<T = unknown> { | ||
calendars: (Calendar & T)[]; | ||
} | ||
export interface WithCalendars { | ||
calendars: SyncAccountCalendar[]; | ||
export interface WithEmployees<T = unknown> { | ||
employees: (Employee & T)[]; | ||
} | ||
//# sourceMappingURL=users.d.ts.map |
{ | ||
"version": "0.0.0-canary-2021101216436", | ||
"version": "0.0.0-canary-2021117121011", | ||
"name": "skedify-types", | ||
@@ -21,4 +21,4 @@ "description": "Skedify Types", | ||
"devDependencies": { | ||
"tsc-alias": "^1.3.10", | ||
"vite": "^2.6.7", | ||
"tsc-alias": "^1.4.1", | ||
"vite": "^2.6.14", | ||
"vite-tsconfig-paths": "^3.3.17" | ||
@@ -25,0 +25,0 @@ }, |
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
59591
65
989