kaafil-js 0.7.0 → 0.9.0

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.
@@ -1,5 +1,5 @@
1
- import { S as SyncOpMethod, O as OperationId, K as KaafilErrorCode, a as KaafilError, D as DeltaMergeStats, b as DeltaIdentity, c as DeltaRow, d as KaafilHttpClient, e as SyncResource, o as operations, f as KaafilResponse, g as components, A as AgenciesResource, L as ListAgencyManagersOptions, h as ListAgencyManagersPageOptions, G as GetAgencyManagerProfileOptions, i as ListAgencyTripsOptions, j as ListAgencyTripsPageOptions, k as GetAgencyTripOptions, l as ListTripManifestOptions, m as ListTripManifestPageOptions, R as ReadAgencySettingsOptions, P as PatchAgencySettingsOptions, C as ChecklistsResource, n as ListAgencyChecklistTemplatesOptions, p as CreateAgencyChecklistTemplateOptions, q as PatchAgencyChecklistTemplateOptions, r as DeleteAgencyChecklistTemplateOptions, s as PublishAgencyChecklistTemplateOptions, t as CreateFormOptions, u as CreateTravellerOptions, v as CreateVendorOptions, w as DeleteVendorOptions, F as FeedbackNpsResource, x as ReadAgencyFeedbackSummaryOptions, y as FormsResource, z as ListFormsOptions, B as GetTravellerAgencyProfileOptions, J as JourneyResource, E as ListJourneyTriggersOptions, H as PatchJourneyTriggerOptions, I as ListForAgencyOptions, M as ListForAgencyPageOptions, T as TravellersResource, U as UpsertVendorOptions, V as VendorsResource, N as Environment, Q as Resolvable, W as ManagerRefreshResult, X as AgencyAdminRefreshResult, Y as ShareTokensResource, Z as TripsResource, _ as BookingsResource, $ as ItineraryResource, a0 as ManagerTodayResource, a1 as AgencyAdminMeResource, a2 as RoomingResource, a3 as SeatingResource, a4 as PickupsResource, a5 as TreksResource, a6 as FloatResource, a7 as ExpensesResource, a8 as CollectionsResource, a9 as FilesResource, aa as CloseoutResource } from './vocabulary-RhPJe95T.cjs';
2
- export { ab as ACTIVE_TREK_REF, ac as AddChecklistItemOptions, ad as AddItineraryItemOptions, ae as AddPartyOptions, af as AdjustFloatOptions, ag as AgencyAdminMeResponse, ah as AgencyChecklistTemplatesResource, ai as AgencyManagerFilters, aj as AgencyManagersResource, ak as AgencySettingsResource, al as AgencyTripFacets, am as AgencyTripFilters, an as AgencyTripSegmentCounts, ao as AgencyTripsResource, ap as ArchiveFormOptions, aq as AssignPickupTravellerOptions, ar as AssignRoomingBedOptions, as as AssignSeatingOptions, at as AutoAssignRoomingOptions, au as AutoAssignSeatingOptions, av as BinaryResponseMeta, aw as BoardPickupTravellerOptions, ax as BoardStatus, ay as BookingFilters, az as BookingKind, aA as BookingListRow, aB as BookingStatus, aC as BookingVouchersResource, aD as BulkUpsertBookingItem, aE as BulkUpsertBookingsOptions, aF as ChecklistAudience, aG as ChecklistGate, aH as ChecklistItemDeltaRow, aI as ChecklistItemStatus, aJ as ChecklistItemsResource, aK as ChecklistPhase, aL as ChecklistPullTemplateMode, aM as ChecklistTemplatesResource, aN as ClaimStatusIngest, aO as CloneFormOptions, aP as CloseFormOptions, aQ as ClosePickupStopOptions, aR as CloseoutBlocker, aS as CloseoutPackSection, aT as CollectionDeltaRow, aU as CollectionMode, aV as ConfirmFileUploadOptions, aW as CorrectPickupBoardStatusOptions, aX as CreateDeltaCursorConfig, aY as CreateFormFieldOptions, aZ as CreateFormSectionOptions, a_ as CreatePickupStopOptions, a$ as CreateRoomingRoomOptions, b0 as CreateRoomingStayWindowOptions, b1 as CreateSeatingVehicleOptions, b2 as CreateShareTokenOptions, b3 as CreateTrekWalkInOptions, b4 as Currency, b5 as CursorPageMeta, b6 as DateTimeInput, b7 as DeleteBookingOptions, b8 as DeleteChecklistItemOptions, b9 as DeleteFormFieldOptions, ba as DeleteFormOptions, bb as DeleteFormSectionOptions, bc as DeleteItineraryItemOptions, bd as DeletePickupStopOptions, be as DeleteRoomingRoomOptions, bf as DeleteRoomingStayWindowOptions, bg as DeleteSeatingVehicleOptions, bh as DeltaPull, bi as DeltaTombstone, bj as DispatchFormOptions, bk as ERROR_CODE_TABLE, bl as EraseTravellerOptions, bm as ErrorCodeTableEntry, bn as EventType, bo as ExpenseCategory, bp as ExpenseClaimsResource, bq as ExpenseFilters, br as ExpensePaymentMode, bs as ExportCloseoutPackOptions, bt as ExportFormResponsesOptions, bu as ExportTravellerOptions, bv as FALLBACK_GLYPH, bw as FetchDelta, bx as FetchPage, by as FileContentType, bz as FilePurpose, bA as FloatDirection, bB as FormBindingsResource, bC as FormFieldsResource, bD as FormResponsesResource, bE as FormsTripResource, bF as Gender, bG as HEURISTIC_SEVERITY, bH as IngestClaimStatusOptions, bI as IssueFloatOptions, bJ as ItineraryChangeLogResource, bK as ItineraryDaysResource, bL as ItineraryItemDeltaRow, bM as ItineraryItemStatusUpdate, bN as ItineraryItemType, bO as ItineraryItemsResource, bP as KaafilAbortError, bQ as KaafilApiError, bR as KaafilBinaryResponse, bS as KaafilCapabilityUnavailableError, bT as KaafilDeltaCursor, bU as KaafilDeltaCursorInFlightError, bV as KaafilEntitlementError, bW as KaafilErrorKind, bX as KaafilFacetedPagedResponse, bY as KaafilInvalidRequestError, bZ as KaafilLockedError, b_ as KaafilNetworkError, b$ as KaafilNotFoundError, c0 as KaafilNotImplementedError, c1 as KaafilPagedResponse, c2 as KaafilPaginationError, c3 as KaafilPaginationExhaustedError, c4 as KaafilPaginationInFlightError, c5 as KaafilPaginator, c6 as KaafilRateLimitedError, c7 as KaafilReadOnlyRoleError, c8 as KaafilShareBatchUnauthenticatedError, c9 as KaafilShareTokenExpiredError, ca as KaafilShareTokenRevokedError, cb as KaafilTimeoutError, cc as KaafilTransportError, cd as KaafilUnauthenticatedError, ce as KaafilValidationError, cf as KaafilVersionConflictError, cg as LinkExpenseReceiptOptions, ch as LinkSeatingManagerOptions, ci as ListBookingsOptions, cj as ListChecklistTemplatesOptions, ck as ListCollectionsOptions, cl as ListEligibleCollectionsOptions, cm as ListExpensesOptions, cn as ListForTripOptions, co as ListFormBindingsOptions, cp as ListItineraryChangeLogOptions, cq as ListPartiesOptions, cr as ListPickupStopsOptions, cs as ListRoomingStayWindowsOptions, ct as ListShareTokensOptions, cu as ListTrekWalkInsOptions, cv as ListTrekWalkInsPageOptions, cw as ListTripFormResponsesOptions, cx as ListTripFormsOptions, cy as ListTripManagersOptions, cz as LockCloseoutOptions, cA as LogExpenseOptions, cB as ManagerAgencyProfileResponse, cC as ManagerCreateFormResponseOptions, cD as ManagerRole, cE as ManagerTodayIdle, cF as ManagerTodayResponse, cG as ManagerTodayTrek, cH as ManagerTodayTrip, cI as ManifestMode, cJ as OutboxClass, cK as PagedResponseMeta, cL as PaginatorPage, cM as PartyDeltaRow, cN as PartyKind, cO as PatchChecklistItemOptions, cP as PatchFormFieldOptions, cQ as PatchFormOptions, cR as PatchFormSectionOptions, cS as PatchItineraryDayOptions, cT as PatchItineraryItemOptions, cU as PatchPartyOptions, cV as PatchPickupStopOptions, cW as PatchRoomingRoomOptions, cX as PatchRoomingStayWindowOptions, cY as PatchSeatingVehicleOptions, cZ as PatchShareTokenOptions, c_ as PatchTripManagerOptions, c$ as PickupKind, d0 as PickupStopDeltaRow, d1 as PlanRefusalReason, d2 as PostponeTrekOptions, d3 as PublishFormOptions, d4 as PullChecklistTemplateOptions, d5 as ReadAgencyAdminMeOptions, d6 as ReadChecklistOptions, d7 as ReadCloseoutOptions, d8 as ReadExpenseOptions, d9 as ReadFileOptions, da as ReadFileUrlOptions, db as ReadFloatLedgerOptions, dc as ReadFloatSummaryOptions, dd as ReadFormAggregateOptions, de as ReadFormConsentReceiptOptions, df as ReadFormOptions, dg as ReadFormResponseOptions, dh as ReadFormsCompletionMatrixOptions, di as ReadFormsCrossModuleAnswersOptions, dj as ReadItineraryOptions, dk as ReadManagerTodayOptions, dl as ReadManifestByPickupOptions, dm as ReadRoomingBoardOptions, dn as ReadSeatingBoardOptions, dp as ReadShareTokenOptions, dq as ReadTrekBoardOptions, dr as ReadTrekWalkInMetaOptions, ds as ReadTripFeedbackSummaryOptions, dt as RecordCollectionOptions, du as RegenerateShareTokenOptions, dv as RemovePartyOptions, dw as ReopenFormOptions, dx as ReopenPickupStopOptions, dy as ReorderFormOptions, dz as ReorderItineraryItemOptions, dA as ReorderPickupStopsOptions, dB as ReplaceBookingVouchersOptions, dC as RequestFileUploadOptions, dD as ResponseMeta, dE as Retryability, dF as ReturnFloatOptions, dG as RevokeShareTokenOptions, dH as RoomType, dI as RoomingAutoAssignRules, dJ as RoomingFillOrder, dK as RoomingGenderPolicy, dL as RoomingHeuristicKey, dM as RoomingHeuristicSeverity, dN as RoomingOccupant, dO as RoomingRoomDeltaRow, dP as RoomingRoomsResource, dQ as RoomingStayWindowsResource, dR as RoomingTone, dS as SHADES_PER_FAMILY, dT as SaveCloseoutHandoverOptions, dU as SeatingAutoAssignRules, dV as SeatingFillOrder, dW as SeatingGenderAdjacency, dX as SeatingHeuristicKey, dY as SeatingOccupant, dZ as SeatingVehicleDeltaRow, d_ as SeatingVehicleManagerResource, d$ as SubmitExpenseClaimOptions, e0 as SyncDigestOptions, e1 as SyncPullTripOptions, e2 as SyncPushOp, e3 as SyncPushOptions, e4 as SyncPushVerdict, e5 as TONE_FAMILIES, e6 as ToggleChecklistItemOptions, e7 as TravellerAgencyProfileResponse, e8 as TravellerDirectoryFilters, e9 as TrekWalkInsResource, ea as TriggerAnchor, eb as TripFormResponsesResource, ec as TripManagersResource, ed as TripManifestFacets, ee as TripManifestFilters, ef as TripManifestResource, eg as TripMode, eh as TripPartiesResource, ei as TripStatus, ej as UNKNOWN_TONE_FAMILY, ek as UnarchiveFormOptions, el as UnlinkSeatingManagerOptions, em as UnlockCloseoutOptions, en as UnsatisfiableSchemeError, eo as UpsertAgencyOptions, ep as VehicleLayout, eq as VehicleType, er as VoidCollectionOptions, es as VoidExpenseOptions, et as WaitUntilJourneyReadyOptions, eu as WithdrawExpenseClaimOptions, ev as createDeltaCursor, ew as createSyncResource, ex as isKaafilError, ey as isRetryable, ez as isRoomingHeuristicKey, eA as isShareBatchPushAvailable, eB as isTombstone, eC as mergeDeltaRows, eD as normalizeDateTimeInput, eE as parseRoomingTone, eF as roomingHeuristicSeverity } from './vocabulary-RhPJe95T.cjs';
1
+ import { S as SyncOpMethod, O as OperationId, K as KaafilErrorCode, a as KaafilError, D as DeltaMergeStats, b as DeltaIdentity, c as DeltaRow, d as KaafilHttpClient, e as SyncResource, o as operations, f as KaafilResponse, g as components, A as AgenciesResource, L as ListAgencyManagersOptions, h as ListAgencyManagersPageOptions, G as GetAgencyManagerProfileOptions, i as ListAgencyTripsOptions, j as ListAgencyTripsPageOptions, k as GetAgencyTripOptions, l as ListTripManifestOptions, m as ListTripManifestPageOptions, R as ReadAgencySettingsOptions, P as PatchAgencySettingsOptions, C as ChecklistsResource, n as ListAgencyChecklistTemplatesOptions, p as CreateAgencyChecklistTemplateOptions, q as PatchAgencyChecklistTemplateOptions, r as DeleteAgencyChecklistTemplateOptions, s as PublishAgencyChecklistTemplateOptions, t as CreateFormOptions, u as CreateTravellerOptions, v as CreateVendorOptions, w as DeleteVendorOptions, F as FeedbackNpsResource, x as ReadAgencyFeedbackSummaryOptions, y as FormsResource, z as ListFormsOptions, B as GetTravellerAgencyProfileOptions, J as JourneyResource, E as ListJourneyTriggersOptions, H as PatchJourneyTriggerOptions, I as ListForAgencyOptions, M as ListForAgencyPageOptions, T as TravellersResource, U as UpsertVendorOptions, V as VendorsResource, N as Environment, Q as Resolvable, W as ManagerRefreshResult, X as AgencyAdminRefreshResult, Y as ShareTokensResource, Z as TripsResource, _ as BookingsResource, $ as ItineraryResource, a0 as ManagerTodayResource, a1 as AgencyAdminMeResource, a2 as RoomingResource, a3 as SeatingResource, a4 as PickupsResource, a5 as TreksResource, a6 as FloatResource, a7 as ExpensesResource, a8 as CollectionsResource, a9 as FilesResource, aa as CloseoutResource } from './vocabulary-mFFJJnMY.cjs';
2
+ export { ab as ACTIVE_TREK_REF, ac as AddChecklistItemOptions, ad as AddItineraryItemOptions, ae as AddPartyOptions, af as AdjustFloatOptions, ag as AgencyAdminMeResponse, ah as AgencyChecklistTemplatesResource, ai as AgencyManagerFilters, aj as AgencyManagersResource, ak as AgencySettingsResource, al as AgencyTripFacets, am as AgencyTripFilters, an as AgencyTripSegmentCounts, ao as AgencyTripsResource, ap as ArchiveFormOptions, aq as AssignPickupTravellerOptions, ar as AssignRoomingBedOptions, as as AssignSeatingOptions, at as AutoAssignRoomingOptions, au as AutoAssignSeatingOptions, av as BinaryResponseMeta, aw as BoardPickupTravellerOptions, ax as BoardStatus, ay as BookingFilters, az as BookingKind, aA as BookingListRow, aB as BookingStatus, aC as BookingVouchersResource, aD as BulkUpsertBookingItem, aE as BulkUpsertBookingsOptions, aF as ChecklistAudience, aG as ChecklistGate, aH as ChecklistItemDeltaRow, aI as ChecklistItemStatus, aJ as ChecklistItemsResource, aK as ChecklistPhase, aL as ChecklistPullTemplateMode, aM as ChecklistTemplatesResource, aN as ClaimStatusIngest, aO as CloneFormOptions, aP as CloseFormOptions, aQ as ClosePickupStopOptions, aR as CloseoutBlocker, aS as CloseoutPackSection, aT as CollectionDeltaRow, aU as CollectionMode, aV as ConfirmFileUploadOptions, aW as CorrectPickupBoardStatusOptions, aX as CreateDeltaCursorConfig, aY as CreateFormFieldOptions, aZ as CreateFormSectionOptions, a_ as CreatePickupStopOptions, a$ as CreateRoomingRoomOptions, b0 as CreateRoomingStayWindowOptions, b1 as CreateSeatingVehicleOptions, b2 as CreateShareTokenOptions, b3 as CreateTrekWalkInOptions, b4 as Currency, b5 as CursorPageMeta, b6 as DateTimeInput, b7 as DeleteBookingOptions, b8 as DeleteChecklistItemOptions, b9 as DeleteFormFieldOptions, ba as DeleteFormOptions, bb as DeleteFormSectionOptions, bc as DeleteItineraryItemOptions, bd as DeletePickupStopOptions, be as DeleteRoomingRoomOptions, bf as DeleteRoomingStayWindowOptions, bg as DeleteSeatingVehicleOptions, bh as DeltaPull, bi as DeltaTombstone, bj as DispatchFormOptions, bk as ERROR_CODE_TABLE, bl as EraseTravellerOptions, bm as ErrorCodeTableEntry, bn as EventType, bo as ExpenseCategory, bp as ExpenseClaimsResource, bq as ExpenseFilters, br as ExpensePaymentMode, bs as ExportCloseoutPackOptions, bt as ExportFormResponsesOptions, bu as ExportTravellerOptions, bv as FALLBACK_GLYPH, bw as FetchDelta, bx as FetchPage, by as FileContentType, bz as FilePurpose, bA as FloatDirection, bB as FormBindingsResource, bC as FormFieldsResource, bD as FormResponsesResource, bE as FormsTripResource, bF as Gender, bG as HEURISTIC_SEVERITY, bH as IngestClaimStatusOptions, bI as IssueFloatOptions, bJ as ItineraryChangeLogResource, bK as ItineraryDaysResource, bL as ItineraryItemDeltaRow, bM as ItineraryItemStatusUpdate, bN as ItineraryItemType, bO as ItineraryItemsResource, bP as KaafilAbortError, bQ as KaafilApiError, bR as KaafilBinaryResponse, bS as KaafilCapabilityUnavailableError, bT as KaafilDeltaCursor, bU as KaafilDeltaCursorInFlightError, bV as KaafilEntitlementError, bW as KaafilErrorKind, bX as KaafilFacetedPagedResponse, bY as KaafilInvalidRequestError, bZ as KaafilLockedError, b_ as KaafilNetworkError, b$ as KaafilNotFoundError, c0 as KaafilNotImplementedError, c1 as KaafilPagedResponse, c2 as KaafilPaginationError, c3 as KaafilPaginationExhaustedError, c4 as KaafilPaginationInFlightError, c5 as KaafilPaginator, c6 as KaafilRateLimitedError, c7 as KaafilReadOnlyRoleError, c8 as KaafilShareBatchUnauthenticatedError, c9 as KaafilShareTokenExpiredError, ca as KaafilShareTokenRevokedError, cb as KaafilTimeoutError, cc as KaafilTransportError, cd as KaafilUnauthenticatedError, ce as KaafilValidationError, cf as KaafilVersionConflictError, cg as LinkExpenseReceiptOptions, ch as LinkSeatingManagerOptions, ci as ListBookingsOptions, cj as ListChecklistTemplatesOptions, ck as ListCollectionsOptions, cl as ListEligibleCollectionsOptions, cm as ListExpensesOptions, cn as ListForTripOptions, co as ListFormBindingsOptions, cp as ListItineraryChangeLogOptions, cq as ListPartiesOptions, cr as ListPickupStopsOptions, cs as ListRoomingStayWindowsOptions, ct as ListShareTokensOptions, cu as ListTrekWalkInsOptions, cv as ListTrekWalkInsPageOptions, cw as ListTripFormResponsesOptions, cx as ListTripFormsOptions, cy as ListTripManagersOptions, cz as LockCloseoutOptions, cA as LogExpenseOptions, cB as ManagerAgencyProfileResponse, cC as ManagerCreateFormResponseOptions, cD as ManagerRole, cE as ManagerTodayIdle, cF as ManagerTodayResponse, cG as ManagerTodayTrek, cH as ManagerTodayTrip, cI as ManifestMode, cJ as OutboxClass, cK as PagedResponseMeta, cL as PaginatorPage, cM as PartyDeltaRow, cN as PartyKind, cO as PatchChecklistItemOptions, cP as PatchFormFieldOptions, cQ as PatchFormOptions, cR as PatchFormSectionOptions, cS as PatchItineraryDayOptions, cT as PatchItineraryItemOptions, cU as PatchPartyOptions, cV as PatchPickupStopOptions, cW as PatchRoomingRoomOptions, cX as PatchRoomingStayWindowOptions, cY as PatchSeatingVehicleOptions, cZ as PatchShareTokenOptions, c_ as PatchTripManagerOptions, c$ as PickupKind, d0 as PickupStopDeltaRow, d1 as PlanRefusalReason, d2 as PostponeTrekOptions, d3 as PublishFormOptions, d4 as PullChecklistTemplateOptions, d5 as ReadAgencyAdminMeOptions, d6 as ReadChecklistOptions, d7 as ReadCloseoutOptions, d8 as ReadExpenseOptions, d9 as ReadFileOptions, da as ReadFileUrlOptions, db as ReadFloatLedgerOptions, dc as ReadFloatSummaryOptions, dd as ReadFormAggregateOptions, de as ReadFormConsentReceiptOptions, df as ReadFormOptions, dg as ReadFormResponseOptions, dh as ReadFormsCompletionMatrixOptions, di as ReadFormsCrossModuleAnswersOptions, dj as ReadItineraryOptions, dk as ReadManagerTodayOptions, dl as ReadManifestByPickupOptions, dm as ReadRoomingBoardOptions, dn as ReadSeatingBoardOptions, dp as ReadShareTokenOptions, dq as ReadTrekBoardOptions, dr as ReadTrekWalkInMetaOptions, ds as ReadTripFeedbackSummaryOptions, dt as RecordCollectionOptions, du as RegenerateShareTokenOptions, dv as RemovePartyOptions, dw as ReopenFormOptions, dx as ReopenPickupStopOptions, dy as ReorderFormOptions, dz as ReorderItineraryItemOptions, dA as ReorderPickupStopsOptions, dB as ReplaceBookingVouchersOptions, dC as RequestFileUploadOptions, dD as ResponseMeta, dE as Retryability, dF as ReturnFloatOptions, dG as RevokeShareTokenOptions, dH as RoomType, dI as RoomingAutoAssignRules, dJ as RoomingFillOrder, dK as RoomingGenderPolicy, dL as RoomingHeuristicKey, dM as RoomingHeuristicSeverity, dN as RoomingOccupant, dO as RoomingRoomDeltaRow, dP as RoomingRoomsResource, dQ as RoomingStayWindowsResource, dR as RoomingTone, dS as SHADES_PER_FAMILY, dT as SaveCloseoutHandoverOptions, dU as SeatingAutoAssignRules, dV as SeatingFillOrder, dW as SeatingGenderAdjacency, dX as SeatingHeuristicKey, dY as SeatingOccupant, dZ as SeatingVehicleDeltaRow, d_ as SeatingVehicleManagerResource, d$ as SubmitExpenseClaimOptions, e0 as SyncDigestOptions, e1 as SyncPullTripOptions, e2 as SyncPushOp, e3 as SyncPushOptions, e4 as SyncPushVerdict, e5 as TONE_FAMILIES, e6 as ToggleChecklistItemOptions, e7 as TravellerAgencyProfileResponse, e8 as TravellerDirectoryFilters, e9 as TrekWalkInsResource, ea as TriggerAnchor, eb as TripFormResponsesResource, ec as TripManagersResource, ed as TripManifestFacets, ee as TripManifestFilters, ef as TripManifestResource, eg as TripMode, eh as TripPartiesResource, ei as TripStatus, ej as UNKNOWN_TONE_FAMILY, ek as UnarchiveFormOptions, el as UnlinkSeatingManagerOptions, em as UnlockCloseoutOptions, en as UnsatisfiableSchemeError, eo as UpsertAgencyOptions, ep as VehicleLayout, eq as VehicleType, er as VoidCollectionOptions, es as VoidExpenseOptions, et as WaitUntilJourneyReadyOptions, eu as WithdrawExpenseClaimOptions, ev as createDeltaCursor, ew as createSyncResource, ex as isKaafilError, ey as isRetryable, ez as isRoomingHeuristicKey, eA as isShareBatchPushAvailable, eB as isTombstone, eC as mergeDeltaRows, eD as normalizeDateTimeInput, eE as parseRoomingTone, eF as roomingHeuristicSeverity } from './vocabulary-mFFJJnMY.cjs';
3
3
 
