@vrplatform/kysely 1.3.45-422 → 1.3.45-42593357829

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.
Files changed (169) hide show
  1. package/build/.data.tar +2 -2
  2. package/build/main/camel-case/index.d.ts +4 -4
  3. package/build/main/camel-case/index.js +2 -1
  4. package/build/main/camel-case/index.js.map +1 -1
  5. package/build/main/connect-handoff.d.ts +12 -0
  6. package/build/main/connect-handoff.js +73 -0
  7. package/build/main/connect-handoff.js.map +1 -0
  8. package/build/main/control-plane/index.d.ts +22 -1
  9. package/build/main/control-plane/index.js +10 -0
  10. package/build/main/control-plane/index.js.map +1 -1
  11. package/build/main/index.d.ts +46 -2
  12. package/build/main/index.js +384 -59
  13. package/build/main/index.js.map +1 -1
  14. package/build/main/isomorphic.d.ts +1 -1
  15. package/build/main/isomorphic.js +3 -1
  16. package/build/main/isomorphic.js.map +1 -1
  17. package/build/main/local/generate.js +4 -3
  18. package/build/main/local/generate.js.map +1 -1
  19. package/build/main/local/index.js +34 -10
  20. package/build/main/local/index.js.map +1 -1
  21. package/build/main/migration-source.d.ts +4 -0
  22. package/build/main/migration-source.js +45 -0
  23. package/build/main/migration-source.js.map +1 -0
  24. package/build/main/pganalyze-comment-plugin/comment-transformer.js +3 -1
  25. package/build/main/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
  26. package/build/main/postgres-error.d.ts +1 -0
  27. package/build/main/postgres-error.js +12 -6
  28. package/build/main/postgres-error.js.map +1 -1
  29. package/build/main/query/listing/status.js +6 -2
  30. package/build/main/query/listing/status.js.map +1 -1
  31. package/build/main/query/tenant/feature-enabled.d.ts +6 -0
  32. package/build/main/query/tenant/feature-enabled.js +30 -0
  33. package/build/main/query/tenant/feature-enabled.js.map +1 -0
  34. package/build/main/query/tenant/index.d.ts +2 -0
  35. package/build/main/query/tenant/index.js +2 -0
  36. package/build/main/query/tenant/index.js.map +1 -1
  37. package/build/main/query/tenant/status.d.ts +1 -6
  38. package/build/main/query/tenant/status.js +4 -12
  39. package/build/main/query/tenant/status.js.map +1 -1
  40. package/build/main/query/tenant/where-uuid-in.d.ts +2 -0
  41. package/build/main/query/tenant/where-uuid-in.js +14 -0
  42. package/build/main/query/tenant/where-uuid-in.js.map +1 -0
  43. package/build/main/regional.d.ts +1 -0
  44. package/build/main/regional.js +1 -0
  45. package/build/main/regional.js.map +1 -1
  46. package/build/main/test/index.d.ts +7 -9
  47. package/build/main/test/index.js +11 -14
  48. package/build/main/test/index.js.map +1 -1
  49. package/build/main/v1.generated.d.ts +373 -73
  50. package/build/main/v1.generated.js.map +1 -1
  51. package/build/migrations-v2/0000000000033-plaid-connect-session-telemetry.ts +31 -0
  52. package/build/migrations-v2/0000000000050-connection-oauth-state.ts +43 -0
  53. package/build/migrations-v2/0000000000051-owner-statement-email-delivery.ts +134 -0
  54. package/build/migrations-v2/0000000000052-fee-journal-lock-skip-operations.ts +59 -0
  55. package/build/migrations-v2/0000000000053-fee-journal-lock-skip-null-attempt.ts +44 -0
  56. package/build/migrations-v2/0000000000054-journal-refresh-issue-codes.ts +16 -0
  57. package/build/migrations-v2/0000000000055-tenant-billing-subscription.ts +8 -0
  58. package/build/migrations-v2/0000000000056-journal-operation-failure-precedence.ts +306 -0
  59. package/build/migrations-v2/0000000000057-journal-invalidation-failure-code.ts +28 -0
  60. package/build/migrations-v2/0000000000058-journal-invalidation-locked-failure.ts +16 -0
  61. package/build/migrations-v2/0000000000059-billing-active-listing-cross-region-partner.ts +135 -0
  62. package/build/migrations-v2/0000000000060-accounting-integrity-change-driven.ts +99 -0
  63. package/build/migrations-v2/0000000000061-tenant-pending-onboarding-status.ts +37 -0
  64. package/build/migrations-v2/0000000000062-statement-payout-operations.ts +16 -0
  65. package/build/migrations-v2/0000000000063-missing-account-assignments-issue-code.ts +13 -0
  66. package/build/migrations-v2/0000000000064-journal-invalidation-source-lookup-index.ts +26 -0
  67. package/build/migrations-v2/0000000000065-hasura-connection-event-credentials.ts +42 -0
  68. package/build/migrations-v2/0000000000066-recurring-fee-listing-subscription-match-by.ts +51 -0
  69. package/build/migrations-v2/0000000000067-connection-credential-metadata.ts +60 -0
  70. package/build/migrations-v2/0000000000068-connection-credential-version.ts +34 -0
  71. package/build/migrations-v2/0000000000069-owner-statement-contact-email-delivery.ts +84 -0
  72. package/build/migrations-v2/0000000000070-payment-writer-compatibility.ts +69 -0
  73. package/build/migrations-v2/0000000000071-payments.ts +532 -0
  74. package/build/migrations-v2/0000000000072-journal-entry-payment-index.ts +21 -0
  75. package/build/migrations-v2/0000000000073-batch-invalidation-operation-registration.ts +74 -0
  76. package/build/migrations-v2/0000000000074-owner-statement-email-history.ts +34 -0
  77. package/build/migrations-v2/0000000000075-tenant-deletion-lookup-indexes.ts +46 -0
  78. package/build/migrations-v2/0000000000076-tenant-onboarding-not-null.ts +23 -0
  79. package/build/migrations-v2/0000000000077-payment-writer-statement-attachment.ts +92 -0
  80. package/build/migrations-v2/0000000000078-trigger-timeout-indexes.ts +44 -0
  81. package/build/migrations-v2/0000000000079-core-change-tenant-statistics.ts +26 -0
  82. package/build/migrations-v2/0000000000080-drop-legacy-tracking-event.ts +60 -0
  83. package/build/migrations-v2/0000000000081-recurring-fee-planner-operation-status.ts +35 -0
  84. package/build/migrations-v2/0000000000082-reservation-search-trigram-indexes.ts +54 -0
  85. package/build/migrations-v2/0000000000083-journal-entry-deposit-lookup-index.ts +31 -0
  86. package/build/migrations-v2/0000000000084-journal-entry-reservation-revenue-indexes.ts +57 -0
  87. package/build/migrations-v2/0000000000085-owner-statement-link-email-template.ts +23 -0
  88. package/build/migrations-v2/0000000000086-contact-payment-setup.ts +72 -0
  89. package/build/migrations-v2/0000000000087-address-delete-fk-indexes.ts +30 -0
  90. package/build/migrations-v2/0000000000088-owner-statement-email-switch.ts +76 -0
  91. package/build/migrations-v2/0000000000089-contact-bank-details-requested-at.ts +21 -0
  92. package/build/migrations-v2/0000000000090-contact-bank-account-api-key.ts +22 -0
  93. package/build/migrations-v2/0000000000091-contact-bank-details-request.ts +78 -0
  94. package/build/migrations-v2/0000000000092-payment-provider-reference.ts +22 -0
  95. package/build/migrations-v2/0000000000093-payment-reversal-offline-undo.ts +18 -0
  96. package/build/migrations-v2/0000000000094-reservation-status-checkout-index.ts +37 -0
  97. package/build/migrations-v2/0000000000095-payment-batches.ts +196 -0
  98. package/build/migrations-v2/0000000000096-guide-ongoing-tasks-issue-codes.ts +26 -0
  99. package/build/migrations-v2/0000000000097-reservation-line-mapping-suggestions.ts +53 -0
  100. package/build/migrations-v2/0000000000098-cancelled-reservation-balances-issue-code.ts +13 -0
  101. package/build/migrations-v2/0000000000099-contact-bank-account-request-source.ts +28 -0
  102. package/build/migrations-v2/0000000000100-drop-regional-feature-flags.ts +105 -0
  103. package/build/migrations-v2/0000000000101-bank-record-match-source.ts +45 -0
  104. package/build/migrations-v2/0000000000102-owner-statement-email-one-template.ts +63 -0
  105. package/build/migrations-v2/0000000000103-reservation-line-mapping-update-operation.ts +10 -0
  106. package/build/migrations-v2/0000000000104-export-job-payment-batch-pdf.ts +12 -0
  107. package/build/migrations-v2/0000000000105-drop-regional-token.ts +60 -0
  108. package/build/migrations-v2/0000000000106-incremental-audit-action-source.ts +158 -0
  109. package/build/migrations-v2/0000000000107-audit-mutation-transaction-insert-index.ts +44 -0
  110. package/build/migrations-v2/0000000000108-reservation-stay-type.ts +24 -0
  111. package/build/migrations-v2/0000000000109-long-term-liabilities-category-order.ts +21 -0
  112. package/build/migrations-v2/0000000000110-pms-sync-failures-issue-code.ts +13 -0
  113. package/build/migrations-v2/0000000000110-reservation-line-type-taxable.ts +21 -0
  114. package/build/migrations-v2/0000000000111-reservation-line-type-suggestion-taxable.ts +20 -0
  115. package/build/migrations-v2/0000000000112-contact-payment-method-outside-default.ts +44 -0
  116. package/build/migrations-v2/0000000000113-merchant-fee-reference-assignment.ts +25 -0
  117. package/build/migrations-v2/0000000000114-recurring-fee-nights-filter.ts +32 -0
  118. package/build/migrations-v2/0000000000115-bank-records-with-suggested-rule-issue-code.ts +13 -0
  119. package/build/migrations-v2/0000000000119-chart-of-accounts-classifications.ts +46 -0
  120. package/build/module/camel-case/index.d.ts +4 -4
  121. package/build/module/camel-case/index.js +3 -2
  122. package/build/module/camel-case/index.js.map +1 -1
  123. package/build/module/connect-handoff.d.ts +12 -0
  124. package/build/module/connect-handoff.js +70 -0
  125. package/build/module/connect-handoff.js.map +1 -0
  126. package/build/module/control-plane/index.d.ts +22 -1
  127. package/build/module/control-plane/index.js +9 -0
  128. package/build/module/control-plane/index.js.map +1 -1
  129. package/build/module/index.d.ts +46 -2
  130. package/build/module/index.js +382 -59
  131. package/build/module/index.js.map +1 -1
  132. package/build/module/isomorphic.d.ts +1 -1
  133. package/build/module/isomorphic.js +1 -1
  134. package/build/module/isomorphic.js.map +1 -1
  135. package/build/module/local/generate.js +4 -3
  136. package/build/module/local/generate.js.map +1 -1
  137. package/build/module/local/index.js +34 -10
  138. package/build/module/local/index.js.map +1 -1
  139. package/build/module/migration-source.d.ts +4 -0
  140. package/build/module/migration-source.js +42 -0
  141. package/build/module/migration-source.js.map +1 -0
  142. package/build/module/pganalyze-comment-plugin/comment-transformer.js +3 -1
  143. package/build/module/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
  144. package/build/module/postgres-error.d.ts +1 -0
  145. package/build/module/postgres-error.js +11 -6
  146. package/build/module/postgres-error.js.map +1 -1
  147. package/build/module/query/listing/status.js +6 -2
  148. package/build/module/query/listing/status.js.map +1 -1
  149. package/build/module/query/tenant/feature-enabled.d.ts +6 -0
  150. package/build/module/query/tenant/feature-enabled.js +27 -0
  151. package/build/module/query/tenant/feature-enabled.js.map +1 -0
  152. package/build/module/query/tenant/index.d.ts +2 -0
  153. package/build/module/query/tenant/index.js +2 -0
  154. package/build/module/query/tenant/index.js.map +1 -1
  155. package/build/module/query/tenant/status.d.ts +1 -6
  156. package/build/module/query/tenant/status.js +4 -11
  157. package/build/module/query/tenant/status.js.map +1 -1
  158. package/build/module/query/tenant/where-uuid-in.d.ts +2 -0
  159. package/build/module/query/tenant/where-uuid-in.js +11 -0
  160. package/build/module/query/tenant/where-uuid-in.js.map +1 -0
  161. package/build/module/regional.d.ts +1 -0
  162. package/build/module/regional.js +1 -0
  163. package/build/module/regional.js.map +1 -1
  164. package/build/module/test/index.d.ts +7 -9
  165. package/build/module/test/index.js +11 -14
  166. package/build/module/test/index.js.map +1 -1
  167. package/build/module/v1.generated.d.ts +373 -73
  168. package/build/module/v1.generated.js.map +1 -1
  169. package/package.json +8 -6
