@vrplatform/kysely 1.3.45-391 → 1.3.45-39248566836

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 (122) 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 +19 -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 +39 -2
  12. package/build/main/index.js +323 -58
  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 +3 -0
  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/query/listing/status.js +6 -2
  27. package/build/main/query/listing/status.js.map +1 -1
  28. package/build/main/query/tenant/status.d.ts +1 -6
  29. package/build/main/query/tenant/status.js +4 -12
  30. package/build/main/query/tenant/status.js.map +1 -1
  31. package/build/main/regional.d.ts +1 -0
  32. package/build/main/regional.js +1 -0
  33. package/build/main/regional.js.map +1 -1
  34. package/build/main/test/index.js +4 -3
  35. package/build/main/test/index.js.map +1 -1
  36. package/build/main/v1.generated.d.ts +358 -19
  37. package/build/main/v1.generated.js.map +1 -1
  38. package/build/migrations-v2/0000000000033-plaid-connect-session-telemetry.ts +31 -0
  39. package/build/migrations-v2/0000000000049-queued-journal-operation-failures.ts +60 -0
  40. package/build/migrations-v2/0000000000050-connection-oauth-state.ts +43 -0
  41. package/build/migrations-v2/0000000000051-owner-statement-email-delivery.ts +134 -0
  42. package/build/migrations-v2/0000000000052-fee-journal-lock-skip-operations.ts +59 -0
  43. package/build/migrations-v2/0000000000053-fee-journal-lock-skip-null-attempt.ts +44 -0
  44. package/build/migrations-v2/0000000000054-journal-refresh-issue-codes.ts +16 -0
  45. package/build/migrations-v2/0000000000055-tenant-billing-subscription.ts +8 -0
  46. package/build/migrations-v2/0000000000056-journal-operation-failure-precedence.ts +306 -0
  47. package/build/migrations-v2/0000000000057-journal-invalidation-failure-code.ts +28 -0
  48. package/build/migrations-v2/0000000000058-journal-invalidation-locked-failure.ts +16 -0
  49. package/build/migrations-v2/0000000000059-billing-active-listing-cross-region-partner.ts +135 -0
  50. package/build/migrations-v2/0000000000060-accounting-integrity-change-driven.ts +99 -0
  51. package/build/migrations-v2/0000000000061-tenant-pending-onboarding-status.ts +37 -0
  52. package/build/migrations-v2/0000000000062-statement-payout-operations.ts +16 -0
  53. package/build/migrations-v2/0000000000063-missing-account-assignments-issue-code.ts +13 -0
  54. package/build/migrations-v2/0000000000064-journal-invalidation-source-lookup-index.ts +26 -0
  55. package/build/migrations-v2/0000000000065-hasura-connection-event-credentials.ts +42 -0
  56. package/build/migrations-v2/0000000000066-recurring-fee-listing-subscription-match-by.ts +51 -0
  57. package/build/migrations-v2/0000000000067-connection-credential-metadata.ts +60 -0
  58. package/build/migrations-v2/0000000000068-connection-credential-version.ts +34 -0
  59. package/build/migrations-v2/0000000000069-owner-statement-contact-email-delivery.ts +84 -0
  60. package/build/migrations-v2/0000000000070-payment-writer-compatibility.ts +69 -0
  61. package/build/migrations-v2/0000000000071-payments.ts +532 -0
  62. package/build/migrations-v2/0000000000072-journal-entry-payment-index.ts +21 -0
  63. package/build/migrations-v2/0000000000073-batch-invalidation-operation-registration.ts +74 -0
  64. package/build/migrations-v2/0000000000074-owner-statement-email-history.ts +34 -0
  65. package/build/migrations-v2/0000000000075-tenant-deletion-lookup-indexes.ts +46 -0
  66. package/build/migrations-v2/0000000000076-tenant-onboarding-not-null.ts +23 -0
  67. package/build/migrations-v2/0000000000077-payment-writer-statement-attachment.ts +92 -0
  68. package/build/migrations-v2/0000000000078-trigger-timeout-indexes.ts +44 -0
  69. package/build/migrations-v2/0000000000079-core-change-tenant-statistics.ts +26 -0
  70. package/build/migrations-v2/0000000000080-drop-legacy-tracking-event.ts +60 -0
  71. package/build/migrations-v2/0000000000081-recurring-fee-planner-operation-status.ts +35 -0
  72. package/build/migrations-v2/0000000000082-reservation-search-trigram-indexes.ts +54 -0
  73. package/build/migrations-v2/0000000000083-journal-entry-deposit-lookup-index.ts +31 -0
  74. package/build/migrations-v2/0000000000084-journal-entry-reservation-revenue-indexes.ts +39 -0
  75. package/build/migrations-v2/0000000000085-owner-statement-link-email-template.ts +23 -0
  76. package/build/migrations-v2/0000000000086-contact-payment-setup.ts +72 -0
  77. package/build/migrations-v2/0000000000087-address-delete-fk-indexes.ts +30 -0
  78. package/build/migrations-v2/0000000000088-owner-statement-email-switch.ts +76 -0
  79. package/build/migrations-v2/0000000000089-contact-bank-details-requested-at.ts +21 -0
  80. package/build/migrations-v2/0000000000090-contact-bank-account-api-key.ts +22 -0
  81. package/build/migrations-v2/0000000000091-contact-bank-details-request.ts +78 -0
  82. package/build/migrations-v2/0000000000092-payment-provider-reference.ts +22 -0
  83. package/build/migrations-v2/0000000000093-payment-reversal-offline-undo.ts +18 -0
  84. package/build/migrations-v2/0000000000094-reservation-status-checkout-index.ts +37 -0
  85. package/build/migrations-v2/0000000000095-payment-batches.ts +196 -0
  86. package/build/module/camel-case/index.d.ts +4 -4
  87. package/build/module/camel-case/index.js +3 -2
  88. package/build/module/camel-case/index.js.map +1 -1
  89. package/build/module/connect-handoff.d.ts +12 -0
  90. package/build/module/connect-handoff.js +70 -0
  91. package/build/module/connect-handoff.js.map +1 -0
  92. package/build/module/control-plane/index.d.ts +19 -1
  93. package/build/module/control-plane/index.js +9 -0
  94. package/build/module/control-plane/index.js.map +1 -1
  95. package/build/module/index.d.ts +39 -2
  96. package/build/module/index.js +322 -58
  97. package/build/module/index.js.map +1 -1
  98. package/build/module/isomorphic.d.ts +1 -1
  99. package/build/module/isomorphic.js +1 -1
  100. package/build/module/isomorphic.js.map +1 -1
  101. package/build/module/local/generate.js +4 -3
  102. package/build/module/local/generate.js.map +1 -1
  103. package/build/module/local/index.js +3 -0
  104. package/build/module/local/index.js.map +1 -1
  105. package/build/module/migration-source.d.ts +4 -0
  106. package/build/module/migration-source.js +42 -0
  107. package/build/module/migration-source.js.map +1 -0
  108. package/build/module/pganalyze-comment-plugin/comment-transformer.js +3 -1
  109. package/build/module/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
  110. package/build/module/query/listing/status.js +6 -2
  111. package/build/module/query/listing/status.js.map +1 -1
  112. package/build/module/query/tenant/status.d.ts +1 -6
  113. package/build/module/query/tenant/status.js +4 -11
  114. package/build/module/query/tenant/status.js.map +1 -1
  115. package/build/module/regional.d.ts +1 -0
  116. package/build/module/regional.js +1 -0
  117. package/build/module/regional.js.map +1 -1
  118. package/build/module/test/index.js +4 -3
  119. package/build/module/test/index.js.map +1 -1
  120. package/build/module/v1.generated.d.ts +358 -19
  121. package/build/module/v1.generated.js.map +1 -1
  122. package/package.json +8 -6