4
4
  /**
5
5
  * The storage seam for `kaafil-js`. This file ships an INTERFACE ONLY —
@@ -1017,6 +1017,31 @@ interface CreateDrainerOptions {
1017
1017
  /** Fed every observed `meta.serverTime` so the share layer can age a token
1018
1018
  * without a device clock (`06 §8`). */
1019
1019
  readonly onServerTime?: (serverTime: string) => void;
1020
+ /**
1021
+ * Called with the lanes a pass actually APPLIED something on, so the engine
1022
+ * can pull them straight afterwards.
1023
+ *
1024
+ * ── WHY A DRAIN HAS TO BE FOLLOWED BY A PULL ──────────────────────────────
1025
+ *
1026
+ * A write leaves the snapshot alone unless it was enqueued with an
1027
+ * `entity`/`optimistic` pairing, and several deliberately are not: a write
1028
+ * whose response carries server-assigned fields no client can compute
1029
+ * (`floatMovementId`, a resolved `receiptRequired` threshold, whether a
1030
+ * payment cleared a negative-float guard) is better left unguessed than
1031
+ * painted wrong and silently corrected later. Those writes reach the server
1032
+ * correctly and the snapshot simply does not know yet.
1033
+ *
1034
+ * Until now nothing closed that gap: `sync.drained` was emitted and the pass
1035
+ * ended. A host reading a snapshot-backed list saw its own successful write
1036
+ * missing from it — indefinitely, since nothing else schedules a pull — and
1037
+ * the fix was to reopen the screen. Observed in the field: an expense logged
1038
+ * against a trip's float moved the balance and stayed absent from the list
1039
+ * beside it.
1040
+ *
1041
+ * A callback rather than a direct dependency on `./pull.ts`, so this module
1042
+ * keeps knowing nothing about pulling and stays testable without one.
1043
+ */
1044
+ readonly onLanesApplied?: (lanes: readonly string[]) => void;
1020
1045
  }
