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.1.3 to 1.2.0

6

lib/appointments/resolver.d.ts
import { Api } from '../api';
import { FlatUrl } from '../flats';
import { Flat } from '../flats';
import { ProfileUrl } from '../profiles';

@@ -12,3 +12,3 @@ import { JsonHalCollection, JsonHalObject } from '../utils/jsonHal';

expired: boolean;
flat: FlatUrl;
flat: Flat;
maxInviteeCount: number;

@@ -43,2 +43,2 @@ readonly currentInviteeCount: number;

export declare const findAppointment: (locals: FindAppointment, api?: Api) => Promise<AppointmentResponse & JsonHalObject>;
export declare const filterValidAppointments: (appointments: Appointment[], validAppointments: Appointment[], flat: string) => Appointment[];
export declare const filterValidAppointments: (appointments: Appointment[], validAppointments: Appointment[], flat: Flat) => Appointment[];

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

const hasAppointmentFreeSlots = (appointment) => appointment.maxInviteeCount === -1 || appointment.currentInviteeCount < appointment.maxInviteeCount;
const appointmentForFlatFilter = (flat) => (appointment) => appointment.flat === flat;
const appointmentForFlatFilter = (flat) => (appointment) => appointment.flat.id === flat.id;
exports.filterValidAppointments = (appointments, validAppointments, flat) => {

@@ -56,0 +56,0 @@ const flatFilter = appointmentForFlatFilter(flat);

import { ApiUrlPath } from '../api';
export declare type FlatUrl = ApiUrlPath;
export interface Flat {
ID: string;
id: string;
name: string;
}
{
"name": "@immomio/api-library",
"version": "1.1.3",
"version": "1.2.0",
"description": "Immomio library to access the immomio-API",

@@ -5,0 +5,0 @@ "engineStrict": true,

import { Api, api as defaultApi } from '../api'
import { FlatUrl } from '../flats'
import { Flat } from '../flats'
import { ProfileUrl } from '../profiles'

@@ -23,3 +23,3 @@ import { fetch } from '../utils/fetch'

expired: boolean
flat: FlatUrl
flat: Flat
maxInviteeCount: number

@@ -131,4 +131,4 @@ readonly currentInviteeCount: number

/** factory to generate functions that check if an appointment connects to a specific flat */
const appointmentForFlatFilter = (flat: FlatUrl) => (appointment: Appointment) =>
appointment.flat === flat
const appointmentForFlatFilter = (flat: Flat) => (appointment: Appointment) =>
appointment.flat.id === flat.id

@@ -144,3 +144,3 @@ /**

validAppointments: Appointment[],
flat: FlatUrl,
flat: Flat,
): Appointment[] => {

@@ -147,0 +147,0 @@ const flatFilter = appointmentForFlatFilter(flat)

@@ -7,4 +7,4 @@

export interface Flat {
ID: string
id: string
name: string
}

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