@@ -3,39 +3,64 @@
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 AccountingCheckFormat = "standard" | "voucher";
10
+ export type AccountingCheckPrintMode = "plainPaper" | "preprinted";
11
+ export type AccountingContactPaymentMethod = "check" | "nachaAch" | "outside" | "rampAch";
6
12
  export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "historicalLedger" | "inactiveAccount" | "listingInactive" | "listingOwnershipPeriodNotFound" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unbalancedGroupInactiveLeg" | "unknownInactiveReason";
7
13
  export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
14
+ export type AccountingNachaBankProfile = "bmo" | "generic" | "hancockWhitney" | "regions";
15
+ export type AccountingNachaSecCode = "CCD" | "PPD";
16
+ export type AccountingPaymentBatchType = "check" | "nacha";
17
+ export type AccountingPaymentCommandKind = "cancel" | "refresh" | "submit";
18
+ export type AccountingPaymentCommandOutcome = "accepted" | "conflictingEvidence" | "rejected" | "unknown";
19
+ export type AccountingPaymentIssue = "accountingConfiguration" | "allocationOutOfRange" | "amountMismatch" | "conflictingEvidence" | "currencyMismatch" | "overpayment" | "recipientMismatch" | "unknownOutcome" | "unknownStatus" | "unlinkedMovement" | "unmappedFundingAccount";
20
+ export type AccountingPaymentMethod = "ach" | "cash" | "check" | "other" | "wire";
21
+ export type AccountingPaymentObservationOrigin = "provider" | "review";
22
+ export type AccountingPaymentOrigin = "provider" | "vrp";
23
+ export type AccountingPaymentProvider = "ramp";
24
+ export type AccountingPaymentResourceType = "bill" | "payment" | "transfer";
25
+ export type AccountingPaymentReversalKind = "bankUnmatch" | "offlineReversal" | "offlineUndo" | "providerReturn";
26
+ export type AccountingPaymentStatus = "canceled" | "failed" | "pending" | "processing" | "scheduled" | "submitting" | "succeeded";
27
+ export type AccountingReservationJournalInvalidationFailure = "journal_configuration_invalid" | "journal_locked";
8
28
  export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
9
29
  export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
10
30
  export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
11
31
  export type AuditActionActorType = "api_key" | "automation" | "sync" | "system" | "user";