1021
1046
  declare function createDrainer(options: CreateDrainerOptions): Drainer;
1022
1047
 
@@ -1,5 +1,5 @@
1
- import { S as SyncOpMethod, O as OperationId, K as KaafilErrorCode, a as KaafilError, D as DeltaMergeStats, b as DeltaIdentity, c as DeltaRow, d as KaafilHttpClient, e as SyncResource, o as operations, f as KaafilResponse, g as components, A as AgenciesResource, L as ListAgencyManagersOptions, h as ListAgencyManagersPageOptions, G as GetAgencyManagerProfileOptions, i as ListAgencyTripsOptions, j as ListAgencyTripsPageOptions, k as GetAgencyTripOptions, l as ListTripManifestOptions, m as ListTripManifestPageOptions, R as ReadAgencySettingsOptions, P as PatchAgencySettingsOptions, C as ChecklistsResource, n as ListAgencyChecklistTemplatesOptions, p as CreateAgencyChecklistTemplateOptions, q as PatchAgencyChecklistTemplateOptions, r as DeleteAgencyChecklistTemplateOptions, s as PublishAgencyChecklistTemplateOptions, t as CreateFormOptions, u as CreateTravellerOptions, v as CreateVendorOptions, w as DeleteVendorOptions, F as FeedbackNpsResource, x as ReadAgencyFeedbackSummaryOptions, y as FormsResource, z as ListFormsOptions, B as GetTravellerAgencyProfileOptions, J as JourneyResource, E as ListJourneyTriggersOptions, H as PatchJourneyTriggerOptions, I as ListForAgencyOptions, M as ListForAgencyPageOptions, T as TravellersResource, U as UpsertVendorOptions, V as VendorsResource, N as Environment, Q as Resolvable, W as ManagerRefreshResult, X as AgencyAdminRefreshResult, Y as ShareTokensResource, Z as TripsResource, _ as BookingsResource, $ as ItineraryResource, a0 as ManagerTodayResource, a1 as AgencyAdminMeResource, a2 as RoomingResource, a3 as SeatingResource, a4 as PickupsResource, a5 as TreksResource, a6 as FloatResource, a7 as ExpensesResource, a8 as CollectionsResource, a9 as FilesResource, aa as CloseoutResource } from './vocabulary-RhPJe95T.js';
2
- export { ab as ACTIVE_TREK_REF, ac as AddChecklistItemOptions, ad as AddItineraryItemOptions, ae as AddPartyOptions, af as AdjustFloatOptions, ag as AgencyAdminMeResponse, ah as AgencyChecklistTemplatesResource, ai as AgencyManagerFilters, aj as AgencyManagersResource, ak as AgencySettingsResource, al as AgencyTripFacets, am as AgencyTripFilters, an as AgencyTripSegmentCounts, ao as AgencyTripsResource, ap as ArchiveFormOptions, aq as AssignPickupTravellerOptions, ar as AssignRoomingBedOptions, as as AssignSeatingOptions, at as AutoAssignRoomingOptions, au as AutoAssignSeatingOptions, av as BinaryResponseMeta, aw as BoardPickupTravellerOptions, ax as BoardStatus, ay as BookingFilters, az as BookingKind, aA as BookingListRow, aB as BookingStatus, aC as BookingVouchersResource, aD as BulkUpsertBookingItem, aE as BulkUpsertBookingsOptions, aF as ChecklistAudience, aG as ChecklistGate, aH as ChecklistItemDeltaRow, aI as ChecklistItemStatus, aJ as ChecklistItemsResource, aK as ChecklistPhase, aL as ChecklistPullTemplateMode, aM as ChecklistTemplatesResource, aN as ClaimStatusIngest, aO as CloneFormOptions, aP as CloseFormOptions, aQ as ClosePickupStopOptions, aR as CloseoutBlocker, aS as CloseoutPackSection, aT as CollectionDeltaRow, aU as CollectionMode, aV as ConfirmFileUploadOptions, aW as CorrectPickupBoardStatusOptions, aX as CreateDeltaCursorConfig, aY as CreateFormFieldOptions, aZ as CreateFormSectionOptions, a_ as CreatePickupStopOptions, a$ as CreateRoomingRoomOptions, b0 as CreateRoomingStayWindowOptions, b1 as CreateSeatingVehicleOptions, b2 as CreateShareTokenOptions, b3 as CreateTrekWalkInOptions, b4 as Currency, b5 as CursorPageMeta, b6 as DateTimeInput, b7 as DeleteBookingOptions, b8 as DeleteChecklistItemOptions, b9 as DeleteFormFieldOptions, ba as DeleteFormOptions, bb as DeleteFormSectionOptions, bc as DeleteItineraryItemOptions, bd as DeletePickupStopOptions, be as DeleteRoomingRoomOptions, bf as DeleteRoomingStayWindowOptions, bg as DeleteSeatingVehicleOptions, bh as DeltaPull, bi as DeltaTombstone, bj as DispatchFormOptions, bk as ERROR_CODE_TABLE, bl as EraseTravellerOptions, bm as ErrorCodeTableEntry, bn as EventType, bo as ExpenseCategory, bp as ExpenseClaimsResource, bq as ExpenseFilters, br as ExpensePaymentMode, bs as ExportCloseoutPackOptions, bt as ExportFormResponsesOptions, bu as ExportTravellerOptions, bv as FALLBACK_GLYPH, bw as FetchDelta, bx as FetchPage, by as FileContentType, bz as FilePurpose, bA as FloatDirection, bB as FormBindingsResource, bC as FormFieldsResource, bD as FormResponsesResource, bE as FormsTripResource, bF as Gender, bG as HEURISTIC_SEVERITY, bH as IngestClaimStatusOptions, bI as IssueFloatOptions, bJ as ItineraryChangeLogResource, bK as ItineraryDaysResource, bL as ItineraryItemDeltaRow, bM as ItineraryItemStatusUpdate, bN as ItineraryItemType, bO as ItineraryItemsResource, bP as KaafilAbortError, bQ as KaafilApiError, bR as KaafilBinaryResponse, bS as KaafilCapabilityUnavailableError, bT as KaafilDeltaCursor, bU as KaafilDeltaCursorInFlightError, bV as KaafilEntitlementError, bW as KaafilErrorKind, bX as KaafilFacetedPagedResponse, bY as KaafilInvalidRequestError, bZ as KaafilLockedError, b_ as KaafilNetworkError, b$ as KaafilNotFoundError, c0 as KaafilNotImplementedError, c1 as KaafilPagedResponse, c2 as KaafilPaginationError, c3 as KaafilPaginationExhaustedError, c4 as KaafilPaginationInFlightError, c5 as KaafilPaginator, c6 as KaafilRateLimitedError, c7 as KaafilReadOnlyRoleError, c8 as KaafilShareBatchUnauthenticatedError, c9 as KaafilShareTokenExpiredError, ca as KaafilShareTokenRevokedError, cb as KaafilTimeoutError, cc as KaafilTransportError, cd as KaafilUnauthenticatedError, ce as KaafilValidationError, cf as KaafilVersionConflictError, cg as LinkExpenseReceiptOptions, ch as LinkSeatingManagerOptions, ci as ListBookingsOptions, cj as ListChecklistTemplatesOptions, ck as ListCollectionsOptions, cl as ListEligibleCollectionsOptions, cm as ListExpensesOptions, cn as ListForTripOptions, co as ListFormBindingsOptions, cp as ListItineraryChangeLogOptions, cq as ListPartiesOptions, cr as ListPickupStopsOptions, cs as ListRoomingStayWindowsOptions, ct as ListShareTokensOptions, cu as ListTrekWalkInsOptions, cv as ListTrekWalkInsPageOptions, cw as ListTripFormResponsesOptions, cx as ListTripFormsOptions, cy as ListTripManagersOptions, cz as LockCloseoutOptions, cA as LogExpenseOptions, cB as ManagerAgencyProfileResponse, cC as ManagerCreateFormResponseOptions, cD as ManagerRole, cE as ManagerTodayIdle, cF as ManagerTodayResponse, cG as ManagerTodayTrek, cH as ManagerTodayTrip, cI as ManifestMode, cJ as OutboxClass, cK as PagedResponseMeta, cL as PaginatorPage, cM as PartyDeltaRow, cN as PartyKind, cO as PatchChecklistItemOptions, cP as PatchFormFieldOptions, cQ as PatchFormOptions, cR as PatchFormSectionOptions, cS as PatchItineraryDayOptions, cT as PatchItineraryItemOptions, cU as PatchPartyOptions, cV as PatchPickupStopOptions, cW as PatchRoomingRoomOptions, cX as PatchRoomingStayWindowOptions, cY as PatchSeatingVehicleOptions, cZ as PatchShareTokenOptions, c_ as PatchTripManagerOptions, c$ as PickupKind, d0 as PickupStopDeltaRow, d1 as PlanRefusalReason, d2 as PostponeTrekOptions, d3 as PublishFormOptions, d4 as PullChecklistTemplateOptions, d5 as ReadAgencyAdminMeOptions, d6 as ReadChecklistOptions, d7 as ReadCloseoutOptions, d8 as ReadExpenseOptions, d9 as ReadFileOptions, da as ReadFileUrlOptions, db as ReadFloatLedgerOptions, dc as ReadFloatSummaryOptions, dd as ReadFormAggregateOptions, de as ReadFormConsentReceiptOptions, df as ReadFormOptions, dg as ReadFormResponseOptions, dh as ReadFormsCompletionMatrixOptions, di as ReadFormsCrossModuleAnswersOptions, dj as ReadItineraryOptions, dk as ReadManagerTodayOptions, dl as ReadManifestByPickupOptions, dm as ReadRoomingBoardOptions, dn as ReadSeatingBoardOptions, dp as ReadShareTokenOptions, dq as ReadTrekBoardOptions, dr as ReadTrekWalkInMetaOptions, ds as ReadTripFeedbackSummaryOptions, dt as RecordCollectionOptions, du as RegenerateShareTokenOptions, dv as RemovePartyOptions, dw as ReopenFormOptions, dx as ReopenPickupStopOptions, dy as ReorderFormOptions, dz as ReorderItineraryItemOptions, dA as ReorderPickupStopsOptions, dB as ReplaceBookingVouchersOptions, dC as RequestFileUploadOptions, dD as ResponseMeta, dE as Retryability, dF as ReturnFloatOptions, dG as RevokeShareTokenOptions, dH as RoomType, dI as RoomingAutoAssignRules, dJ as RoomingFillOrder, dK as RoomingGenderPolicy, dL as RoomingHeuristicKey, dM as RoomingHeuristicSeverity, dN as RoomingOccupant, dO as RoomingRoomDeltaRow, dP as RoomingRoomsResource, dQ as RoomingStayWindowsResource, dR as RoomingTone, dS as SHADES_PER_FAMILY, dT as SaveCloseoutHandoverOptions, dU as SeatingAutoAssignRules, dV as SeatingFillOrder, dW as SeatingGenderAdjacency, dX as SeatingHeuristicKey, dY as SeatingOccupant, dZ as SeatingVehicleDeltaRow, d_ as SeatingVehicleManagerResource, d$ as SubmitExpenseClaimOptions, e0 as SyncDigestOptions, e1 as SyncPullTripOptions, e2 as SyncPushOp, e3 as SyncPushOptions, e4 as SyncPushVerdict, e5 as TONE_FAMILIES, e6 as ToggleChecklistItemOptions, e7 as TravellerAgencyProfileResponse, e8 as TravellerDirectoryFilters, e9 as TrekWalkInsResource, ea as TriggerAnchor, eb as TripFormResponsesResource, ec as TripManagersResource, ed as TripManifestFacets, ee as TripManifestFilters, ef as TripManifestResource, eg as TripMode, eh as TripPartiesResource, ei as TripStatus, ej as UNKNOWN_TONE_FAMILY, ek as UnarchiveFormOptions, el as UnlinkSeatingManagerOptions, em as UnlockCloseoutOptions, en as UnsatisfiableSchemeError, eo as UpsertAgencyOptions, ep as VehicleLayout, eq as VehicleType, er as VoidCollectionOptions, es as VoidExpenseOptions, et as WaitUntilJourneyReadyOptions, eu as WithdrawExpenseClaimOptions, ev as createDeltaCursor, ew as createSyncResource, ex as isKaafilError, ey as isRetryable, ez as isRoomingHeuristicKey, eA as isShareBatchPushAvailable, eB as isTombstone, eC as mergeDeltaRows, eD as normalizeDateTimeInput, eE as parseRoomingTone, eF as roomingHeuristicSeverity } from './vocabulary-RhPJe95T.js';
1
+ import { S as SyncOpMethod, O as OperationId, K as KaafilErrorCode, a as KaafilError, D as DeltaMergeStats, b as DeltaIdentity, c as DeltaRow, d as KaafilHttpClient, e as SyncResource, o as operations, f as KaafilResponse, g as components, A as AgenciesResource, L as ListAgencyManagersOptions, h as ListAgencyManagersPageOptions, G as GetAgencyManagerProfileOptions, i as ListAgencyTripsOptions, j as ListAgencyTripsPageOptions, k as GetAgencyTripOptions, l as ListTripManifestOptions, m as ListTripManifestPageOptions, R as ReadAgencySettingsOptions, P as PatchAgencySettingsOptions, C as ChecklistsResource, n as ListAgencyChecklistTemplatesOptions, p as CreateAgencyChecklistTemplateOptions, q as PatchAgencyChecklistTemplateOptions, r as DeleteAgencyChecklistTemplateOptions, s as PublishAgencyChecklistTemplateOptions, t as CreateFormOptions, u as CreateTravellerOptions, v as CreateVendorOptions, w as DeleteVendorOptions, F as FeedbackNpsResource, x as ReadAgencyFeedbackSummaryOptions, y as FormsResource, z as ListFormsOptions, B as GetTravellerAgencyProfileOptions, J as JourneyResource, E as ListJourneyTriggersOptions, H as PatchJourneyTriggerOptions, I as ListForAgencyOptions, M as ListForAgencyPageOptions, T as TravellersResource, U as UpsertVendorOptions, V as VendorsResource, N as Environment, Q as Resolvable, W as ManagerRefreshResult, X as AgencyAdminRefreshResult, Y as ShareTokensResource, Z as TripsResource, _ as BookingsResource, $ as ItineraryResource, a0 as ManagerTodayResource, a1 as AgencyAdminMeResource, a2 as RoomingResource, a3 as SeatingResource, a4 as PickupsResource, a5 as TreksResource, a6 as FloatResource, a7 as ExpensesResource, a8 as CollectionsResource, a9 as FilesResource, aa as CloseoutResource } from './vocabulary-mFFJJnMY.js';
2
+ export { ab as ACTIVE_TREK_REF, ac as AddChecklistItemOptions, ad as AddItineraryItemOptions, ae as AddPartyOptions, af as AdjustFloatOptions, ag as AgencyAdminMeResponse, ah as AgencyChecklistTemplatesResource, ai as AgencyManagerFilters, aj as AgencyManagersResource, ak as AgencySettingsResource, al as AgencyTripFacets, am as AgencyTripFilters, an as AgencyTripSegmentCounts, ao as AgencyTripsResource, ap as ArchiveFormOptions, aq as AssignPickupTravellerOptions, ar as AssignRoomingBedOptions, as as AssignSeatingOptions, at as AutoAssignRoomingOptions, au as AutoAssignSeatingOptions, av as BinaryResponseMeta, aw as BoardPickupTravellerOptions, ax as BoardStatus, ay as BookingFilters, az as BookingKind, aA as BookingListRow, aB as BookingStatus, aC as BookingVouchersResource, aD as BulkUpsertBookingItem, aE as BulkUpsertBookingsOptions, aF as ChecklistAudience, aG as ChecklistGate, aH as ChecklistItemDeltaRow, aI as ChecklistItemStatus, aJ as ChecklistItemsResource, aK as ChecklistPhase, aL as ChecklistPullTemplateMode, aM as ChecklistTemplatesResource, aN as ClaimStatusIngest, aO as CloneFormOptions, aP as CloseFormOptions, aQ as ClosePickupStopOptions, aR as CloseoutBlocker, aS as CloseoutPackSection, aT as CollectionDeltaRow, aU as CollectionMode, aV as ConfirmFileUploadOptions, aW as CorrectPickupBoardStatusOptions, aX as CreateDeltaCursorConfig, aY as CreateFormFieldOptions, aZ as CreateFormSectionOptions, a_ as CreatePickupStopOptions, a$ as CreateRoomingRoomOptions, b0 as CreateRoomingStayWindowOptions, b1 as CreateSeatingVehicleOptions, b2 as CreateShareTokenOptions, b3 as CreateTrekWalkInOptions, b4 as Currency, b5 as CursorPageMeta, b6 as DateTimeInput, b7 as DeleteBookingOptions, b8 as DeleteChecklistItemOptions, b9 as DeleteFormFieldOptions, ba as DeleteFormOptions, bb as DeleteFormSectionOptions, bc as DeleteItineraryItemOptions, bd as DeletePickupStopOptions, be as DeleteRoomingRoomOptions, bf as DeleteRoomingStayWindowOptions, bg as DeleteSeatingVehicleOptions, bh as DeltaPull, bi as DeltaTombstone, bj as DispatchFormOptions, bk as ERROR_CODE_TABLE, bl as EraseTravellerOptions, bm as ErrorCodeTableEntry, bn as EventType, bo as ExpenseCategory, bp as ExpenseClaimsResource, bq as ExpenseFilters, br as ExpensePaymentMode, bs as ExportCloseoutPackOptions, bt as ExportFormResponsesOptions, bu as ExportTravellerOptions, bv as FALLBACK_GLYPH, bw as FetchDelta, bx as FetchPage, by as FileContentType, bz as FilePurpose, bA as FloatDirection, bB as FormBindingsResource, bC as FormFieldsResource, bD as FormResponsesResource, bE as FormsTripResource, bF as Gender, bG as HEURISTIC_SEVERITY, bH as IngestClaimStatusOptions, bI as IssueFloatOptions, bJ as ItineraryChangeLogResource, bK as ItineraryDaysResource, bL as ItineraryItemDeltaRow, bM as ItineraryItemStatusUpdate, bN as ItineraryItemType, bO as ItineraryItemsResource, bP as KaafilAbortError, bQ as KaafilApiError, bR as KaafilBinaryResponse, bS as KaafilCapabilityUnavailableError, bT as KaafilDeltaCursor, bU as KaafilDeltaCursorInFlightError, bV as KaafilEntitlementError, bW as KaafilErrorKind, bX as KaafilFacetedPagedResponse, bY as KaafilInvalidRequestError, bZ as KaafilLockedError, b_ as KaafilNetworkError, b$ as KaafilNotFoundError, c0 as KaafilNotImplementedError, c1 as KaafilPagedResponse, c2 as KaafilPaginationError, c3 as KaafilPaginationExhaustedError, c4 as KaafilPaginationInFlightError, c5 as KaafilPaginator, c6 as KaafilRateLimitedError, c7 as KaafilReadOnlyRoleError, c8 as KaafilShareBatchUnauthenticatedError, c9 as KaafilShareTokenExpiredError, ca as KaafilShareTokenRevokedError, cb as KaafilTimeoutError, cc as KaafilTransportError, cd as KaafilUnauthenticatedError, ce as KaafilValidationError, cf as KaafilVersionConflictError, cg as LinkExpenseReceiptOptions, ch as LinkSeatingManagerOptions, ci as ListBookingsOptions, cj as ListChecklistTemplatesOptions, ck as ListCollectionsOptions, cl as ListEligibleCollectionsOptions, cm as ListExpensesOptions, cn as ListForTripOptions, co as ListFormBindingsOptions, cp as ListItineraryChangeLogOptions, cq as ListPartiesOptions, cr as ListPickupStopsOptions, cs as ListRoomingStayWindowsOptions, ct as ListShareTokensOptions, cu as ListTrekWalkInsOptions, cv as ListTrekWalkInsPageOptions, cw as ListTripFormResponsesOptions, cx as ListTripFormsOptions, cy as ListTripManagersOptions, cz as LockCloseoutOptions, cA as LogExpenseOptions, cB as ManagerAgencyProfileResponse, cC as ManagerCreateFormResponseOptions, cD as ManagerRole, cE as ManagerTodayIdle, cF as ManagerTodayResponse, cG as ManagerTodayTrek, cH as ManagerTodayTrip, cI as ManifestMode, cJ as OutboxClass, cK as PagedResponseMeta, cL as PaginatorPage, cM as PartyDeltaRow, cN as PartyKind, cO as PatchChecklistItemOptions, cP as PatchFormFieldOptions, cQ as PatchFormOptions, cR as PatchFormSectionOptions, cS as PatchItineraryDayOptions, cT as PatchItineraryItemOptions, cU as PatchPartyOptions, cV as PatchPickupStopOptions, cW as PatchRoomingRoomOptions, cX as PatchRoomingStayWindowOptions, cY as PatchSeatingVehicleOptions, cZ as PatchShareTokenOptions, c_ as PatchTripManagerOptions, c$ as PickupKind, d0 as PickupStopDeltaRow, d1 as PlanRefusalReason, d2 as PostponeTrekOptions, d3 as PublishFormOptions, d4 as PullChecklistTemplateOptions, d5 as ReadAgencyAdminMeOptions, d6 as ReadChecklistOptions, d7 as ReadCloseoutOptions, d8 as ReadExpenseOptions, d9 as ReadFileOptions, da as ReadFileUrlOptions, db as ReadFloatLedgerOptions, dc as ReadFloatSummaryOptions, dd as ReadFormAggregateOptions, de as ReadFormConsentReceiptOptions, df as ReadFormOptions, dg as ReadFormResponseOptions, dh as ReadFormsCompletionMatrixOptions, di as ReadFormsCrossModuleAnswersOptions, dj as ReadItineraryOptions, dk as ReadManagerTodayOptions, dl as ReadManifestByPickupOptions, dm as ReadRoomingBoardOptions, dn as ReadSeatingBoardOptions, dp as ReadShareTokenOptions, dq as ReadTrekBoardOptions, dr as ReadTrekWalkInMetaOptions, ds as ReadTripFeedbackSummaryOptions, dt as RecordCollectionOptions, du as RegenerateShareTokenOptions, dv as RemovePartyOptions, dw as ReopenFormOptions, dx as ReopenPickupStopOptions, dy as ReorderFormOptions, dz as ReorderItineraryItemOptions, dA as ReorderPickupStopsOptions, dB as ReplaceBookingVouchersOptions, dC as RequestFileUploadOptions, dD as ResponseMeta, dE as Retryability, dF as ReturnFloatOptions, dG as RevokeShareTokenOptions, dH as RoomType, dI as RoomingAutoAssignRules, dJ as RoomingFillOrder, dK as RoomingGenderPolicy, dL as RoomingHeuristicKey, dM as RoomingHeuristicSeverity, dN as RoomingOccupant, dO as RoomingRoomDeltaRow, dP as RoomingRoomsResource, dQ as RoomingStayWindowsResource, dR as RoomingTone, dS as SHADES_PER_FAMILY, dT as SaveCloseoutHandoverOptions, dU as SeatingAutoAssignRules, dV as SeatingFillOrder, dW as SeatingGenderAdjacency, dX as SeatingHeuristicKey, dY as SeatingOccupant, dZ as SeatingVehicleDeltaRow, d_ as SeatingVehicleManagerResource, d$ as SubmitExpenseClaimOptions, e0 as SyncDigestOptions, e1 as SyncPullTripOptions, e2 as SyncPushOp, e3 as SyncPushOptions, e4 as SyncPushVerdict, e5 as TONE_FAMILIES, e6 as ToggleChecklistItemOptions, e7 as TravellerAgencyProfileResponse, e8 as TravellerDirectoryFilters, e9 as TrekWalkInsResource, ea as TriggerAnchor, eb as TripFormResponsesResource, ec as TripManagersResource, ed as TripManifestFacets, ee as TripManifestFilters, ef as TripManifestResource, eg as TripMode, eh as TripPartiesResource, ei as TripStatus, ej as UNKNOWN_TONE_FAMILY, ek as UnarchiveFormOptions, el as UnlinkSeatingManagerOptions, em as UnlockCloseoutOptions, en as UnsatisfiableSchemeError, eo as UpsertAgencyOptions, ep as VehicleLayout, eq as VehicleType, er as VoidCollectionOptions, es as VoidExpenseOptions, et as WaitUntilJourneyReadyOptions, eu as WithdrawExpenseClaimOptions, ev as createDeltaCursor, ew as createSyncResource, ex as isKaafilError, ey as isRetryable, ez as isRoomingHeuristicKey, eA as isShareBatchPushAvailable, eB as isTombstone, eC as mergeDeltaRows, eD as normalizeDateTimeInput, eE as parseRoomingTone, eF as roomingHeuristicSeverity } from './vocabulary-mFFJJnMY.js';
3
3
 
