@vrplatform/kysely 1.3.45-stage.6328 → 1.3.45-stage.633
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 +176 -0
- package/build/main/control-plane/index.js.map +1 -1
- package/build/main/index.d.ts +13 -2
- package/build/main/index.js +211 -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 +345 -6
- 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/0000000000025-partner-ach-denial-default.ts +30 -0
- package/build/migrations-v2/0000000000026-line-classification-usage-capture.ts +399 -0
- package/build/migrations-v2/0000000000027-payout-replacement-chain.ts +27 -0
- package/build/migrations-v2/0000000000028-accounting-integrity-operator-workflow.ts +108 -0
- package/build/migrations-v2/0000000000029-accounting-integrity-definition-artifacts.ts +40 -0
- package/build/migrations-v2/0000000000030-accounting-integrity-review-metadata-compatibility.ts +49 -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 +176 -0
- package/build/module/control-plane/index.js.map +1 -1
- package/build/module/index.d.ts +13 -2
- package/build/module/index.js +213 -27
- 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 +345 -6
- 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,9 +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
472
|
recurringTemplateId: string | null;
|
|
473
|
+
returnedFromTransactionId: string | null;
|
|
474
|
+
returnEffectiveAt: Timestamp | null;
|
|
416
475
|
/**
|
|
417
476
|
* Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
|
|
418
477
|
*/
|
|
@@ -476,6 +535,9 @@ export interface AuditAction {
|
|
|
476
535
|
actorId: string | null;
|
|
477
536
|
actorLabel: string | null;
|
|
478
537
|
actorName: string | null;
|
|
538
|
+
actorOrganizationId: string | null;
|
|
539
|
+
actorOrganizationName: string | null;
|
|
540
|
+
actorOrganizationType: AuditActorOrganizationType | null;
|
|
479
541
|
actorType: AuditActionActorType;
|
|
480
542
|
apiVersion: string;
|
|
481
543
|
createdAt: Generated<Timestamp>;
|
|
@@ -581,6 +643,7 @@ export interface AuditMutation {
|
|
|
581
643
|
id: Generated<string>;
|
|
582
644
|
op: string;
|
|
583
645
|
publicChanges: Generated<Json>;
|
|
646
|
+
publicOutcome: Json | null;
|
|
584
647
|
rootEntityId: string | null;
|
|
585
648
|
rootEntityType: string | null;
|
|
586
649
|
subjectId: string;
|
|
@@ -596,8 +659,13 @@ export interface AuditPublicEvent {
|
|
|
596
659
|
actorId: string | null;
|
|
597
660
|
actorLabel: string | null;
|
|
598
661
|
actorName: string | null;
|
|
662
|
+
actorOrganizationId: string | null;
|
|
663
|
+
actorOrganizationName: string | null;
|
|
664
|
+
actorOrganizationType: AuditActorOrganizationType | null;
|
|
599
665
|
actorType: AuditActionActorType;
|
|
600
666
|
affectedAccountIds: Generated<string[]>;
|
|
667
|
+
attemptedEntityChanges: Generated<Json>;
|
|
668
|
+
blockedBy: Generated<Json>;
|
|
601
669
|
changedEntityTypes: Generated<string[]>;
|
|
602
670
|
changedPaths: Generated<string[]>;
|
|
603
671
|
entityChanges: Generated<Json>;
|
|
@@ -612,6 +680,7 @@ export interface AuditPublicEvent {
|
|
|
612
680
|
projectionFingerprint: string;
|
|
613
681
|
projectionVersion: Generated<number>;
|
|
614
682
|
requestId: string | null;
|
|
683
|
+
recovery: Generated<Json>;
|
|
615
684
|
revision: Generated<number>;
|
|
616
685
|
rootEntityId: string;
|
|
617
686
|
rootEntityType: string;
|
|
@@ -642,9 +711,42 @@ export interface AuditPublicEventProjectionState {
|
|
|
642
711
|
retainedFrom: Timestamp | null;
|
|
643
712
|
singleton: Generated<boolean>;
|
|
644
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
|
+
}
|
|
645
737
|
export interface CoreActiveStatus {
|
|
646
738
|
name: string;
|
|
647
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
|
+
}
|
|
648
750
|
export interface CoreChange {
|
|
649
751
|
automationId: string | null;
|
|
650
752
|
changeData: Json | null;
|
|
@@ -696,6 +798,62 @@ export interface CoreChangeSyncType {
|
|
|
696
798
|
export interface CoreChangeType {
|
|
697
799
|
name: string;
|
|
698
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
|
+
}
|
|
699
857
|
export interface CoreFlow {
|
|
700
858
|
appId: string;
|
|
701
859
|
description: string | null;
|
|
@@ -712,6 +870,64 @@ export interface CoreFlow {
|
|
|
712
870
|
uniqueRef: string;
|
|
713
871
|
useGlobalMapping: Generated<boolean>;
|
|
714
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
|
+
}
|
|
715
931
|
export interface CoreFlowMapping {
|
|
716
932
|
accountId: string | null;
|
|
717
933
|
bookingChannelId: string | null;
|
|
@@ -750,6 +966,56 @@ export interface CoreIssueMessageOverwrite {
|
|
|
750
966
|
pattern: string;
|
|
751
967
|
updatedAt: Generated<Timestamp | null>;
|
|
752
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
|
+
}
|
|
753
1019
|
export interface CoreSync {
|
|
754
1020
|
automationId: string | null;
|
|
755
1021
|
connectionId: string | null;
|
|
@@ -895,6 +1161,8 @@ export interface HdbCatalogHdbVersion {
|
|
|
895
1161
|
export interface HealthAccountingIntegrityCase {
|
|
896
1162
|
actionability: HealthAccountingIntegrityActionability;
|
|
897
1163
|
actual: Json;
|
|
1164
|
+
assignedAt: Timestamp | null;
|
|
1165
|
+
assignedTo: string | null;
|
|
898
1166
|
caseKey: string;
|
|
899
1167
|
code: string;
|
|
900
1168
|
confidence: HealthAccountingIntegrityConfidence;
|
|
@@ -917,6 +1185,9 @@ export interface HealthAccountingIntegrityCase {
|
|
|
917
1185
|
repair: Json;
|
|
918
1186
|
resolutionClassification: HealthAccountingIntegrityResolutionClassification;
|
|
919
1187
|
resolvedAt: Timestamp | null;
|
|
1188
|
+
reviewedAt: Timestamp | null;
|
|
1189
|
+
reviewedBy: string | null;
|
|
1190
|
+
reviewRationale: string | null;
|
|
920
1191
|
reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
|
|
921
1192
|
rootCause: string;
|
|
922
1193
|
runId: string;
|
|
@@ -948,6 +1219,22 @@ export interface HealthAccountingIntegrityDelivery {
|
|
|
948
1219
|
status: Generated<HealthAccountingIntegrityDeliveryStatus>;
|
|
949
1220
|
updatedAt: Generated<Timestamp>;
|
|
950
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
|
+
}
|
|
951
1238
|
export interface HealthAccountingIntegrityRepairPlan {
|
|
952
1239
|
canceledAt: Timestamp | null;
|
|
953
1240
|
code: string;
|
|
@@ -1027,7 +1314,11 @@ export interface HealthAccountingIntegrityRun {
|
|
|
1027
1314
|
completedAt: Timestamp | null;
|
|
1028
1315
|
createdAt: Generated<Timestamp>;
|
|
1029
1316
|
dataRegion: string;
|
|
1317
|
+
definitionArtifactHash: string | null;
|
|
1318
|
+
definitionTemplateId: string | null;
|
|
1319
|
+
definitionTemplateVersion: number | null;
|
|
1030
1320
|
definitionVersion: number;
|
|
1321
|
+
definitionVersionId: string | null;
|
|
1031
1322
|
environment: string;
|
|
1032
1323
|
error: Json | null;
|
|
1033
1324
|
evaluationId: string;
|
|
@@ -1035,6 +1326,7 @@ export interface HealthAccountingIntegrityRun {
|
|
|
1035
1326
|
gitRevision: string;
|
|
1036
1327
|
id: Generated<string>;
|
|
1037
1328
|
openedCaseCount: Generated<Int8>;
|
|
1329
|
+
operatorDefinitionVersion: number | null;
|
|
1038
1330
|
reopenedCaseCount: Generated<Int8>;
|
|
1039
1331
|
resolvedCaseCount: Generated<Int8>;
|
|
1040
1332
|
resolvesCases: Generated<boolean>;
|
|
@@ -1420,6 +1712,15 @@ export interface PublicLineClassificationUsageBackfill {
|
|
|
1420
1712
|
source: string;
|
|
1421
1713
|
updatedAt: Generated<Timestamp>;
|
|
1422
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
|
+
}
|
|
1423
1724
|
export interface PublicListing {
|
|
1424
1725
|
address: string | null;
|
|
1425
1726
|
addressCity: string | null;
|
|
@@ -1809,6 +2110,7 @@ export interface PublicRecurringFeeType {
|
|
|
1809
2110
|
name: string;
|
|
1810
2111
|
}
|
|
1811
2112
|
export interface PublicReservation {
|
|
2113
|
+
adults: number | null;
|
|
1812
2114
|
bookedAt: Generated<Timestamp | null>;
|
|
1813
2115
|
bookerName: string | null;
|
|
1814
2116
|
bookingPlatform: string | null;
|
|
@@ -1827,6 +2129,7 @@ export interface PublicReservation {
|
|
|
1827
2129
|
channelId: string | null;
|
|
1828
2130
|
checkIn: Timestamp | null;
|
|
1829
2131
|
checkOut: Timestamp | null;
|
|
2132
|
+
children: number | null;
|
|
1830
2133
|
confirmationCode: string | null;
|
|
1831
2134
|
connectionId: string | null;
|
|
1832
2135
|
createdAt: Generated<Timestamp | null>;
|
|
@@ -2013,6 +2316,7 @@ export interface PublicTenant {
|
|
|
2013
2316
|
billingAddressData: Json | null;
|
|
2014
2317
|
billingAddressId: string | null;
|
|
2015
2318
|
billingCustomerId: string | null;
|
|
2319
|
+
billingSubscriptionId: string | null;
|
|
2016
2320
|
billingPartnerId: string | null;
|
|
2017
2321
|
billingPaymentMethodType: string | null;
|
|
2018
2322
|
billingPlan: string | null;
|
|
@@ -2093,6 +2397,16 @@ export interface PublicTenantUser {
|
|
|
2093
2397
|
updatedAt: Generated<Timestamp | null>;
|
|
2094
2398
|
userId: string;
|
|
2095
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
|
+
}
|
|
2096
2410
|
export interface PublicToken {
|
|
2097
2411
|
createdAt: Generated<Timestamp>;
|
|
2098
2412
|
expiresAt: Timestamp | null;
|
|
@@ -2329,10 +2643,13 @@ export interface WebhookSubscriptionSecret {
|
|
|
2329
2643
|
encryptionKeyId: string;
|
|
2330
2644
|
expiresAt: Timestamp | null;
|
|
2331
2645
|
id: Generated<string>;
|
|
2646
|
+
reencryptionFailedAt: Timestamp | null;
|
|
2647
|
+
reencryptionFailureCode: string | null;
|
|
2332
2648
|
revokedAt: Timestamp | null;
|
|
2333
2649
|
subscriptionId: string;
|
|
2334
2650
|
}
|
|
2335
2651
|
export interface DB {
|
|
2652
|
+
"public.connectionOauthState": PublicConnectionOauthState;
|
|
2336
2653
|
"accounting.account": AccountingAccount;
|
|
2337
2654
|
"accounting.accountAssignment": AccountingAccountAssignment;
|
|
2338
2655
|
"accounting.accountAssignmentLineType": AccountingAccountAssignmentLineType;
|
|
@@ -2370,6 +2687,10 @@ export interface DB {
|
|
|
2370
2687
|
"accounting.party": AccountingParty;
|
|
2371
2688
|
"accounting.rate": AccountingRate;
|
|
2372
2689
|
"accounting.rateType": AccountingRateType;
|
|
2690
|
+
"accounting.reservationJournalFreshnessControl": AccountingReservationJournalFreshnessControl;
|
|
2691
|
+
"accounting.reservationJournalInvalidation": AccountingReservationJournalInvalidation;
|
|
2692
|
+
"accounting.reservationJournalState": AccountingReservationJournalState;
|
|
2693
|
+
"accounting.reservationJournalStatementImpact": AccountingReservationJournalStatementImpact;
|
|
2373
2694
|
"accounting.taxBehavior": AccountingTaxBehavior;
|
|
2374
2695
|
"accounting.transaction": AccountingTransaction;
|
|
2375
2696
|
"accounting.transactionAttachment": AccountingTransactionAttachment;
|
|
@@ -2383,7 +2704,10 @@ export interface DB {
|
|
|
2383
2704
|
"audit.publicEvent": AuditPublicEvent;
|
|
2384
2705
|
"audit.publicEventEntryChange": AuditPublicEventEntryChange;
|
|
2385
2706
|
"audit.publicEventProjectionState": AuditPublicEventProjectionState;
|
|
2707
|
+
"billing.listingFact": BillingListingFact;
|
|
2708
|
+
"billing.listingFactReadiness": BillingListingFactReadiness;
|
|
2386
2709
|
"core.activeStatus": CoreActiveStatus;
|
|
2710
|
+
"core.asyncOperationResult": CoreAsyncOperationResult;
|
|
2387
2711
|
"core.change": CoreChange;
|
|
2388
2712
|
"core.changeEntityType": CoreChangeEntityType;
|
|
2389
2713
|
"core.changeLink": CoreChangeLink;
|
|
@@ -2391,10 +2715,23 @@ export interface DB {
|
|
|
2391
2715
|
"core.changeStatus": CoreChangeStatus;
|
|
2392
2716
|
"core.changeSyncType": CoreChangeSyncType;
|
|
2393
2717
|
"core.changeType": CoreChangeType;
|
|
2718
|
+
"core.csvOperationResult": CoreCsvOperationResult;
|
|
2719
|
+
"core.emailDelivery": CoreEmailDelivery;
|
|
2720
|
+
"core.emailNotification": CoreEmailNotification;
|
|
2721
|
+
"core.exportJob": CoreExportJob;
|
|
2394
2722
|
"core.flow": CoreFlow;
|
|
2723
|
+
"core.flowEvent": CoreFlowEvent;
|
|
2724
|
+
"core.flowEventDelivery": CoreFlowEventDelivery;
|
|
2725
|
+
"core.flowEventOperation": CoreFlowEventOperation;
|
|
2726
|
+
"core.flowEventSecret": CoreFlowEventSecret;
|
|
2395
2727
|
"core.flowMapping": CoreFlowMapping;
|
|
2396
2728
|
"core.flowSetting": CoreFlowSetting;
|
|
2397
2729
|
"core.issueMessageOverwrite": CoreIssueMessageOverwrite;
|
|
2730
|
+
"core.operation": CoreOperation;
|
|
2731
|
+
"core.operationBackfill": CoreOperationBackfill;
|
|
2732
|
+
"core.operationProjectionOutbox": CoreOperationProjectionOutbox;
|
|
2733
|
+
"core.operationResource": CoreOperationResource;
|
|
2734
|
+
"core.operationSource": CoreOperationSource;
|
|
2398
2735
|
"core.sync": CoreSync;
|
|
2399
2736
|
"core.syncStatus": CoreSyncStatus;
|
|
2400
2737
|
"core.syncSubtask": CoreSyncSubtask;
|
|
@@ -2413,6 +2750,7 @@ export interface DB {
|
|
|
2413
2750
|
"hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
|
|
2414
2751
|
"health.accountingIntegrityCase": HealthAccountingIntegrityCase;
|
|
2415
2752
|
"health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
|
|
2753
|
+
"health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
|
|
2416
2754
|
"health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
|
|
2417
2755
|
"health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
|
|
2418
2756
|
"health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
|
|
@@ -2452,6 +2790,7 @@ export interface DB {
|
|
|
2452
2790
|
"public.latestDuplicateEmails": PublicLatestDuplicateEmails;
|
|
2453
2791
|
"public.lineClassificationUsage": PublicLineClassificationUsage;
|
|
2454
2792
|
"public.lineClassificationUsageBackfill": PublicLineClassificationUsageBackfill;
|
|
2793
|
+
"public.lineClassificationUsageCapture": PublicLineClassificationUsageCapture;
|
|
2455
2794
|
"public.listing": PublicListing;
|
|
2456
2795
|
"public.listingCollection": PublicListingCollection;
|
|
2457
2796
|
"public.listingConnection": PublicListingConnection;
|