@vrplatform/kysely 1.3.45-stage.6578 → 1.3.45-stage.669

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 (70) hide show
  1. package/build/.data.tar +2 -2
  2. package/build/main/control-plane/index.d.ts +28 -6
  3. package/build/main/control-plane/index.js.map +1 -1
  4. package/build/main/index.d.ts +11 -0
  5. package/build/main/index.js +131 -26
  6. package/build/main/index.js.map +1 -1
  7. package/build/main/local/index.js +98 -8
  8. package/build/main/local/index.js.map +1 -1
  9. package/build/main/postgres-error.d.ts +3 -3
  10. package/build/main/postgres-error.js +4 -3
  11. package/build/main/postgres-error.js.map +1 -1
  12. package/build/main/query/tenant/status.d.ts +1 -1
  13. package/build/main/query/tenant/status.js +4 -2
  14. package/build/main/query/tenant/status.js.map +1 -1
  15. package/build/main/regional.d.ts +1 -0
  16. package/build/main/regional.js +1 -0
  17. package/build/main/regional.js.map +1 -1
  18. package/build/main/test/index.d.ts +23 -3
  19. package/build/main/test/index.js +35 -13
  20. package/build/main/test/index.js.map +1 -1
  21. package/build/main/v1.generated.d.ts +149 -19
  22. package/build/main/v1.generated.js.map +1 -1
  23. package/build/migrations-v2/0000000000031-ui-permission-role-simplification.ts +70 -0
  24. package/build/migrations-v2/0000000000032-tenant-delete-ownership-cascades.ts +44 -0
  25. package/build/migrations-v2/0000000000033-plaid-connect-session-telemetry.ts +31 -0
  26. package/build/migrations-v2/0000000000033-reservation-issue-seed-bucket-index.ts +19 -0
  27. package/build/migrations-v2/0000000000034-retire-recent-classification-indexes.ts +29 -0
  28. package/build/migrations-v2/0000000000035-core-change-autovacuum.ts +24 -0
  29. package/build/migrations-v2/0000000000036-journal-entry-inactive-reason-constraint.ts +33 -0
  30. package/build/migrations-v2/0000000000037-journal-entry-inactive-reasons.ts +19 -0
  31. package/build/migrations-v2/0000000000038-journal-entry-group-inactive-reason.ts +14 -0
  32. package/build/migrations-v2/0000000000039-reservation-guest-breakdown.ts +19 -0
  33. package/build/migrations-v2/0000000000040-csv-import-source-identity-index.ts +23 -0
  34. package/build/migrations-v2/0000000000041-payment-returns.ts +38 -0
  35. package/build/migrations-v2/0000000000042-operation-resource-types.ts +609 -0
  36. package/build/migrations-v2/0000000000043-reservation-journal-freshness.ts +149 -0
  37. package/build/migrations-v2/0000000000044-reservation-journal-freshness-backfill.ts +254 -0
  38. package/build/migrations-v2/0000000000045-reservation-journal-freshness-revision-repair.ts +83 -0
  39. package/build/migrations-v2/0000000000046-materialized-reservation-journal-operations.ts +709 -0
  40. package/build/migrations-v2/0000000000047-public-audit-completion.ts +77 -0
  41. package/build/migrations-v2/0000000000048-reservation-journal-full-refresh-repair.ts +136 -0
  42. package/build/migrations-v2/0000000000049-queued-journal-operation-failures.ts +60 -0
  43. package/build/migrations-v2/0000000000050-connection-oauth-state.ts +43 -0
  44. package/build/migrations-v2/0000000000051-owner-statement-email-delivery.ts +134 -0
  45. package/build/migrations-v2/0000000000052-fee-journal-lock-skip-operations.ts +59 -0
  46. package/build/migrations-v2/0000000000053-fee-journal-lock-skip-null-attempt.ts +44 -0
  47. package/build/migrations-v2/0000000000054-journal-refresh-issue-codes.ts +16 -0
  48. package/build/migrations-v2/0000000000055-tenant-billing-subscription.ts +8 -0
  49. package/build/module/control-plane/index.d.ts +28 -6
  50. package/build/module/control-plane/index.js.map +1 -1
  51. package/build/module/index.d.ts +11 -0
  52. package/build/module/index.js +131 -26
  53. package/build/module/index.js.map +1 -1
  54. package/build/module/local/index.js +98 -8
  55. package/build/module/local/index.js.map +1 -1
  56. package/build/module/postgres-error.d.ts +3 -3
  57. package/build/module/postgres-error.js +4 -3
  58. package/build/module/postgres-error.js.map +1 -1
  59. package/build/module/query/tenant/status.d.ts +1 -1
  60. package/build/module/query/tenant/status.js +4 -2
  61. package/build/module/query/tenant/status.js.map +1 -1
  62. package/build/module/regional.d.ts +1 -0
  63. package/build/module/regional.js +1 -0
  64. package/build/module/regional.js.map +1 -1
  65. package/build/module/test/index.d.ts +23 -3
  66. package/build/module/test/index.js +34 -13
  67. package/build/module/test/index.js.map +1 -1
  68. package/build/module/v1.generated.d.ts +149 -19
  69. package/build/module/v1.generated.js.map +1 -1
  70. package/package.json +4 -2
