@vrplatform/kysely 1.3.45-391 → 1.3.45-39120281816

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 (115) 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 +38 -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 +2 -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 +255 -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/module/camel-case/index.d.ts +4 -4
  80. package/build/module/camel-case/index.js +3 -2
  81. package/build/module/camel-case/index.js.map +1 -1
  82. package/build/module/connect-handoff.d.ts +12 -0
  83. package/build/module/connect-handoff.js +70 -0
  84. package/build/module/connect-handoff.js.map +1 -0
  85. package/build/module/control-plane/index.d.ts +19 -1
  86. package/build/module/control-plane/index.js +9 -0
  87. package/build/module/control-plane/index.js.map +1 -1
  88. package/build/module/index.d.ts +38 -2
  89. package/build/module/index.js +322 -58
  90. package/build/module/index.js.map +1 -1
  91. package/build/module/isomorphic.d.ts +1 -1
  92. package/build/module/isomorphic.js +1 -1
  93. package/build/module/isomorphic.js.map +1 -1
  94. package/build/module/local/generate.js +4 -3
  95. package/build/module/local/generate.js.map +1 -1
  96. package/build/module/local/index.js +3 -0
  97. package/build/module/local/index.js.map +1 -1
  98. package/build/module/migration-source.d.ts +4 -0
  99. package/build/module/migration-source.js +42 -0
  100. package/build/module/migration-source.js.map +1 -0
  101. package/build/module/pganalyze-comment-plugin/comment-transformer.js +3 -1
  102. package/build/module/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
  103. package/build/module/query/listing/status.js +6 -2
  104. package/build/module/query/listing/status.js.map +1 -1
  105. package/build/module/query/tenant/status.d.ts +1 -6
  106. package/build/module/query/tenant/status.js +4 -11
  107. package/build/module/query/tenant/status.js.map +1 -1
  108. package/build/module/regional.d.ts +1 -0
  109. package/build/module/regional.js +1 -0
  110. package/build/module/regional.js.map +1 -1
  111. package/build/module/test/index.js +4 -3
  112. package/build/module/test/index.js.map +1 -1
  113. package/build/module/v1.generated.d.ts +255 -19
  114. package/build/module/v1.generated.js.map +1 -1
  115. package/package.json +8 -6
@@ -3,39 +3,58 @@
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 AccountingContactPaymentMethod = "check" | "nachaAch" | "outside" | "rampAch";
6
9
  export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "historicalLedger" | "inactiveAccount" | "listingInactive" | "listingOwnershipPeriodNotFound" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unbalancedGroupInactiveLeg" | "unknownInactiveReason";
7
10
  export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
11
+ export type AccountingPaymentCommandKind = "cancel" | "refresh" | "submit";
12
+ export type AccountingPaymentCommandOutcome = "accepted" | "conflictingEvidence" | "rejected" | "unknown";
13
+ export type AccountingPaymentIssue = "accountingConfiguration" | "allocationOutOfRange" | "amountMismatch" | "conflictingEvidence" | "currencyMismatch" | "overpayment" | "recipientMismatch" | "unknownOutcome" | "unknownStatus" | "unlinkedMovement" | "unmappedFundingAccount";
14
+ export type AccountingPaymentMethod = "ach" | "cash" | "check" | "other" | "wire";
15
+ export type AccountingPaymentObservationOrigin = "provider" | "review";
16
+ export type AccountingPaymentOrigin = "provider" | "vrp";
17
+ export type AccountingPaymentProvider = "ramp";
18
+ export type AccountingPaymentResourceType = "bill" | "payment" | "transfer";
19
+ export type AccountingPaymentReversalKind = "bankUnmatch" | "offlineReversal" | "providerReturn";
20
+ export type AccountingPaymentStatus = "canceled" | "failed" | "pending" | "processing" | "scheduled" | "submitting" | "succeeded";
21
+ export type AccountingReservationJournalInvalidationFailure = "journal_configuration_invalid" | "journal_locked";
8
22
  export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
9
23
  export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
10
24
  export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
11
25
  export type AuditActionActorType = "api_key" | "automation" | "sync" | "system" | "user";