32
+ export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
12
33
  export type AuditEffectAttemptStatus = "completed" | "failed" | "running" | "skipped_locked";
13
34
  export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "failed" | "pending" | "running";
14
35
  export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
15
36
  export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
16
37
  export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
17
- export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
18
38
  export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
19
39
  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
40
  export type CoreAsyncOperationResultStatus = "completed" | "failed" | "queued";
21
41
  export type CoreCsvOperationResultKind = "import" | "preview";
22
42
  export type CoreCsvOperationResultStatus = "completed" | "failed" | "processing" | "queued";
43
+ export type CoreEmailDeliveryFailureCode = "inactive_recipient" | "invalid_provider_response" | "missing_email" | "notifications_disabled" | "postmark_not_configured" | "provider_rejected" | "task_failed" | "transport_failed" | "unsubscribed";
44
+ export type CoreEmailDeliveryStatus = "accepted" | "canceled" | "failed" | "queued" | "rejected" | "retrying" | "sending" | "skipped";
45
+ export type CoreEmailNotificationStatus = "canceled" | "completed" | "failed" | "processing" | "queued";
46
+ export type CoreEmailNotificationTrigger = "link_replacement" | "publish" | "resend";
23
47
  export type CoreExportJobFormat = "csv" | "pdf" | "zip";
24
48
  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";
25
49
  export type CoreFlowEventOperationAction = "abandon" | "replay";
26
50
  export type CoreFlowEventStatus = "canceled" | "dead" | "pending" | "processing" | "succeeded";
51
+ export type CoreOperationPublicIdFormat = "action" | "legacy";
27
52
  export type CoreOperationResourceRole = "result" | "source" | "target";
28
53
  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
54
  export type CoreOperationSourceType = "audit-action" | "export-job" | "sync" | "webhook-delivery";
31
55
  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";
56
+ 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" | "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
57
  export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
34
58
  export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
35
59
  export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
36
60
  export type HealthAccountingIntegrityConfidence = "probable" | "proven" | "unknown";
37
61
  export type HealthAccountingIntegrityDeliveryChannel = "sentry" | "slack";
38
62
  export type HealthAccountingIntegrityDeliveryStatus = "dead_letter" | "delivered" | "failed" | "pending" | "processing" | "suppressed";
63
+ export type HealthAccountingIntegrityDirtyRecordType = "reservation" | "transaction";
39
64
  export type HealthAccountingIntegrityRepairPlanStatus = "active" | "canceled" | "completed" | "draft" | "failed" | "paused";
40
65
  export type HealthAccountingIntegrityRepairScopeType = "case" | "tenant";
41
66
  export type HealthAccountingIntegrityRepairStageStatus = "applying" | "approved" | "canceled" | "dry_run_passed" | "failed" | "paused" | "planned" | "verified" | "verifying";
@@ -48,7 +73,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
48
73
  export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
49
74
  export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
50
75
  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";
76
+ export type HealthTenantIssueCode = "brokenConnections" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "journalConfigurationInvalid" | "journalLocked" | "journalUnbalanced" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "missingAccountAssignments" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unpaidReservations";
52
77
  export type HealthTenantIssueSeverity = "error" | "warning";
53
78
  export type HealthTenantIssueStatus = "open" | "resolved";
54
79
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
@@ -64,6 +89,7 @@ export type PublicFlowType = "pull" | "push";
64
89
  export type PublicPlaidConnectMode = "create" | "replace" | "update";
65
90
  export type PublicPlaidConnectStatus = "awaitingConfiguration" | "completed" | "configuring" | "credentialsStored" | "discoveringAccounts" | "exchangeOutcomeUnknown" | "exchanging" | "expired" | "failed" | "pendingLink";
66
91
  export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
92
+ export type PublicRecurringFeeListingSubscriptionMatchBy = "bookedDate" | "stayDate";
67
93
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
68
94
  export type WebhookApiVersion = "2026-07-01";
69
95
  export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
@@ -142,6 +168,39 @@ export interface AccountingAccountConnection {
142
168
  uniqueRef: string | null;
143
169
  updatedAt: Generated<Timestamp>;
144
170
  }