@@ -3,7 +3,7 @@
3
3
  * Please do not edit it manually.
4
4
  */
5
5
  import type { ColumnType } from "kysely";
6
- export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "inactiveAccount" | "listingInactive" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unknownInactiveReason";
6
+ export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "historicalLedger" | "inactiveAccount" | "listingInactive" | "listingOwnershipPeriodNotFound" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unbalancedGroupInactiveLeg" | "unknownInactiveReason";
7
7
  export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
8
8
  export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
9
9
  export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
@@ -14,10 +14,25 @@ export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "faile
14
14
  export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
15
15
  export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
16
16
  export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
17
- export type AuditSourceType = "api" | "automation" | "integration" | "portal" | "sync" | "system";
17
+ export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
18
+ export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
18
19
  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
+ export type CoreAsyncOperationResultStatus = "completed" | "failed" | "queued";
21
+ export type CoreCsvOperationResultKind = "import" | "preview";
22
+ export type CoreCsvOperationResultStatus = "completed" | "failed" | "processing" | "queued";
23
+ export type CoreEmailDeliveryFailureCode = "inactive_recipient" | "invalid_provider_response" | "postmark_not_configured" | "provider_rejected" | "task_failed" | "transport_failed";
24
+ export type CoreEmailDeliveryStatus = "accepted" | "canceled" | "failed" | "queued" | "rejected" | "retrying" | "sending";
25
+ export type CoreEmailNotificationStatus = "canceled" | "completed" | "failed" | "processing" | "queued";
26
+ export type CoreExportJobFormat = "csv" | "pdf" | "zip";
27
+ 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";
19
28
  export type CoreFlowEventOperationAction = "abandon" | "replay";
20
29
  export type CoreFlowEventStatus = "canceled" | "dead" | "pending" | "processing" | "succeeded";
30
+ export type CoreOperationResourceRole = "result" | "source" | "target";
31
+ export type CoreOperationResourceType = "bank-rule" | "connection" | "contact" | "file" | "flow" | "listing" | "recurring-fee" | "recurring-transaction-template" | "reservation" | "statement" | "team" | "transaction" | "webhook";
32
+ export type CoreOperationPublicIdFormat = "action" | "legacy";
33
+ export type CoreOperationSourceType = "audit-action" | "export-job" | "sync" | "webhook-delivery";
34
+ export type CoreOperationStatus = "completed" | "failed" | "queued" | "running";
35
+ 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";
21
36
  export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
22
37
  export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
23
38
  export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
@@ -36,7 +51,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
36
51
  export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
37
52
  export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
38
53
  export type HealthTenantIssueCategory = "criticalToSystem" | "criticalToUser";
