@vrplatform/kysely 1.3.41-stage.4319 → 1.3.45-1
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 +0 -0
- package/build/main/camel-case/index.js +1 -1
- package/build/main/camel-case/index.js.map +1 -1
- package/build/main/control-plane/index.d.ts +240 -14
- package/build/main/control-plane/index.js +61 -0
- package/build/main/control-plane/index.js.map +1 -1
- package/build/main/domain.d.ts +4 -0
- package/build/main/domain.js +3 -0
- package/build/main/domain.js.map +1 -0
- package/build/main/error.d.ts +2 -1
- package/build/main/error.js +2 -1
- package/build/main/error.js.map +1 -1
- package/build/main/index.d.ts +10 -15
- package/build/main/index.js +140 -58
- package/build/main/index.js.map +1 -1
- package/build/main/isomorphic.d.ts +5 -5
- package/build/main/isomorphic.js +2 -8
- package/build/main/isomorphic.js.map +1 -1
- package/build/main/local/digest.d.ts +3 -3
- package/build/main/local/digest.js.map +1 -1
- package/build/main/local/generate.js +10 -10
- package/build/main/local/generate.js.map +1 -1
- package/build/main/local/index.d.ts +5 -1
- package/build/main/local/index.js +215 -6
- package/build/main/local/index.js.map +1 -1
- package/build/main/local/prune-pulled-schema.js +4 -1
- package/build/main/local/prune-pulled-schema.js.map +1 -1
- package/build/main/migration.d.ts +7 -0
- package/build/main/migration.js +11 -0
- package/build/main/migration.js.map +1 -0
- package/build/main/plugins.d.ts +2 -2
- package/build/main/plugins.js.map +1 -1
- package/build/main/postgres-error.d.ts +8 -0
- package/build/main/postgres-error.js +21 -0
- package/build/main/postgres-error.js.map +1 -0
- package/build/main/query/index.d.ts +1 -0
- package/build/main/query/index.js +1 -0
- package/build/main/query/index.js.map +1 -1
- package/build/main/query/listing/status.d.ts +0 -10
- package/build/main/query/listing/status.js +29 -18
- package/build/main/query/listing/status.js.map +1 -1
- package/build/main/query/tenant/billing-partner.d.ts +4 -0
- package/build/main/query/tenant/billing-partner.js +8 -0
- package/build/main/query/tenant/billing-partner.js.map +1 -0
- package/build/main/query/tenant/index.d.ts +2 -0
- package/build/main/query/tenant/index.js +19 -0
- package/build/main/query/tenant/index.js.map +1 -0
- package/build/main/query/tenant/status.d.ts +14 -0
- package/build/main/query/tenant/status.js +40 -0
- package/build/main/query/tenant/status.js.map +1 -0
- package/build/main/regional.d.ts +29 -3
- package/build/main/regional.js +68 -8
- package/build/main/regional.js.map +1 -1
- package/build/main/test/index.d.ts +3 -14
- package/build/main/test/index.js +0 -23
- package/build/main/test/index.js.map +1 -1
- package/build/main/transaction.d.ts +3 -3
- package/build/main/transaction.js.map +1 -1
- package/build/main/v1.generated.d.ts +577 -24
- package/build/main/v1.generated.js.map +1 -1
- package/build/migrations-v2/0000000000000-baseline.ts +5 -0
- package/build/migrations-v2/0000000000001-public-audit-events-v2.ts +137 -0
- package/build/migrations-v2/0000000000002-audit-recovery-watermarks.ts +30 -0
- package/build/migrations-v2/0000000000003-audit-effect-recovery-watermark.ts +13 -0
- package/build/migrations-v2/0000000000004-audit-event-projected-at.ts +15 -0
- package/build/migrations-v2/0000000000005-audit-recovery-indexes.ts +63 -0
- package/build/migrations-v2/0000000000006-audit-action-public-event-projected-at.ts +22 -0
- package/build/migrations-v2/0000000000007-audit-action-public-event-projected-at-backfill.ts +35 -0
- package/build/migrations-v2/0000000000008-global-user-attribution.ts +33 -0
- package/build/migrations-v2/0000000000008-team-issue-rule-state.ts +52 -0
- package/build/migrations-v2/0000000000009-reservation-issue-projections.ts +45 -0
- package/build/migrations-v2/0000000000010-bank-rule-application-bank-record-delete-cascade.ts +26 -0
- package/build/migrations-v2/0000000000011-guest-balance-journal-entry-lookup-index.ts +25 -0
- package/build/migrations-v2/0000000000012-trial-free-analytics-billing-status.ts +72 -0
- package/build/migrations-v2/0000000000013-ui-permission-bundles.ts +45 -0
- package/build/migrations-v2/0000000000014-ui-permission-bundle-top-up.ts +32 -0
- package/build/migrations-v2/0000000000016-managed-team-access.ts +34 -0
- package/build/migrations-v2/0000000000017-drop-trial-until.ts +42 -0
- package/build/migrations-v2/0000000000018-accounting-integrity-monitoring.ts +276 -0
- package/build/migrations-v2/0000000000019-accounting-integrity-run-shards.ts +26 -0
- package/build/migrations-v2/0000000000020-accounting-integrity-case-classification.ts +52 -0
- package/build/migrations-v2/0000000000021-payment-line-classification-monitor-indexes.ts +31 -0
- package/build/migrations-v2/0000000000022-accounting-integrity-controlled-repairs.ts +281 -0
- package/build/migrations-v2/0000000000023-line-classification-usage.ts +325 -0
- package/build/migrations-v2/0000000000024-tenant-region-migration.ts +108 -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/module/camel-case/index.js +1 -1
- package/build/module/camel-case/index.js.map +1 -1
- package/build/module/control-plane/index.d.ts +240 -14
- package/build/module/control-plane/index.js +49 -1
- package/build/module/control-plane/index.js.map +1 -1
- package/build/module/domain.d.ts +4 -0
- package/build/module/domain.js +2 -0
- package/build/module/domain.js.map +1 -0
- package/build/module/error.d.ts +2 -1
- package/build/module/error.js +3 -1
- package/build/module/error.js.map +1 -1
- package/build/module/index.d.ts +10 -15
- package/build/module/index.js +141 -56
- package/build/module/index.js.map +1 -1
- package/build/module/isomorphic.d.ts +5 -5
- package/build/module/isomorphic.js +1 -6
- package/build/module/isomorphic.js.map +1 -1
- package/build/module/local/digest.d.ts +3 -3
- package/build/module/local/digest.js.map +1 -1
- package/build/module/local/generate.js +10 -10
- package/build/module/local/generate.js.map +1 -1
- package/build/module/local/index.d.ts +5 -1
- package/build/module/local/index.js +216 -7
- package/build/module/local/index.js.map +1 -1
- package/build/module/local/prune-pulled-schema.js +4 -1
- package/build/module/local/prune-pulled-schema.js.map +1 -1
- package/build/module/migration.d.ts +7 -0
- package/build/module/migration.js +8 -0
- package/build/module/migration.js.map +1 -0
- package/build/module/plugins.d.ts +2 -2
- package/build/module/plugins.js.map +1 -1
- package/build/module/postgres-error.d.ts +8 -0
- package/build/module/postgres-error.js +18 -0
- package/build/module/postgres-error.js.map +1 -0
- package/build/module/query/index.d.ts +1 -0
- package/build/module/query/index.js +1 -0
- package/build/module/query/index.js.map +1 -1
- package/build/module/query/listing/status.d.ts +0 -10
- package/build/module/query/listing/status.js +29 -16
- package/build/module/query/listing/status.js.map +1 -1
- package/build/module/query/tenant/billing-partner.d.ts +4 -0
- package/build/module/query/tenant/billing-partner.js +5 -0
- package/build/module/query/tenant/billing-partner.js.map +1 -0
- package/build/module/query/tenant/index.d.ts +2 -0
- package/build/module/query/tenant/index.js +3 -0
- package/build/module/query/tenant/index.js.map +1 -0
- package/build/module/query/tenant/status.d.ts +14 -0
- package/build/module/query/tenant/status.js +35 -0
- package/build/module/query/tenant/status.js.map +1 -0
- package/build/module/regional.d.ts +29 -3
- package/build/module/regional.js +67 -8
- package/build/module/regional.js.map +1 -1
- package/build/module/test/index.d.ts +3 -14
- package/build/module/test/index.js +1 -23
- package/build/module/test/index.js.map +1 -1
- package/build/module/transaction.d.ts +3 -3
- package/build/module/transaction.js.map +1 -1
- package/build/module/v1.generated.d.ts +577 -24
- package/build/module/v1.generated.js.map +1 -1
- package/package.json +8 -8
- package/build/migrations/0000000000001-init.ts +0 -5
- package/build/migrations/0000000000009-drop-store-schema.ts +0 -14
- package/build/migrations/0000000000010-bank-rules.ts +0 -190
- package/build/migrations/0000000000011-bank-rule-line-adjustments.ts +0 -65
- package/build/migrations/0000000000012-bank-rule-conditions.ts +0 -45
- package/build/migrations/0000000000013-bank-rule-name-unique.ts +0 -15
- package/build/migrations/0000000000014-bank-rule-drop-legacy-conditions.ts +0 -41
- package/build/migrations/0000000000015-booking-channel-logo-dev-provider.ts +0 -70
- package/build/migrations/0000000000016-owner-statement-draft-status.ts +0 -22
- package/build/migrations/0000000000017-tenant-migration-markers.ts +0 -18
- package/build/migrations/0000000000018-security-deposits-payable-category.ts +0 -63
- package/build/migrations/0000000000019-tenant-app-settings.ts +0 -76
- package/build/migrations/0000000000020-operating-opening-trial-balance.ts +0 -36
- package/build/migrations/0000000000021-audit-foreign-key-indexes.ts +0 -77
- package/build/migrations/0000000000022-opening-trial-balance-combined-columns.ts +0 -30
- package/build/migrations/0000000000023-journal-entry-currency-mismatch-reason.ts +0 -14
- package/build/migrations/0000000000024-listing-parent.ts +0 -37
- package/build/migrations/0000000000025-journal-entry-parent-listing.ts +0 -26
- package/build/migrations/0000000000026-booking-channel-logo-slots.ts +0 -89
- package/build/migrations/0000000000027-list-browse-performance-indexes.ts +0 -52
- package/build/migrations/0000000000028-flow-setting-status-jsonb.ts +0 -20
- package/build/migrations/0000000000029-tenant-slug.ts +0 -328
- package/build/migrations/0000000000030-pms-accounting-windows.ts +0 -50
- package/build/migrations/0000000000031-owner-statement-projection-listing-revision.ts +0 -20
- package/build/migrations/0000000000032-flow-event-listening.ts +0 -28
- package/build/migrations/0000000000033-opening-trial-balance-transaction.ts +0 -272
- package/build/migrations/0000000000034-historic-general-ledger.ts +0 -24
- package/build/migrations/0000000000035-tenant-regional-placement.ts +0 -37
- package/build/migrations/0000000000036-control-plane-projection-events.ts +0 -43
- package/build/migrations/0000000000037-tenant-guide-onboarding.ts +0 -21
- package/build/migrations/0000000000038-tracking-event-analytics-sink.ts +0 -31
- package/build/migrations/0000000000039-crunchy-region.ts +0 -86
- package/build/migrations/0000000000040-hostaway-region.ts +0 -72
- package/build/migrations/0000000000041-audit-tenant-fk.ts +0 -66
- package/build/migrations/0000000000042-ramp-staging-connect-params.ts +0 -35
- package/build/migrations/0000000000043-gl-pms-accounting-window-guard.ts +0 -125
- package/build/migrations/0000000000044-tenant-cross-region-fks.ts +0 -45
- package/build/migrations/0000000000045-cloudflare-region-env.ts +0 -100
- package/build/migrations/0000000000046-control-plane-outbox-alias.ts +0 -46
|
@@ -6,11 +6,36 @@ import type { ColumnType } from "kysely";
|
|
|
6
6
|
export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "currencyMismatch" | "generalLedgerStartAt" | "inactiveAccount" | "listingInactive" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unknownInactiveReason";
|
|
7
7
|
export type AccountingJournalEntryLedger = "historical" | "operating" | "trust";
|
|
8
8
|
export type AccountingTransactionAttachmentStatus = "attached" | "deleting" | "ready" | "uploading";
|
|
9
|
-
export type
|
|
9
|
+
export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[] ? U[] : ArrayTypeImpl<T>;
|
|
10
|
+
export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
|
|
11
|
+
export type AuditActionActorType = "api_key" | "automation" | "sync" | "system" | "user";
|
|
10
12
|
export type AuditEffectAttemptStatus = "completed" | "failed" | "running" | "skipped_locked";
|
|
11
13
|
export type AuditEffectStatus = "claimed" | "completed" | "dead_letter" | "failed" | "pending" | "running";
|
|
12
14
|
export type AuditJournalDeltaOperation = "delete" | "insert" | "update";
|
|
15
|
+
export type AuditPublicEventAccountingStatus = "blocked" | "changed" | "failed" | "mixed" | "not_applicable" | "pending" | "unchanged";
|
|
16
|
+
export type AuditPublicEventOperation = "archive" | "create" | "delete" | "execute" | "recalculate" | "restore" | "update";
|
|
17
|
+
export type AuditSourceType = "api" | "automation" | "integration" | "portal" | "sync" | "system";
|
|
13
18
|
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
19
|
+
export type HealthAccountingIntegrityActionability = "automatically_repairable" | "blocked" | "code_fix_required" | "manual_repair" | "unknown";
|
|
20
|
+
export type HealthAccountingIntegrityCaseStatus = "open" | "resolved";
|
|
21
|
+
export type HealthAccountingIntegrityConfidence = "probable" | "proven" | "unknown";
|
|
22
|
+
export type HealthAccountingIntegrityDeliveryChannel = "sentry" | "slack";
|
|
23
|
+
export type HealthAccountingIntegrityDeliveryStatus = "dead_letter" | "delivered" | "failed" | "pending" | "processing" | "suppressed";
|
|
24
|
+
export type HealthAccountingIntegrityRepairPlanStatus = "active" | "canceled" | "completed" | "draft" | "failed" | "paused";
|
|
25
|
+
export type HealthAccountingIntegrityRepairScopeType = "case" | "tenant";
|
|
26
|
+
export type HealthAccountingIntegrityRepairStageStatus = "applying" | "approved" | "canceled" | "dry_run_passed" | "failed" | "paused" | "planned" | "verified" | "verifying";
|
|
27
|
+
export type HealthAccountingIntegrityRepairTargetStatus = "applied" | "applying" | "canceled" | "failed" | "paused" | "pending" | "verified" | "verifying";
|
|
28
|
+
export type HealthAccountingIntegrityRepairTransitionType = "approval_granted" | "approval_invalidated" | "canceled" | "completed" | "dry_run_passed" | "failed" | "paused" | "plan_activated" | "plan_created" | "stage_applying" | "stage_verified" | "target_applied" | "target_applying" | "target_verified" | "target_verifying";
|
|
29
|
+
export type HealthAccountingIntegrityResolutionClassification = "code_fix" | "configuration" | "data_repair" | "expected" | "false_positive" | "monitor_fix" | "unknown";
|
|
30
|
+
export type HealthAccountingIntegrityReviewStatus = "confirmed_issue" | "expected" | "false_positive" | "unreviewed";
|
|
31
|
+
export type HealthAccountingIntegrityRunStatus = "completed" | "failed" | "running" | "skipped";
|
|
32
|
+
export type HealthAccountingIntegritySeverity = "critical" | "error" | "info" | "warning";
|
|
33
|
+
export type HealthAccountingIntegrityTransitionType = "changed" | "opened" | "reopened" | "resolved" | "reviewed";
|
|
34
|
+
export type HealthAccountingIntegrityUrgency = "backlog" | "immediate" | "next_triage" | "none";
|
|
35
|
+
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";
|
|
37
|
+
export type HealthTenantIssueSeverity = "error" | "warning";
|
|
38
|
+
export type HealthTenantIssueStatus = "open" | "resolved";
|
|
14
39
|
export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
|
|
15
40
|
export type Json = JsonValue;
|
|
16
41
|
export type JsonArray = JsonValue[];
|
|
@@ -21,8 +46,17 @@ export type JsonPrimitive = boolean | number | string | null;
|
|
|
21
46
|
export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
|
|
22
47
|
export type Numeric = ColumnType<string, number | string, number | string>;
|
|
23
48
|
export type PublicFlowType = "pull" | "push";
|
|
49
|
+
export type PublicPlaidConnectMode = "create" | "replace" | "update";
|
|
50
|
+
export type PublicPlaidConnectStatus = "awaitingConfiguration" | "completed" | "configuring" | "credentialsStored" | "discoveringAccounts" | "exchangeOutcomeUnknown" | "exchanging" | "expired" | "failed" | "pendingLink";
|
|
24
51
|
export type PublicRecurringFeeConditionOperator = "<" | "<=" | "=" | ">" | ">=";
|
|
25
52
|
export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
|
|
53
|
+
export type WebhookApiVersion = "2026-07-01";
|
|
54
|
+
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";
|
|
58
|
+
export type WebhookSubscriptionScope = "managedTeams" | "self";
|
|
59
|
+
export type WebhookSubscriptionStatus = "active" | "disabled" | "pending";
|
|
26
60
|
export interface AccountingAccount {
|
|
27
61
|
bankingCategory: string | null;
|
|
28
62
|
bankingCurrency: string | null;
|
|
@@ -36,8 +70,6 @@ export interface AccountingAccount {
|
|
|
36
70
|
createdAt: Generated<Timestamp | null>;
|
|
37
71
|
id: Generated<string>;
|
|
38
72
|
offsetAccountId: string | null;
|
|
39
|
-
openingTrialBalanceCombinedCentTotal: Generated<Int8>;
|
|
40
|
-
openingTrialBalanceUpdatedAt: Timestamp | null;
|
|
41
73
|
status: Generated<string>;
|
|
42
74
|
tenantId: string | null;
|
|
43
75
|
title: string;
|
|
@@ -72,24 +104,7 @@ export interface AccountingAccountCategory {
|
|
|
72
104
|
export interface AccountingAccountClassification {
|
|
73
105
|
name: string;
|
|
74
106
|
}
|
|
75
|
-
export interface
|
|
76
|
-
accountId: string | null;
|
|
77
|
-
bookingChannel: string | null;
|
|
78
|
-
createdAt: Generated<Timestamp>;
|
|
79
|
-
id: Generated<string>;
|
|
80
|
-
lineType: string;
|
|
81
|
-
revenueRecognition: string | null;
|
|
82
|
-
status: Generated<string | null>;
|
|
83
|
-
tenantId: string;
|
|
84
|
-
updatedAt: Generated<Timestamp>;
|
|
85
|
-
}
|
|
86
|
-
export interface AccountingAccountReservationRevRec {
|
|
87
|
-
name: string;
|
|
88
|
-
}
|
|
89
|
-
export interface AccountingAccountType {
|
|
90
|
-
name: string;
|
|
91
|
-
}
|
|
92
|
-
export interface AccountingBankAccount {
|
|
107
|
+
export interface AccountingAccountConnection {
|
|
93
108
|
accountId: string | null;
|
|
94
109
|
category: Generated<string | null>;
|
|
95
110
|
connectionId: string | null;
|
|
@@ -99,6 +114,7 @@ export interface AccountingBankAccount {
|
|
|
99
114
|
id: Generated<string>;
|
|
100
115
|
lastDigits: string | null;
|
|
101
116
|
name: string | null;
|
|
117
|
+
persistentRef: string | null;
|
|
102
118
|
sourceId: string | null;
|
|
103
119
|
startDate: Timestamp | null;
|
|
104
120
|
/**
|
|
@@ -111,6 +127,23 @@ export interface AccountingBankAccount {
|
|
|
111
127
|
uniqueRef: string | null;
|
|
112
128
|
updatedAt: Generated<Timestamp>;
|
|
113
129
|
}
|
|
130
|
+
export interface AccountingAccountReservationLineType {
|
|
131
|
+
accountId: string | null;
|
|
132
|
+
bookingChannel: string | null;
|
|
133
|
+
createdAt: Generated<Timestamp>;
|
|
134
|
+
id: Generated<string>;
|
|
135
|
+
lineType: string;
|
|
136
|
+
revenueRecognition: string | null;
|
|
137
|
+
status: Generated<string | null>;
|
|
138
|
+
tenantId: string;
|
|
139
|
+
updatedAt: Generated<Timestamp>;
|
|
140
|
+
}
|
|
141
|
+
export interface AccountingAccountReservationRevRec {
|
|
142
|
+
name: string;
|
|
143
|
+
}
|
|
144
|
+
export interface AccountingAccountType {
|
|
145
|
+
name: string;
|
|
146
|
+
}
|
|
114
147
|
export interface AccountingBankAccountCategory {
|
|
115
148
|
name: string;
|
|
116
149
|
}
|
|
@@ -118,8 +151,8 @@ export interface AccountingBankAccountType {
|
|
|
118
151
|
name: string;
|
|
119
152
|
}
|
|
120
153
|
export interface AccountingBankRecord {
|
|
154
|
+
accountConnectionId: string | null;
|
|
121
155
|
accountId: string | null;
|
|
122
|
-
bankAccountId: string | null;
|
|
123
156
|
calculatedCentBalance: number | null;
|
|
124
157
|
calculatedCentTotalCorrection: number | null;
|
|
125
158
|
centBalance: number | null;
|
|
@@ -242,6 +275,7 @@ export interface AccountingContact {
|
|
|
242
275
|
is1099PostalDelivery: Generated<boolean>;
|
|
243
276
|
name: string;
|
|
244
277
|
phone: string | null;
|
|
278
|
+
rampLast4Digits: string | null;
|
|
245
279
|
/**
|
|
246
280
|
* Human-readable system ID (CNT-XXX-XXXX-XXX).
|
|
247
281
|
*/
|
|
@@ -317,6 +351,12 @@ export interface AccountingOwnerStatementProjection {
|
|
|
317
351
|
tenantId: string;
|
|
318
352
|
variant: string;
|
|
319
353
|
}
|
|
354
|
+
export interface AccountingOwnerStatementProjectionListingRevision {
|
|
355
|
+
listingId: string;
|
|
356
|
+
revision: Generated<Int8>;
|
|
357
|
+
tenantId: string;
|
|
358
|
+
updatedAt: Generated<Timestamp>;
|
|
359
|
+
}
|
|
320
360
|
export interface AccountingOwnerStatementProjectionRevision {
|
|
321
361
|
revision: Generated<Int8>;
|
|
322
362
|
tenantId: string;
|
|
@@ -372,6 +412,7 @@ export interface AccountingTransaction {
|
|
|
372
412
|
paidStatus: Generated<string | null>;
|
|
373
413
|
recurringFeeId: string | null;
|
|
374
414
|
recurringPattern: Json | null;
|
|
415
|
+
recreatedFromTransactionId: string | null;
|
|
375
416
|
recurringTemplateId: string | null;
|
|
376
417
|
/**
|
|
377
418
|
* Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
|
|
@@ -383,6 +424,7 @@ export interface AccountingTransaction {
|
|
|
383
424
|
type: string;
|
|
384
425
|
uniqueRef: string | null;
|
|
385
426
|
updatedAt: Generated<Timestamp>;
|
|
427
|
+
webhookVersion: Generated<Int8>;
|
|
386
428
|
}
|
|
387
429
|
export interface AccountingTransactionAttachment {
|
|
388
430
|
byteSize: number;
|
|
@@ -431,7 +473,10 @@ export interface AccountingTransactionType {
|
|
|
431
473
|
}
|
|
432
474
|
export interface AuditAction {
|
|
433
475
|
actionType: string;
|
|
476
|
+
actorEmail: string | null;
|
|
434
477
|
actorId: string | null;
|
|
478
|
+
actorLabel: string | null;
|
|
479
|
+
actorName: string | null;
|
|
435
480
|
actorType: AuditActionActorType;
|
|
436
481
|
apiVersion: string;
|
|
437
482
|
createdAt: Generated<Timestamp>;
|
|
@@ -439,14 +484,17 @@ export interface AuditAction {
|
|
|
439
484
|
message: string | null;
|
|
440
485
|
parentActionId: string | null;
|
|
441
486
|
payload: Json | null;
|
|
487
|
+
publicEventProjectedAt: Timestamp | null;
|
|
442
488
|
requestId: string | null;
|
|
443
489
|
rootEntityId: string | null;
|
|
444
490
|
rootEntityType: string | null;
|
|
445
491
|
source: string | null;
|
|
492
|
+
sourceType: AuditSourceType | null;
|
|
446
493
|
tenantId: string;
|
|
447
494
|
traceId: string | null;
|
|
448
495
|
}
|
|
449
496
|
export interface AuditEffect {
|
|
497
|
+
accountingRelevant: Generated<boolean>;
|
|
450
498
|
actionId: string;
|
|
451
499
|
claimedAt: Timestamp | null;
|
|
452
500
|
claimedBy: string | null;
|
|
@@ -484,8 +532,16 @@ export interface AuditEffectAttempt {
|
|
|
484
532
|
workerId: string | null;
|
|
485
533
|
}
|
|
486
534
|
export interface AuditJournalDelta {
|
|
535
|
+
accountCategoryIdAfter: string | null;
|
|
536
|
+
accountCategoryIdBefore: string | null;
|
|
537
|
+
accountCategoryNameAfter: string | null;
|
|
538
|
+
accountCategoryNameBefore: string | null;
|
|
539
|
+
accountClassificationAfter: string | null;
|
|
540
|
+
accountClassificationBefore: string | null;
|
|
487
541
|
accountIdAfter: string | null;
|
|
488
542
|
accountIdBefore: string | null;
|
|
543
|
+
accountNameAfter: string | null;
|
|
544
|
+
accountNameBefore: string | null;
|
|
489
545
|
actionId: string;
|
|
490
546
|
apiVersion: string;
|
|
491
547
|
attachedToOwnerStatementIdAfter: string | null;
|
|
@@ -494,10 +550,14 @@ export interface AuditJournalDelta {
|
|
|
494
550
|
centTotalBefore: Int8 | null;
|
|
495
551
|
changedAt: Generated<Timestamp>;
|
|
496
552
|
changedFields: Generated<string[]>;
|
|
553
|
+
currencyAfter: string | null;
|
|
554
|
+
currencyBefore: string | null;
|
|
497
555
|
diffJson: Json | null;
|
|
498
556
|
effectId: string | null;
|
|
499
557
|
id: Generated<string>;
|
|
500
558
|
journalEntryId: string;
|
|
559
|
+
ledgerAfter: string | null;
|
|
560
|
+
ledgerBefore: string | null;
|
|
501
561
|
listingOwnershipPeriodIdAfter: string | null;
|
|
502
562
|
listingOwnershipPeriodIdBefore: string | null;
|
|
503
563
|
mutationId: string | null;
|
|
@@ -513,18 +573,76 @@ export interface AuditJournalDelta {
|
|
|
513
573
|
txnAtBefore: Timestamp | null;
|
|
514
574
|
}
|
|
515
575
|
export interface AuditMutation {
|
|
576
|
+
accountingRelevant: Generated<boolean>;
|
|
516
577
|
actionId: string;
|
|
578
|
+
captureOrder: Generated<Int8 | null>;
|
|
517
579
|
changeRecord: Json;
|
|
518
580
|
createdAt: Generated<Timestamp>;
|
|
519
581
|
effectId: string | null;
|
|
520
582
|
id: Generated<string>;
|
|
521
583
|
op: string;
|
|
584
|
+
publicChanges: Generated<Json>;
|
|
522
585
|
rootEntityId: string | null;
|
|
523
586
|
rootEntityType: string | null;
|
|
524
587
|
subjectId: string;
|
|
525
588
|
subjectType: string;
|
|
526
589
|
tenantId: string;
|
|
527
590
|
}
|
|
591
|
+
export interface AuditPublicEvent {
|
|
592
|
+
accountingStatus: AuditPublicEventAccountingStatus;
|
|
593
|
+
actionCode: string;
|
|
594
|
+
actionId: string;
|
|
595
|
+
actionSummary: string;
|
|
596
|
+
actorEmail: string | null;
|
|
597
|
+
actorId: string | null;
|
|
598
|
+
actorLabel: string | null;
|
|
599
|
+
actorName: string | null;
|
|
600
|
+
actorType: AuditActionActorType;
|
|
601
|
+
affectedAccountIds: Generated<string[]>;
|
|
602
|
+
changedEntityTypes: Generated<string[]>;
|
|
603
|
+
changedPaths: Generated<string[]>;
|
|
604
|
+
entityChanges: Generated<Json>;
|
|
605
|
+
entityName: string | null;
|
|
606
|
+
entityUniqueRef: string | null;
|
|
607
|
+
hasChanges: Generated<boolean>;
|
|
608
|
+
id: Generated<string>;
|
|
609
|
+
netEffect: Generated<Json>;
|
|
610
|
+
occurredAt: Timestamp;
|
|
611
|
+
operation: AuditPublicEventOperation;
|
|
612
|
+
projectedAt: Generated<Timestamp>;
|
|
613
|
+
projectionFingerprint: string;
|
|
614
|
+
projectionVersion: Generated<number>;
|
|
615
|
+
requestId: string | null;
|
|
616
|
+
revision: Generated<number>;
|
|
617
|
+
rootEntityId: string;
|
|
618
|
+
rootEntityType: string;
|
|
619
|
+
sourceType: AuditSourceType;
|
|
620
|
+
teamName: string;
|
|
621
|
+
teamUniqueRef: string | null;
|
|
622
|
+
tenantId: string;
|
|
623
|
+
updatedAt: Generated<Timestamp>;
|
|
624
|
+
}
|
|
625
|
+
export interface AuditPublicEventEntryChange {
|
|
626
|
+
accountIdAfter: string | null;
|
|
627
|
+
accountIdBefore: string | null;
|
|
628
|
+
afterSnapshot: Json | null;
|
|
629
|
+
beforeSnapshot: Json | null;
|
|
630
|
+
causedBy: Json | null;
|
|
631
|
+
changedAt: Timestamp;
|
|
632
|
+
changedFields: Generated<string[]>;
|
|
633
|
+
eventId: string;
|
|
634
|
+
eventRevision: number;
|
|
635
|
+
id: string;
|
|
636
|
+
journalEntryId: string;
|
|
637
|
+
operation: AuditJournalDeltaOperation;
|
|
638
|
+
tenantId: string;
|
|
639
|
+
}
|
|
640
|
+
export interface AuditPublicEventProjectionState {
|
|
641
|
+
cutoverAt: Generated<Timestamp>;
|
|
642
|
+
lastRecoveredAt: Timestamp | null;
|
|
643
|
+
retainedFrom: Timestamp | null;
|
|
644
|
+
singleton: Generated<boolean>;
|
|
645
|
+
}
|
|
528
646
|
export interface CoreActiveStatus {
|
|
529
647
|
name: string;
|
|
530
648
|
}
|
|
@@ -650,6 +768,7 @@ export interface CoreSync {
|
|
|
650
768
|
type: string;
|
|
651
769
|
updatedAt: Generated<Timestamp>;
|
|
652
770
|
userId: string | null;
|
|
771
|
+
webhookVersion: Generated<Int8>;
|
|
653
772
|
}
|
|
654
773
|
export interface CoreSyncStatus {
|
|
655
774
|
name: string;
|
|
@@ -774,6 +893,246 @@ export interface HdbCatalogHdbVersion {
|
|
|
774
893
|
upgradedOn: Timestamp;
|
|
775
894
|
version: string;
|
|
776
895
|
}
|
|
896
|
+
export interface HealthAccountingIntegrityCase {
|
|
897
|
+
actionability: HealthAccountingIntegrityActionability;
|
|
898
|
+
actual: Json;
|
|
899
|
+
assignedAt: Timestamp | null;
|
|
900
|
+
assignedTo: string | null;
|
|
901
|
+
caseKey: string;
|
|
902
|
+
code: string;
|
|
903
|
+
confidence: HealthAccountingIntegrityConfidence;
|
|
904
|
+
contentHash: string;
|
|
905
|
+
createdAt: Generated<Timestamp>;
|
|
906
|
+
dataRegion: string;
|
|
907
|
+
definitionVersion: number;
|
|
908
|
+
evidence: Json;
|
|
909
|
+
evidenceComplete: boolean;
|
|
910
|
+
expected: Json;
|
|
911
|
+
firstSeenAt: Timestamp;
|
|
912
|
+
gitRevision: string;
|
|
913
|
+
historicalIssueRefs: Json;
|
|
914
|
+
id: Generated<string>;
|
|
915
|
+
impact: Json;
|
|
916
|
+
lastChangedAt: Timestamp;
|
|
917
|
+
lastSeenAt: Timestamp;
|
|
918
|
+
lockAssessment: Json;
|
|
919
|
+
portalUrls: Json;
|
|
920
|
+
repair: Json;
|
|
921
|
+
resolutionClassification: HealthAccountingIntegrityResolutionClassification;
|
|
922
|
+
resolvedAt: Timestamp | null;
|
|
923
|
+
reviewStatus: Generated<HealthAccountingIntegrityReviewStatus>;
|
|
924
|
+
reviewRationale: string | null;
|
|
925
|
+
reviewedAt: Timestamp | null;
|
|
926
|
+
reviewedBy: string | null;
|
|
927
|
+
rootCause: string;
|
|
928
|
+
runId: string;
|
|
929
|
+
severity: HealthAccountingIntegritySeverity;
|
|
930
|
+
status: HealthAccountingIntegrityCaseStatus;
|
|
931
|
+
tenantId: string;
|
|
932
|
+
title: string;
|
|
933
|
+
updatedAt: Generated<Timestamp>;
|
|
934
|
+
urgency: HealthAccountingIntegrityUrgency;
|
|
935
|
+
verification: Json;
|
|
936
|
+
version: Generated<Int8>;
|
|
937
|
+
}
|
|
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
|
+
export interface HealthAccountingIntegrityDelivery {
|
|
955
|
+
attempts: Generated<number>;
|
|
956
|
+
caseId: string | null;
|
|
957
|
+
channel: HealthAccountingIntegrityDeliveryChannel;
|
|
958
|
+
claimedAt: Timestamp | null;
|
|
959
|
+
claimId: string | null;
|
|
960
|
+
createdAt: Generated<Timestamp>;
|
|
961
|
+
dedupeKey: string;
|
|
962
|
+
deliveredAt: Timestamp | null;
|
|
963
|
+
eventType: string;
|
|
964
|
+
id: Generated<string>;
|
|
965
|
+
lastError: Json | null;
|
|
966
|
+
nextAttemptAt: Generated<Timestamp>;
|
|
967
|
+
payload: Json;
|
|
968
|
+
result: Json | null;
|
|
969
|
+
runId: string;
|
|
970
|
+
status: Generated<HealthAccountingIntegrityDeliveryStatus>;
|
|
971
|
+
updatedAt: Generated<Timestamp>;
|
|
972
|
+
}
|
|
973
|
+
export interface HealthAccountingIntegrityRepairPlan {
|
|
974
|
+
canceledAt: Timestamp | null;
|
|
975
|
+
code: string;
|
|
976
|
+
completedAt: Timestamp | null;
|
|
977
|
+
createdAt: Generated<Timestamp>;
|
|
978
|
+
createdBy: string;
|
|
979
|
+
dataRegion: string;
|
|
980
|
+
environment: string;
|
|
981
|
+
gitRevision: string;
|
|
982
|
+
id: Generated<string>;
|
|
983
|
+
linearRef: string | null;
|
|
984
|
+
recipeVersion: number;
|
|
985
|
+
status: Generated<HealthAccountingIntegrityRepairPlanStatus>;
|
|
986
|
+
title: string;
|
|
987
|
+
updatedAt: Generated<Timestamp>;
|
|
988
|
+
}
|
|
989
|
+
export interface HealthAccountingIntegrityRepairStage {
|
|
990
|
+
applyResult: Json | null;
|
|
991
|
+
approvalRef: string | null;
|
|
992
|
+
approvedAt: Timestamp | null;
|
|
993
|
+
approvedBy: string | null;
|
|
994
|
+
completedAt: Timestamp | null;
|
|
995
|
+
createdAt: Generated<Timestamp>;
|
|
996
|
+
dryRunResult: Json | null;
|
|
997
|
+
id: Generated<string>;
|
|
998
|
+
limits: Json;
|
|
999
|
+
manifest: Json;
|
|
1000
|
+
manifestHash: string;
|
|
1001
|
+
ordinal: number;
|
|
1002
|
+
planId: string;
|
|
1003
|
+
scopeType: HealthAccountingIntegrityRepairScopeType;
|
|
1004
|
+
startedAt: Timestamp | null;
|
|
1005
|
+
status: Generated<HealthAccountingIntegrityRepairStageStatus>;
|
|
1006
|
+
tenantId: string;
|
|
1007
|
+
updatedAt: Generated<Timestamp>;
|
|
1008
|
+
verificationResult: Json | null;
|
|
1009
|
+
}
|
|
1010
|
+
export interface HealthAccountingIntegrityRepairTarget {
|
|
1011
|
+
action: Json;
|
|
1012
|
+
applyResult: Json | null;
|
|
1013
|
+
auditActionId: string | null;
|
|
1014
|
+
beforeHash: string;
|
|
1015
|
+
beforeState: Json;
|
|
1016
|
+
caseContentHash: string;
|
|
1017
|
+
caseId: string;
|
|
1018
|
+
caseVersion: Int8;
|
|
1019
|
+
completedAt: Timestamp | null;
|
|
1020
|
+
createdAt: Generated<Timestamp>;
|
|
1021
|
+
effectPlan: Json;
|
|
1022
|
+
expectedResult: Json;
|
|
1023
|
+
id: Generated<string>;
|
|
1024
|
+
idempotencyKey: string;
|
|
1025
|
+
lockAssessment: Json;
|
|
1026
|
+
ordinal: number;
|
|
1027
|
+
stageId: string;
|
|
1028
|
+
startedAt: Timestamp | null;
|
|
1029
|
+
status: Generated<HealthAccountingIntegrityRepairTargetStatus>;
|
|
1030
|
+
targetKey: string;
|
|
1031
|
+
tenantId: string;
|
|
1032
|
+
updatedAt: Generated<Timestamp>;
|
|
1033
|
+
verificationResult: Json | null;
|
|
1034
|
+
}
|
|
1035
|
+
export interface HealthAccountingIntegrityRepairTransition {
|
|
1036
|
+
actor: string;
|
|
1037
|
+
createdAt: Generated<Timestamp>;
|
|
1038
|
+
id: Generated<string>;
|
|
1039
|
+
payload: Json;
|
|
1040
|
+
planId: string;
|
|
1041
|
+
stageId: string | null;
|
|
1042
|
+
targetId: string | null;
|
|
1043
|
+
type: HealthAccountingIntegrityRepairTransitionType;
|
|
1044
|
+
}
|
|
1045
|
+
export interface HealthAccountingIntegrityRun {
|
|
1046
|
+
caseCount: Generated<Int8>;
|
|
1047
|
+
changedCaseCount: Generated<Int8>;
|
|
1048
|
+
code: string;
|
|
1049
|
+
completedAt: Timestamp | null;
|
|
1050
|
+
createdAt: Generated<Timestamp>;
|
|
1051
|
+
dataRegion: string;
|
|
1052
|
+
definitionVersion: number;
|
|
1053
|
+
definitionVersionId: string | null;
|
|
1054
|
+
definitionArtifactHash: string | null;
|
|
1055
|
+
definitionTemplateId: string | null;
|
|
1056
|
+
definitionTemplateVersion: number | null;
|
|
1057
|
+
environment: string;
|
|
1058
|
+
error: Json | null;
|
|
1059
|
+
evaluationId: string;
|
|
1060
|
+
findingRowCount: Generated<Int8>;
|
|
1061
|
+
gitRevision: string;
|
|
1062
|
+
id: Generated<string>;
|
|
1063
|
+
openedCaseCount: Generated<Int8>;
|
|
1064
|
+
operatorDefinitionVersion: number | null;
|
|
1065
|
+
reopenedCaseCount: Generated<Int8>;
|
|
1066
|
+
resolvedCaseCount: Generated<Int8>;
|
|
1067
|
+
resolvesCases: Generated<boolean>;
|
|
1068
|
+
rowsScanned: Generated<Int8>;
|
|
1069
|
+
scopeTenantIds: string[] | null;
|
|
1070
|
+
shardKey: Generated<string>;
|
|
1071
|
+
startedAt: Timestamp;
|
|
1072
|
+
status: HealthAccountingIntegrityRunStatus;
|
|
1073
|
+
unchangedCaseCount: Generated<Int8>;
|
|
1074
|
+
updatedAt: Generated<Timestamp>;
|
|
1075
|
+
}
|
|
1076
|
+
export interface HealthAccountingIntegrityTransition {
|
|
1077
|
+
caseId: string;
|
|
1078
|
+
caseVersion: Int8;
|
|
1079
|
+
createdAt: Generated<Timestamp>;
|
|
1080
|
+
id: Generated<string>;
|
|
1081
|
+
payload: Json;
|
|
1082
|
+
runId: string;
|
|
1083
|
+
type: HealthAccountingIntegrityTransitionType;
|
|
1084
|
+
}
|
|
1085
|
+
export interface HealthReservationIssueSnapshot {
|
|
1086
|
+
computedAt: Timestamp | null;
|
|
1087
|
+
computedVersion: Generated<Int8>;
|
|
1088
|
+
createdAt: Generated<Timestamp>;
|
|
1089
|
+
dirtyAt: Generated<Timestamp>;
|
|
1090
|
+
dirtyVersion: Generated<Int8>;
|
|
1091
|
+
issues: Generated<Json>;
|
|
1092
|
+
reservationId: string;
|
|
1093
|
+
tenantId: string;
|
|
1094
|
+
updatedAt: Generated<Timestamp>;
|
|
1095
|
+
version: Generated<Int8>;
|
|
1096
|
+
}
|
|
1097
|
+
export interface HealthTenantIssue {
|
|
1098
|
+
affected: number;
|
|
1099
|
+
category: HealthTenantIssueCategory;
|
|
1100
|
+
code: HealthTenantIssueCode;
|
|
1101
|
+
contentHash: string;
|
|
1102
|
+
context: Json;
|
|
1103
|
+
createdAt: Generated<Timestamp>;
|
|
1104
|
+
firstSeenAt: Timestamp;
|
|
1105
|
+
id: Generated<string>;
|
|
1106
|
+
lastChangedAt: Timestamp;
|
|
1107
|
+
message: string;
|
|
1108
|
+
openedAt: Timestamp;
|
|
1109
|
+
resolvedAt: Timestamp | null;
|
|
1110
|
+
severity: HealthTenantIssueSeverity;
|
|
1111
|
+
snapshotVersion: Int8;
|
|
1112
|
+
status: HealthTenantIssueStatus;
|
|
1113
|
+
tenantId: string;
|
|
1114
|
+
updatedAt: Generated<Timestamp>;
|
|
1115
|
+
version: Int8;
|
|
1116
|
+
}
|
|
1117
|
+
export interface HealthTenantIssueRuleState {
|
|
1118
|
+
code: HealthTenantIssueCode;
|
|
1119
|
+
computedAt: Timestamp | null;
|
|
1120
|
+
computedVersion: Generated<Int8>;
|
|
1121
|
+
createdAt: Generated<Timestamp>;
|
|
1122
|
+
dirtyAt: Timestamp;
|
|
1123
|
+
dirtyVersion: Generated<Int8>;
|
|
1124
|
+
tenantId: string;
|
|
1125
|
+
updatedAt: Generated<Timestamp>;
|
|
1126
|
+
}
|
|
1127
|
+
export interface HealthTenantIssueSnapshot {
|
|
1128
|
+
computedAt: Timestamp | null;
|
|
1129
|
+
contentHash: string | null;
|
|
1130
|
+
createdAt: Generated<Timestamp>;
|
|
1131
|
+
dirtyAt: Generated<Timestamp>;
|
|
1132
|
+
tenantId: string;
|
|
1133
|
+
updatedAt: Generated<Timestamp>;
|
|
1134
|
+
version: Generated<Int8>;
|
|
1135
|
+
}
|
|
777
1136
|
export interface PublicAccountCollection {
|
|
778
1137
|
automationId: string | null;
|
|
779
1138
|
connectionId: string;
|
|
@@ -937,6 +1296,36 @@ export interface PublicConnection {
|
|
|
937
1296
|
uniqueRef: string | null;
|
|
938
1297
|
updatedAt: Generated<Timestamp | null>;
|
|
939
1298
|
version: number | null;
|
|
1299
|
+
webhookVersion: Generated<Int8>;
|
|
1300
|
+
}
|
|
1301
|
+
export interface PublicConnectionRoute {
|
|
1302
|
+
connectionId: string;
|
|
1303
|
+
createdAt: Generated<Timestamp>;
|
|
1304
|
+
tenantId: string;
|
|
1305
|
+
updatedAt: Generated<Timestamp>;
|
|
1306
|
+
}
|
|
1307
|
+
export interface PublicControlPlaneOutbox {
|
|
1308
|
+
aggregateId: string;
|
|
1309
|
+
aggregateType: string;
|
|
1310
|
+
attempts: Generated<number>;
|
|
1311
|
+
createdAt: Generated<Timestamp>;
|
|
1312
|
+
dataRegion: string | null;
|
|
1313
|
+
eventType: string;
|
|
1314
|
+
eventVersion: number;
|
|
1315
|
+
id: Generated<string>;
|
|
1316
|
+
lastError: string | null;
|
|
1317
|
+
payload: Generated<Json>;
|
|
1318
|
+
publishedAt: Timestamp | null;
|
|
1319
|
+
}
|
|
1320
|
+
export interface PublicControlPlaneProjectionEvent {
|
|
1321
|
+
aggregateId: string;
|
|
1322
|
+
aggregateType: string;
|
|
1323
|
+
appliedAt: Generated<Timestamp>;
|
|
1324
|
+
dataRegion: string;
|
|
1325
|
+
eventId: string;
|
|
1326
|
+
eventType: string;
|
|
1327
|
+
eventVersion: number;
|
|
1328
|
+
payload: Generated<Json>;
|
|
940
1329
|
}
|
|
941
1330
|
export interface PublicCurrency {
|
|
942
1331
|
name: string;
|
|
@@ -1037,6 +1426,36 @@ export interface PublicLatestDuplicateEmails {
|
|
|
1037
1426
|
name: string | null;
|
|
1038
1427
|
status: string | null;
|
|
1039
1428
|
}
|
|
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
|
+
export interface PublicLineClassificationUsage {
|
|
1439
|
+
appId: string | null;
|
|
1440
|
+
createdAt: Generated<Timestamp>;
|
|
1441
|
+
firstSeenAt: Generated<Timestamp>;
|
|
1442
|
+
kind: string;
|
|
1443
|
+
lastError: string | null;
|
|
1444
|
+
lastSeenAt: Generated<Timestamp>;
|
|
1445
|
+
mappingStatus: string | null;
|
|
1446
|
+
name: string;
|
|
1447
|
+
reportAttempts: Generated<number>;
|
|
1448
|
+
reportedRevision: Generated<number>;
|
|
1449
|
+
revision: Generated<number>;
|
|
1450
|
+
tenantId: string;
|
|
1451
|
+
updatedAt: Generated<Timestamp>;
|
|
1452
|
+
}
|
|
1453
|
+
export interface PublicLineClassificationUsageBackfill {
|
|
1454
|
+
completedAt: Timestamp | null;
|
|
1455
|
+
cursorId: string | null;
|
|
1456
|
+
source: string;
|
|
1457
|
+
updatedAt: Generated<Timestamp>;
|
|
1458
|
+
}
|
|
1040
1459
|
export interface PublicListing {
|
|
1041
1460
|
address: string | null;
|
|
1042
1461
|
addressCity: string | null;
|
|
@@ -1077,6 +1496,7 @@ export interface PublicListing {
|
|
|
1077
1496
|
title: string | null;
|
|
1078
1497
|
uniqueRef: string | null;
|
|
1079
1498
|
updatedAt: Generated<Timestamp | null>;
|
|
1499
|
+
webhookVersion: Generated<Int8>;
|
|
1080
1500
|
}
|
|
1081
1501
|
export interface PublicListingCollection {
|
|
1082
1502
|
createdAt: Generated<Timestamp>;
|
|
@@ -1191,6 +1611,7 @@ export interface PublicOwnerStatement {
|
|
|
1191
1611
|
tenantId: string;
|
|
1192
1612
|
uniqueRef: string | null;
|
|
1193
1613
|
updatedAt: Generated<Timestamp>;
|
|
1614
|
+
webhookVersion: Generated<Int8>;
|
|
1194
1615
|
}
|
|
1195
1616
|
export interface PublicOwnerStatementLayout {
|
|
1196
1617
|
automationId: string | null;
|
|
@@ -1348,6 +1769,24 @@ export interface PublicPaymentStatus {
|
|
|
1348
1769
|
export interface PublicPaymentType {
|
|
1349
1770
|
name: string;
|
|
1350
1771
|
}
|
|
1772
|
+
export interface PublicPlaidConnectSession {
|
|
1773
|
+
connectionId: string | null;
|
|
1774
|
+
createdAt: Generated<Timestamp>;
|
|
1775
|
+
environment: string;
|
|
1776
|
+
errorCode: string | null;
|
|
1777
|
+
errorRetryable: boolean | null;
|
|
1778
|
+
expiresAt: Timestamp;
|
|
1779
|
+
id: Generated<string>;
|
|
1780
|
+
itemId: string | null;
|
|
1781
|
+
leaseExpiresAt: Timestamp | null;
|
|
1782
|
+
linkSessionId: string | null;
|
|
1783
|
+
mode: PublicPlaidConnectMode;
|
|
1784
|
+
result: Json | null;
|
|
1785
|
+
status: Generated<PublicPlaidConnectStatus>;
|
|
1786
|
+
syncId: string | null;
|
|
1787
|
+
tenantId: string;
|
|
1788
|
+
updatedAt: Generated<Timestamp>;
|
|
1789
|
+
}
|
|
1351
1790
|
export interface PublicRecurringFee {
|
|
1352
1791
|
bookingChannelsFilter: string[] | null;
|
|
1353
1792
|
createdAt: Generated<Timestamp>;
|
|
@@ -1462,6 +1901,7 @@ export interface PublicReservation {
|
|
|
1462
1901
|
uniqueRef2: string | null;
|
|
1463
1902
|
updatedAt: Generated<Timestamp | null>;
|
|
1464
1903
|
userdata: Generated<Json | null>;
|
|
1904
|
+
webhookVersion: Generated<Int8>;
|
|
1465
1905
|
}
|
|
1466
1906
|
export interface PublicReservationStatus {
|
|
1467
1907
|
name: string;
|
|
@@ -1602,6 +2042,9 @@ export interface PublicTenant {
|
|
|
1602
2042
|
addressCountry: string | null;
|
|
1603
2043
|
addressLine1: string | null;
|
|
1604
2044
|
addressPostcode: string | null;
|
|
2045
|
+
/**
|
|
2046
|
+
* JSON column for app-owned tenant settings exposed through APIs.
|
|
2047
|
+
*/
|
|
1605
2048
|
appSettings: Json | null;
|
|
1606
2049
|
billingAddressData: Json | null;
|
|
1607
2050
|
billingAddressId: string | null;
|
|
@@ -1630,6 +2073,9 @@ export interface PublicTenant {
|
|
|
1630
2073
|
defaultRevenueRecognition: string | null;
|
|
1631
2074
|
email: string | null;
|
|
1632
2075
|
featureFlags: Generated<Json | null>;
|
|
2076
|
+
/**
|
|
2077
|
+
* JSON column for explicit VRPilot onboarding guide state.
|
|
2078
|
+
*/
|
|
1633
2079
|
guideOnboarding: Json | null;
|
|
1634
2080
|
historicalStatementsImportedAt: Timestamp | null;
|
|
1635
2081
|
id: Generated<string>;
|
|
@@ -1640,9 +2086,13 @@ export interface PublicTenant {
|
|
|
1640
2086
|
isTest: Generated<boolean | null>;
|
|
1641
2087
|
logo: string | null;
|
|
1642
2088
|
longTermStayNights: number | null;
|
|
2089
|
+
migratedAt: Timestamp | null;
|
|
1643
2090
|
migratedFromTenantId: string | null;
|
|
2091
|
+
migratedToRegion: string | null;
|
|
2092
|
+
migrationStatus: Generated<string>;
|
|
1644
2093
|
name: string;
|
|
1645
2094
|
ownerPortalShowDraftStatements: boolean | null;
|
|
2095
|
+
partnerDeniedPermissions: Generated<string[]>;
|
|
1646
2096
|
partnerId: Generated<string | null>;
|
|
1647
2097
|
/**
|
|
1648
2098
|
* JSON column to hold team settings like "owner_portal_show_reservation_totals" or "owner_portal_show_draft_statements
|
|
@@ -1661,8 +2111,8 @@ export interface PublicTenant {
|
|
|
1661
2111
|
supportEmail: string | null;
|
|
1662
2112
|
supportPhone: string | null;
|
|
1663
2113
|
svixEndpoints: boolean | null;
|
|
1664
|
-
trialUntil: Timestamp | null;
|
|
1665
2114
|
type: Generated<string | null>;
|
|
2115
|
+
uniqueRef: string | null;
|
|
1666
2116
|
updatedAt: Generated<Timestamp | null>;
|
|
1667
2117
|
website: string | null;
|
|
1668
2118
|
}
|
|
@@ -1670,7 +2120,9 @@ export interface PublicTenantUser {
|
|
|
1670
2120
|
createdAt: Generated<Timestamp | null>;
|
|
1671
2121
|
id: Generated<string>;
|
|
1672
2122
|
lastInvitedAt: Timestamp | null;
|
|
2123
|
+
managedTeamAccess: Generated<"all" | "assigned">;
|
|
1673
2124
|
notificationPreferences: Generated<Json | null>;
|
|
2125
|
+
permissionBundles: Generated<string[]>;
|
|
1674
2126
|
role: Generated<string | null>;
|
|
1675
2127
|
status: Generated<string | null>;
|
|
1676
2128
|
tenantId: string;
|
|
@@ -1845,6 +2297,77 @@ export interface TrackingMonitorConnection {
|
|
|
1845
2297
|
export interface TrackingMonitorConnectionState {
|
|
1846
2298
|
name: string;
|
|
1847
2299
|
}
|
|
2300
|
+
export interface WebhookDelivery {
|
|
2301
|
+
apiVersion: WebhookApiVersion;
|
|
2302
|
+
attemptCount: Generated<number>;
|
|
2303
|
+
body: string;
|
|
2304
|
+
claimedAt: Timestamp | null;
|
|
2305
|
+
claimedBy: string | null;
|
|
2306
|
+
createdAt: Generated<Timestamp>;
|
|
2307
|
+
deliveredAt: Timestamp | null;
|
|
2308
|
+
eventType: WebhookEventType;
|
|
2309
|
+
failedAt: Timestamp | null;
|
|
2310
|
+
id: Generated<string>;
|
|
2311
|
+
lastErrorCode: string | null;
|
|
2312
|
+
nextAttemptAt: Generated<Timestamp>;
|
|
2313
|
+
resourceId: string | null;
|
|
2314
|
+
resourceType: WebhookResourceType | null;
|
|
2315
|
+
retryAttemptCount: Generated<number>;
|
|
2316
|
+
sourceEventKey: string;
|
|
2317
|
+
sourceTenantId: string | null;
|
|
2318
|
+
status: Generated<WebhookDeliveryStatus>;
|
|
2319
|
+
subscriptionId: string;
|
|
2320
|
+
subscriptionRevision: Int8;
|
|
2321
|
+
updatedAt: Generated<Timestamp>;
|
|
2322
|
+
}
|
|
2323
|
+
export interface WebhookDeliveryAttempt {
|
|
2324
|
+
attemptNumber: number;
|
|
2325
|
+
createdAt: Generated<Timestamp>;
|
|
2326
|
+
deliveryId: string;
|
|
2327
|
+
durationMs: number;
|
|
2328
|
+
errorClass: string | null;
|
|
2329
|
+
finishedAt: Timestamp;
|
|
2330
|
+
id: Generated<string>;
|
|
2331
|
+
responseExcerpt: string | null;
|
|
2332
|
+
responseStatus: number | null;
|
|
2333
|
+
startedAt: Timestamp;
|
|
2334
|
+
}
|
|
2335
|
+
export interface WebhookDeliveryAttemptSecret {
|
|
2336
|
+
deliveryAttemptId: string;
|
|
2337
|
+
position: string;
|
|
2338
|
+
subscriptionSecretId: string;
|
|
2339
|
+
}
|
|
2340
|
+
export interface WebhookRateLimit {
|
|
2341
|
+
key: string;
|
|
2342
|
+
ownerTenantId: string;
|
|
2343
|
+
requestCount: number;
|
|
2344
|
+
windowStartedAt: Timestamp;
|
|
2345
|
+
}
|
|
2346
|
+
export interface WebhookSubscription {
|
|
2347
|
+
apiVersion: WebhookApiVersion;
|
|
2348
|
+
createdAt: Generated<Timestamp>;
|
|
2349
|
+
description: string | null;
|
|
2350
|
+
disabledAt: Timestamp | null;
|
|
2351
|
+
eventTypes: ArrayType<WebhookSubscriptionEventType>;
|
|
2352
|
+
id: Generated<string>;
|
|
2353
|
+
ownerTenantId: string;
|
|
2354
|
+
revision: Generated<Int8>;
|
|
2355
|
+
scope: WebhookSubscriptionScope;
|
|
2356
|
+
status: Generated<WebhookSubscriptionStatus>;
|
|
2357
|
+
updatedAt: Generated<Timestamp>;
|
|
2358
|
+
url: string;
|
|
2359
|
+
verifiedAt: Timestamp | null;
|
|
2360
|
+
}
|
|
2361
|
+
export interface WebhookSubscriptionSecret {
|
|
2362
|
+
activeFrom: Generated<Timestamp>;
|
|
2363
|
+
createdAt: Generated<Timestamp>;
|
|
2364
|
+
encryptedSecret: string;
|
|
2365
|
+
encryptionKeyId: string;
|
|
2366
|
+
expiresAt: Timestamp | null;
|
|
2367
|
+
id: Generated<string>;
|
|
2368
|
+
revokedAt: Timestamp | null;
|
|
2369
|
+
subscriptionId: string;
|
|
2370
|
+
}
|
|
1848
2371
|
export interface DB {
|
|
1849
2372
|
"accounting.account": AccountingAccount;
|
|
1850
2373
|
"accounting.accountAssignment": AccountingAccountAssignment;
|
|
@@ -1852,10 +2375,10 @@ export interface DB {
|
|
|
1852
2375
|
"accounting.accountAssignmentType": AccountingAccountAssignmentType;
|
|
1853
2376
|
"accounting.accountCategory": AccountingAccountCategory;
|
|
1854
2377
|
"accounting.accountClassification": AccountingAccountClassification;
|
|
2378
|
+
"accounting.accountConnection": AccountingAccountConnection;
|
|
1855
2379
|
"accounting.accountReservationLineType": AccountingAccountReservationLineType;
|
|
1856
2380
|
"accounting.accountReservationRevRec": AccountingAccountReservationRevRec;
|
|
1857
2381
|
"accounting.accountType": AccountingAccountType;
|
|
1858
|
-
"accounting.bankAccount": AccountingBankAccount;
|
|
1859
2382
|
"accounting.bankAccountCategory": AccountingBankAccountCategory;
|
|
1860
2383
|
"accounting.bankAccountType": AccountingBankAccountType;
|
|
1861
2384
|
"accounting.bankRecord": AccountingBankRecord;
|
|
@@ -1877,6 +2400,7 @@ export interface DB {
|
|
|
1877
2400
|
"accounting.journalEntryTriggerType": AccountingJournalEntryTriggerType;
|
|
1878
2401
|
"accounting.journalEntryType": AccountingJournalEntryType;
|
|
1879
2402
|
"accounting.ownerStatementProjection": AccountingOwnerStatementProjection;
|
|
2403
|
+
"accounting.ownerStatementProjectionListingRevision": AccountingOwnerStatementProjectionListingRevision;
|
|
1880
2404
|
"accounting.ownerStatementProjectionRevision": AccountingOwnerStatementProjectionRevision;
|
|
1881
2405
|
"accounting.paidStatus": AccountingPaidStatus;
|
|
1882
2406
|
"accounting.party": AccountingParty;
|
|
@@ -1892,6 +2416,9 @@ export interface DB {
|
|
|
1892
2416
|
"audit.effectAttempt": AuditEffectAttempt;
|
|
1893
2417
|
"audit.journalDelta": AuditJournalDelta;
|
|
1894
2418
|
"audit.mutation": AuditMutation;
|
|
2419
|
+
"audit.publicEvent": AuditPublicEvent;
|
|
2420
|
+
"audit.publicEventEntryChange": AuditPublicEventEntryChange;
|
|
2421
|
+
"audit.publicEventProjectionState": AuditPublicEventProjectionState;
|
|
1895
2422
|
"core.activeStatus": CoreActiveStatus;
|
|
1896
2423
|
"core.change": CoreChange;
|
|
1897
2424
|
"core.changeEntityType": CoreChangeEntityType;
|
|
@@ -1920,6 +2447,19 @@ export interface DB {
|
|
|
1920
2447
|
"hdbCatalog.hdbSchemaNotifications": HdbCatalogHdbSchemaNotifications;
|
|
1921
2448
|
"hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
|
|
1922
2449
|
"hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
|
|
2450
|
+
"health.accountingIntegrityCase": HealthAccountingIntegrityCase;
|
|
2451
|
+
"health.accountingIntegrityOperatorEvent": HealthAccountingIntegrityOperatorEvent;
|
|
2452
|
+
"health.accountingIntegrityDelivery": HealthAccountingIntegrityDelivery;
|
|
2453
|
+
"health.accountingIntegrityRepairPlan": HealthAccountingIntegrityRepairPlan;
|
|
2454
|
+
"health.accountingIntegrityRepairStage": HealthAccountingIntegrityRepairStage;
|
|
2455
|
+
"health.accountingIntegrityRepairTarget": HealthAccountingIntegrityRepairTarget;
|
|
2456
|
+
"health.accountingIntegrityRepairTransition": HealthAccountingIntegrityRepairTransition;
|
|
2457
|
+
"health.accountingIntegrityRun": HealthAccountingIntegrityRun;
|
|
2458
|
+
"health.accountingIntegrityTransition": HealthAccountingIntegrityTransition;
|
|
2459
|
+
"health.reservationIssueSnapshot": HealthReservationIssueSnapshot;
|
|
2460
|
+
"health.tenantIssue": HealthTenantIssue;
|
|
2461
|
+
"health.tenantIssueRuleState": HealthTenantIssueRuleState;
|
|
2462
|
+
"health.tenantIssueSnapshot": HealthTenantIssueSnapshot;
|
|
1923
2463
|
"public.accountCollection": PublicAccountCollection;
|
|
1924
2464
|
"public.accountCollectionType": PublicAccountCollectionType;
|
|
1925
2465
|
"public.address": PublicAddress;
|
|
@@ -1931,6 +2471,9 @@ export interface DB {
|
|
|
1931
2471
|
"public.bookingChannel": PublicBookingChannel;
|
|
1932
2472
|
"public.bookingChannelIconCandidate": PublicBookingChannelIconCandidate;
|
|
1933
2473
|
"public.connection": PublicConnection;
|
|
2474
|
+
"public.connectionRoute": PublicConnectionRoute;
|
|
2475
|
+
"public.controlPlaneOutbox": PublicControlPlaneOutbox;
|
|
2476
|
+
"public.controlPlaneProjectionEvent": PublicControlPlaneProjectionEvent;
|
|
1934
2477
|
"public.currency": PublicCurrency;
|
|
1935
2478
|
"public.duplicateEmails": PublicDuplicateEmails;
|
|
1936
2479
|
"public.emailTemplate": PublicEmailTemplate;
|
|
@@ -1944,6 +2487,9 @@ export interface DB {
|
|
|
1944
2487
|
"public.fileStorageSourceLink": PublicFileStorageSourceLink;
|
|
1945
2488
|
"public.fileStorageTag": PublicFileStorageTag;
|
|
1946
2489
|
"public.latestDuplicateEmails": PublicLatestDuplicateEmails;
|
|
2490
|
+
"public.lineClassificationUsage": PublicLineClassificationUsage;
|
|
2491
|
+
"public.lineClassificationUsageBackfill": PublicLineClassificationUsageBackfill;
|
|
2492
|
+
"public.lineClassificationUsageCapture": PublicLineClassificationUsageCapture;
|
|
1947
2493
|
"public.listing": PublicListing;
|
|
1948
2494
|
"public.listingCollection": PublicListingCollection;
|
|
1949
2495
|
"public.listingConnection": PublicListingConnection;
|
|
@@ -1969,6 +2515,7 @@ export interface DB {
|
|
|
1969
2515
|
"public.paymentLineClassification": PublicPaymentLineClassification;
|
|
1970
2516
|
"public.paymentStatus": PublicPaymentStatus;
|
|
1971
2517
|
"public.paymentType": PublicPaymentType;
|
|
2518
|
+
"public.plaidConnectSession": PublicPlaidConnectSession;
|
|
1972
2519
|
"public.recurringFee": PublicRecurringFee;
|
|
1973
2520
|
"public.recurringFeeAccount": PublicRecurringFeeAccount;
|
|
1974
2521
|
"public.recurringFeeAccountCondition": PublicRecurringFeeAccountCondition;
|
|
@@ -2003,4 +2550,10 @@ export interface DB {
|
|
|
2003
2550
|
"tracking.metricCache": TrackingMetricCache;
|
|
2004
2551
|
"tracking.monitorConnection": TrackingMonitorConnection;
|
|
2005
2552
|
"tracking.monitorConnectionState": TrackingMonitorConnectionState;
|
|
2553
|
+
"webhook.delivery": WebhookDelivery;
|
|
2554
|
+
"webhook.deliveryAttempt": WebhookDeliveryAttempt;
|
|
2555
|
+
"webhook.deliveryAttemptSecret": WebhookDeliveryAttemptSecret;
|
|
2556
|
+
"webhook.rateLimit": WebhookRateLimit;
|
|
2557
|
+
"webhook.subscription": WebhookSubscription;
|
|
2558
|
+
"webhook.subscriptionSecret": WebhookSubscriptionSecret;
|
|
2006
2559
|
}
|