@@ -3,39 +3,66 @@
3
3
  * Please do not edit it manually.
4
4
  */
5
5
  import type { ColumnType } from "kysely";
6
+ export type AccountingBankAccountHolderType = "business" | "individual";
7
+ export type AccountingBankAccountKind = "checking" | "savings";
8
+ export type AccountingBankDetailsRequestDelivery = "failed" | "queued" | "sent" | "skipped";
9
+ export type AccountingBankRecordMatchSource = "autoRule" | "manual" | "rule" | "suggestion";
10
+ export type AccountingCheckFormat = "standard" | "voucher";
11
+ export type AccountingCheckPrintMode = "plainPaper" | "preprinted";
12
+ export type AccountingContactPaymentMethod = "check" | "nachaAch" | "outside" | "rampAch";
6
13
  export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "historicalLedger" | "inactiveAccount" | "listingInactive" | "listingOwnershipPeriodNotFound" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unbalancedGroupInactiveLeg" | "unknownInactiveReason";
7
14
  export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
15
+ export type AccountingNachaBankProfile = "bmo" | "generic" | "hancockWhitney" | "regions";
16
+ export type AccountingNachaSecCode = "CCD" | "PPD";
17
+ export type AccountingPaymentBatchType = "check" | "nacha";
18
+ export type AccountingPaymentCommandKind = "cancel" | "refresh" | "submit";
19
+ export type AccountingPaymentCommandOutcome = "accepted" | "conflictingEvidence" | "rejected" | "unknown";
20
+ export type AccountingPaymentIssue = "accountingConfiguration" | "allocationOutOfRange" | "amountMismatch" | "conflictingEvidence" | "currencyMismatch" | "overpayment" | "recipientMismatch" | "unknownOutcome" | "unknownStatus" | "unlinkedMovement" | "unmappedFundingAccount";
21
+ export type AccountingPaymentMethod = "ach" | "cash" | "check" | "other" | "wire";
22
+ export type AccountingPaymentObservationOrigin = "provider" | "review";
23
+ export type AccountingPaymentOrigin = "provider" | "vrp";
24
+ export type AccountingPaymentProvider = "ramp";
25
+ export type AccountingPaymentResourceType = "bill" | "payment" | "transfer";
26
+ export type AccountingPaymentReversalKind = "bankUnmatch" | "offlineReversal" | "offlineUndo" | "providerReturn";
27
+ export type AccountingPaymentStatus = "canceled" | "failed" | "pending" | "processing" | "scheduled" | "submitting" | "succeeded";
28
+ export type AccountingReservationJournalInvalidationFailure = "journal_configuration_invalid" | "journal_locked";
29
+ export type AccountingReservationLineMappingSuggestionSource = "llm" | "rule";
8
30
  export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