26
+ export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
12
27
  export type AuditEffectAttemptStatus = "completed" | "failed" | "running" | "skipped_locked";
13
28
  export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "failed" | "pending" | "running";
14
29
  export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
15
30
  export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
16
31
  export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
17
- export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
18
32
  export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
19
33
  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
34
  export type CoreAsyncOperationResultStatus = "completed" | "failed" | "queued";
21
35
  export type CoreCsvOperationResultKind = "import" | "preview";
22
36
  export type CoreCsvOperationResultStatus = "completed" | "failed" | "processing" | "queued";
37
+ export type CoreEmailDeliveryFailureCode = "inactive_recipient" | "invalid_provider_response" | "missing_email" | "notifications_disabled" | "postmark_not_configured" | "provider_rejected" | "task_failed" | "transport_failed" | "unsubscribed";
38
+ export type CoreEmailDeliveryStatus = "accepted" | "canceled" | "failed" | "queued" | "rejected" | "retrying" | "sending" | "skipped";
39
+ export type CoreEmailNotificationStatus = "canceled" | "completed" | "failed" | "processing" | "queued";
40
+ export type CoreEmailNotificationTrigger = "link_replacement" | "publish" | "resend";
23
41
  export type CoreExportJobFormat = "csv" | "pdf" | "zip";
24
42
  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
43
  export type CoreFlowEventOperationAction = "abandon" | "replay";
26
44
  export type CoreFlowEventStatus = "canceled" | "dead" | "pending" | "processing" | "succeeded";
45
+ export type CoreOperationPublicIdFormat = "action" | "legacy";
27
46
  export type CoreOperationResourceRole = "result" | "source" | "target";
28
47
  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
48
  export type CoreOperationSourceType = "audit-action" | "export-job" | "sync" | "webhook-delivery";
31
49
  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";
50
+ 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
51
  export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
34
52
  export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
35
53
  export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
36
54
  export type HealthAccountingIntegrityConfidence = "probable" | "proven" | "unknown";
37
55
  export type HealthAccountingIntegrityDeliveryChannel = "sentry" | "slack";
38
56
  export type HealthAccountingIntegrityDeliveryStatus = "dead_letter" | "delivered" | "failed" | "pending" | "processing" | "suppressed";
57
+ export type HealthAccountingIntegrityDirtyRecordType = "reservation" | "transaction";
39
58
  export type HealthAccountingIntegrityRepairPlanStatus = "active" | "canceled" | "completed" | "draft" | "failed" | "paused";
40
59
  export type HealthAccountingIntegrityRepairScopeType = "case" | "tenant";
41
60
  export type HealthAccountingIntegrityRepairStageStatus = "applying" | "approved" | "canceled" | "dry_run_passed" | "failed" | "paused" | "planned" | "verified" | "verifying";
@@ -48,7 +67,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
48
67
  export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
49
68
  export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
50
69
  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";
70
+ 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
71
  export type HealthTenantIssueSeverity = "error" | "warning";
53
72
  export type HealthTenantIssueStatus = "open" | "resolved";
54
73
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
@@ -64,6 +83,7 @@ export type PublicFlowType = "pull" | "push";
64
83
  export type PublicPlaidConnectMode = "create" | "replace" | "update";
65
84
  export type PublicPlaidConnectStatus = "awaitingConfiguration" | "completed" | "configuring" | "credentialsStored" | "discoveringAccounts" | "exchangeOutcomeUnknown" | "exchanging" | "expired" | "failed" | "pendingLink";
66
85
  export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
86
+ export type PublicRecurringFeeListingSubscriptionMatchBy = "bookedDate" | "stayDate";
67
87
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
68
88
  export type WebhookApiVersion = "2026-07-01";
69
89
  export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
@@ -277,6 +297,7 @@ export interface AccountingBankRuleMode {
277
297
  }
