@immomio/api-library
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -1,3 +0,36 @@ | ||
import { Appointment, AppointmentResponse, AppointmentsResponse, FindAppointment, FindAppointmentsByFlat, FindAppointmentsByProfile } from './types'; | ||
import { FlatUrl } from '../flats/types'; | ||
import { ProfileUrl } from '../profiles/types'; | ||
import { ApiRequest } from '../types'; | ||
import { JsonHalCollection, JsonHalObject } from '../utils/jsonHal'; | ||
export interface Appointment { | ||
ID: string; | ||
cancelationReason: string; | ||
canceled: boolean; | ||
date: Date; | ||
description: string; | ||
expired: boolean; | ||
flat: FlatUrl; | ||
maxInviteeCount: number; | ||
readonly currentInviteeCount: number; | ||
readonly defaultMaxInviteeCount: number; | ||
showContactInformation: boolean; | ||
userProfiles: ProfileUrl[]; | ||
} | ||
export interface FindAppointmentsByFlat extends ApiRequest { | ||
flatId: string; | ||
} | ||
export interface FindAppointmentsByProfile extends ApiRequest { | ||
profileId: string; | ||
} | ||
export interface FindAppointment extends ApiRequest { | ||
appointmentId: string; | ||
} | ||
export interface AppointmentResponse { | ||
headers: Headers; | ||
data: Appointment; | ||
} | ||
export interface AppointmentsResponse { | ||
headers: Headers; | ||
data: Appointment[]; | ||
} | ||
export declare const convertAppointment: (data: any) => Appointment; | ||
@@ -4,0 +37,0 @@ export declare const singleAppointmentResponse: (response: Response) => Promise<AppointmentResponse & JsonHalObject>; |
import * as appointments from './appointments'; | ||
import * as utils from './utils'; | ||
export { appointments, utils }; | ||
export * from './appointments/types'; |
{ | ||
"name": "@immomio/api-library", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Immomio library to access the immomio-API", | ||
@@ -5,0 +5,0 @@ "engineStrict": true, |
import { | ||
Appointment, | ||
AppointmentResponse, | ||
AppointmentsResponse, | ||
FindAppointment, | ||
FindAppointmentsByFlat, | ||
FindAppointmentsByProfile, | ||
} from './types' | ||
import { FlatUrl } from '../flats/types' | ||
import { ProfileUrl } from '../profiles/types' | ||
import { ApiRequest } from '../types' | ||
@@ -21,2 +14,42 @@ import { fetch } from '../utils/fetch' | ||
export interface Appointment { | ||
ID: string | ||
cancelationReason: string | ||
canceled: boolean | ||
date: Date // should be Date-only | ||
description: string | ||
expired: boolean | ||
flat: FlatUrl | ||
maxInviteeCount: number | ||
readonly currentInviteeCount: number | ||
readonly defaultMaxInviteeCount: number | ||
showContactInformation: boolean | ||
userProfiles: ProfileUrl[] | ||
} | ||
// ====== Reolver - Function Parameters | ||
export interface FindAppointmentsByFlat extends ApiRequest { | ||
flatId: string | ||
} | ||
export interface FindAppointmentsByProfile extends ApiRequest { | ||
profileId: string | ||
} | ||
export interface FindAppointment extends ApiRequest { | ||
appointmentId: string | ||
} | ||
// ====== Resolver - Responses | ||
export interface AppointmentResponse { | ||
headers: Headers | ||
data: Appointment | ||
} | ||
export interface AppointmentsResponse { | ||
headers: Headers | ||
data: Appointment[] | ||
} | ||
/* tslint:disable:max-line-length */ | ||
@@ -23,0 +56,0 @@ const urls = { |
@@ -9,3 +9,1 @@ | ||
} | ||
export * from './appointments/types' |
export * from './appointments/types' | ||
export * from './flats/types' | ||
@@ -4,0 +3,0 @@ export * from './profiles/types' |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24689
445
31