4
4
  /**
5
5
  * The storage seam for `kaafil-js`. This file ships an INTERFACE ONLY —
@@ -1017,6 +1017,31 @@ interface CreateDrainerOptions {
1017
1017
  /** Fed every observed `meta.serverTime` so the share layer can age a token
1018
1018
  * without a device clock (`06 §8`). */
1019
1019
  readonly onServerTime?: (serverTime: string) => void;
1020
+ /**
1021
+ * Called with the lanes a pass actually APPLIED something on, so the engine
1022
+ * can pull them straight afterwards.
1023
+ *
1024
+ * ── WHY A DRAIN HAS TO BE FOLLOWED BY A PULL ──────────────────────────────
1025
+ *
1026
+ * A write leaves the snapshot alone unless it was enqueued with an
1027
+ * `entity`/`optimistic` pairing, and several deliberately are not: a write
1028
+ * whose response carries server-assigned fields no client can compute
1029
+ * (`floatMovementId`, a resolved `receiptRequired` threshold, whether a
1030
+ * payment cleared a negative-float guard) is better left unguessed than
1031
+ * painted wrong and silently corrected later. Those writes reach the server
1032
+ * correctly and the snapshot simply does not know yet.
1033
+ *
1034
+ * Until now nothing closed that gap: `sync.drained` was emitted and the pass
1035
+ * ended. A host reading a snapshot-backed list saw its own successful write
1036
+ * missing from it — indefinitely, since nothing else schedules a pull — and
1037
+ * the fix was to reopen the screen. Observed in the field: an expense logged
1038
+ * against a trip's float moved the balance and stayed absent from the list
1039
+ * beside it.
1040
+ *
1041
+ * A callback rather than a direct dependency on `./pull.ts`, so this module
1042
+ * keeps knowing nothing about pulling and stays testable without one.
1043
+ */
1044
+ readonly onLanesApplied?: (lanes: readonly string[]) => void;
1020
1045
  }