278
298
  export interface AccountingContact {
279
299
  addressData: Json | null;
300
+ addressEditedAt: Timestamp | null;
280
301
  /**
281
302
  * When NULL, the type is "individual"
282
303
  */
@@ -284,6 +305,7 @@ export interface AccountingContact {
284
305
  connectionId: string | null;
285
306
  createdAt: Generated<Timestamp>;
286
307
  defaultAccountId: string | null;
308
+ defaultPaymentMethod: AccountingContactPaymentMethod | null;
287
309
  email: string | null;
288
310
  firstName: string | null;
289
311
  id: Generated<string>;
@@ -296,6 +318,8 @@ export interface AccountingContact {
296
318
  */
297
319
  shortRef: string | null;
298
320
  sourceId: string | null;
321
+ statementEmailEnabled: boolean | null;
322
+ statementEmailUnsubscribedAt: Timestamp | null;
299
323
  status: string | null;
300
324
  taxId: string | null;
301
325
  tenantId: string;
@@ -306,6 +330,18 @@ export interface AccountingContact {
306
330
  uniqueRef: string | null;
307
331
  updatedAt: Generated<Timestamp>;
308
332
  }
333
+ export interface AccountingContactBankAccount {
334
+ accountKind: AccountingBankAccountKind;
335
+ accountNumber: string;
336
+ contactId: string;
337
+ createdAt: Generated<Timestamp>;
338
+ holderName: string;
339
+ holderType: AccountingBankAccountHolderType;
340
+ routingNumber: string;
341
+ tenantId: string;
342
+ updatedAt: Generated<Timestamp>;
343
+ updatedByUserId: string | null;
344
+ }
309
345
  export interface AccountingContactCompanyType {
310
346
  name: string;
311
347
  }
@@ -331,6 +367,7 @@ export interface AccountingJournalEntry {
331
367
  listingOwnershipPeriodId: string | null;
332
368
  parentListingId: string | null;
333
369
  party: string | null;
370
+ paymentId: string | null;
334
371
  recurringFeeId: string | null;
335
372
  recurringFeeListingSubscriptionId: string | null;
336
373
  reservationId: string | null;
@@ -383,6 +420,112 @@ export interface AccountingPaidStatus {
383
420
  export interface AccountingParty {
384
421
  name: string;
385
422
  }
423
+ export interface AccountingPayment {
424
+ accountId: string | null;
425
+ amount: number;
426
+ bankRecordId: string | null;
427
+ closureConfirmedAt: Timestamp | null;
428
+ closureRequestedAt: Timestamp | null;
429
+ connectionId: string | null;
430
+ contactId: string | null;
431
+ createdAt: Generated<Timestamp>;
432
+ currency: string;
433
+ destinationRef: string | null;
434
+ fundingAccountConnectionId: string | null;
435
+ fundingAccountRef: string | null;
436
+ fundingCurrency: string | null;
437
+ fundingDebited: number | null;
438
+ fundingEntityRef: string | null;
439
+ fundingRefunded: number | null;
440
+ id: Generated<string>;
441
+ idempotencyKey: string;
442
+ initiatedAt: Timestamp | null;
443
+ isHistoricalCopy: Generated<boolean>;
444
+ issue: AccountingPaymentIssue | null;
445
+ method: AccountingPaymentMethod;
446
+ observedAt: Timestamp | null;
447
+ operationId: string | null;
448
+ origin: Generated<AccountingPaymentOrigin>;
449
+ postingDate: Timestamp | null;
450
+ provider: AccountingPaymentProvider | null;
451
+ providerBillRef: string | null;
452
+ providerMethod: string | null;
453
+ providerPaymentRef: string | null;
454
+ providerStatus: string | null;
455
+ providerUpdatedAt: Timestamp | null;
456
+ recipientRef: string | null;
457
+ reference: string | null;
458
+ replacesPaymentId: string | null;
459
+ requestedDate: Timestamp | null;
460
+ requestFingerprint: string;
461
+ scheduledAt: Timestamp | null;
462
+ settledAt: Timestamp | null;
463
+ status: Generated<AccountingPaymentStatus>;
464
+ tenantId: string;
465
+ terminalAt: Timestamp | null;
466
+ transactionId: string;
467
+ updatedAt: Generated<Timestamp>;
468
+ }
469
+ export interface AccountingPaymentAllocation {
470
+ amount: number;
471
+ createdAt: Generated<Timestamp>;
472
+ id: Generated<string>;
473
+ paymentId: string;
474
+ tenantId: string;
475
+ transactionLineId: string;
476
+ }
477
+ export interface AccountingPaymentCommand {
478
+ createdAt: Generated<Timestamp>;
479
+ fingerprint: string;
480
+ id: string;
481
+ idempotencyKey: string;
482
+ kind: AccountingPaymentCommandKind;
483
+ outcome: AccountingPaymentCommandOutcome | null;
484
+ outcomeAt: Timestamp | null;
485
+ paymentId: string;
486
+ providerFailureCode: string | null;
487
+ tenantId: string;
488
+ }
489
+ export interface AccountingPaymentObservation {
490
+ connectionId: string;
491
+ createdAt: Generated<Timestamp>;
492
+ eventKey: string;
493
+ externalId: string;
494
+ fingerprint: string;
495
+ fundingCurrency: string | null;
496
+ fundingDebited: number | null;
497
+ fundingRefunded: number | null;
498
+ id: Generated<string>;
499
+ issue: AccountingPaymentIssue | null;
500
+ observedAt: Timestamp;
501
+ origin: Generated<AccountingPaymentObservationOrigin>;
502
+ paidAmount: number | null;
503
+ paymentId: string | null;
504
+ providerBillRef: string | null;
505
+ providerPaymentRef: string | null;
506
+ providerStatus: string | null;
507
+ providerUpdatedAt: Timestamp | null;
508
+ resourceType: AccountingPaymentResourceType;
509
+ returnedAt: Timestamp | null;
510
+ settledAt: Timestamp | null;
511
+ snapshot: Json | null;
512
+ sourceId: string | null;
513
+ status: AccountingPaymentStatus | null;
514
+ tenantId: string;
515
+ terminalAt: Timestamp | null;
516
+ }
517
+ export interface AccountingPaymentReversal {
518
+ createdAt: Generated<Timestamp>;
519
+ effectiveAt: Timestamp;
520
+ id: Generated<string>;
521
+ idempotencyKey: string;
522
+ kind: AccountingPaymentReversalKind;
523
+ paymentId: string;
524
+ postingDate: Timestamp | null;
525
+ reason: string | null;
526
+ requestFingerprint: string;
527
+ tenantId: string;
528
+ }
386
529
  export interface AccountingRate {
387
530
  accountId: string | null;
388
531
  basisPoints: number;
@@ -415,6 +558,7 @@ export interface AccountingReservationJournalInvalidation {
415
558
  coveredByEffectId: string | null;
416
559
  createdAt: Generated<Timestamp>;
417
560
  effectId: string | null;
561
+ failureCode: AccountingReservationJournalInvalidationFailure | null;
418
562
  id: Generated<string>;
419
563
  reservationId: string;
420
564
  revision: Int8;
@@ -676,8 +820,8 @@ export interface AuditPublicEvent {
676
820
  projectedAt: Generated<Timestamp>;
677
821
  projectionFingerprint: string;
678
822
  projectionVersion: Generated<number>;
679
- requestId: string | null;
680
823
  recovery: Generated<Json>;
824
+ requestId: string | null;
681
825
  revision: Generated<number>;
682
826
  rootEntityId: string;
683
827
  rootEntityType: string;
@@ -735,6 +879,7 @@ export interface CoreActiveStatus {
735
879
  name: string;
736
880
  }
737
881
  export interface CoreAsyncOperationResult {
882
+ checkpoint: Json | null;
738
883
  createdAt: Generated<Timestamp>;
739
884
  errorMessage: string | null;
740
885
  operationId: string;
@@ -806,6 +951,40 @@ export interface CoreCsvOperationResult {
806
951
  tenantId: string;
807
952
  updatedAt: Generated<Timestamp>;
808
953
  }
954
+ export interface CoreEmailDelivery {
955
+ attemptCount: Generated<number>;
956
+ contactId: string | null;
957
+ createdAt: Generated<Timestamp>;
958
+ failureCode: CoreEmailDeliveryFailureCode | null;
959
+ finishedAt: Timestamp | null;
960
+ httpStatus: number | null;
961
+ id: Generated<string>;
962
+ lastAttemptAt: Timestamp | null;
963
+ notificationId: string;
964
+ postmarkErrorCode: number | null;
965
+ postmarkMessageId: string | null;
966
+ recipientEmail: string | null;
967
+ status: Generated<CoreEmailDeliveryStatus>;
968
+ submittedAt: Timestamp | null;
969
+ tenantId: string;
970
+ triggerRunId: string | null;
971
+ updatedAt: Generated<Timestamp>;
972
+ userId: string | null;
973
+ }
974
+ export interface CoreEmailNotification {
975
+ createdAt: Generated<Timestamp>;
976
+ finishedAt: Timestamp | null;
977
+ id: string;
978
+ ownerStatementId: string;
979
+ recipientsResolvedAt: Timestamp | null;
980
+ requestedByUserId: string | null;
981
+ startedAt: Timestamp | null;
982
+ status: Generated<CoreEmailNotificationStatus>;
983
+ tenantId: string;
984
+ trigger: CoreEmailNotificationTrigger | null;
985
+ triggerRunId: string | null;
986
+ updatedAt: Generated<Timestamp>;
987
+ }
809
988
  export interface CoreExportJob {
810
989
  createdAt: Generated<Timestamp>;
811
990
  errorMessage: string | null;
@@ -1167,6 +1346,20 @@ export interface HealthAccountingIntegrityCase {
1167
1346
  verification: Json;
1168
1347
  version: Generated<Int8>;
1169
1348
  }
1349
+ export interface HealthAccountingIntegrityComparisonFinding {
1350
+ caseKey: string;
1351
+ code: string;
1352
+ contentHash: string;
1353
+ createdAt: Generated<Timestamp>;
1354
+ dataRegion: string;
1355
+ firstSeenAt: Timestamp;
1356
+ id: Generated<string>;
1357
+ recordId: string;
1358
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1359
+ severity: HealthAccountingIntegritySeverity;
1360
+ tenantId: string;
1361
+ updatedAt: Generated<Timestamp>;
1362
+ }
1170
1363
  export interface HealthAccountingIntegrityDelivery {
1171
1364
  attempts: Generated<number>;
1172
1365
  caseId: string | null;
@@ -1186,6 +1379,19 @@ export interface HealthAccountingIntegrityDelivery {
1186
1379
  status: Generated<HealthAccountingIntegrityDeliveryStatus>;
1187
1380
  updatedAt: Generated<Timestamp>;
1188
1381
  }
1382
+ export interface HealthAccountingIntegrityDirtyRecord {
1383
+ claimedUntil: Timestamp | null;
1384
+ claimToken: string | null;
1385
+ computedAt: Timestamp | null;
1386
+ computedVersion: Generated<Int8>;
1387
+ createdAt: Generated<Timestamp>;
1388
+ dirtyAt: Generated<Timestamp>;
1389
+ dirtyVersion: Generated<Int8>;
1390
+ recordId: string;
1391
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1392
+ tenantId: string;
1393
+ updatedAt: Generated<Timestamp>;
1394
+ }
1189
1395
  export interface HealthAccountingIntegrityOperatorEvent {
1190
1396
  actorId: string;
1191
1397
  caseId: string | null;
@@ -1305,6 +1511,16 @@ export interface HealthAccountingIntegrityRun {
1305
1511
  unchangedCaseCount: Generated<Int8>;
1306
1512
  updatedAt: Generated<Timestamp>;
1307
1513
  }
1514
+ export interface HealthAccountingIntegritySweepCursor {
1515
+ createdAt: Generated<Timestamp>;
1516
+ cycleStartedAt: Generated<Timestamp>;
1517
+ definitionsHash: string | null;
1518
+ lastCycleCompletedAt: Timestamp | null;
1519
+ lastRecordId: string | null;
1520
+ lastTenantId: string | null;
1521
+ recordType: HealthAccountingIntegrityDirtyRecordType;
1522
+ updatedAt: Generated<Timestamp>;
1523
+ }
1308
1524
  export interface HealthAccountingIntegrityTransition {
1309
1525
  caseId: string;
1310
1526
  caseVersion: Int8;
@@ -1512,7 +1728,9 @@ export interface PublicConnection {
1512
1728
  appId: string;
1513
1729
  backendVersion: number | null;
1514
1730
  createdAt: Generated<Timestamp>;
1731
+ credentialMetadata: Json | null;
1515
1732
  credentials: Generated<Json | null>;
1733
+ credentialVersion: Generated<Int8>;
1516
1734
  disabled: Generated<boolean | null>;
1517
1735
  fetchNext: Generated<Timestamp | null>;
1518
1736
  fetchStatus: Generated<string>;
@@ -1530,6 +1748,16 @@ export interface PublicConnection {
1530
1748
  version: number | null;
1531
1749
  webhookVersion: Generated<Int8>;
1532
1750
  }
1751
+ export interface PublicConnectionOauthState {
1752
+ appId: string;
1753
+ connectionId: string | null;
1754
+ expiresAt: Timestamp;
1755
+ params: JsonObject;
1756
+ redirectUri: string;
1757
+ stateHash: string;
1758
+ tenantId: string;
1759
+ userId: string;
1760
+ }
1533
1761
  export interface PublicConnectionRoute {
1534
1762
  connectionId: string;
1535
1763
  createdAt: Generated<Timestamp>;
@@ -2007,8 +2235,15 @@ export interface PublicPlaidConnectSession {
2007
2235
  environment: string;
2008
2236
  errorCode: string | null;
2009
2237
  errorRetryable: boolean | null;
2238
+ exitedAt: Timestamp | null;
2239
+ exitErrorCode: string | null;
2240
+ exitErrorType: string | null;
2241
+ exitRequestId: string | null;
2242
+ exitView: string | null;
2010
2243
  expiresAt: Timestamp;
2011
2244
  id: Generated<string>;
2245
+ institutionId: string | null;
2246
+ institutionName: string | null;
2012
2247
  itemId: string | null;
2013
2248
  leaseExpiresAt: Timestamp | null;
2014
2249
  linkSessionId: string | null;
@@ -2063,6 +2298,7 @@ export interface PublicRecurringFeeListingSubscription {
2063
2298
  endAt: Timestamp | null;
2064
2299
  id: Generated<string>;
2065
2300
  listingId: string;
2301
+ matchBy: Generated<PublicRecurringFeeListingSubscriptionMatchBy>;
2066
2302
  rate: number | null;
2067
2303
  rateType: Generated<string | null>;
2068
2304
  recurringFeeId: string;
@@ -2286,10 +2522,10 @@ export interface PublicTenant {
2286
2522
  billingPartnerId: string | null;
2287
2523
  billingPaymentMethodType: string | null;
2288
2524
  billingPlan: string | null;
2525
+ billingSubscriptionId: string | null;
2289
2526
  billingSubscriptionStatus: string | null;
2290
2527
  booksClosedAt: Timestamp | null;
2291
2528
  calculatedBillingPartnerId: Generated<string | null>;
2292
- calculatedIsBillable: Generated<boolean | null>;
2293
2529
  calculatedStatus: Generated<string | null>;
2294
2530
  /**
2295
2531
  * Billing subscription is getting cancelled at date
@@ -2316,7 +2552,7 @@ export interface PublicTenant {
2316
2552
  intercomId: string | null;
2317
2553
  isActive: Generated<boolean | null>;
2318
2554
  isGeneralLedger: Generated<boolean | null>;
2319
- isOnboarding: Generated<boolean | null>;
2555
+ isOnboarding: Generated<boolean>;
2320
2556
  isTest: Generated<boolean | null>;
2321
2557
  logo: string | null;
2322
2558
  longTermStayNights: number | null;
@@ -2464,17 +2700,6 @@ export interface PublicWebhook {
2464
2700
  types2: string[] | null;
2465
2701
  url: string;
2466
2702
  }
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
2703
  export interface TrackingIntercomConversation {
2479
2704
  answer: string;
2480
2705
  conversationId: Int8;
@@ -2629,6 +2854,7 @@ export interface DB {
2629
2854
  "accounting.bankRuleMatchOperator": AccountingBankRuleMatchOperator;
2630
2855
  "accounting.bankRuleMode": AccountingBankRuleMode;
2631
2856
  "accounting.contact": AccountingContact;
2857
+ "accounting.contactBankAccount": AccountingContactBankAccount;
2632
2858
  "accounting.contactCompanyType": AccountingContactCompanyType;
2633
2859
  "accounting.contactType": AccountingContactType;
2634
2860
  "accounting.journalEntry": AccountingJournalEntry;
@@ -2640,6 +2866,11 @@ export interface DB {
2640
2866
  "accounting.ownerStatementProjectionRevision": AccountingOwnerStatementProjectionRevision;
2641
2867
  "accounting.paidStatus": AccountingPaidStatus;
2642
2868
  "accounting.party": AccountingParty;
2869
+ "accounting.payment": AccountingPayment;
2870
+ "accounting.paymentAllocation": AccountingPaymentAllocation;
2871
+ "accounting.paymentCommand": AccountingPaymentCommand;
2872
+ "accounting.paymentObservation": AccountingPaymentObservation;
2873
+ "accounting.paymentReversal": AccountingPaymentReversal;
2643
2874
  "accounting.rate": AccountingRate;
2644
2875
  "accounting.rateType": AccountingRateType;
2645
2876
  "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
@@ -2671,6 +2902,8 @@ export interface DB {
2671
2902
  "core.changeSyncType": CoreChangeSyncType;
2672
2903
  "core.changeType": CoreChangeType;
2673
2904
  "core.csvOperationResult": CoreCsvOperationResult;
2905
+ "core.emailDelivery": CoreEmailDelivery;
2906
+ "core.emailNotification": CoreEmailNotification;
2674
2907
  "core.exportJob": CoreExportJob;
2675
2908
  "core.flow": CoreFlow;
2676
2909
  "core.flowEvent": CoreFlowEvent;
@@ -2702,13 +2935,16 @@ export interface DB {
2702
2935
  "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
2703
2936
  "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
2704
2937
  "health.accountingIntegrityCase": HealthAccountingIntegrityCase;
2938
+ "health.accountingIntegrityComparisonFinding": HealthAccountingIntegrityComparisonFinding;
2705
2939
  "health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
2940
+ "health.accountingIntegrityDirtyRecord": HealthAccountingIntegrityDirtyRecord;
2706
2941
  "health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
2707
2942
  "health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
2708
2943
  "health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
2709
2944
  "health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
2710
2945
  "health.accountingIntegrityRepairTransition": HealthAccountingIntegrityRepairTransition;
2711
2946
  "health.accountingIntegrityRun": HealthAccountingIntegrityRun;
2947
+ "health.accountingIntegritySweepCursor": HealthAccountingIntegritySweepCursor;
2712
2948
  "health.accountingIntegrityTransition": HealthAccountingIntegrityTransition;
2713
2949
  "health.reservationIssueSnapshot": HealthReservationIssueSnapshot;
2714
2950
  "health.tenantIssue": HealthTenantIssue;
@@ -2725,6 +2961,7 @@ export interface DB {
2725
2961
  "public.bookingChannel": PublicBookingChannel;
2726
2962
  "public.bookingChannelIconCandidate": PublicBookingChannelIconCandidate;
2727
2963
  "public.connection": PublicConnection;
2964
+ "public.connectionOauthState": PublicConnectionOauthState;
2728
2965
  "public.connectionRoute": PublicConnectionRoute;
2729
2966
  "public.controlPlaneOutbox": PublicControlPlaneOutbox;
2730
2967
  "public.controlPlaneProjectionEvent": PublicControlPlaneProjectionEvent;
@@ -2796,7 +3033,6 @@ export interface DB {
2796
3033
  "public.viewWebhookEvents": PublicViewWebhookEvents;
2797
3034
  "public.viewWebhookEventsGroupedByDate": PublicViewWebhookEventsGroupedByDate;
2798
3035
  "public.webhook": PublicWebhook;
2799
- "tracking.event": TrackingEvent;
2800
3036
  "tracking.intercomConversation": TrackingIntercomConversation;
2801
3037
  "tracking.intercomConversationUser": TrackingIntercomConversationUser;
2802
3038
  "tracking.intercomReport": TrackingIntercomReport;