balendar 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/client.d.ts +172 -93
- package/dist/lib/models.js +5 -5
- package/dist/src/modules/availability-rules/availability-rules.domain.d.ts +6 -6
- package/dist/src/modules/calendar-mappings/calendar-mappings.domain.d.ts +6 -6
- package/dist/src/modules/event-mappings/event-mappings.domain.d.ts +6 -6
- package/dist/src/modules/events/events.domain.d.ts +3 -3
- package/dist/src/shared/schemas/id.models.d.ts +1 -1
- package/dist/src/shared/schemas/pagination.models.d.ts +3 -3
- package/package.json +1 -1
package/dist/lib/client.d.ts
CHANGED
|
@@ -522,103 +522,105 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
522
522
|
}>>;
|
|
523
523
|
};
|
|
524
524
|
};
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
bookingDurationMinutes: number;
|
|
539
|
-
slotGapMinutes: number;
|
|
540
|
-
timeZone: string;
|
|
541
|
-
};
|
|
542
|
-
}, options?: {
|
|
543
|
-
headers?: Record<string, unknown> | undefined;
|
|
544
|
-
query?: Record<string, unknown> | undefined;
|
|
545
|
-
fetch?: RequestInit | undefined;
|
|
546
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
547
|
-
200: {
|
|
548
|
-
userId: number;
|
|
549
|
-
timeZone: string;
|
|
550
|
-
bookingLocationAvailability: {
|
|
551
|
-
bookingLocationId: number;
|
|
552
|
-
timeSlotCount: number;
|
|
553
|
-
timeSlots: {
|
|
554
|
-
date: string;
|
|
555
|
-
time: string[];
|
|
525
|
+
availability: {
|
|
526
|
+
"user-time-slots": {
|
|
527
|
+
post: (body: {
|
|
528
|
+
filters: {
|
|
529
|
+
dateFrom: string;
|
|
530
|
+
dateTo: string;
|
|
531
|
+
timeFrom: string;
|
|
532
|
+
timeTo: string;
|
|
533
|
+
userId: number;
|
|
534
|
+
bookingLocations: {
|
|
535
|
+
bookingLocationId: number;
|
|
536
|
+
bufferMinutes: number;
|
|
537
|
+
leadMinutes: number;
|
|
556
538
|
}[];
|
|
539
|
+
bookingDurationMinutes: number;
|
|
540
|
+
slotGapMinutes: number;
|
|
541
|
+
timeZone: string;
|
|
542
|
+
};
|
|
543
|
+
}, options?: {
|
|
544
|
+
headers?: Record<string, unknown> | undefined;
|
|
545
|
+
query?: Record<string, unknown> | undefined;
|
|
546
|
+
fetch?: RequestInit | undefined;
|
|
547
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
548
|
+
200: {
|
|
549
|
+
userId: number;
|
|
550
|
+
timeZone: string;
|
|
551
|
+
bookingLocationAvailability: {
|
|
552
|
+
bookingLocationId: number;
|
|
553
|
+
timeSlotCount: number;
|
|
554
|
+
timeSlots: {
|
|
555
|
+
date: string;
|
|
556
|
+
time: string[];
|
|
557
|
+
}[];
|
|
558
|
+
}[];
|
|
559
|
+
};
|
|
560
|
+
400: {
|
|
561
|
+
error: string;
|
|
562
|
+
};
|
|
563
|
+
422: {
|
|
564
|
+
type: "validation";
|
|
565
|
+
on: string;
|
|
566
|
+
summary?: string;
|
|
567
|
+
message?: string;
|
|
568
|
+
found?: unknown;
|
|
569
|
+
property?: string;
|
|
570
|
+
expected?: string;
|
|
571
|
+
};
|
|
572
|
+
}>>;
|
|
573
|
+
};
|
|
574
|
+
"users-time-slots": {
|
|
575
|
+
post: (body: {
|
|
576
|
+
baseFilters: {
|
|
577
|
+
dateFrom: string;
|
|
578
|
+
dateTo: string;
|
|
579
|
+
timeFrom: string;
|
|
580
|
+
timeTo: string;
|
|
581
|
+
};
|
|
582
|
+
userFilters: {
|
|
583
|
+
userId: number;
|
|
584
|
+
bookingLocations: {
|
|
585
|
+
bookingLocationId: number;
|
|
586
|
+
bufferMinutes: number;
|
|
587
|
+
leadMinutes: number;
|
|
588
|
+
}[];
|
|
589
|
+
bookingDurationMinutes: number;
|
|
590
|
+
slotGapMinutes: number;
|
|
591
|
+
timeZone: string;
|
|
557
592
|
}[];
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
"users-time-slots": {
|
|
574
|
-
post: (body: {
|
|
575
|
-
baseFilters: {
|
|
576
|
-
dateFrom: string;
|
|
577
|
-
dateTo: string;
|
|
578
|
-
timeFrom: string;
|
|
579
|
-
timeTo: string;
|
|
580
|
-
};
|
|
581
|
-
userFilters: {
|
|
582
|
-
userId: number;
|
|
583
|
-
bookingLocations: {
|
|
584
|
-
bookingLocationId: number;
|
|
585
|
-
bufferMinutes: number;
|
|
586
|
-
leadMinutes: number;
|
|
587
|
-
}[];
|
|
588
|
-
bookingDurationMinutes: number;
|
|
589
|
-
slotGapMinutes: number;
|
|
590
|
-
timeZone: string;
|
|
591
|
-
}[];
|
|
592
|
-
}, options?: {
|
|
593
|
-
headers?: Record<string, unknown> | undefined;
|
|
594
|
-
query?: Record<string, unknown> | undefined;
|
|
595
|
-
fetch?: RequestInit | undefined;
|
|
596
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
597
|
-
200: {
|
|
598
|
-
userId: number;
|
|
599
|
-
timeZone: string;
|
|
600
|
-
bookingLocationAvailability: {
|
|
601
|
-
bookingLocationId: number;
|
|
602
|
-
timeSlotCount: number;
|
|
603
|
-
timeSlots: {
|
|
604
|
-
date: string;
|
|
605
|
-
time: string[];
|
|
593
|
+
}, options?: {
|
|
594
|
+
headers?: Record<string, unknown> | undefined;
|
|
595
|
+
query?: Record<string, unknown> | undefined;
|
|
596
|
+
fetch?: RequestInit | undefined;
|
|
597
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
598
|
+
200: {
|
|
599
|
+
userId: number;
|
|
600
|
+
timeZone: string;
|
|
601
|
+
bookingLocationAvailability: {
|
|
602
|
+
bookingLocationId: number;
|
|
603
|
+
timeSlotCount: number;
|
|
604
|
+
timeSlots: {
|
|
605
|
+
date: string;
|
|
606
|
+
time: string[];
|
|
607
|
+
}[];
|
|
606
608
|
}[];
|
|
607
609
|
}[];
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
}
|
|
610
|
+
400: {
|
|
611
|
+
error: string;
|
|
612
|
+
};
|
|
613
|
+
422: {
|
|
614
|
+
type: "validation";
|
|
615
|
+
on: string;
|
|
616
|
+
summary?: string;
|
|
617
|
+
message?: string;
|
|
618
|
+
found?: unknown;
|
|
619
|
+
property?: string;
|
|
620
|
+
expected?: string;
|
|
621
|
+
};
|
|
622
|
+
}>>;
|
|
623
|
+
};
|
|
622
624
|
};
|
|
623
625
|
calendars: {
|
|
624
626
|
connections: ((params: {
|
|
@@ -801,6 +803,83 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
801
803
|
expected?: string;
|
|
802
804
|
};
|
|
803
805
|
}>>;
|
|
806
|
+
"by-booking-id": ((params: {
|
|
807
|
+
bookingId: string | number;
|
|
808
|
+
}) => {
|
|
809
|
+
patch: (body: {
|
|
810
|
+
userId: number;
|
|
811
|
+
title?: string | undefined;
|
|
812
|
+
description?: string | null | undefined;
|
|
813
|
+
status?: "confirmed" | "cancelled" | "tentative" | undefined;
|
|
814
|
+
startTime?: string | undefined;
|
|
815
|
+
endTime?: string | undefined;
|
|
816
|
+
location?: string | null | undefined;
|
|
817
|
+
busyStatus?: "busy" | "free" | undefined;
|
|
818
|
+
}, options?: {
|
|
819
|
+
headers?: Record<string, unknown> | undefined;
|
|
820
|
+
query?: Record<string, unknown> | undefined;
|
|
821
|
+
fetch?: RequestInit | undefined;
|
|
822
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
823
|
+
500: {
|
|
824
|
+
error: string;
|
|
825
|
+
};
|
|
826
|
+
200: {
|
|
827
|
+
userId: number;
|
|
828
|
+
title: string;
|
|
829
|
+
startTime: string;
|
|
830
|
+
endTime: string;
|
|
831
|
+
status: "confirmed" | "cancelled" | "tentative";
|
|
832
|
+
busyStatus: "busy" | "free";
|
|
833
|
+
createdAt: string;
|
|
834
|
+
updatedAt: string;
|
|
835
|
+
eventId: number;
|
|
836
|
+
bookingId: number | null;
|
|
837
|
+
description: string | null;
|
|
838
|
+
location: string | null;
|
|
839
|
+
};
|
|
840
|
+
400: {
|
|
841
|
+
error: string;
|
|
842
|
+
};
|
|
843
|
+
404: {
|
|
844
|
+
error: string;
|
|
845
|
+
};
|
|
846
|
+
422: {
|
|
847
|
+
type: "validation";
|
|
848
|
+
on: string;
|
|
849
|
+
summary?: string;
|
|
850
|
+
message?: string;
|
|
851
|
+
found?: unknown;
|
|
852
|
+
property?: string;
|
|
853
|
+
expected?: string;
|
|
854
|
+
};
|
|
855
|
+
}>>;
|
|
856
|
+
delete: (body: {
|
|
857
|
+
userId: number;
|
|
858
|
+
}, options?: {
|
|
859
|
+
headers?: Record<string, unknown> | undefined;
|
|
860
|
+
query?: Record<string, unknown> | undefined;
|
|
861
|
+
fetch?: RequestInit | undefined;
|
|
862
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
863
|
+
500: {
|
|
864
|
+
error: string;
|
|
865
|
+
};
|
|
866
|
+
200: {
|
|
867
|
+
success: boolean;
|
|
868
|
+
};
|
|
869
|
+
404: {
|
|
870
|
+
error: string;
|
|
871
|
+
};
|
|
872
|
+
422: {
|
|
873
|
+
type: "validation";
|
|
874
|
+
on: string;
|
|
875
|
+
summary?: string;
|
|
876
|
+
message?: string;
|
|
877
|
+
found?: unknown;
|
|
878
|
+
property?: string;
|
|
879
|
+
expected?: string;
|
|
880
|
+
};
|
|
881
|
+
}>>;
|
|
882
|
+
}) & {};
|
|
804
883
|
};
|
|
805
884
|
webhooks: ((params: {
|
|
806
885
|
userId: string | number;
|