9
31
  export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
10
32
  export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
11
33
  export type AuditActionActorType = "api_key" | "automation" | "sync" | "system" | "user";
34
+ export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
12
35
  export type AuditEffectAttemptStatus = "completed" | "failed" | "running" | "skipped_locked";
13
36
  export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "failed" | "pending" | "running";
14
37
  export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
15
38
  export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
16
39
  export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
17
- export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
18
40
  export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
19
41
  export type BillingListingFactSourceType = "baseline_backfill" | "daily_reconciliation" | "legacy_tracking_import" | "listing_delete" | "listing_insert" | "listing_update" | "ownership_delete" | "ownership_insert" | "ownership_update" | "tenant_delete" | "tenant_insert" | "tenant_update";
20
42
  export type CoreAsyncOperationResultStatus = "completed" | "failed" | "queued";
21
43
  export type CoreCsvOperationResultKind = "import" | "preview";
22
44
  export type CoreCsvOperationResultStatus = "completed" | "failed" | "processing" | "queued";
45
+ export type CoreEmailDeliveryFailureCode = "inactive_recipient" | "invalid_provider_response" | "missing_email" | "notifications_disabled" | "postmark_not_configured" | "provider_rejected" | "task_failed" | "transport_failed" | "unsubscribed";
46
+ export type CoreEmailDeliveryStatus = "accepted" | "canceled" | "failed" | "queued" | "rejected" | "retrying" | "sending" | "skipped";
47
+ export type CoreEmailNotificationStatus = "canceled" | "completed" | "failed" | "processing" | "queued";
48
+ export type CoreEmailNotificationTrigger = "link_replacement" | "publish" | "resend";
23
49
  export type CoreExportJobFormat = "csv" | "pdf" | "zip";
24
- export type CoreExportJobTaskId = "api/export-journal-entries-csv" | "api/export-manager-statement-pdf" | "api/export-owner-statement-combined-csv" | "api/export-owner-statement-pdf" | "api/export-owner-statement-pdf-batch-zip" | "api/export-owner-statement-summary-pdf" | "api/export-owner-statement-summary-pdf-batch-zip" | "api/export-route" | "api/export-trust-reconciliation-pdf";
50
+ export type CoreExportJobTaskId = "api/export-journal-entries-csv" | "api/export-manager-statement-pdf" | "api/export-owner-statement-combined-csv" | "api/export-owner-statement-pdf" | "api/export-owner-statement-pdf-batch-zip" | "api/export-owner-statement-summary-pdf" | "api/export-owner-statement-summary-pdf-batch-zip" | "api/export-payment-batch-pdf" | "api/export-route" | "api/export-trust-reconciliation-pdf";
25
51
  export type CoreFlowEventOperationAction = "abandon" | "replay";
26
52
  export type CoreFlowEventStatus = "canceled" | "dead" | "pending" | "processing" | "succeeded";
53
+ export type CoreOperationPublicIdFormat = "action" | "legacy";
27
54
  export type CoreOperationResourceRole = "result" | "source" | "target";
28
55
  export type CoreOperationResourceType = "bank-rule" | "connection" | "contact" | "file" | "flow" | "listing" | "recurring-fee" | "recurring-transaction-template" | "reservation" | "statement" | "team" | "transaction" | "webhook";
29
- export type CoreOperationPublicIdFormat = "action" | "legacy";
30
56
  export type CoreOperationSourceType = "audit-action" | "export-job" | "sync" | "webhook-delivery";
31
57
  export type CoreOperationStatus = "completed" | "failed" | "queued" | "running";
32
- export type CoreOperationType = "ach-verification" | "bank-rule-run" | "calendar-block" | "calendar-unblock" | "connection-archive" | "connection-connect" | "connection-extract" | "connection-sync" | "csv-import" | "csv-import-preview" | "export" | "flow-run" | "historical-gl-import" | "historical-statement-import" | "listing-journal-refresh" | "plaid-initial-sync" | "pms-cutover" | "pms-cutover-preview" | "provider-payment" | "provider-payment-recovery" | "recurring-transaction-run" | "reservation-journal-refresh" | "team-delete" | "team-demo-data" | "team-duplicate" | "team-initialize" | "transaction-journal-refresh" | "vri-statement-import" | "vri-team-migration" | "webhook-test";
58
+ export type CoreOperationType = "ach-verification" | "bank-rule-run" | "calendar-block" | "calendar-unblock" | "connection-archive" | "connection-connect" | "connection-extract" | "connection-sync" | "csv-import" | "csv-import-preview" | "export" | "flow-run" | "historical-gl-import" | "historical-statement-import" | "listing-journal-refresh" | "plaid-initial-sync" | "pms-cutover" | "pms-cutover-preview" | "provider-payment" | "provider-payment-recovery" | "recurring-transaction-run" | "reservation-journal-refresh" | "reservation-line-mapping-update" | "statement-payout" | "statement-payout-preview" | "team-delete" | "team-demo-data" | "team-duplicate" | "team-initialize" | "transaction-journal-refresh" | "vri-statement-import" | "vri-team-migration" | "webhook-test";
33
59
  export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
34
60
  export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
35
61
  export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