39
- export type HealthTenantIssueCode = "brokenConnections" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unpaidReservations";
54
+ export type HealthTenantIssueCode = "brokenConnections" | "cancelledReservationPaidWithoutAdjustment" | "closedPeriodUnattachedJournalEntries" | "duplicatedPayments" | "endedOwnershipNonZeroBalance" | "journalConfigurationInvalid" | "journalLocked" | "journalUnbalanced" | "listingOwnershipPeriodNotFoundOnActiveJournals" | "missingOwnershipOrDeactivation" | "operatingBankAccountsWithoutOpex" | "outdatedConnections" | "partnerBillingInactive" | "partnerInactive" | "pmsMissingAccountingStart" | "publishedStatementUnpaid" | "reservationCurrencyMismatch" | "reservationGuestTotalsMismatch" | "reservationPaymentProjectionMismatch" | "teamInactive" | "unbalancedJournalEntries" | "unbalancedTransactionJournalEntries" | "unpaidReservations";
40
55
  export type HealthTenantIssueSeverity = "error" | "warning";
41
56
  export type HealthTenantIssueStatus = "open" | "resolved";
42
57
  export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
@@ -55,9 +70,9 @@ export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
55
70
  export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
56
71
  export type WebhookApiVersion = "2026-07-01";
57
72
  export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
58
- export type WebhookEventType = "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed" | "webhook.test";
59
- export type WebhookResourceType = "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
60
- export type WebhookSubscriptionEventType = "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed";
73
+ export type WebhookEventType = "audit.event.changed" | "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed" | "webhook.test";
74
+ export type WebhookResourceType = "auditEvent" | "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
75
+ export type WebhookSubscriptionEventType = "audit.event.changed" | "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed";
61
76
  export type WebhookSubscriptionScope = "managedTeams" | "self";
62
77
  export type WebhookSubscriptionStatus = "active" | "disabled" | "pending";
