PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | resources/js/lib/api-client.ts +25 -0 3.0.14.1 → 3.0.16 View file →
@@ -571,8 +571,14 @@
571 571 getSettings: (group?: string) =>
572 572 apiClient.get(
573 573 group ? API_ENDPOINTS.SETTINGS_GROUP(group) : API_ENDPOINTS.SETTINGS,
574 574 ),
575 + // Booking form config as a trip's checkout renders it (per-trip conditions
576 + // resolved). Without tripId: the global config, conditions included.
577 + getBookingFormConfig: (tripId?: number | null) =>
578 + apiClient.get(API_ENDPOINTS.SETTINGS_BOOKING_FORM, {
579 + params: tripId ? { trip_id: tripId } : undefined,
580 + }),
575 581
576 582 // Notices
577 583 getNotices: () => apiClient.get(API_ENDPOINTS.NOTICES),
578 584 dismissNotice: (id: string) =>
@@ -690,8 +696,20 @@
690 696 apiClient.put(API_ENDPOINTS.ENQUIRIES_BULK, { action, ids }),
691 697 respondToEnquiry: (id: string | number, data: any) =>
692 698 apiClient.post(API_ENDPOINTS.ENQUIRY_RESPOND(id), data),
693 699
700 + // Scheduled balance payments (Pro module)
701 + getScheduledPayments: (params?: Record<string, any>) =>
702 + apiClient.get(API_ENDPOINTS.SCHEDULED_PAYMENTS, { params }),
703 + getScheduledPaymentsStats: () =>
704 + apiClient.get(API_ENDPOINTS.SCHEDULED_PAYMENTS_STATS),
705 + cancelScheduledPayment: (id: string | number) =>
706 + apiClient.post(API_ENDPOINTS.SCHEDULED_PAYMENT_CANCEL(id), {}),
707 + getOutstandingBalances: (params?: Record<string, any>) =>
708 + apiClient.get(API_ENDPOINTS.SCHEDULED_PAYMENTS_OUTSTANDING, { params }),
709 + sendBalancePaymentLink: (bookingId: string | number) =>
710 + apiClient.post(API_ENDPOINTS.SCHEDULED_PAYMENT_SEND_LINK(bookingId), {}),
711 +
694 712 // Google Calendar
695 713 getGoogleCalendarSettings: () =>
696 714 apiClient.get(API_ENDPOINTS.GOOGLE_CALENDAR_SETTINGS),
697 715 connectGoogleCalendar: () =>
@@ -699,8 +717,15 @@
699 717 disconnectGoogleCalendar: () =>
700 718 apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_DISCONNECT),
701 719 syncAllGoogleCalendar: () =>
702 720 apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_SYNC_ALL),
721 + /**
722 + * One batch of a full resync. Repeat with the returned `next_cursor` until
723 + * `done` is true — the server processes a slice per call so a large calendar
724 + * can't time out and the UI can show progress.
725 + */
726 + resyncGoogleCalendar: (cursor = 0, limit = 25) =>
727 + apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_RESYNC, { cursor, limit }),
703 728 updateGoogleCalendarSettings: (data: any) =>
704 729 apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_SETTINGS, data),
705 730
706 731 // Signed Consents