36
62
  export type HealthAccountingIntegrityConfidence = "probable" | "proven" | "unknown";
37
63
  export type HealthAccountingIntegrityDeliveryChannel = "sentry" | "slack";
38
64
  export type HealthAccountingIntegrityDeliveryStatus = "dead_letter" | "delivered" | "failed" | "pending" | "processing" | "suppressed";
65
+ export type HealthAccountingIntegrityDirtyRecordType = "reservation" | "transaction";
39
66
  export type HealthAccountingIntegrityRepairPlanStatus = "active" | "canceled" | "completed" | "draft" | "failed" | "paused";
40
67
  export type HealthAccountingIntegrityRepairScopeType = "case" | "tenant";
41
68
  export type HealthAccountingIntegrityRepairStageStatus = "applying" | "approved" | "canceled" | "dry_run_passed" | "failed" | "paused" | "planned" | "verified" | "verifying";
@@ -48,7 +75,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
48
75
  export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
49
76
  export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
50
77
  export type HealthTenantIssueCategory = "criticalToSystem" | "criticalToUser";
51
- export type HealthTenantIssueCode = "brokenConnections" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unpaidReservations";
78
+ export type HealthTenantIssueCode = "bankRecordsWithSuggestedMatch" | "bankRecordsWithSuggestedRule" | "brokenConnections" | "cancelledReservationBalances" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "departedReservationBalanceMismatch" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "journalConfigurationInvalid" | "journalLocked" | "journalUnbalanced" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "listingsNeedSetup" | "missingAccountAssignments" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "pmsSyncFailures" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unassignedGuestDeposits" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unmappedReservationLineTypes" | "unmatchedBankDeposits" | "unmatchedBankExpenses" | "unpaidReservations" | "unreconciledBankTransactions";
52
79
  export type HealthTenantIssueSeverity = "error" | "warning";
53
80
  export type HealthTenantIssueStatus = "open" | "resolved";
54
81
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
@@ -64,6 +91,8 @@ export type PublicFlowType = "pull" | "push";
64
91
  export type PublicPlaidConnectMode = "create" | "replace" | "update";
65
92
  export type PublicPlaidConnectStatus = "awaitingConfiguration" | "completed" | "configuring" | "credentialsStored" | "discoveringAccounts" | "exchangeOutcomeUnknown" | "exchanging" | "expired" | "failed" | "pendingLink";
66
93
  export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
94
+ export type PublicRecurringFeeListingSubscriptionMatchBy = "bookedDate" | "stayDate";
95
+ export type PublicReservationStayType = "guest" | "owner" | "ownerGuest";
67
96
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
68
97
  export type WebhookApiVersion = "2026-07-01";
69
98
  export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
@@ -142,14 +171,52 @@ export interface AccountingAccountConnection {
142
171
  uniqueRef: string | null;
143
172
  updatedAt: Generated<Timestamp>;
144
173
  }
174
+ export interface AccountingAccountPaymentFileSetting {
175
+ accountId: string;
176
+ accountKind: AccountingBankAccountKind | null;
177
+ accountNumber: string | null;
178
+ bankName: string | null;
179
+ checkEnabled: Generated<boolean>;
180
+ checkFormat: AccountingCheckFormat | null;
181
+ checkNextNumber: number | null;
182
+ checkOffsetX: Generated<number>;
183
+ checkOffsetY: Generated<number>;
184
+ checkPrintMode: AccountingCheckPrintMode | null;
185
+ companyAddress: Json | null;
186
+ companyName: string | null;
187
+ createdAt: Generated<Timestamp>;
188
+ nachaAcceptCanadian: Generated<boolean>;
189
+ nachaBankProfile: AccountingNachaBankProfile | null;
190
+ nachaCompanyId: string | null;
191
+ nachaCompanyName: string | null;
192
+ nachaDiscretionaryData: string | null;
193
+ nachaEnabled: Generated<boolean>;
194
+ nachaEntryDescription: string | null;
195
+ nachaImmediateDestination: string | null;
196
+ nachaImmediateDestinationName: string | null;
197
+ nachaImmediateOrigin: string | null;
198
+ nachaImmediateOriginName: string | null;
199
+ nachaOffsetEntry: Generated<boolean>;
200
+ nachaTestFileAt: Timestamp | null;
201
+ nachaTestFileValid: boolean | null;
202
+ routingNumber: string | null;
203
+ tenantId: string;
204
+ updatedAt: Generated<Timestamp>;
205
+ updatedByUserId: string | null;
206
+ }
145
207
  export interface AccountingAccountReservationLineType {
146
208
  accountId: string | null;
147
209
  bookingChannel: string | null;
148
210
  createdAt: Generated<Timestamp>;
149
211
  id: Generated<string>;
212
+ isSuggestion: Generated<boolean>;
150
213
  lineType: string;
151
214
  revenueRecognition: string | null;
152
215
  status: Generated<string | null>;
216
+ suggestionReason: string | null;
217
+ suggestionSource: AccountingReservationLineMappingSuggestionSource | null;
218
+ suggestionTaxable: boolean | null;
219
+ taxable: Generated<boolean>;
153
220
  tenantId: string;
154
221
  updatedAt: Generated<Timestamp>;
155
222
  }
@@ -187,8 +254,10 @@ export interface AccountingBankRecord {
187
254
  }