63
78
  export interface AccountingAccount {
@@ -391,6 +406,44 @@ export interface AccountingRate {
391
406
  export interface AccountingRateType {
392
407
  name: string;
393
408
  }
409
+ export interface AccountingReservationJournalFreshnessControl {
410
+ createdAt: Generated<Timestamp>;
411
+ guardsEnabledAt: Timestamp | null;
412
+ tenantId: string;
413
+ updatedAt: Generated<Timestamp>;
414
+ }
415
+ export interface AccountingReservationJournalInvalidation {
416
+ actionId: string | null;
417
+ appliedAt: Timestamp | null;
418
+ coveredByEffectId: string | null;
419
+ createdAt: Generated<Timestamp>;
420
+ effectId: string | null;
421
+ id: Generated<string>;
422
+ reservationId: string;
423
+ revision: Int8;
424
+ sourceResourceId: string | null;
425
+ sourceResourceType: CoreOperationResourceType | null;
426
+ tenantId: string;
427
+ }
428
+ export interface AccountingReservationJournalState {
429
+ appliedRevision: Generated<Int8>;
430
+ calculatedAt: Timestamp | null;
431
+ createdAt: Generated<Timestamp>;
432
+ desiredRevision: Generated<Int8>;
433
+ reservationId: string;
434
+ staleSince: Timestamp | null;
435
+ tenantId: string;
436
+ updatedAt: Generated<Timestamp>;
437
+ }
438
+ export interface AccountingReservationJournalStatementImpact {
439
+ createdAt: Generated<Timestamp>;
440
+ currency: string;
441
+ invalidationId: string;
442
+ listingId: string;
443
+ listingOwnershipPeriodId: string;
444
+ month: Timestamp;
445
+ tenantId: string;
446
+ }
394
447
  export interface AccountingTaxBehavior {
395
448
  name: string;
396
449
  }
@@ -417,6 +470,8 @@ export interface AccountingTransaction {
417
470
  recurringFeeId: string | null;
418
471
  recurringPattern: Json | null;
419
472
  recurringTemplateId: string | null;
473
+ returnedFromTransactionId: string | null;
474
+ returnEffectiveAt: Timestamp | null;
420
475
  /**
421
476
  * Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
422
477
  */
@@ -480,6 +535,9 @@ export interface AuditAction {
480
535
  actorId: string | null;
481
536
  actorLabel: string | null;
482
537
  actorName: string | null;
538
+ actorOrganizationId: string | null;
539
+ actorOrganizationName: string | null;
540
+ actorOrganizationType: AuditActorOrganizationType | null;
483
541
  actorType: AuditActionActorType;
484
542
  apiVersion: string;
485
543
  createdAt: Generated<Timestamp>;
@@ -585,6 +643,7 @@ export interface AuditMutation {
585
643
  id: Generated<string>;
586
644
  op: string;
587
645
  publicChanges: Generated<Json>;
646
+ publicOutcome: Json | null;
588
647
  rootEntityId: string | null;
589
648
  rootEntityType: string | null;
590
649
  subjectId: string;
@@ -600,8 +659,13 @@ export interface AuditPublicEvent {
600
659
  actorId: string | null;
601
660
  actorLabel: string | null;
602
661
  actorName: string | null;
662
+ actorOrganizationId: string | null;
663
+ actorOrganizationName: string | null;
664
+ actorOrganizationType: AuditActorOrganizationType | null;
603
665
  actorType: AuditActionActorType;
604
666
  affectedAccountIds: Generated<string[]>;
667
+ attemptedEntityChanges: Generated<Json>;
668
+ blockedBy: Generated<Json>;
605
669
  changedEntityTypes: Generated<string[]>;
606
670
  changedPaths: Generated<string[]>;
607
671
  entityChanges: Generated<Json>;
@@ -616,6 +680,7 @@ export interface AuditPublicEvent {
616
680
  projectionFingerprint: string;
617
681
  projectionVersion: Generated<number>;
618
682
  requestId: string | null;
683
+ recovery: Generated<Json>;
619
684
  revision: Generated<number>;
620
685
  rootEntityId: string;
621
686
  rootEntityType: string;
@@ -677,9 +742,9 @@ export interface CoreAsyncOperationResult {
677
742
  errorMessage: string | null;
678
743
  operationId: string;
679
744
  result: Json | null;
680
- status: Generated<string>;
745
+ status: Generated<CoreAsyncOperationResultStatus>;
681
746
  tenantId: string;
682
- type: string;
747
+ type: CoreOperationType;
683
748
  updatedAt: Generated<Timestamp>;
684
749
  }
685
750
  export interface CoreChange {
@@ -737,25 +802,55 @@ export interface CoreCsvOperationResult {
737
802
  connectionId: string;
738
803
  createdAt: Generated<Timestamp>;
739
804
  errorMessage: string | null;
740
- kind: string;
805
+ kind: CoreCsvOperationResultKind;
741
806
  result: Json | null;
742
- status: Generated<string>;
807
+ status: Generated<CoreCsvOperationResultStatus>;
743
808
  syncId: string;
744
809
  tenantId: string;
745
810
  updatedAt: Generated<Timestamp>;
746
811
  }
812
+ export interface CoreEmailDelivery {
813
+ attemptCount: Generated<number>;
814
+ createdAt: Generated<Timestamp>;
815
+ failureCode: CoreEmailDeliveryFailureCode | null;
816
+ finishedAt: Timestamp | null;
817
+ httpStatus: number | null;
818
+ id: Generated<string>;
819
+ lastAttemptAt: Timestamp | null;
820
+ notificationId: string;
821
+ postmarkErrorCode: number | null;
822
+ postmarkMessageId: string | null;
823
+ status: Generated<CoreEmailDeliveryStatus>;
824
+ submittedAt: Timestamp | null;
825
+ tenantId: string;
826
+ triggerRunId: string | null;
827
+ updatedAt: Generated<Timestamp>;
828
+ userId: string;
829
+ }
830
+ export interface CoreEmailNotification {
831
+ createdAt: Generated<Timestamp>;
832
+ finishedAt: Timestamp | null;
833
+ id: string;
834
+ ownerStatementId: string;
835
+ recipientsResolvedAt: Timestamp | null;
836
+ startedAt: Timestamp | null;
837
+ status: Generated<CoreEmailNotificationStatus>;
838
+ tenantId: string;
839
+ triggerRunId: string | null;
840
+ updatedAt: Generated<Timestamp>;
841
+ }
747
842
  export interface CoreExportJob {
748
843
  createdAt: Generated<Timestamp>;
749
844
  errorMessage: string | null;
750
845
  fileId: string;
751
846
  filename: string;
752
847
  finishedAt: Timestamp | null;
753
- format: string;
848
+ format: CoreExportJobFormat;
754
849
  id: string;
755
850
  payload: Json;
756
851
  startedAt: Timestamp | null;
757
- status: Generated<string>;
758
- taskId: string;
852
+ status: Generated<CoreOperationStatus>;
853
+ taskId: CoreExportJobTaskId;
759
854
  tenantId: string;
760
855
  updatedAt: Generated<Timestamp>;
761
856
  }
@@ -878,12 +973,19 @@ export interface CoreOperation {
878
973
  finishedAt: Timestamp | null;
879
974
  id: Generated<string>;
880
975
  initiatedByUserId: string | null;
976
+ publicIdFormat: Generated<CoreOperationPublicIdFormat>;
881
977
  retainUntil: Timestamp | null;
882
978
  sourceVersion: Generated<Int8>;
883
979
  startedAt: Timestamp | null;
884
- status: Generated<string>;
980
+ status: Generated<CoreOperationStatus>;
885
981
  tenantId: string;
886
- type: string;
982
+ type: CoreOperationType;
983
+ updatedAt: Generated<Timestamp>;
984
+ }
985
+ export interface CoreOperationBackfill {
986
+ completedAt: Timestamp | null;
987
+ createdAt: Generated<Timestamp>;
988
+ name: string;
887
989
  updatedAt: Generated<Timestamp>;
888
990
  }
889
991
  export interface CoreOperationProjectionOutbox {
@@ -901,18 +1003,18 @@ export interface CoreOperationResource {
901
1003
  isPrimary: Generated<boolean>;
902
1004
  operationId: string;
903
1005
  resourceId: string;
904
- resourceType: string;
905
- role: string;
1006
+ resourceType: CoreOperationResourceType;
1007
+ role: CoreOperationResourceRole;
906
1008
  }
907
1009
  export interface CoreOperationSource {
908
1010
  finishedAt: Timestamp | null;
909
1011
  operationId: string;
910
1012
  required: Generated<boolean>;
911
1013
  sourceId: string;
912
- sourceType: string;
1014
+ sourceType: CoreOperationSourceType;
913
1015
  sourceVersion: Generated<Int8>;
914
1016
  startedAt: Timestamp | null;
915
- status: Generated<string>;
1017
+ status: Generated<CoreOperationStatus>;
916
1018
  }
917
1019
  export interface CoreSync {
918
1020
  automationId: string | null;
@@ -1938,8 +2040,15 @@ export interface PublicPlaidConnectSession {
1938
2040
  environment: string;
1939
2041
  errorCode: string | null;
1940
2042
  errorRetryable: boolean | null;
2043
+ exitedAt: Timestamp | null;
2044
+ exitErrorCode: string | null;
2045
+ exitErrorType: string | null;
2046
+ exitRequestId: string | null;
2047
+ exitView: string | null;
1941
2048
  expiresAt: Timestamp;
1942
2049
  id: Generated<string>;
2050
+ institutionId: string | null;
2051
+ institutionName: string | null;
1943
2052
  itemId: string | null;
1944
2053
  leaseExpiresAt: Timestamp | null;
1945
2054
  linkSessionId: string | null;
@@ -2008,6 +2117,7 @@ export interface PublicRecurringFeeType {
2008
2117
  name: string;
2009
2118
  }
2010
2119
  export interface PublicReservation {
2120
+ adults: number | null;
2011
2121
  bookedAt: Generated<Timestamp | null>;
2012
2122
  bookerName: string | null;
2013
2123
  bookingPlatform: string | null;
@@ -2026,6 +2136,7 @@ export interface PublicReservation {
2026
2136
  channelId: string | null;
2027
2137
  checkIn: Timestamp | null;
2028
2138
  checkOut: Timestamp | null;
2139
+ children: number | null;
2029
2140
  confirmationCode: string | null;
2030
2141
  connectionId: string | null;
2031
2142
  createdAt: Generated<Timestamp | null>;
@@ -2212,6 +2323,7 @@ export interface PublicTenant {
2212
2323
  billingAddressData: Json | null;
2213
2324
  billingAddressId: string | null;
2214
2325
  billingCustomerId: string | null;
2326
+ billingSubscriptionId: string | null;
2215
2327
  billingPartnerId: string | null;
2216
2328
  billingPaymentMethodType: string | null;
2217
2329
  billingPlan: string | null;
@@ -2292,6 +2404,16 @@ export interface PublicTenantUser {
2292
2404
  updatedAt: Generated<Timestamp | null>;
2293
2405
  userId: string;
2294
2406
  }
2407
+ export interface PublicConnectionOauthState {
2408
+ appId: string;
2409
+ connectionId: string | null;
2410
+ expiresAt: Timestamp;
2411
+ params: JsonObject;
2412
+ redirectUri: string;
2413
+ stateHash: string;
2414
+ tenantId: string;
2415
+ userId: string;
2416
+ }
2295
2417
  export interface PublicToken {
2296
2418
  createdAt: Generated<Timestamp>;
2297
2419
  expiresAt: Timestamp | null;
@@ -2534,6 +2656,7 @@ export interface WebhookSubscriptionSecret {
2534
2656
  subscriptionId: string;
2535
2657
  }
2536
2658
  export interface DB {
2659
+ "public.connectionOauthState": PublicConnectionOauthState;
2537
2660
  "accounting.account": AccountingAccount;
2538
2661
  "accounting.accountAssignment": AccountingAccountAssignment;
2539
2662
  "accounting.accountAssignmentLineType": AccountingAccountAssignmentLineType;
@@ -2571,6 +2694,10 @@ export interface DB {
2571
2694
  "accounting.party": AccountingParty;
2572
2695
  "accounting.rate": AccountingRate;
2573
2696
  "accounting.rateType": AccountingRateType;
2697
+ "accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
2698
+ "accounting.reservationJournalInvalidation": AccountingReservationJournalInvalidation;
2699
+ "accounting.reservationJournalState": AccountingReservationJournalState;
2700
+ "accounting.reservationJournalStatementImpact": AccountingReservationJournalStatementImpact;
2574
2701
  "accounting.taxBehavior": AccountingTaxBehavior;
2575
2702
  "accounting.transaction": AccountingTransaction;
2576
2703
  "accounting.transactionAttachment": AccountingTransactionAttachment;
@@ -2596,6 +2723,8 @@ export interface DB {
2596
2723
  "core.changeSyncType": CoreChangeSyncType;
2597
2724
  "core.changeType": CoreChangeType;
2598
2725
  "core.csvOperationResult": CoreCsvOperationResult;
2726
+ "core.emailDelivery": CoreEmailDelivery;
2727
+ "core.emailNotification": CoreEmailNotification;
2599
2728
  "core.exportJob": CoreExportJob;
2600
2729
  "core.flow": CoreFlow;
2601
2730
  "core.flowEvent": CoreFlowEvent;
@@ -2606,6 +2735,7 @@ export interface DB {
2606
2735
  "core.flowSetting": CoreFlowSetting;
2607
2736
  "core.issueMessageOverwrite": CoreIssueMessageOverwrite;
2608
2737
  "core.operation": CoreOperation;
2738
+ "core.operationBackfill": CoreOperationBackfill;
2609
2739
  "core.operationProjectionOutbox": CoreOperationProjectionOutbox;
2610
2740
  "core.operationResource": CoreOperationResource;
2611
2741
  "core.operationSource": CoreOperationSource;