171
+ export interface AccountingAccountPaymentFileSetting {
172
+ accountId: string;
173
+ accountKind: AccountingBankAccountKind | null;
174
+ accountNumber: string | null;
175
+ bankName: string | null;
176
+ checkEnabled: Generated<boolean>;
177
+ checkFormat: AccountingCheckFormat | null;
178
+ checkNextNumber: number | null;
179
+ checkOffsetX: Generated<number>;
180
+ checkOffsetY: Generated<number>;
181
+ checkPrintMode: AccountingCheckPrintMode | null;
182
+ companyAddress: Json | null;
183
+ companyName: string | null;
184
+ createdAt: Generated<Timestamp>;
185
+ nachaAcceptCanadian: Generated<boolean>;
186
+ nachaBankProfile: AccountingNachaBankProfile | null;
187
+ nachaCompanyId: string | null;
188
+ nachaCompanyName: string | null;
189
+ nachaDiscretionaryData: string | null;
190
+ nachaEnabled: Generated<boolean>;
191
+ nachaEntryDescription: string | null;
192
+ nachaImmediateDestination: string | null;
193
+ nachaImmediateDestinationName: string | null;
194
+ nachaImmediateOrigin: string | null;
195
+ nachaImmediateOriginName: string | null;
196
+ nachaOffsetEntry: Generated<boolean>;
197
+ nachaTestFileAt: Timestamp | null;
198
+ nachaTestFileValid: boolean | null;
199
+ routingNumber: string | null;
200
+ tenantId: string;
201
+ updatedAt: Generated<Timestamp>;
202
+ updatedByUserId: string | null;
203
+ }
145
204
  export interface AccountingAccountReservationLineType {
146
205
  accountId: string | null;
147
206
  bookingChannel: string | null;
@@ -277,6 +336,8 @@ export interface AccountingBankRuleMode {
277
336
  }
278
337
  export interface AccountingContact {
279
338
  addressData: Json | null;
339
+ addressEditedAt: Timestamp | null;
340
+ bankDetailsRequestedAt: Timestamp | null;
280
341
  /**
281
342
  * When NULL, the type is "individual"
282
343
  */
@@ -284,6 +345,7 @@ export interface AccountingContact {
284
345
  connectionId: string | null;
285
346
  createdAt: Generated<Timestamp>;
286
347
  defaultAccountId: string | null;
348
+ defaultPaymentMethod: AccountingContactPaymentMethod | null;
287
349
  email: string | null;
288
350
  firstName: string | null;
289
351
  id: Generated<string>;
@@ -296,6 +358,8 @@ export interface AccountingContact {
296
358
  */
297
359
  shortRef: string | null;
298
360
  sourceId: string | null;
361
+ statementEmailEnabled: boolean | null;
362
+ statementEmailUnsubscribedAt: Timestamp | null;
299
363
  status: string | null;
300
364
  taxId: string | null;
301
365
  tenantId: string;
@@ -306,6 +370,33 @@ export interface AccountingContact {
306
370
  uniqueRef: string | null;
307
371
  updatedAt: Generated<Timestamp>;
308
372
  }
373
+ export interface AccountingContactBankDetailsRequest {
374
+ contactId: string;
375
+ createdAt: Generated<Timestamp>;
376
+ delivery: Generated<AccountingBankDetailsRequestDelivery>;
377
+ id: Generated<string>;
378
+ linkExpiresAt: Timestamp | null;
379
+ openedAt: Timestamp | null;
380
+ recipientEmail: string | null;
381
+ requestedAt: Timestamp;
382
+ requestedByUserId: string | null;
383
+ sentAt: Timestamp | null;
384
+ tenantId: string;
385
+ updatedAt: Generated<Timestamp>;
386
+ }
387
+ export interface AccountingContactBankAccount {
388
+ accountKind: AccountingBankAccountKind;
389
+ accountNumber: string;
390
+ contactId: string;
391
+ createdAt: Generated<Timestamp>;
392
+ holderName: string;
393
+ holderType: AccountingBankAccountHolderType;
394
+ routingNumber: string;
395
+ tenantId: string;
396
+ updatedAt: Generated<Timestamp>;
397
+ updatedByApiTokenId: string | null;
398
+ updatedByUserId: string | null;
399
+ }
309
400
  export interface AccountingContactCompanyType {
310
401
  name: string;
311
402
  }
@@ -331,6 +422,7 @@ export interface AccountingJournalEntry {
331
422
  listingOwnershipPeriodId: string | null;
332
423
  parentListingId: string | null;
333
424
  party: string | null;
425
+ paymentId: string | null;
334
426
  recurringFeeId: string | null;
335
427
  recurringFeeListingSubscriptionId: string | null;
336
428
  reservationId: string | null;
@@ -383,6 +475,155 @@ export interface AccountingPaidStatus {
383
475
  export interface AccountingParty {
384
476
  name: string;
385
477
  }
478
+ export interface AccountingPayment {
479
+ accountId: string | null;
480
+ amount: number;
481
+ bankRecordId: string | null;
482
+ closureConfirmedAt: Timestamp | null;
483
+ closureRequestedAt: Timestamp | null;
484
+ connectionId: string | null;
485
+ contactId: string | null;
486
+ createdAt: Generated<Timestamp>;
487
+ currency: string;
488
+ destinationRef: string | null;
489
+ fundingAccountConnectionId: string | null;
490
+ fundingAccountRef: string | null;
491
+ fundingCurrency: string | null;
492
+ fundingDebited: number | null;
493
+ fundingEntityRef: string | null;
494
+ fundingRefunded: number | null;
495
+ id: Generated<string>;
496
+ idempotencyKey: string;
497
+ initiatedAt: Timestamp | null;
498
+ isHistoricalCopy: Generated<boolean>;
499
+ issue: AccountingPaymentIssue | null;
500
+ method: AccountingPaymentMethod;
501
+ observedAt: Timestamp | null;
502
+ operationId: string | null;
503
+ origin: Generated<AccountingPaymentOrigin>;
504
+ postingDate: Timestamp | null;
505
+ provider: AccountingPaymentProvider | null;
506
+ providerBillRef: string | null;
507
+ providerMethod: string | null;
508
+ providerPaymentRef: string | null;
509
+ providerReference: string | null;
510
+ providerStatus: string | null;
511
+ providerUpdatedAt: Timestamp | null;
512
+ recipientRef: string | null;
513
+ reference: string | null;
514
+ replacesPaymentId: string | null;
515
+ requestedDate: Timestamp | null;
516
+ requestFingerprint: string;
517
+ scheduledAt: Timestamp | null;
518
+ settledAt: Timestamp | null;
519
+ status: Generated<AccountingPaymentStatus>;
520
+ tenantId: string;
521
+ terminalAt: Timestamp | null;
522
+ transactionId: string;
523
+ updatedAt: Generated<Timestamp>;
524
+ }
525
+ export interface AccountingPaymentAllocation {
526
+ amount: number;
527
+ createdAt: Generated<Timestamp>;
528
+ id: Generated<string>;
529
+ paymentId: string;
530
+ tenantId: string;
531
+ transactionLineId: string;
532
+ }
533
+ export interface AccountingPaymentBatch {
534
+ accountId: string;
535
+ createdAt: Generated<Timestamp>;
536
+ createdByUserId: string | null;
537
+ currency: string;
538
+ effectiveDate: Timestamp;
539
+ fileContent: string | null;
540
+ fileUpdatedAt: Timestamp | null;
541
+ id: Generated<string>;
542
+ idempotencyKey: string;
543
+ settings: Json;
544
+ tenantId: string;
545
+ type: AccountingPaymentBatchType;
546
+ updatedAt: Generated<Timestamp>;
547
+ voidedAt: Timestamp | null;
548
+ }
549
+ export interface AccountingPaymentBatchItem {
550
+ accountId: string;
551
+ accountKind: AccountingBankAccountKind | null;
552
+ accountNumber: string | null;
553
+ amount: number;
554
+ batchId: string;
555
+ checkNumber: number | null;
556
+ contactId: string;
557
+ createdAt: Generated<Timestamp>;
558
+ id: Generated<string>;
559
+ memo: string | null;
560
+ payeeAddress: Json | null;
561
+ payeeName: string;
562
+ routingNumber: string | null;
563
+ secCode: AccountingNachaSecCode | null;
564
+ stub: Json;
565
+ tenantId: string;
566
+ traceNumber: string | null;
567
+ voidedAt: Timestamp | null;
568
+ }
569
+ export interface AccountingPaymentBatchPayment {
570
+ createdAt: Generated<Timestamp>;
571
+ itemId: string;
572
+ paymentId: string;
573
+ tenantId: string;
574
+ }
575
+ export interface AccountingPaymentCommand {
576
+ createdAt: Generated<Timestamp>;
577
+ fingerprint: string;
578
+ id: string;
579
+ idempotencyKey: string;
580
+ kind: AccountingPaymentCommandKind;
581
+ outcome: AccountingPaymentCommandOutcome | null;
582
+ outcomeAt: Timestamp | null;
583
+ paymentId: string;
584
+ providerFailureCode: string | null;
585
+ tenantId: string;
586
+ }
587
+ export interface AccountingPaymentObservation {
588
+ connectionId: string;
589
+ createdAt: Generated<Timestamp>;
590
+ eventKey: string;
591
+ externalId: string;
592
+ fingerprint: string;
593
+ fundingCurrency: string | null;
594
+ fundingDebited: number | null;
595
+ fundingRefunded: number | null;
596
+ id: Generated<string>;
597
+ issue: AccountingPaymentIssue | null;
598
+ observedAt: Timestamp;
599
+ origin: Generated<AccountingPaymentObservationOrigin>;
600
+ paidAmount: number | null;
601
+ paymentId: string | null;
602
+ providerBillRef: string | null;
603
+ providerPaymentRef: string | null;
604
+ providerStatus: string | null;
605
+ providerUpdatedAt: Timestamp | null;
606
+ resourceType: AccountingPaymentResourceType;
607
+ returnedAt: Timestamp | null;
608
+ settledAt: Timestamp | null;
609
+ snapshot: Json | null;
610
+ sourceId: string | null;
611
+ status: AccountingPaymentStatus | null;
612
+ tenantId: string;
613
+ terminalAt: Timestamp | null;
614
+ }
615
+ export interface AccountingPaymentReversal {
616
+ createdAt: Generated<Timestamp>;
617
+ effectiveAt: Timestamp;
618
+ id: Generated<string>;
619
+ idempotencyKey: string;
620
+ kind: AccountingPaymentReversalKind;
621
+ paymentId: string;
622
+ postingDate: Timestamp | null;
623
+ reason: string | null;
624
+ requestFingerprint: string;
625
+ tenantId: string;
626
+ }
386
627
  export interface AccountingRate {
387
628
  accountId: string | null;
388
629
  basisPoints: number;
@@ -415,6 +656,7 @@ export interface AccountingReservationJournalInvalidation {
415
656
  coveredByEffectId: string | null;
416
657
  createdAt: Generated<Timestamp>;
417
658
  effectId: string | null;
659
+ failureCode: AccountingReservationJournalInvalidationFailure | null;
418
660
  id: Generated<string>;
419
661
  reservationId: string;
420
662
  revision: Int8;
@@ -676,8 +918,8 @@ export interface AuditPublicEvent {
676
918
  projectedAt: Generated<Timestamp>;
677
919
  projectionFingerprint: string;
678
920
  projectionVersion: Generated<number>;
679
- requestId: string | null;
680
921
  recovery: Generated<Json>;
922
+ requestId: string | null;
681
923
  revision: Generated<number>;
682
924
  rootEntityId: string;
683
925
  rootEntityType: string;
@@ -735,6 +977,7 @@ export interface CoreActiveStatus {
735
977
  name: string;
736
978
  }
737
979
  export interface CoreAsyncOperationResult {
980
+ checkpoint: Json | null;
738
981
  createdAt: Generated<Timestamp>;
739
982
  errorMessage: string | null;
740
983
  operationId: string;
@@ -806,6 +1049,40 @@ export interface CoreCsvOperationResult {
806
1049
  tenantId: string;
807
1050
  updatedAt: Generated<Timestamp>;
808
1051
  }
1052
+ export interface CoreEmailDelivery {
1053
+ attemptCount: Generated<number>;
1054
+ contactId: string | null;
1055
+ createdAt: Generated<Timestamp>;
1056
+ failureCode: CoreEmailDeliveryFailureCode | null;
1057
+ finishedAt: Timestamp | null;
1058
+ httpStatus: number | null;
1059
+ id: Generated<string>;
1060
+ lastAttemptAt: Timestamp | null;
1061
+ notificationId: string;
1062
+ postmarkErrorCode: number | null;
1063
+ postmarkMessageId: string | null;
1064
+ recipientEmail: string | null;
1065
+ status: Generated<CoreEmailDeliveryStatus>;
1066
+ submittedAt: Timestamp | null;
1067
+ tenantId: string;
1068
+ triggerRunId: string | null;
1069
+ updatedAt: Generated<Timestamp>;
1070
+ userId: string | null;
1071
+ }
1072
+ export interface CoreEmailNotification {
1073
+ createdAt: Generated<Timestamp>;
1074
+ finishedAt: Timestamp | null;
1075
+ id: string;
1076
+ ownerStatementId: string;
1077
+ recipientsResolvedAt: Timestamp | null;
1078
+ requestedByUserId: string | null;
1079
+ startedAt: Timestamp | null;
1080
+ status: Generated<CoreEmailNotificationStatus>;
1081
+ tenantId: string;
1082
+ trigger: CoreEmailNotificationTrigger | null;
1083
+ triggerRunId: string | null;
1084
+ updatedAt: Generated<Timestamp>;
1085
+ }
809
1086
  export interface CoreExportJob {
810
1087
  createdAt: Generated<Timestamp>;
811
1088
  errorMessage: string | null;
@@ -1167,6 +1444,20 @@ export interface HealthAccountingIntegrityCase {
1167
1444
  verification: Json;
1168
1445
  version: Generated<Int8>;
1169
1446
  }
1447
+ export interface HealthAccountingIntegrityComparisonFinding {
1448
+ caseKey: string;
1449
+ code: string;
1450
+ contentHash: string;
1451
+ createdAt: Generated<Timestamp>;
1452
+ dataRegion: string;
1453
+ firstSeenAt: Timestamp;
1454
+ id: Generated<string>;
1455
+ recordId: string;
1456
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1457
+ severity: HealthAccountingIntegritySeverity;
1458
+ tenantId: string;
1459
+ updatedAt: Generated<Timestamp>;
1460
+ }
1170
1461
  export interface HealthAccountingIntegrityDelivery {
1171
1462
  attempts: Generated<number>;
1172
1463
  caseId: string | null;
@@ -1186,6 +1477,19 @@ export interface HealthAccountingIntegrityDelivery {
1186
1477
  status: Generated<HealthAccountingIntegrityDeliveryStatus>;
1187
1478
  updatedAt: Generated<Timestamp>;
1188
1479
  }
1480
+ export interface HealthAccountingIntegrityDirtyRecord {
1481
+ claimedUntil: Timestamp | null;
1482
+ claimToken: string | null;
1483
+ computedAt: Timestamp | null;
1484
+ computedVersion: Generated<Int8>;
1485
+ createdAt: Generated<Timestamp>;
1486
+ dirtyAt: Generated<Timestamp>;
1487
+ dirtyVersion: Generated<Int8>;
1488
+ recordId: string;
1489
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1490
+ tenantId: string;
1491
+ updatedAt: Generated<Timestamp>;
1492
+ }
1189
1493
  export interface HealthAccountingIntegrityOperatorEvent {
1190
1494
  actorId: string;
1191
1495
  caseId: string | null;
@@ -1305,6 +1609,16 @@ export interface HealthAccountingIntegrityRun {
1305
1609
  unchangedCaseCount: Generated<Int8>;
1306
1610
  updatedAt: Generated<Timestamp>;
1307
1611
  }
1612
+ export interface HealthAccountingIntegritySweepCursor {
1613
+ createdAt: Generated<Timestamp>;
1614
+ cycleStartedAt: Generated<Timestamp>;
1615
+ definitionsHash: string | null;
1616
+ lastCycleCompletedAt: Timestamp | null;
1617
+ lastRecordId: string | null;
1618
+ lastTenantId: string | null;
1619
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1620
+ updatedAt: Generated<Timestamp>;
1621
+ }
1308
1622
  export interface HealthAccountingIntegrityTransition {
1309
1623
  caseId: string;
1310
1624
  caseVersion: Int8;
@@ -1512,7 +1826,9 @@ export interface PublicConnection {
1512
1826
  appId: string;
1513
1827
  backendVersion: number | null;
1514
1828
  createdAt: Generated<Timestamp>;
1829
+ credentialMetadata: Json | null;
1515
1830
  credentials: Generated<Json | null>;
1831
+ credentialVersion: Generated<Int8>;
1516
1832
  disabled: Generated<boolean | null>;
1517
1833
  fetchNext: Generated<Timestamp | null>;
1518
1834
  fetchStatus: Generated<string>;
@@ -1530,6 +1846,16 @@ export interface PublicConnection {
1530
1846
  version: number | null;
1531
1847
  webhookVersion: Generated<Int8>;
1532
1848
  }
1849
+ export interface PublicConnectionOauthState {
1850
+ appId: string;
1851
+ connectionId: string | null;
1852
+ expiresAt: Timestamp;
1853
+ params: JsonObject;
1854
+ redirectUri: string;
1855
+ stateHash: string;
1856
+ tenantId: string;
1857
+ userId: string;
1858
+ }
1533
1859
  export interface PublicConnectionRoute {
1534
1860
  connectionId: string;
1535
1861
  createdAt: Generated<Timestamp>;
@@ -2007,8 +2333,15 @@ export interface PublicPlaidConnectSession {
2007
2333
  environment: string;
2008
2334
  errorCode: string | null;
2009
2335
  errorRetryable: boolean | null;
2336
+ exitedAt: Timestamp | null;
2337
+ exitErrorCode: string | null;
2338
+ exitErrorType: string | null;
2339
+ exitRequestId: string | null;
2340
+ exitView: string | null;
2010
2341
  expiresAt: Timestamp;
2011
2342
  id: Generated<string>;
2343
+ institutionId: string | null;
2344
+ institutionName: string | null;
2012
2345
  itemId: string | null;
2013
2346
  leaseExpiresAt: Timestamp | null;
2014
2347
  linkSessionId: string | null;
@@ -2063,6 +2396,7 @@ export interface PublicRecurringFeeListingSubscription {
2063
2396
  endAt: Timestamp | null;
2064
2397
  id: Generated<string>;
2065
2398
  listingId: string;
2399
+ matchBy: Generated<PublicRecurringFeeListingSubscriptionMatchBy>;
2066
2400
  rate: number | null;
2067
2401
  rateType: Generated<string | null>;
2068
2402
  recurringFeeId: string;
@@ -2286,10 +2620,10 @@ export interface PublicTenant {
2286
2620
  billingPartnerId: string | null;
2287
2621
  billingPaymentMethodType: string | null;
2288
2622
  billingPlan: string | null;
2623
+ billingSubscriptionId: string | null;
2289
2624
  billingSubscriptionStatus: string | null;
2290
2625
  booksClosedAt: Timestamp | null;
2291
2626
  calculatedBillingPartnerId: Generated<string | null>;
2292
- calculatedIsBillable: Generated<boolean | null>;
2293
2627
  calculatedStatus: Generated<string | null>;
2294
2628
  /**
2295
2629
  * Billing subscription is getting cancelled at date
@@ -2316,7 +2650,7 @@ export interface PublicTenant {
2316
2650
  intercomId: string | null;
2317
2651
  isActive: Generated<boolean | null>;
2318
2652
  isGeneralLedger: Generated<boolean | null>;
2319
- isOnboarding: Generated<boolean | null>;
2653
+ isOnboarding: Generated<boolean>;
2320
2654
  isTest: Generated<boolean | null>;
2321
2655
  logo: string | null;
2322
2656
  longTermStayNights: number | null;
@@ -2464,17 +2798,6 @@ export interface PublicWebhook {
2464
2798
  types2: string[] | null;
2465
2799
  url: string;
2466
2800
  }
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
2801
  export interface TrackingIntercomConversation {
2479
2802
  answer: string;
2480
2803
  conversationId: Int8;
@@ -2612,6 +2935,7 @@ export interface DB {
2612
2935
  "accounting.accountCategory": AccountingAccountCategory;
2613
2936
  "accounting.accountClassification": AccountingAccountClassification;
2614
2937
  "accounting.accountConnection": AccountingAccountConnection;
2938
+ "accounting.accountPaymentFileSetting": AccountingAccountPaymentFileSetting;
2615
2939
  "accounting.accountReservationLineType": AccountingAccountReservationLineType;
2616
2940
  "accounting.accountReservationRevRec": AccountingAccountReservationRevRec;
2617
2941
  "accounting.accountType": AccountingAccountType;
@@ -2629,6 +2953,8 @@ export interface DB {
2629
2953
  "accounting.bankRuleMatchOperator": AccountingBankRuleMatchOperator;
2630
2954
  "accounting.bankRuleMode": AccountingBankRuleMode;
2631
2955
  "accounting.contact": AccountingContact;
2956
+ "accounting.contactBankAccount": AccountingContactBankAccount;
2957
+ "accounting.contactBankDetailsRequest": AccountingContactBankDetailsRequest;
2632
2958
  "accounting.contactCompanyType": AccountingContactCompanyType;
2633
2959
  "accounting.contactType": AccountingContactType;
2634
2960
  "accounting.journalEntry": AccountingJournalEntry;
@@ -2640,6 +2966,14 @@ export interface DB {
2640
2966
  "accounting.ownerStatementProjectionRevision": AccountingOwnerStatementProjectionRevision;
2641
2967
  "accounting.paidStatus": AccountingPaidStatus;
2642
2968
  "accounting.party": AccountingParty;
2969
+ "accounting.payment": AccountingPayment;
2970
+ "accounting.paymentAllocation": AccountingPaymentAllocation;
2971
+ "accounting.paymentBatch": AccountingPaymentBatch;
2972
+ "accounting.paymentBatchItem": AccountingPaymentBatchItem;
2973
+ "accounting.paymentBatchPayment": AccountingPaymentBatchPayment;
2974
+ "accounting.paymentCommand": AccountingPaymentCommand;
2975
+ "accounting.paymentObservation": AccountingPaymentObservation;
2976
+ "accounting.paymentReversal": AccountingPaymentReversal;
2643
2977
  "accounting.rate": AccountingRate;
2644
2978
  "accounting.rateType": AccountingRateType;
2645
2979
  "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
@@ -2671,6 +3005,8 @@ export interface DB {
2671
3005
  "core.changeSyncType": CoreChangeSyncType;
2672
3006
  "core.changeType": CoreChangeType;
2673
3007
  "core.csvOperationResult": CoreCsvOperationResult;
3008
+ "core.emailDelivery": CoreEmailDelivery;
3009
+ "core.emailNotification": CoreEmailNotification;
2674
3010
  "core.exportJob": CoreExportJob;
2675
3011
  "core.flow": CoreFlow;
2676
3012
  "core.flowEvent": CoreFlowEvent;
@@ -2702,13 +3038,16 @@ export interface DB {
2702
3038
  "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
2703
3039
  "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
2704
3040
  "health.accountingIntegrityCase": HealthAccountingIntegrityCase;
3041
+ "health.accountingIntegrityComparisonFinding": HealthAccountingIntegrityComparisonFinding;
2705
3042
  "health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
3043
+ "health.accountingIntegrityDirtyRecord": HealthAccountingIntegrityDirtyRecord;
2706
3044
  "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2707
3045
  "health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
2708
3046
  "health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
2709
3047
  "health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
2710
3048
  "health.accountingIntegrityRepairTransition": HealthAccountingIntegrityRepairTransition;
2711
3049
  "health.accountingIntegrityRun": HealthAccountingIntegrityRun;
3050
+ "health.accountingIntegritySweepCursor": HealthAccountingIntegritySweepCursor;
2712
3051
  "health.accountingIntegrityTransition": HealthAccountingIntegrityTransition;
2713
3052
  "health.reservationIssueSnapshot": HealthReservationIssueSnapshot;
2714
3053
  "health.tenantIssue": HealthTenantIssue;
@@ -2725,6 +3064,7 @@ export interface DB {
2725
3064
  "public.bookingChannel": PublicBookingChannel;
2726
3065
  "public.bookingChannelIconCandidate": PublicBookingChannelIconCandidate;
2727
3066
  "public.connection": PublicConnection;
3067
+ "public.connectionOauthState": PublicConnectionOauthState;
2728
3068
  "public.connectionRoute": PublicConnectionRoute;
2729
3069
  "public.controlPlaneOutbox": PublicControlPlaneOutbox;
2730
3070
  "public.controlPlaneProjectionEvent": PublicControlPlaneProjectionEvent;
@@ -2796,7 +3136,6 @@ export interface DB {
2796
3136
  "public.viewWebhookEvents": PublicViewWebhookEvents;
2797
3137
  "public.viewWebhookEventsGroupedByDate": PublicViewWebhookEventsGroupedByDate;
2798
3138
  "public.webhook": PublicWebhook;
2799
- "tracking.event": TrackingEvent;
2800
3139
  "tracking.intercomConversation": TrackingIntercomConversation;
2801
3140
  "tracking.intercomConversationUser": TrackingIntercomConversationUser;
2802
3141
  "tracking.intercomReport": TrackingIntercomReport;