1021
1046
  declare function createDrainer(options: CreateDrainerOptions): Drainer;
1022
1047
 
@@ -285,6 +285,7 @@ var OPERATION_SECURITY = {
285
285
  exportCloseoutPack: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
286
286
  exportFormResponses: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
287
287
  exportTraveller: ["apiKeyAuth"],
288
+ generatePlatformPartnerBill: ["platformAdminAuth"],
288
289
  getAgencyAdminMe: ["agencyAdminAuth"],
289
290
  getAgencySettings: ["consoleAuth"],
290
291
  getAgencySettingsSelf: ["apiKeyAuth", "agencyAdminAuth"],
@@ -309,6 +310,7 @@ var OPERATION_SECURITY = {
309
310
  inspectConsoleInvite: [],
310
311
  inspectPlatformAdminInvite: [],
311
312
  issueFloat: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
313
+ issuePlatformPartnerBill: ["platformAdminAuth"],
312
314
  linkExpenseReceipt: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
313
315
  linkSeatingManager: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
314
316
  listAgencies: ["consoleAuth"],
@@ -334,6 +336,7 @@ var OPERATION_SECURITY = {
334
336
  listMessagesConsole: ["consoleAuth"],
335
337
  listMessageTemplates: ["apiKeyAuth"],
336
338
  listMyConsoleSessions: ["consoleAuth"],
339
+ listOwnBills: ["consoleAuth"],
337
340
  listOwnManagerTrips: ["managerAuth"],
338
341
  listParties: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
339
342
  listPickupStops: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
@@ -341,6 +344,7 @@ var OPERATION_SECURITY = {
341
344
  listPlatformAudit: ["platformAdminAuth"],
342
345
  listPlatformIncidents: ["platformAdminAuth"],
343
346
  listPlatformPartnerApiKeys: ["platformAdminAuth"],
347
+ listPlatformPartnerBills: ["platformAdminAuth"],
344
348
  listPlatformPartnerConsoleUsers: ["platformAdminAuth"],
345
349
  listPlatformPartners: ["platformAdminAuth"],
346
350
  listPlatformPlanTiers: ["platformAdminAuth"],
@@ -404,6 +408,7 @@ var OPERATION_SECURITY = {
404
408
  pushTripBalances: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
405
409
  putCommsConfig: ["apiKeyAuth"],
406
410
  putCommsConfigConsole: ["consoleAuth"],
411
+ putPlatformPartnerBillingConfig: ["platformAdminAuth"],
407
412
  putPlatformPartnerPlan: ["platformAdminAuth"],
408
413
  readAgencyEntitlement: ["consoleAuth"],
409
414
  readAgencyFeedbackSummary: ["agencyAdminAuth", "apiKeyAuth"],
@@ -436,8 +441,14 @@ var OPERATION_SECURITY = {
436
441
  readManagerFileView: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
437
442
  readManagerToday: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
438
443
  readManifestByPickup: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
444
+ readOwnBill: ["consoleAuth"],
445
+ readOwnBillEstimate: ["consoleAuth"],
446
+ readOwnBillPdf: ["consoleAuth"],
439
447
  readPlan: ["consoleAuth"],
440
448
  readPlatformPartner: ["platformAdminAuth"],
449
+ readPlatformPartnerBill: ["platformAdminAuth"],
450
+ readPlatformPartnerBillingConfig: ["platformAdminAuth"],
451
+ readPlatformPartnerBillPdf: ["platformAdminAuth"],
441
452
  readRoomingBoard: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
442
453
  readRoomingRoom: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
443
454
  readSeatingBoard: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
@@ -507,7 +518,9 @@ var OPERATION_SECURITY = {
507
518
  sendCommsTestMessage: ["apiKeyAuth"],
508
519
  sendCommsTestMessageConsole: ["consoleAuth"],
509
520
  sendMessage: ["apiKeyAuth"],
521
+ setPlatformPartnerBillDiscount: ["platformAdminAuth"],
510
522
  setPlatformPartnerStatus: ["platformAdminAuth"],
523
+ settlePlatformPartnerBill: ["platformAdminAuth"],
511
524
  shareListForms: ["shareAuth"],
512
525
  shareRenderForm: ["shareAuth"],
513
526
  shareSaveForm: ["shareAuth"],
@@ -534,6 +547,7 @@ var OPERATION_SECURITY = {
534
547
  upsertVendor: ["apiKeyAuth", "agencyAdminAuth"],
535
548
  voidCollection: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
536
549
  voidExpense: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
550
+ voidPlatformPartnerBill: ["platformAdminAuth"],
537
551
  withdrawExpenseClaim: ["managerAuth", "apiKeyAuth"]
538
552
  };
539
553
  var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
@@ -614,6 +628,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
614
628
  exportCloseoutPack: false,
615
629
  exportFormResponses: false,
616
630
  exportTraveller: false,
631
+ generatePlatformPartnerBill: true,
617
632
  getAgencyAdminMe: false,
618
633
  getAgencySettings: false,
619
634
  getAgencySettingsSelf: false,
@@ -638,6 +653,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
638
653
  inspectConsoleInvite: false,
639
654
  inspectPlatformAdminInvite: false,
640
655
  issueFloat: true,
656
+ issuePlatformPartnerBill: true,
641
657
  linkExpenseReceipt: true,
642
658
  linkSeatingManager: true,
643
659
  listAgencies: false,
@@ -663,6 +679,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
663
679
  listMessagesConsole: false,
664
680
  listMessageTemplates: false,
665
681
  listMyConsoleSessions: false,
682
+ listOwnBills: false,
666
683
  listOwnManagerTrips: false,
667
684
  listParties: false,
668
685
  listPickupStops: false,
@@ -670,6 +687,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
670
687
  listPlatformAudit: false,
671
688
  listPlatformIncidents: false,
672
689
  listPlatformPartnerApiKeys: false,
690
+ listPlatformPartnerBills: false,
673
691
  listPlatformPartnerConsoleUsers: false,
674
692
  listPlatformPartners: false,
675
693
  listPlatformPlanTiers: false,
@@ -733,6 +751,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
733
751
  pushTripBalances: true,
734
752
  putCommsConfig: false,
735
753
  putCommsConfigConsole: false,
754
+ putPlatformPartnerBillingConfig: true,
736
755
  putPlatformPartnerPlan: false,
737
756
  readAgencyEntitlement: false,
738
757
  readAgencyFeedbackSummary: false,
@@ -765,8 +784,14 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
765
784
  readManagerFileView: false,
766
785
  readManagerToday: false,
767
786
  readManifestByPickup: false,
787
+ readOwnBill: false,
788
+ readOwnBillEstimate: false,
789
+ readOwnBillPdf: false,
768
790
  readPlan: false,
769
791
  readPlatformPartner: false,
792
+ readPlatformPartnerBill: false,
793
+ readPlatformPartnerBillingConfig: false,
794
+ readPlatformPartnerBillPdf: false,
770
795
  readRoomingBoard: false,
771
796
  readRoomingRoom: false,
772
797
  readSeatingBoard: false,
@@ -836,7 +861,9 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
836
861
  sendCommsTestMessage: true,
837
862
  sendCommsTestMessageConsole: true,
838
863
  sendMessage: true,
864
+ setPlatformPartnerBillDiscount: true,
839
865
  setPlatformPartnerStatus: false,
866
+ settlePlatformPartnerBill: true,
840
867
  shareListForms: false,
841
868
  shareRenderForm: false,
842
869
  shareSaveForm: true,
@@ -863,6 +890,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
863
890
  upsertVendor: true,
864
891
  voidCollection: false,
865
892
  voidExpense: false,
893
+ voidPlatformPartnerBill: true,
866
894
  withdrawExpenseClaim: false
867
895
  };
868
896
 
@@ -2875,6 +2903,9 @@ function createDrainer(options) {
2875
2903
  remaining: report.remaining,
2876
2904
  usedBatchTransport: report.usedBatchTransport
2877
2905
  });
2906
+ if (report.applied > 0) {
2907
+ options.onLanesApplied?.(report.lanes);
2908
+ }
2878
2909
  return report;
2879
2910
  }
2880
2911
  let kickTimer;
@@ -3598,22 +3629,45 @@ function createOfflineEngine(options) {
3598
3629
  ...options.share.monotonic !== void 0 ? { monotonic: options.share.monotonic } : {}
3599
3630
  });
3600
3631
  }
3632
+ const pull = createPullCoordinator({
3633
+ snapshot,
3634
+ transport: options.transport,
3635
+ events,
3636
+ onServerTime
3637
+ });
3601
3638
  const drainer = createDrainer({
3602
3639
  outbox,
3603
3640
  snapshot,
3604
3641
  transport: options.transport,
3605
3642
  events,
3606
3643
  onServerTime,
3644
+ /*
3645
+ * A DRAIN IS FOLLOWED BY A PULL, for the lanes it actually changed.
3646
+ *
3647
+ * Not every write rebases the snapshot: one enqueued without an
3648
+ * `entity`/`optimistic` pairing — deliberately, wherever the response
3649
+ * carries server-assigned fields a client cannot compute — reaches the
3650
+ * server and leaves the local snapshot untouched. Nothing used to close
3651
+ * that gap, so a host reading a snapshot-backed list saw its own
3652
+ * successful write missing from it until something reopened the screen.
3653
+ *
3654
+ * Failures are swallowed on purpose. This is a background reconcile behind
3655
+ * a write that has already succeeded; a pull that cannot reach the server
3656
+ * changes nothing the caller needs to hear about, and `pullTrip` has
3657
+ * already emitted whatever the host subscribes to. Rethrowing here would
3658
+ * surface a sync failure as if the WRITE had failed, which is the one
3659
+ * reading of it that is untrue.
3660
+ */
3661
+ onLanesApplied: (lanes) => {
3662
+ for (const tripRef of lanes) {
3663
+ void pull.pullTrip({ tripRef }).catch(() => {
3664
+ });
3665
+ }
3666
+ },
3607
3667
  ...options.conflictResolver !== void 0 ? { conflictResolver: options.conflictResolver } : {},
3608
3668
  ...options.now !== void 0 ? { now: options.now } : {},
3609
3669
  ...options.random !== void 0 ? { random: options.random } : {}
3610
3670
  });
3611
- const pull = createPullCoordinator({
3612
- snapshot,
3613
- transport: options.transport,
3614
- events,
3615
- onServerTime
3616
- });
3617
3671
  const blobs = options.blob === void 0 ? void 0 : createBlobLane({
3618
3672
  storage: options.storage,
3619
3673
  keyPrefix,
@@ -6764,7 +6818,6 @@ var RoomingHeuristicKey = {
6764
6818
  Couples: "couples",
6765
6819
  Parties: "parties",
6766
6820
  Gender: "gender",
6767
- Diet: "diet",
6768
6821
  SpreadSolos: "spreadSolos",
6769
6822
  PartyGenderPolicy: "partyGenderPolicy",
6770
6823
  SameBus: "sameBus"
@@ -6833,7 +6886,6 @@ var HEURISTIC_SEVERITY = Object.freeze({
6833
6886
  couples: "warn",
6834
6887
  parties: "split",
6835
6888
  gender: "never",
6836
- diet: "info",
6837
6889
  spreadSolos: "info",
6838
6890
  partyGenderPolicy: "info",
6839
6891
  sameBus: "info"