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

@immomio/api-library

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@immomio/api-library - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

35

lib/appointments/resolver.d.ts

@@ -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>;

1

lib/main.d.ts
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

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