188
255
  export interface AccountingBankRecordTransactionPayment {
189
256
  bankRecordId: string;
257
+ bankRuleId: string | null;
190
258
  createdAt: Generated<Timestamp>;
191
259
  id: Generated<string>;
260
+ matchSource: AccountingBankRecordMatchSource | null;
192
261
  tenantId: string | null;
193
262
  transactionId: string;
194
263
  updatedAt: Generated<Timestamp>;
@@ -277,6 +346,8 @@ export interface AccountingBankRuleMode {
277
346
  }
278
347
  export interface AccountingContact {
279
348
  addressData: Json | null;
349
+ addressEditedAt: Timestamp | null;
350
+ bankDetailsRequestedAt: Timestamp | null;
280
351
  /**
281
352
  * When NULL, the type is "individual"
282
353
  */
@@ -284,6 +355,7 @@ export interface AccountingContact {
284
355
  connectionId: string | null;
285
356
  createdAt: Generated<Timestamp>;
286
357
  defaultAccountId: string | null;
358
+ defaultPaymentMethod: Generated<AccountingContactPaymentMethod | null>;
287
359
  email: string | null;
288
360
  firstName: string | null;
289
361
  id: Generated<string>;
@@ -296,6 +368,8 @@ export interface AccountingContact {
296
368
  */
297
369
  shortRef: string | null;
298
370
  sourceId: string | null;
371
+ statementEmailEnabled: boolean | null;
372
+ statementEmailUnsubscribedAt: Timestamp | null;
299
373
  status: string | null;
300
374
  taxId: string | null;
301
375
  tenantId: string;
@@ -306,6 +380,34 @@ export interface AccountingContact {
306
380
  uniqueRef: string | null;
307
381
  updatedAt: Generated<Timestamp>;
308
382
  }
383
+ export interface AccountingContactBankDetailsRequest {
384
+ contactId: string;
385
+ createdAt: Generated<Timestamp>;
386
+ delivery: Generated<AccountingBankDetailsRequestDelivery>;
387
+ id: Generated<string>;
388
+ linkExpiresAt: Timestamp | null;
389
+ openedAt: Timestamp | null;
390
+ recipientEmail: string | null;
391
+ requestedAt: Timestamp;
392
+ requestedByUserId: string | null;
393
+ sentAt: Timestamp | null;
394
+ tenantId: string;
395
+ updatedAt: Generated<Timestamp>;
396
+ }
397
+ export interface AccountingContactBankAccount {
398
+ accountKind: AccountingBankAccountKind;
399
+ accountNumber: string;
400
+ contactId: string;
401
+ createdAt: Generated<Timestamp>;
402
+ holderName: string;
403
+ holderType: AccountingBankAccountHolderType;
404
+ routingNumber: string;
405
+ tenantId: string;
406
+ updatedAt: Generated<Timestamp>;
407
+ updatedByApiTokenId: string | null;
408
+ updatedByBankDetailsRequestId: string | null;
409
+ updatedByUserId: string | null;
410
+ }
309
411
  export interface AccountingContactCompanyType {
310
412
  name: string;
311
413
  }
@@ -331,6 +433,7 @@ export interface AccountingJournalEntry {
331
433
  listingOwnershipPeriodId: string | null;
332
434
  parentListingId: string | null;
333
435
  party: string | null;
436
+ paymentId: string | null;
334
437
  recurringFeeId: string | null;
335
438
  recurringFeeListingSubscriptionId: string | null;
336
439
  reservationId: string | null;
@@ -383,6 +486,155 @@ export interface AccountingPaidStatus {
383
486
  export interface AccountingParty {
384
487
  name: string;
385
488
  }
489
+ export interface AccountingPayment {
490
+ accountId: string | null;
491
+ amount: number;
492
+ bankRecordId: string | null;
493
+ closureConfirmedAt: Timestamp | null;
494
+ closureRequestedAt: Timestamp | null;
495
+ connectionId: string | null;
496
+ contactId: string | null;
497
+ createdAt: Generated<Timestamp>;
498
+ currency: string;
499
+ destinationRef: string | null;
500
+ fundingAccountConnectionId: string | null;
501
+ fundingAccountRef: string | null;
502
+ fundingCurrency: string | null;
503
+ fundingDebited: number | null;
504
+ fundingEntityRef: string | null;
505
+ fundingRefunded: number | null;
506
+ id: Generated<string>;
507
+ idempotencyKey: string;
508
+ initiatedAt: Timestamp | null;
509
+ isHistoricalCopy: Generated<boolean>;
510
+ issue: AccountingPaymentIssue | null;
511
+ method: AccountingPaymentMethod;
512
+ observedAt: Timestamp | null;
513
+ operationId: string | null;
514
+ origin: Generated<AccountingPaymentOrigin>;
515
+ postingDate: Timestamp | null;
516
+ provider: AccountingPaymentProvider | null;
517
+ providerBillRef: string | null;
518
+ providerMethod: string | null;
519
+ providerPaymentRef: string | null;
520
+ providerReference: string | null;
521
+ providerStatus: string | null;
522
+ providerUpdatedAt: Timestamp | null;
523
+ recipientRef: string | null;
524
+ reference: string | null;
525
+ replacesPaymentId: string | null;
526
+ requestedDate: Timestamp | null;
527
+ requestFingerprint: string;
528
+ scheduledAt: Timestamp | null;
529
+ settledAt: Timestamp | null;
530
+ status: Generated<AccountingPaymentStatus>;
531
+ tenantId: string;
532
+ terminalAt: Timestamp | null;
533
+ transactionId: string;
534
+ updatedAt: Generated<Timestamp>;
535
+ }
536
+ export interface AccountingPaymentAllocation {
537
+ amount: number;
538
+ createdAt: Generated<Timestamp>;
539
+ id: Generated<string>;
540
+ paymentId: string;
541
+ tenantId: string;
542
+ transactionLineId: string;
543
+ }
544
+ export interface AccountingPaymentBatch {
545
+ accountId: string;
546
+ createdAt: Generated<Timestamp>;
547
+ createdByUserId: string | null;
548
+ currency: string;
549
+ effectiveDate: Timestamp;
550
+ fileContent: string | null;
551
+ fileUpdatedAt: Timestamp | null;
552
+ id: Generated<string>;
553
+ idempotencyKey: string;
554
+ settings: Json;
555
+ tenantId: string;
556
+ type: AccountingPaymentBatchType;
557
+ updatedAt: Generated<Timestamp>;
558
+ voidedAt: Timestamp | null;
559
+ }
560
+ export interface AccountingPaymentBatchItem {
561
+ accountId: string;
562
+ accountKind: AccountingBankAccountKind | null;
563
+ accountNumber: string | null;
564
+ amount: number;
565
+ batchId: string;
566
+ checkNumber: number | null;
567
+ contactId: string;
568
+ createdAt: Generated<Timestamp>;
569
+ id: Generated<string>;
570
+ memo: string | null;
571
+ payeeAddress: Json | null;
572
+ payeeName: string;
573
+ routingNumber: string | null;
574
+ secCode: AccountingNachaSecCode | null;
575
+ stub: Json;
576
+ tenantId: string;
577
+ traceNumber: string | null;
578
+ voidedAt: Timestamp | null;
579
+ }
580
+ export interface AccountingPaymentBatchPayment {
581
+ createdAt: Generated<Timestamp>;
582
+ itemId: string;
583
+ paymentId: string;
584
+ tenantId: string;
585
+ }
586
+ export interface AccountingPaymentCommand {
587
+ createdAt: Generated<Timestamp>;
588
+ fingerprint: string;
589
+ id: string;
590
+ idempotencyKey: string;
591
+ kind: AccountingPaymentCommandKind;
592
+ outcome: AccountingPaymentCommandOutcome | null;
593
+ outcomeAt: Timestamp | null;
594
+ paymentId: string;
595
+ providerFailureCode: string | null;
596
+ tenantId: string;
597
+ }
598
+ export interface AccountingPaymentObservation {
599
+ connectionId: string;
600
+ createdAt: Generated<Timestamp>;
601
+ eventKey: string;
602
+ externalId: string;
603
+ fingerprint: string;
604
+ fundingCurrency: string | null;
605
+ fundingDebited: number | null;
606
+ fundingRefunded: number | null;
607
+ id: Generated<string>;
608
+ issue: AccountingPaymentIssue | null;
609
+ observedAt: Timestamp;
610
+ origin: Generated<AccountingPaymentObservationOrigin>;
611
+ paidAmount: number | null;
612
+ paymentId: string | null;
613
+ providerBillRef: string | null;
614
+ providerPaymentRef: string | null;
615
+ providerStatus: string | null;
616
+ providerUpdatedAt: Timestamp | null;
617
+ resourceType: AccountingPaymentResourceType;
618
+ returnedAt: Timestamp | null;
619
+ settledAt: Timestamp | null;
620
+ snapshot: Json | null;
621
+ sourceId: string | null;
622
+ status: AccountingPaymentStatus | null;
623
+ tenantId: string;
624
+ terminalAt: Timestamp | null;
625
+ }
626
+ export interface AccountingPaymentReversal {
627
+ createdAt: Generated<Timestamp>;
628
+ effectiveAt: Timestamp;
629
+ id: Generated<string>;
630
+ idempotencyKey: string;
631
+ kind: AccountingPaymentReversalKind;
632
+ paymentId: string;
633
+ postingDate: Timestamp | null;
634
+ reason: string | null;
635
+ requestFingerprint: string;
636
+ tenantId: string;
637
+ }
386
638
  export interface AccountingRate {
387
639
  accountId: string | null;
388
640
  basisPoints: number;
@@ -415,6 +667,7 @@ export interface AccountingReservationJournalInvalidation {
415
667
  coveredByEffectId: string | null;
416
668
  createdAt: Generated<Timestamp>;
417
669
  effectId: string | null;
670
+ failureCode: AccountingReservationJournalInvalidationFailure | null;
418
671
  id: Generated<string>;
419
672
  reservationId: string;
420
673
  revision: Int8;
@@ -676,8 +929,8 @@ export interface AuditPublicEvent {
676
929
  projectedAt: Generated<Timestamp>;
677
930
  projectionFingerprint: string;
678
931
  projectionVersion: Generated<number>;
679
- requestId: string | null;
680
932
  recovery: Generated<Json>;
933
+ requestId: string | null;
681
934
  revision: Generated<number>;
682
935
  rootEntityId: string;
683
936
  rootEntityType: string;
@@ -735,6 +988,7 @@ export interface CoreActiveStatus {
735
988
  name: string;
736
989
  }
737
990
  export interface CoreAsyncOperationResult {
991
+ checkpoint: Json | null;
738
992
  createdAt: Generated<Timestamp>;
739
993
  errorMessage: string | null;
740
994
  operationId: string;
@@ -806,6 +1060,40 @@ export interface CoreCsvOperationResult {
806
1060
  tenantId: string;
807
1061
  updatedAt: Generated<Timestamp>;
808
1062
  }
1063
+ export interface CoreEmailDelivery {
1064
+ attemptCount: Generated<number>;
1065
+ contactId: string | null;
1066
+ createdAt: Generated<Timestamp>;
1067
+ failureCode: CoreEmailDeliveryFailureCode | null;
1068
+ finishedAt: Timestamp | null;
1069
+ httpStatus: number | null;
1070
+ id: Generated<string>;
1071
+ lastAttemptAt: Timestamp | null;
1072
+ notificationId: string;
1073
+ postmarkErrorCode: number | null;
1074
+ postmarkMessageId: string | null;
1075
+ recipientEmail: string | null;
1076
+ status: Generated<CoreEmailDeliveryStatus>;
1077
+ submittedAt: Timestamp | null;
1078
+ tenantId: string;
1079
+ triggerRunId: string | null;
1080
+ updatedAt: Generated<Timestamp>;
1081
+ userId: string | null;
1082
+ }
1083
+ export interface CoreEmailNotification {
1084
+ createdAt: Generated<Timestamp>;
1085
+ finishedAt: Timestamp | null;
1086
+ id: string;
1087
+ ownerStatementId: string;
1088
+ recipientsResolvedAt: Timestamp | null;
1089
+ requestedByUserId: string | null;
1090
+ startedAt: Timestamp | null;
1091
+ status: Generated<CoreEmailNotificationStatus>;
1092
+ tenantId: string;
1093
+ trigger: CoreEmailNotificationTrigger | null;
1094
+ triggerRunId: string | null;
1095
+ updatedAt: Generated<Timestamp>;
1096
+ }
809
1097
  export interface CoreExportJob {
810
1098
  createdAt: Generated<Timestamp>;
811
1099
  errorMessage: string | null;
@@ -1167,6 +1455,20 @@ export interface HealthAccountingIntegrityCase {
1167
1455
  verification: Json;
1168
1456
  version: Generated<Int8>;
1169
1457
  }
1458
+ export interface HealthAccountingIntegrityComparisonFinding {
1459
+ caseKey: string;
1460
+ code: string;
1461
+ contentHash: string;
1462
+ createdAt: Generated<Timestamp>;
1463
+ dataRegion: string;
1464
+ firstSeenAt: Timestamp;
1465
+ id: Generated<string>;
1466
+ recordId: string;
1467
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1468
+ severity: HealthAccountingIntegritySeverity;
1469
+ tenantId: string;
1470
+ updatedAt: Generated<Timestamp>;
1471
+ }
1170
1472
  export interface HealthAccountingIntegrityDelivery {
1171
1473
  attempts: Generated<number>;
1172
1474
  caseId: string | null;
@@ -1186,6 +1488,19 @@ export interface HealthAccountingIntegrityDelivery {
1186
1488
  status: Generated<HealthAccountingIntegrityDeliveryStatus>;
1187
1489
  updatedAt: Generated<Timestamp>;
1188
1490
  }
1491
+ export interface HealthAccountingIntegrityDirtyRecord {
1492
+ claimedUntil: Timestamp | null;
1493
+ claimToken: string | null;
1494
+ computedAt: Timestamp | null;
1495
+ computedVersion: Generated<Int8>;
1496
+ createdAt: Generated<Timestamp>;
1497
+ dirtyAt: Generated<Timestamp>;
1498
+ dirtyVersion: Generated<Int8>;
1499
+ recordId: string;
1500
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1501
+ tenantId: string;
1502
+ updatedAt: Generated<Timestamp>;
1503
+ }
1189
1504
  export interface HealthAccountingIntegrityOperatorEvent {
1190
1505
  actorId: string;
1191
1506
  caseId: string | null;
@@ -1305,6 +1620,16 @@ export interface HealthAccountingIntegrityRun {
1305
1620
  unchangedCaseCount: Generated<Int8>;
1306
1621
  updatedAt: Generated<Timestamp>;
1307
1622
  }
1623
+ export interface HealthAccountingIntegritySweepCursor {
1624
+ createdAt: Generated<Timestamp>;
1625
+ cycleStartedAt: Generated<Timestamp>;
1626
+ definitionsHash: string | null;
1627
+ lastCycleCompletedAt: Timestamp | null;
1628
+ lastRecordId: string | null;
1629
+ lastTenantId: string | null;
1630
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1631
+ updatedAt: Generated<Timestamp>;
1632
+ }
1308
1633
  export interface HealthAccountingIntegrityTransition {
1309
1634
  caseId: string;
1310
1635
  caseVersion: Int8;
@@ -1512,7 +1837,9 @@ export interface PublicConnection {
1512
1837
  appId: string;
1513
1838
  backendVersion: number | null;
1514
1839
  createdAt: Generated<Timestamp>;
1840
+ credentialMetadata: Json | null;
1515
1841
  credentials: Generated<Json | null>;
1842
+ credentialVersion: Generated<Int8>;
1516
1843
  disabled: Generated<boolean | null>;
1517
1844
  fetchNext: Generated<Timestamp | null>;
1518
1845
  fetchStatus: Generated<string>;
@@ -1530,6 +1857,16 @@ export interface PublicConnection {
1530
1857
  version: number | null;
1531
1858
  webhookVersion: Generated<Int8>;
1532
1859
  }
1860
+ export interface PublicConnectionOauthState {
1861
+ appId: string;
1862
+ connectionId: string | null;
1863
+ expiresAt: Timestamp;
1864
+ params: JsonObject;
1865
+ redirectUri: string;
1866
+ stateHash: string;
1867
+ tenantId: string;
1868
+ userId: string;
1869
+ }
1533
1870
  export interface PublicConnectionRoute {
1534
1871
  connectionId: string;
1535
1872
  createdAt: Generated<Timestamp>;
@@ -1578,43 +1915,6 @@ export interface PublicEmailTemplate {
1578
1915
  export interface PublicEmailTemplateType {
1579
1916
  name: string;
1580
1917
  }
1581
- export interface PublicFeature {
1582
- createdAt: Generated<Timestamp>;
1583
- description: string | null;
1584
- id: Generated<string>;
1585
- issueUrl: string | null;
1586
- /**
1587
- * user ids of user needed to approve this feature
1588
- */
1589
- requiredApprovals: Generated<Json | null>;
1590
- status: Generated<string | null>;
1591
- tenantId: string | null;
1592
- title: string;
1593
- updatedAt: Generated<Timestamp>;
1594
- url: string | null;
1595
- }
1596
- export interface PublicFeatureApproval {
1597
- createdAt: Generated<Timestamp>;
1598
- featureId: string;
1599
- id: Generated<string>;
1600
- status: Generated<string | null>;
1601
- updatedAt: Generated<Timestamp>;
1602
- userId: string;
1603
- }
1604
- export interface PublicFeatureApprovalStatus {
1605
- name: string;
1606
- }
1607
- export interface PublicFeatureEnabledTeam {
1608
- createdAt: Generated<Timestamp>;
1609
- featureId: string;
1610
- id: Generated<string>;
1611
- status: Generated<string | null>;
1612
- tenantId: string;
1613
- updatedAt: Generated<Timestamp>;
1614
- }
1615
- export interface PublicFeatureStatus {
1616
- name: string;
1617
- }
1618
1918
  export interface PublicFileStorage {
1619
1919
  connectionId: string | null;
1620
1920
  contactId: string | null;
@@ -2007,8 +2307,15 @@ export interface PublicPlaidConnectSession {
2007
2307
  environment: string;
2008
2308
  errorCode: string | null;
2009
2309
  errorRetryable: boolean | null;
2310
+ exitedAt: Timestamp | null;
2311
+ exitErrorCode: string | null;
2312
+ exitErrorType: string | null;
2313
+ exitRequestId: string | null;
2314
+ exitView: string | null;
2010
2315
  expiresAt: Timestamp;
2011
2316
  id: Generated<string>;
2317
+ institutionId: string | null;
2318
+ institutionName: string | null;
2012
2319
  itemId: string | null;
2013
2320
  leaseExpiresAt: Timestamp | null;
2014
2321
  linkSessionId: string | null;
@@ -2030,6 +2337,8 @@ export interface PublicRecurringFee {
2030
2337
  formula: string | null;
2031
2338
  icon: string | null;
2032
2339
  id: Generated<string>;
2340
+ nightsFilterMax: number | null;
2341
+ nightsFilterMin: number | null;
2033
2342
  rateType: Generated<string | null>;
2034
2343
  revenueRecognition: string | null;
2035
2344
  status: Generated<string>;
@@ -2063,6 +2372,7 @@ export interface PublicRecurringFeeListingSubscription {
2063
2372
  endAt: Timestamp | null;
2064
2373
  id: Generated<string>;
2065
2374
  listingId: string;
2375
+ matchBy: Generated<PublicRecurringFeeListingSubscriptionMatchBy>;
2066
2376
  rate: number | null;
2067
2377
  rateType: Generated<string | null>;
2068
2378
  recurringFeeId: string;
@@ -2129,6 +2439,7 @@ export interface PublicReservation {
2129
2439
  shortRef: string | null;
2130
2440
  sourceId: string | null;
2131
2441
  status: Generated<string | null>;
2442
+ stayType: Generated<PublicReservationStayType>;
2132
2443
  taxCentTotal: Int8 | null;
2133
2444
  tenantId: string | null;
2134
2445
  uniqueRef: string | null;
@@ -2286,10 +2597,10 @@ export interface PublicTenant {
2286
2597
  billingPartnerId: string | null;
2287
2598
  billingPaymentMethodType: string | null;
2288
2599
  billingPlan: string | null;
2600
+ billingSubscriptionId: string | null;
2289
2601
  billingSubscriptionStatus: string | null;
2290
2602
  booksClosedAt: Timestamp | null;
2291
2603
  calculatedBillingPartnerId: Generated<string | null>;
2292
- calculatedIsBillable: Generated<boolean | null>;
2293
2604
  calculatedStatus: Generated<string | null>;
2294
2605
  /**
2295
2606
  * Billing subscription is getting cancelled at date
@@ -2316,7 +2627,7 @@ export interface PublicTenant {
2316
2627
  intercomId: string | null;
2317
2628
  isActive: Generated<boolean | null>;
2318
2629
  isGeneralLedger: Generated<boolean | null>;
2319
- isOnboarding: Generated<boolean | null>;
2630
+ isOnboarding: Generated<boolean>;
2320
2631
  isTest: Generated<boolean | null>;
2321
2632
  logo: string | null;
2322
2633
  longTermStayNights: number | null;
@@ -2363,16 +2674,6 @@ export interface PublicTenantUser {
2363
2674
  updatedAt: Generated<Timestamp | null>;
2364
2675
  userId: string;
2365
2676
  }
2366
- export interface PublicToken {
2367
- createdAt: Generated<Timestamp>;
2368
- expiresAt: Timestamp | null;
2369
- id: Generated<string>;
2370
- nanoId: Generated<string>;
2371
- payload: Generated<Json>;
2372
- tenantId: string | null;
2373
- type: string | null;
2374
- userId: string | null;
2375
- }
2376
2677
  export interface PublicUser {
2377
2678
  address: string | null;
2378
2679
  addressCity: string | null;
@@ -2464,17 +2765,6 @@ export interface PublicWebhook {
2464
2765
  types2: string[] | null;
2465
2766
  url: string;
2466
2767
  }
2467
- export interface TrackingEvent {
2468
- createdAt: Generated<Timestamp>;
2469
- id: Generated<string>;
2470
- name: string;
2471
- packageName: string;
2472
- props: Json;
2473
- tenantId: string | null;
2474
- timestamp: Generated<Timestamp | null>;
2475
- trackedAt: Generated<Timestamp | null>;
2476
- userId: string | null;
2477
- }
2478
2768
  export interface TrackingIntercomConversation {
2479
2769
  answer: string;
2480
2770
  conversationId: Int8;
@@ -2612,6 +2902,7 @@ export interface DB {
2612
2902
  "accounting.accountCategory": AccountingAccountCategory;
2613
2903
  "accounting.accountClassification": AccountingAccountClassification;
2614
2904
  "accounting.accountConnection": AccountingAccountConnection;
2905
+ "accounting.accountPaymentFileSetting": AccountingAccountPaymentFileSetting;
2615
2906
  "accounting.accountReservationLineType": AccountingAccountReservationLineType;
2616
2907
  "accounting.accountReservationRevRec": AccountingAccountReservationRevRec;
2617
2908
  "accounting.accountType": AccountingAccountType;
@@ -2629,6 +2920,8 @@ export interface DB {
2629
2920
  "accounting.bankRuleMatchOperator": AccountingBankRuleMatchOperator;
2630
2921
  "accounting.bankRuleMode": AccountingBankRuleMode;
2631
2922
  "accounting.contact": AccountingContact;
2923
+ "accounting.contactBankAccount": AccountingContactBankAccount;
2924
+ "accounting.contactBankDetailsRequest": AccountingContactBankDetailsRequest;
2632
2925
  "accounting.contactCompanyType": AccountingContactCompanyType;
2633
2926
  "accounting.contactType": AccountingContactType;
2634
2927
  "accounting.journalEntry": AccountingJournalEntry;
@@ -2640,6 +2933,14 @@ export interface DB {
2640
2933
  "accounting.ownerStatementProjectionRevision": AccountingOwnerStatementProjectionRevision;
2641
2934
  "accounting.paidStatus": AccountingPaidStatus;
2642
2935
  "accounting.party": AccountingParty;
2936
+ "accounting.payment": AccountingPayment;
2937
+ "accounting.paymentAllocation": AccountingPaymentAllocation;
2938
+ "accounting.paymentBatch": AccountingPaymentBatch;
2939
+ "accounting.paymentBatchItem": AccountingPaymentBatchItem;
2940
+ "accounting.paymentBatchPayment": AccountingPaymentBatchPayment;
2941
+ "accounting.paymentCommand": AccountingPaymentCommand;
2942
+ "accounting.paymentObservation": AccountingPaymentObservation;
2943
+ "accounting.paymentReversal": AccountingPaymentReversal;
2643
2944
  "accounting.rate": AccountingRate;
2644
2945
  "accounting.rateType": AccountingRateType;
2645
2946
  "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
@@ -2671,6 +2972,8 @@ export interface DB {
2671
2972
  "core.changeSyncType": CoreChangeSyncType;
2672
2973
  "core.changeType": CoreChangeType;
2673
2974
  "core.csvOperationResult": CoreCsvOperationResult;
2975
+ "core.emailDelivery": CoreEmailDelivery;
2976
+ "core.emailNotification": CoreEmailNotification;
2674
2977
  "core.exportJob": CoreExportJob;
2675
2978
  "core.flow": CoreFlow;
2676
2979
  "core.flowEvent": CoreFlowEvent;
@@ -2702,13 +3005,16 @@ export interface DB {
2702
3005
  "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
2703
3006
  "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
2704
3007
  "health.accountingIntegrityCase": HealthAccountingIntegrityCase;
3008
+ "health.accountingIntegrityComparisonFinding": HealthAccountingIntegrityComparisonFinding;
2705
3009
  "health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
3010
+ "health.accountingIntegrityDirtyRecord": HealthAccountingIntegrityDirtyRecord;
2706
3011
  "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2707
3012
  "health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
2708
3013
  "health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
2709
3014
  "health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
2710
3015
  "health.accountingIntegrityRepairTransition": HealthAccountingIntegrityRepairTransition;
2711
3016
  "health.accountingIntegrityRun": HealthAccountingIntegrityRun;
3017
+ "health.accountingIntegritySweepCursor": HealthAccountingIntegritySweepCursor;
2712
3018
  "health.accountingIntegrityTransition": HealthAccountingIntegrityTransition;
2713
3019
  "health.reservationIssueSnapshot": HealthReservationIssueSnapshot;
2714
3020
  "health.tenantIssue": HealthTenantIssue;
@@ -2725,6 +3031,7 @@ export interface DB {
2725
3031
  "public.bookingChannel": PublicBookingChannel;
2726
3032
  "public.bookingChannelIconCandidate": PublicBookingChannelIconCandidate;
2727
3033
  "public.connection": PublicConnection;
3034
+ "public.connectionOauthState": PublicConnectionOauthState;
2728
3035
  "public.connectionRoute": PublicConnectionRoute;
2729
3036
  "public.controlPlaneOutbox": PublicControlPlaneOutbox;
2730
3037
  "public.controlPlaneProjectionEvent": PublicControlPlaneProjectionEvent;
@@ -2732,11 +3039,6 @@ export interface DB {
2732
3039
  "public.duplicateEmails": PublicDuplicateEmails;
2733
3040
  "public.emailTemplate": PublicEmailTemplate;
2734
3041
  "public.emailTemplateType": PublicEmailTemplateType;
2735
- "public.feature": PublicFeature;
2736
- "public.featureApproval": PublicFeatureApproval;
2737
- "public.featureApprovalStatus": PublicFeatureApprovalStatus;
2738
- "public.featureEnabledTeam": PublicFeatureEnabledTeam;
2739
- "public.featureStatus": PublicFeatureStatus;
2740
3042
  "public.fileStorage": PublicFileStorage;
2741
3043
  "public.fileStorageSourceLink": PublicFileStorageSourceLink;
2742
3044
  "public.fileStorageTag": PublicFileStorageTag;
@@ -2786,7 +3088,6 @@ export interface DB {
2786
3088
  "public.taxStatementStatus": PublicTaxStatementStatus;
2787
3089
  "public.tenant": PublicTenant;
2788
3090
  "public.tenantUser": PublicTenantUser;
2789
- "public.token": PublicToken;
2790
3091
  "public.user": PublicUser;
2791
3092
  "public.userCompanyType": PublicUserCompanyType;
2792
3093
  "public.userCompanyUser": PublicUserCompanyUser;
@@ -2796,7 +3097,6 @@ export interface DB {
2796
3097
  "public.viewWebhookEvents": PublicViewWebhookEvents;
2797
3098
  "public.viewWebhookEventsGroupedByDate": PublicViewWebhookEventsGroupedByDate;
2798
3099
  "public.webhook": PublicWebhook;
2799
- "tracking.event": TrackingEvent;
2800
3100
  "tracking.intercomConversation": TrackingIntercomConversation;
2801
3101
  "tracking.intercomConversationUser": TrackingIntercomConversationUser;
2802
3102
  "tracking.intercomReport": TrackingIntercomReport;