@vrplatform/kysely 1.3.45-6561 → 1.3.45-736
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.
- package/build/.data.tar +2 -2
- package/build/main/control-plane/index.d.ts +137 -0
- package/build/main/control-plane/index.js.map +1 -1
- package/build/main/index.d.ts +11 -0
- package/build/main/index.js +131 -26
- package/build/main/index.js.map +1 -1
- package/build/main/local/generate.js +1 -0
- package/build/main/local/generate.js.map +1 -1
- package/build/main/local/index.js +109 -8
- package/build/main/local/index.js.map +1 -1
- package/build/main/postgres-error.d.ts +3 -3
- package/build/main/postgres-error.js +4 -3
- package/build/main/postgres-error.js.map +1 -1
- package/build/main/query/tenant/status.d.ts +1 -1
- package/build/main/query/tenant/status.js +4 -2
- package/build/main/query/tenant/status.js.map +1 -1
- package/build/main/regional.d.ts +1 -0
- package/build/main/regional.js +1 -0
- package/build/main/regional.js.map +1 -1
- package/build/main/test/index.d.ts +23 -3
- package/build/main/test/index.js +35 -13
- package/build/main/test/index.js.map +1 -1
- package/build/main/v1.generated.d.ts +338 -37
- package/build/main/v1.generated.js.map +1 -1
- package/build/migrations-v2/0000000000015-durable-flow-events.ts +163 -0
- package/build/migrations-v2/0000000000016-billing-listing-facts.ts +539 -0
- package/build/migrations-v2/0000000000017-webhook-secret-reencryption-failures.ts +18 -0
- package/build/migrations-v2/0000000000018-durable-flow-event-sensitive-input.ts +28 -0
- package/build/migrations-v2/0000000000019-asynchronous-operations.ts +736 -0
- package/build/migrations-v2/0000000000031-ui-permission-role-simplification.ts +70 -0
- package/build/migrations-v2/0000000000032-tenant-delete-ownership-cascades.ts +44 -0
- package/build/migrations-v2/0000000000033-reservation-issue-seed-bucket-index.ts +19 -0
- package/build/migrations-v2/0000000000034-retire-recent-classification-indexes.ts +29 -0
- package/build/migrations-v2/0000000000035-core-change-autovacuum.ts +24 -0
- package/build/migrations-v2/0000000000036-journal-entry-inactive-reason-constraint.ts +33 -0
- package/build/migrations-v2/0000000000037-journal-entry-inactive-reasons.ts +19 -0
- package/build/migrations-v2/0000000000038-journal-entry-group-inactive-reason.ts +14 -0
- package/build/migrations-v2/0000000000039-reservation-guest-breakdown.ts +19 -0
- package/build/migrations-v2/0000000000040-csv-import-source-identity-index.ts +23 -0
- package/build/migrations-v2/0000000000041-payment-returns.ts +38 -0
- package/build/migrations-v2/0000000000042-operation-resource-types.ts +609 -0
- package/build/migrations-v2/0000000000043-reservation-journal-freshness.ts +149 -0
- package/build/migrations-v2/0000000000044-reservation-journal-freshness-backfill.ts +254 -0
- package/build/migrations-v2/0000000000045-reservation-journal-freshness-revision-repair.ts +83 -0
- package/build/migrations-v2/0000000000046-materialized-reservation-journal-operations.ts +709 -0
- package/build/migrations-v2/0000000000047-public-audit-completion.ts +77 -0
- package/build/migrations-v2/0000000000048-reservation-journal-full-refresh-repair.ts +136 -0
- package/build/migrations-v2/0000000000049-queued-journal-operation-failures.ts +60 -0
- package/build/migrations-v2/0000000000050-connection-oauth-state.ts +43 -0
- package/build/migrations-v2/0000000000051-owner-statement-email-delivery.ts +134 -0
- package/build/migrations-v2/0000000000052-fee-journal-lock-skip-operations.ts +59 -0
- package/build/migrations-v2/0000000000053-fee-journal-lock-skip-null-attempt.ts +44 -0
- package/build/migrations-v2/0000000000054-journal-refresh-issue-codes.ts +16 -0
- package/build/migrations-v2/0000000000055-tenant-billing-subscription.ts +8 -0
- package/build/module/control-plane/index.d.ts +137 -0
- package/build/module/control-plane/index.js.map +1 -1
- package/build/module/index.d.ts +11 -0
- package/build/module/index.js +131 -26
- package/build/module/index.js.map +1 -1
- package/build/module/local/generate.js +1 -0
- package/build/module/local/generate.js.map +1 -1
- package/build/module/local/index.js +109 -8
- package/build/module/local/index.js.map +1 -1
- package/build/module/postgres-error.d.ts +3 -3
- package/build/module/postgres-error.js +4 -3
- package/build/module/postgres-error.js.map +1 -1
- package/build/module/query/tenant/status.d.ts +1 -1
- package/build/module/query/tenant/status.js +4 -2
- package/build/module/query/tenant/status.js.map +1 -1
- package/build/module/regional.d.ts +1 -0
- package/build/module/regional.js +1 -0
- package/build/module/regional.js.map +1 -1
- package/build/module/test/index.d.ts +23 -3
- package/build/module/test/index.js +34 -13
- package/build/module/test/index.js.map +1 -1
- package/build/module/v1.generated.d.ts +338 -37
- package/build/module/v1.generated.js.map +1 -1
- 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,7 +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
|
|
17
|
+
export type AuditActorOrganizationType = "partner" | "system" | "team" | "vrplatform";
|
|
18
|
+
export type AuditSourceType = "api" | "automation" | "embedded" | "integration" | "portal" | "sync" | "system";
|
|
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";
|
|
28
|
+
export type CoreFlowEventOperationAction = "abandon" | "replay";
|
|
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";
|
|
18
36
|
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
19
37
|
export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
|
|
20
38
|
export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
|
|
@@ -33,7 +51,7 @@ export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" |
|
|
|
33
51
|
export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
|
|
34
52
|
export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
|
|
35
53
|
export type HealthTenantIssueCategory = "criticalToSystem" | "criticalToUser";
|
|
36
|
-
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";
|
|
37
55
|
export type HealthTenantIssueSeverity = "error" | "warning";
|
|
38
56
|
export type HealthTenantIssueStatus = "open" | "resolved";
|
|
39
57
|
export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
|
|
@@ -52,9 +70,9 @@ export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
|
|
|
52
70
|
export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
|
|
53
71
|
export type WebhookApiVersion = "2026-07-01";
|
|
54
72
|
export type WebhookDeliveryStatus = "canceled" | "delivering" | "failed" | "queued" | "retrying" | "succeeded";
|
|
55
|
-
export type WebhookEventType = "connection.changed" | "listing.changed" | "reservation.changed" | "statement.status.changed" | "sync.status.changed" | "team.issues.changed" | "transaction.changed" | "webhook.test";
|
|
56
|
-
export type WebhookResourceType = "connection" | "listing" | "reservation" | "statement" | "sync" | "team" | "transaction" | "webhook";
|
|
57
|
-
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";
|
|
58
76
|
export type WebhookSubscriptionScope = "managedTeams" | "self";
|
|
59
77
|
export type WebhookSubscriptionStatus = "active" | "disabled" | "pending";
|
|
60
78
|
export interface AccountingAccount {
|
|
@@ -388,6 +406,44 @@ export interface AccountingRate {
|
|
|
388
406
|
export interface AccountingRateType {
|
|
389
407
|
name: string;
|
|
390
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
|
+
}
|
|
391
447
|
export interface AccountingTaxBehavior {
|
|
392
448
|
name: string;
|
|
393
449
|
}
|
|
@@ -410,10 +466,12 @@ export interface AccountingTransaction {
|
|
|
410
466
|
matchStatus: Generated<string | null>;
|
|
411
467
|
paidAt: Timestamp | null;
|
|
412
468
|
paidStatus: Generated<string | null>;
|
|
469
|
+
recreatedFromTransactionId: string | null;
|
|
413
470
|
recurringFeeId: string | null;
|
|
414
471
|
recurringPattern: Json | null;
|
|
415
|
-
recreatedFromTransactionId: string | null;
|
|
416
472
|
recurringTemplateId: string | null;
|
|
473
|
+
returnedFromTransactionId: string | null;
|
|
474
|
+
returnEffectiveAt: Timestamp | null;
|
|
417
475
|
/**
|
|
418
476
|
* Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
|
|
419
477
|
*/
|
|
@@ -477,6 +535,9 @@ export interface AuditAction {
|
|
|
477
535
|
actorId: string | null;
|
|
478
536
|
actorLabel: string | null;
|
|
479
537
|
actorName: string | null;
|
|
538
|
+
actorOrganizationId: string | null;
|
|
539
|
+
actorOrganizationName: string | null;
|
|
540
|
+
actorOrganizationType: AuditActorOrganizationType | null;
|
|
480
541
|
actorType: AuditActionActorType;
|
|
481
542
|
apiVersion: string;
|
|
482
543
|
createdAt: Generated<Timestamp>;
|
|
@@ -582,6 +643,7 @@ export interface AuditMutation {
|
|
|
582
643
|
id: Generated<string>;
|
|
583
644
|
op: string;
|
|
584
645
|
publicChanges: Generated<Json>;
|
|
646
|
+
publicOutcome: Json | null;
|
|
585
647
|
rootEntityId: string | null;
|
|
586
648
|
rootEntityType: string | null;
|
|
587
649
|
subjectId: string;
|
|
@@ -597,8 +659,13 @@ export interface AuditPublicEvent {
|
|
|
597
659
|
actorId: string | null;
|
|
598
660
|
actorLabel: string | null;
|
|
599
661
|
actorName: string | null;
|
|
662
|
+
actorOrganizationId: string | null;
|
|
663
|
+
actorOrganizationName: string | null;
|
|
664
|
+
actorOrganizationType: AuditActorOrganizationType | null;
|
|
600
665
|
actorType: AuditActionActorType;
|
|
601
666
|
affectedAccountIds: Generated<string[]>;
|
|
667
|
+
attemptedEntityChanges: Generated<Json>;
|
|
668
|
+
blockedBy: Generated<Json>;
|
|
602
669
|
changedEntityTypes: Generated<string[]>;
|
|
603
670
|
changedPaths: Generated<string[]>;
|
|
604
671
|
entityChanges: Generated<Json>;
|
|
@@ -613,6 +680,7 @@ export interface AuditPublicEvent {
|
|
|
613
680
|
projectionFingerprint: string;
|
|
614
681
|
projectionVersion: Generated<number>;
|
|
615
682
|
requestId: string | null;
|
|
683
|
+
recovery: Generated<Json>;
|
|
616
684
|
revision: Generated<number>;
|
|
617
685
|
rootEntityId: string;
|
|
618
686
|
rootEntityType: string;
|
|
@@ -643,9 +711,42 @@ export interface AuditPublicEventProjectionState {
|
|
|
643
711
|
retainedFrom: Timestamp | null;
|
|
644
712
|
singleton: Generated<boolean>;
|
|
645
713
|
}
|
|
714
|
+
export interface BillingListingFact {
|
|
715
|
+
activeListings: number;
|
|
716
|
+
billingPartnerId: string | null;
|
|
717
|
+
dataRegion: string;
|
|
718
|
+
effectiveAt: Timestamp;
|
|
719
|
+
id: Generated<string>;
|
|
720
|
+
reconciliation: Generated<boolean>;
|
|
721
|
+
recordedAt: Generated<Timestamp>;
|
|
722
|
+
sourceId: string;
|
|
723
|
+
sourceRevision: Int8 | null;
|
|
724
|
+
sourceType: BillingListingFactSourceType;
|
|
725
|
+
tenantId: string;
|
|
726
|
+
tenantName: string;
|
|
727
|
+
}
|
|
728
|
+
export interface BillingListingFactReadiness {
|
|
729
|
+
availableFrom: Timestamp | null;
|
|
730
|
+
legacyGapCount: number | null;
|
|
731
|
+
legacyImportedRows: number | null;
|
|
732
|
+
parityConfirmed: Generated<boolean>;
|
|
733
|
+
readyAt: Timestamp | null;
|
|
734
|
+
singleton: Generated<boolean>;
|
|
735
|
+
verifiedMonth: Timestamp | null;
|
|
736
|
+
}
|
|
646
737
|
export interface CoreActiveStatus {
|
|
647
738
|
name: string;
|
|
648
739
|
}
|
|
740
|
+
export interface CoreAsyncOperationResult {
|
|
741
|
+
createdAt: Generated<Timestamp>;
|
|
742
|
+
errorMessage: string | null;
|
|
743
|
+
operationId: string;
|
|
744
|
+
result: Json | null;
|
|
745
|
+
status: Generated<CoreAsyncOperationResultStatus>;
|
|
746
|
+
tenantId: string;
|
|
747
|
+
type: CoreOperationType;
|
|
748
|
+
updatedAt: Generated<Timestamp>;
|
|
749
|
+
}
|
|
649
750
|
export interface CoreChange {
|
|
650
751
|
automationId: string | null;
|
|
651
752
|
changeData: Json | null;
|
|
@@ -697,6 +798,62 @@ export interface CoreChangeSyncType {
|
|
|
697
798
|
export interface CoreChangeType {
|
|
698
799
|
name: string;
|
|
699
800
|
}
|
|
801
|
+
export interface CoreCsvOperationResult {
|
|
802
|
+
connectionId: string;
|
|
803
|
+
createdAt: Generated<Timestamp>;
|
|
804
|
+
errorMessage: string | null;
|
|
805
|
+
kind: CoreCsvOperationResultKind;
|
|
806
|
+
result: Json | null;
|
|
807
|
+
status: Generated<CoreCsvOperationResultStatus>;
|
|
808
|
+
syncId: string;
|
|
809
|
+
tenantId: string;
|
|
810
|
+
updatedAt: Generated<Timestamp>;
|
|
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
|
+
}
|
|
842
|
+
export interface CoreExportJob {
|
|
843
|
+
createdAt: Generated<Timestamp>;
|
|
844
|
+
errorMessage: string | null;
|
|
845
|
+
fileId: string;
|
|
846
|
+
filename: string;
|
|
847
|
+
finishedAt: Timestamp | null;
|
|
848
|
+
format: CoreExportJobFormat;
|
|
849
|
+
id: string;
|
|
850
|
+
payload: Json;
|
|
851
|
+
startedAt: Timestamp | null;
|
|
852
|
+
status: Generated<CoreOperationStatus>;
|
|
853
|
+
taskId: CoreExportJobTaskId;
|
|
854
|
+
tenantId: string;
|
|
855
|
+
updatedAt: Generated<Timestamp>;
|
|
856
|
+
}
|
|
700
857
|
export interface CoreFlow {
|
|
701
858
|
appId: string;
|
|
702
859
|
description: string | null;
|
|
@@ -713,6 +870,64 @@ export interface CoreFlow {
|
|
|
713
870
|
uniqueRef: string;
|
|
714
871
|
useGlobalMapping: Generated<boolean>;
|
|
715
872
|
}
|
|
873
|
+
export interface CoreFlowEvent {
|
|
874
|
+
attempts: Generated<number>;
|
|
875
|
+
availableAt: Generated<Timestamp>;
|
|
876
|
+
claimedAt: Timestamp | null;
|
|
877
|
+
claimedBy: string | null;
|
|
878
|
+
completedAt: Timestamp | null;
|
|
879
|
+
createdAt: Generated<Timestamp>;
|
|
880
|
+
data: Generated<Json>;
|
|
881
|
+
entityId: string;
|
|
882
|
+
entityType: string;
|
|
883
|
+
eventType: string;
|
|
884
|
+
id: Generated<string>;
|
|
885
|
+
lastErrorCode: string | null;
|
|
886
|
+
lastErrorDetails: Json | null;
|
|
887
|
+
maxAttempts: Generated<number>;
|
|
888
|
+
requiresSensitiveInput: Generated<boolean>;
|
|
889
|
+
status: Generated<CoreFlowEventStatus>;
|
|
890
|
+
syncId: string | null;
|
|
891
|
+
targetConnectionId: string | null;
|
|
892
|
+
targetFlowId: string | null;
|
|
893
|
+
tenantId: string;
|
|
894
|
+
updatedAt: Generated<Timestamp>;
|
|
895
|
+
}
|
|
896
|
+
export interface CoreFlowEventDelivery {
|
|
897
|
+
attempts: Generated<number>;
|
|
898
|
+
availableAt: Generated<Timestamp>;
|
|
899
|
+
claimedAt: Timestamp | null;
|
|
900
|
+
claimedBy: string | null;
|
|
901
|
+
completedAt: Timestamp | null;
|
|
902
|
+
connectionId: string;
|
|
903
|
+
createdAt: Generated<Timestamp>;
|
|
904
|
+
eventId: string;
|
|
905
|
+
flowId: string;
|
|
906
|
+
id: Generated<string>;
|
|
907
|
+
lastErrorCode: string | null;
|
|
908
|
+
lastErrorDetails: Json | null;
|
|
909
|
+
maxAttempts: Generated<number>;
|
|
910
|
+
status: Generated<CoreFlowEventStatus>;
|
|
911
|
+
tenantId: string;
|
|
912
|
+
triggerRunId: string | null;
|
|
913
|
+
updatedAt: Generated<Timestamp>;
|
|
914
|
+
}
|
|
915
|
+
export interface CoreFlowEventOperation {
|
|
916
|
+
action: CoreFlowEventOperationAction;
|
|
917
|
+
actor: string;
|
|
918
|
+
createdAt: Generated<Timestamp>;
|
|
919
|
+
eventId: string;
|
|
920
|
+
id: Generated<string>;
|
|
921
|
+
previousStatus: CoreFlowEventStatus;
|
|
922
|
+
reasonCode: string;
|
|
923
|
+
}
|
|
924
|
+
export interface CoreFlowEventSecret {
|
|
925
|
+
createdAt: Generated<Timestamp>;
|
|
926
|
+
encryptedPayload: string;
|
|
927
|
+
encryptionKeyId: string;
|
|
928
|
+
eventId: string;
|
|
929
|
+
expiresAt: Timestamp;
|
|
930
|
+
}
|
|
716
931
|
export interface CoreFlowMapping {
|
|
717
932
|
accountId: string | null;
|
|
718
933
|
bookingChannelId: string | null;
|
|
@@ -751,6 +966,56 @@ export interface CoreIssueMessageOverwrite {
|
|
|
751
966
|
pattern: string;
|
|
752
967
|
updatedAt: Generated<Timestamp | null>;
|
|
753
968
|
}
|
|
969
|
+
export interface CoreOperation {
|
|
970
|
+
createdAt: Generated<Timestamp>;
|
|
971
|
+
failureCode: string | null;
|
|
972
|
+
failureMessage: string | null;
|
|
973
|
+
finishedAt: Timestamp | null;
|
|
974
|
+
id: Generated<string>;
|
|
975
|
+
initiatedByUserId: string | null;
|
|
976
|
+
publicIdFormat: Generated<CoreOperationPublicIdFormat>;
|
|
977
|
+
retainUntil: Timestamp | null;
|
|
978
|
+
sourceVersion: Generated<Int8>;
|
|
979
|
+
startedAt: Timestamp | null;
|
|
980
|
+
status: Generated<CoreOperationStatus>;
|
|
981
|
+
tenantId: string;
|
|
982
|
+
type: CoreOperationType;
|
|
983
|
+
updatedAt: Generated<Timestamp>;
|
|
984
|
+
}
|
|
985
|
+
export interface CoreOperationBackfill {
|
|
986
|
+
completedAt: Timestamp | null;
|
|
987
|
+
createdAt: Generated<Timestamp>;
|
|
988
|
+
name: string;
|
|
989
|
+
updatedAt: Generated<Timestamp>;
|
|
990
|
+
}
|
|
991
|
+
export interface CoreOperationProjectionOutbox {
|
|
992
|
+
attempts: Generated<number>;
|
|
993
|
+
availableAt: Generated<Timestamp>;
|
|
994
|
+
createdAt: Generated<Timestamp>;
|
|
995
|
+
id: Generated<string>;
|
|
996
|
+
lastError: string | null;
|
|
997
|
+
operationId: string;
|
|
998
|
+
publishedAt: Timestamp | null;
|
|
999
|
+
sourceVersion: Int8;
|
|
1000
|
+
}
|
|
1001
|
+
export interface CoreOperationResource {
|
|
1002
|
+
createdAt: Generated<Timestamp>;
|
|
1003
|
+
isPrimary: Generated<boolean>;
|
|
1004
|
+
operationId: string;
|
|
1005
|
+
resourceId: string;
|
|
1006
|
+
resourceType: CoreOperationResourceType;
|
|
1007
|
+
role: CoreOperationResourceRole;
|
|
1008
|
+
}
|
|
1009
|
+
export interface CoreOperationSource {
|
|
1010
|
+
finishedAt: Timestamp | null;
|
|
1011
|
+
operationId: string;
|
|
1012
|
+
required: Generated<boolean>;
|
|
1013
|
+
sourceId: string;
|
|
1014
|
+
sourceType: CoreOperationSourceType;
|
|
1015
|
+
sourceVersion: Generated<Int8>;
|
|
1016
|
+
startedAt: Timestamp | null;
|
|
1017
|
+
status: Generated<CoreOperationStatus>;
|
|
1018
|
+
}
|
|
754
1019
|
export interface CoreSync {
|
|
755
1020
|
automationId: string | null;
|
|
756
1021
|
connectionId: string | null;
|
|
@@ -920,10 +1185,10 @@ export interface HealthAccountingIntegrityCase {
|
|
|
920
1185
|
repair: Json;
|
|
921
1186
|
resolutionClassification: HealthAccountingIntegrityResolutionClassification;
|
|
922
1187
|
resolvedAt: Timestamp | null;
|
|
923
|
-
reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
|
|
924
|
-
reviewRationale: string | null;
|
|
925
1188
|
reviewedAt: Timestamp | null;
|
|
926
1189
|
reviewedBy: string | null;
|
|
1190
|
+
reviewRationale: string | null;
|
|
1191
|
+
reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
|
|
927
1192
|
rootCause: string;
|
|
928
1193
|
runId: string;
|
|
929
1194
|
severity: HealthAccountingIntegritySeverity;
|
|
@@ -935,22 +1200,6 @@ export interface HealthAccountingIntegrityCase {
|
|
|
935
1200
|
verification: Json;
|
|
936
1201
|
version: Generated<Int8>;
|
|
937
1202
|
}
|
|
938
|
-
export interface HealthAccountingIntegrityOperatorEvent {
|
|
939
|
-
actorId: string;
|
|
940
|
-
caseId: string | null;
|
|
941
|
-
caseVersion: Int8 | null;
|
|
942
|
-
client: string;
|
|
943
|
-
createdAt: Generated<Timestamp>;
|
|
944
|
-
id: Generated<string>;
|
|
945
|
-
idempotencyKey: string;
|
|
946
|
-
payload: Json;
|
|
947
|
-
planId: string | null;
|
|
948
|
-
rationale: string | null;
|
|
949
|
-
requestId: string;
|
|
950
|
-
stageId: string | null;
|
|
951
|
-
targetId: string | null;
|
|
952
|
-
type: string;
|
|
953
|
-
}
|
|
954
1203
|
export interface HealthAccountingIntegrityDelivery {
|
|
955
1204
|
attempts: Generated<number>;
|
|
956
1205
|
caseId: string | null;
|
|
@@ -970,6 +1219,22 @@ export interface HealthAccountingIntegrityDelivery {
|
|
|
970
1219
|
status: Generated<HealthAccountingIntegrityDeliveryStatus>;
|
|
971
1220
|
updatedAt: Generated<Timestamp>;
|
|
972
1221
|
}
|
|
1222
|
+
export interface HealthAccountingIntegrityOperatorEvent {
|
|
1223
|
+
actorId: string;
|
|
1224
|
+
caseId: string | null;
|
|
1225
|
+
caseVersion: Int8 | null;
|
|
1226
|
+
client: string;
|
|
1227
|
+
createdAt: Generated<Timestamp>;
|
|
1228
|
+
id: Generated<string>;
|
|
1229
|
+
idempotencyKey: string;
|
|
1230
|
+
payload: Json;
|
|
1231
|
+
planId: string | null;
|
|
1232
|
+
rationale: string | null;
|
|
1233
|
+
requestId: string;
|
|
1234
|
+
stageId: string | null;
|
|
1235
|
+
targetId: string | null;
|
|
1236
|
+
type: string;
|
|
1237
|
+
}
|
|
973
1238
|
export interface HealthAccountingIntegrityRepairPlan {
|
|
974
1239
|
canceledAt: Timestamp | null;
|
|
975
1240
|
code: string;
|
|
@@ -1049,11 +1314,11 @@ export interface HealthAccountingIntegrityRun {
|
|
|
1049
1314
|
completedAt: Timestamp | null;
|
|
1050
1315
|
createdAt: Generated<Timestamp>;
|
|
1051
1316
|
dataRegion: string;
|
|
1052
|
-
definitionVersion: number;
|
|
1053
|
-
definitionVersionId: string | null;
|
|
1054
1317
|
definitionArtifactHash: string | null;
|
|
1055
1318
|
definitionTemplateId: string | null;
|
|
1056
1319
|
definitionTemplateVersion: number | null;
|
|
1320
|
+
definitionVersion: number;
|
|
1321
|
+
definitionVersionId: string | null;
|
|
1057
1322
|
environment: string;
|
|
1058
1323
|
error: Json | null;
|
|
1059
1324
|
evaluationId: string;
|
|
@@ -1426,15 +1691,6 @@ export interface PublicLatestDuplicateEmails {
|
|
|
1426
1691
|
name: string | null;
|
|
1427
1692
|
status: string | null;
|
|
1428
1693
|
}
|
|
1429
|
-
export interface PublicLineClassificationUsageCapture {
|
|
1430
|
-
createdAt: Generated<Timestamp>;
|
|
1431
|
-
firstSeenAt: Timestamp | null;
|
|
1432
|
-
id: Generated<string>;
|
|
1433
|
-
kind: string;
|
|
1434
|
-
lastSeenAt: Timestamp | null;
|
|
1435
|
-
name: string;
|
|
1436
|
-
tenantId: string;
|
|
1437
|
-
}
|
|
1438
1694
|
export interface PublicLineClassificationUsage {
|
|
1439
1695
|
appId: string | null;
|
|
1440
1696
|
createdAt: Generated<Timestamp>;
|
|
@@ -1456,6 +1712,15 @@ export interface PublicLineClassificationUsageBackfill {
|
|
|
1456
1712
|
source: string;
|
|
1457
1713
|
updatedAt: Generated<Timestamp>;
|
|
1458
1714
|
}
|
|
1715
|
+
export interface PublicLineClassificationUsageCapture {
|
|
1716
|
+
createdAt: Generated<Timestamp>;
|
|
1717
|
+
firstSeenAt: Timestamp | null;
|
|
1718
|
+
id: Generated<string>;
|
|
1719
|
+
kind: string;
|
|
1720
|
+
lastSeenAt: Timestamp | null;
|
|
1721
|
+
name: string;
|
|
1722
|
+
tenantId: string;
|
|
1723
|
+
}
|
|
1459
1724
|
export interface PublicListing {
|
|
1460
1725
|
address: string | null;
|
|
1461
1726
|
addressCity: string | null;
|
|
@@ -1845,6 +2110,7 @@ export interface PublicRecurringFeeType {
|
|
|
1845
2110
|
name: string;
|
|
1846
2111
|
}
|
|
1847
2112
|
export interface PublicReservation {
|
|
2113
|
+
adults: number | null;
|
|
1848
2114
|
bookedAt: Generated<Timestamp | null>;
|
|
1849
2115
|
bookerName: string | null;
|
|
1850
2116
|
bookingPlatform: string | null;
|
|
@@ -1863,6 +2129,7 @@ export interface PublicReservation {
|
|
|
1863
2129
|
channelId: string | null;
|
|
1864
2130
|
checkIn: Timestamp | null;
|
|
1865
2131
|
checkOut: Timestamp | null;
|
|
2132
|
+
children: number | null;
|
|
1866
2133
|
confirmationCode: string | null;
|
|
1867
2134
|
connectionId: string | null;
|
|
1868
2135
|
createdAt: Generated<Timestamp | null>;
|
|
@@ -2049,6 +2316,7 @@ export interface PublicTenant {
|
|
|
2049
2316
|
billingAddressData: Json | null;
|
|
2050
2317
|
billingAddressId: string | null;
|
|
2051
2318
|
billingCustomerId: string | null;
|
|
2319
|
+
billingSubscriptionId: string | null;
|
|
2052
2320
|
billingPartnerId: string | null;
|
|
2053
2321
|
billingPaymentMethodType: string | null;
|
|
2054
2322
|
billingPlan: string | null;
|
|
@@ -2129,6 +2397,16 @@ export interface PublicTenantUser {
|
|
|
2129
2397
|
updatedAt: Generated<Timestamp | null>;
|
|
2130
2398
|
userId: string;
|
|
2131
2399
|
}
|
|
2400
|
+
export interface PublicConnectionOauthState {
|
|
2401
|
+
appId: string;
|
|
2402
|
+
connectionId: string | null;
|
|
2403
|
+
expiresAt: Timestamp;
|
|
2404
|
+
params: JsonObject;
|
|
2405
|
+
redirectUri: string;
|
|
2406
|
+
stateHash: string;
|
|
2407
|
+
tenantId: string;
|
|
2408
|
+
userId: string;
|
|
2409
|
+
}
|
|
2132
2410
|
export interface PublicToken {
|
|
2133
2411
|
createdAt: Generated<Timestamp>;
|
|
2134
2412
|
expiresAt: Timestamp | null;
|
|
@@ -2365,10 +2643,13 @@ export interface WebhookSubscriptionSecret {
|
|
|
2365
2643
|
encryptionKeyId: string;
|
|
2366
2644
|
expiresAt: Timestamp | null;
|
|
2367
2645
|
id: Generated<string>;
|
|
2646
|
+
reencryptionFailedAt: Timestamp | null;
|
|
2647
|
+
reencryptionFailureCode: string | null;
|
|
2368
2648
|
revokedAt: Timestamp | null;
|
|
2369
2649
|
subscriptionId: string;
|
|
2370
2650
|
}
|
|
2371
2651
|
export interface DB {
|
|
2652
|
+
"public.connectionOauthState": PublicConnectionOauthState;
|
|
2372
2653
|
"accounting.account": AccountingAccount;
|
|
2373
2654
|
"accounting.accountAssignment": AccountingAccountAssignment;
|
|
2374
2655
|
"accounting.accountAssignmentLineType": AccountingAccountAssignmentLineType;
|
|
@@ -2406,6 +2687,10 @@ export interface DB {
|
|
|
2406
2687
|
"accounting.party": AccountingParty;
|
|
2407
2688
|
"accounting.rate": AccountingRate;
|
|
2408
2689
|
"accounting.rateType": AccountingRateType;
|
|
2690
|
+
"accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
|
|
2691
|
+
"accounting.reservationJournalInvalidation": AccountingReservationJournalInvalidation;
|
|
2692
|
+
"accounting.reservationJournalState": AccountingReservationJournalState;
|
|
2693
|
+
"accounting.reservationJournalStatementImpact": AccountingReservationJournalStatementImpact;
|
|
2409
2694
|
"accounting.taxBehavior": AccountingTaxBehavior;
|
|
2410
2695
|
"accounting.transaction": AccountingTransaction;
|
|
2411
2696
|
"accounting.transactionAttachment": AccountingTransactionAttachment;
|
|
@@ -2419,7 +2704,10 @@ export interface DB {
|
|
|
2419
2704
|
"audit.publicEvent": AuditPublicEvent;
|
|
2420
2705
|
"audit.publicEventEntryChange": AuditPublicEventEntryChange;
|
|
2421
2706
|
"audit.publicEventProjectionState": AuditPublicEventProjectionState;
|
|
2707
|
+
"billing.listingFact": BillingListingFact;
|
|
2708
|
+
"billing.listingFactReadiness": BillingListingFactReadiness;
|
|
2422
2709
|
"core.activeStatus": CoreActiveStatus;
|
|
2710
|
+
"core.asyncOperationResult": CoreAsyncOperationResult;
|
|
2423
2711
|
"core.change": CoreChange;
|
|
2424
2712
|
"core.changeEntityType": CoreChangeEntityType;
|
|
2425
2713
|
"core.changeLink": CoreChangeLink;
|
|
@@ -2427,10 +2715,23 @@ export interface DB {
|
|
|
2427
2715
|
"core.changeStatus": CoreChangeStatus;
|
|
2428
2716
|
"core.changeSyncType": CoreChangeSyncType;
|
|
2429
2717
|
"core.changeType": CoreChangeType;
|
|
2718
|
+
"core.csvOperationResult": CoreCsvOperationResult;
|
|
2719
|
+
"core.emailDelivery": CoreEmailDelivery;
|
|
2720
|
+
"core.emailNotification": CoreEmailNotification;
|
|
2721
|
+
"core.exportJob": CoreExportJob;
|
|
2430
2722
|
"core.flow": CoreFlow;
|
|
2723
|
+
"core.flowEvent": CoreFlowEvent;
|
|
2724
|
+
"core.flowEventDelivery": CoreFlowEventDelivery;
|
|
2725
|
+
"core.flowEventOperation": CoreFlowEventOperation;
|
|
2726
|
+
"core.flowEventSecret": CoreFlowEventSecret;
|
|
2431
2727
|
"core.flowMapping": CoreFlowMapping;
|
|
2432
2728
|
"core.flowSetting": CoreFlowSetting;
|
|
2433
2729
|
"core.issueMessageOverwrite": CoreIssueMessageOverwrite;
|
|
2730
|
+
"core.operation": CoreOperation;
|
|
2731
|
+
"core.operationBackfill": CoreOperationBackfill;
|
|
2732
|
+
"core.operationProjectionOutbox": CoreOperationProjectionOutbox;
|
|
2733
|
+
"core.operationResource": CoreOperationResource;
|
|
2734
|
+
"core.operationSource": CoreOperationSource;
|
|
2434
2735
|
"core.sync": CoreSync;
|
|
2435
2736
|
"core.syncStatus": CoreSyncStatus;
|
|
2436
2737
|
"core.syncSubtask": CoreSyncSubtask;
|
|
@@ -2448,8 +2749,8 @@ export interface DB {
|
|
|
2448
2749
|
"hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
|
|
2449
2750
|
"hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
|
|
2450
2751
|
"health.accountingIntegrityCase": HealthAccountingIntegrityCase;
|
|
2451
|
-
"health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
|
|
2452
2752
|
"health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
|
|
2753
|
+
"health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
|
|
2453
2754
|
"health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
|
|
2454
2755
|
"health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
|
|
2455
2756
|
"health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
|