@vrplatform/kysely 1.3.41 → 1.3.45-10
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 +368 -0
- package/build/main/control-plane/index.js +64 -0
- package/build/main/control-plane/index.js.map +1 -0
- 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 +13 -16
- package/build/main/index.js +145 -65
- package/build/main/index.js.map +1 -1
- package/build/main/isomorphic.d.ts +5 -5
- package/build/main/isomorphic.js +4 -10
- 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/pganalyze-comment-plugin/comment-transformer.js +0 -1
- package/build/main/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
- package/build/main/pganalyze-comment-plugin/index.js +16 -3
- package/build/main/pganalyze-comment-plugin/index.js.map +1 -1
- 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 +2 -12
- package/build/main/query/listing/status.js +31 -19
- 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 +60 -0
- package/build/main/regional.js +205 -0
- package/build/main/regional.js.map +1 -0
- 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 +593 -23
- 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 +368 -0
- package/build/module/control-plane/index.js +50 -0
- package/build/module/control-plane/index.js.map +1 -0
- 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 +13 -16
- package/build/module/index.js +146 -63
- 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/pganalyze-comment-plugin/comment-transformer.js.map +1 -1
- package/build/module/pganalyze-comment-plugin/index.js.map +1 -1
- 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 +2 -12
- package/build/module/query/listing/status.js +31 -17
- 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 +60 -0
- package/build/module/regional.js +162 -0
- package/build/module/regional.js.map +1 -0
- 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 +593 -23
- package/build/module/v1.generated.js.map +1 -1
- package/package.json +18 -9
- package/build/main/tsconfig.main.tsbuildinfo +0 -1
- package/build/module/tsconfig.esm.tsbuildinfo +0 -1
|
@@ -3,14 +3,39 @@
|
|
|
3
3
|
* Please do not edit it manually.
|
|
4
4
|
*/
|
|
5
5
|
import type { ColumnType } from "kysely";
|
|
6
|
-
export type AccountingJournalEntryInactiveReason = "cancelledReservationLine" | "generalLedgerStartAt" | "inactiveAccount" | "listingInactive" | "nonPostingAccount" | "reservationGeneralLedgerStatusInactive" | "transactionInactive" | "unknownInactiveReason";
|
|
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;
|
|
@@ -70,24 +104,7 @@ export interface AccountingAccountCategory {
|
|
|
70
104
|
export interface AccountingAccountClassification {
|
|
71
105
|
name: string;
|
|
72
106
|
}
|
|
73
|
-
export interface
|
|
74
|
-
accountId: string | null;
|
|
75
|
-
bookingChannel: string | null;
|
|
76
|
-
createdAt: Generated<Timestamp>;
|
|
77
|
-
id: Generated<string>;
|
|
78
|
-
lineType: string;
|
|
79
|
-
revenueRecognition: string | null;
|
|
80
|
-
status: Generated<string | null>;
|
|
81
|
-
tenantId: string;
|
|
82
|
-
updatedAt: Generated<Timestamp>;
|
|
83
|
-
}
|
|
84
|
-
export interface AccountingAccountReservationRevRec {
|
|
85
|
-
name: string;
|
|
86
|
-
}
|
|
87
|
-
export interface AccountingAccountType {
|
|
88
|
-
name: string;
|
|
89
|
-
}
|
|
90
|
-
export interface AccountingBankAccount {
|
|
107
|
+
export interface AccountingAccountConnection {
|
|
91
108
|
accountId: string | null;
|
|
92
109
|
category: Generated<string | null>;
|
|
93
110
|
connectionId: string | null;
|
|
@@ -97,6 +114,7 @@ export interface AccountingBankAccount {
|
|
|
97
114
|
id: Generated<string>;
|
|
98
115
|
lastDigits: string | null;
|
|
99
116
|
name: string | null;
|
|
117
|
+
persistentRef: string | null;
|
|
100
118
|
sourceId: string | null;
|
|
101
119
|
startDate: Timestamp | null;
|
|
102
120
|
/**
|
|
@@ -109,6 +127,23 @@ export interface AccountingBankAccount {
|
|
|
109
127
|
uniqueRef: string | null;
|
|
110
128
|
updatedAt: Generated<Timestamp>;
|
|
111
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
|
+
}
|
|
112
147
|
export interface AccountingBankAccountCategory {
|
|
113
148
|
name: string;
|
|
114
149
|
}
|
|
@@ -116,8 +151,8 @@ export interface AccountingBankAccountType {
|
|
|
116
151
|
name: string;
|
|
117
152
|
}
|
|
118
153
|
export interface AccountingBankRecord {
|
|
154
|
+
accountConnectionId: string | null;
|
|
119
155
|
accountId: string | null;
|
|
120
|
-
bankAccountId: string | null;
|
|
121
156
|
calculatedCentBalance: number | null;
|
|
122
157
|
calculatedCentTotalCorrection: number | null;
|
|
123
158
|
centBalance: number | null;
|
|
@@ -240,6 +275,7 @@ export interface AccountingContact {
|
|
|
240
275
|
is1099PostalDelivery: Generated<boolean>;
|
|
241
276
|
name: string;
|
|
242
277
|
phone: string | null;
|
|
278
|
+
rampLast4Digits: string | null;
|
|
243
279
|
/**
|
|
244
280
|
* Human-readable system ID (CNT-XXX-XXXX-XXX).
|
|
245
281
|
*/
|
|
@@ -278,6 +314,7 @@ export interface AccountingJournalEntry {
|
|
|
278
314
|
lineUniqueRef: string | null;
|
|
279
315
|
listingId: string | null;
|
|
280
316
|
listingOwnershipPeriodId: string | null;
|
|
317
|
+
parentListingId: string | null;
|
|
281
318
|
party: string | null;
|
|
282
319
|
recurringFeeId: string | null;
|
|
283
320
|
recurringFeeListingSubscriptionId: string | null;
|
|
@@ -314,6 +351,12 @@ export interface AccountingOwnerStatementProjection {
|
|
|
314
351
|
tenantId: string;
|
|
315
352
|
variant: string;
|
|
316
353
|
}
|
|
354
|
+
export interface AccountingOwnerStatementProjectionListingRevision {
|
|
355
|
+
listingId: string;
|
|
356
|
+
revision: Generated<Int8>;
|
|
357
|
+
tenantId: string;
|
|
358
|
+
updatedAt: Generated<Timestamp>;
|
|
359
|
+
}
|
|
317
360
|
export interface AccountingOwnerStatementProjectionRevision {
|
|
318
361
|
revision: Generated<Int8>;
|
|
319
362
|
tenantId: string;
|
|
@@ -369,6 +412,7 @@ export interface AccountingTransaction {
|
|
|
369
412
|
paidStatus: Generated<string | null>;
|
|
370
413
|
recurringFeeId: string | null;
|
|
371
414
|
recurringPattern: Json | null;
|
|
415
|
+
recreatedFromTransactionId: string | null;
|
|
372
416
|
recurringTemplateId: string | null;
|
|
373
417
|
/**
|
|
374
418
|
* Human-readable system ID (EXP/DEP/PAY/TRF-XXX-XXXX-XXX depending on transaction.type).
|
|
@@ -380,6 +424,7 @@ export interface AccountingTransaction {
|
|
|
380
424
|
type: string;
|
|
381
425
|
uniqueRef: string | null;
|
|
382
426
|
updatedAt: Generated<Timestamp>;
|
|
427
|
+
webhookVersion: Generated<Int8>;
|
|
383
428
|
}
|
|
384
429
|
export interface AccountingTransactionAttachment {
|
|
385
430
|
byteSize: number;
|
|
@@ -428,7 +473,10 @@ export interface AccountingTransactionType {
|
|
|
428
473
|
}
|
|
429
474
|
export interface AuditAction {
|
|
430
475
|
actionType: string;
|
|
476
|
+
actorEmail: string | null;
|
|
431
477
|
actorId: string | null;
|
|
478
|
+
actorLabel: string | null;
|
|
479
|
+
actorName: string | null;
|
|
432
480
|
actorType: AuditActionActorType;
|
|
433
481
|
apiVersion: string;
|
|
434
482
|
createdAt: Generated<Timestamp>;
|
|
@@ -436,14 +484,17 @@ export interface AuditAction {
|
|
|
436
484
|
message: string | null;
|
|
437
485
|
parentActionId: string | null;
|
|
438
486
|
payload: Json | null;
|
|
487
|
+
publicEventProjectedAt: Timestamp | null;
|
|
439
488
|
requestId: string | null;
|
|
440
489
|
rootEntityId: string | null;
|
|
441
490
|
rootEntityType: string | null;
|
|
442
491
|
source: string | null;
|
|
492
|
+
sourceType: AuditSourceType | null;
|
|
443
493
|
tenantId: string;
|
|
444
494
|
traceId: string | null;
|
|
445
495
|
}
|
|
446
496
|
export interface AuditEffect {
|
|
497
|
+
accountingRelevant: Generated<boolean>;
|
|
447
498
|
actionId: string;
|
|
448
499
|
claimedAt: Timestamp | null;
|
|
449
500
|
claimedBy: string | null;
|
|
@@ -481,8 +532,16 @@ export interface AuditEffectAttempt {
|
|
|
481
532
|
workerId: string | null;
|
|
482
533
|
}
|
|
483
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;
|
|
484
541
|
accountIdAfter: string | null;
|
|
485
542
|
accountIdBefore: string | null;
|
|
543
|
+
accountNameAfter: string | null;
|
|
544
|
+
accountNameBefore: string | null;
|
|
486
545
|
actionId: string;
|
|
487
546
|
apiVersion: string;
|
|
488
547
|
attachedToOwnerStatementIdAfter: string | null;
|
|
@@ -491,10 +550,14 @@ export interface AuditJournalDelta {
|
|
|
491
550
|
centTotalBefore: Int8 | null;
|
|
492
551
|
changedAt: Generated<Timestamp>;
|
|
493
552
|
changedFields: Generated<string[]>;
|
|
553
|
+
currencyAfter: string | null;
|
|
554
|
+
currencyBefore: string | null;
|
|
494
555
|
diffJson: Json | null;
|
|
495
556
|
effectId: string | null;
|
|
496
557
|
id: Generated<string>;
|
|
497
558
|
journalEntryId: string;
|
|
559
|
+
ledgerAfter: string | null;
|
|
560
|
+
ledgerBefore: string | null;
|
|
498
561
|
listingOwnershipPeriodIdAfter: string | null;
|
|
499
562
|
listingOwnershipPeriodIdBefore: string | null;
|
|
500
563
|
mutationId: string | null;
|
|
@@ -510,18 +573,76 @@ export interface AuditJournalDelta {
|
|
|
510
573
|
txnAtBefore: Timestamp | null;
|
|
511
574
|
}
|
|
512
575
|
export interface AuditMutation {
|
|
576
|
+
accountingRelevant: Generated<boolean>;
|
|
513
577
|
actionId: string;
|
|
578
|
+
captureOrder: Generated<Int8 | null>;
|
|
514
579
|
changeRecord: Json;
|
|
515
580
|
createdAt: Generated<Timestamp>;
|
|
516
581
|
effectId: string | null;
|
|
517
582
|
id: Generated<string>;
|
|
518
583
|
op: string;
|
|
584
|
+
publicChanges: Generated<Json>;
|
|
519
585
|
rootEntityId: string | null;
|
|
520
586
|
rootEntityType: string | null;
|
|
521
587
|
subjectId: string;
|
|
522
588
|
subjectType: string;
|
|
523
589
|
tenantId: string;
|
|
524
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
|
+
}
|
|
525
646
|
export interface CoreActiveStatus {
|
|
526
647
|
name: string;
|
|
527
648
|
}
|
|
@@ -579,6 +700,7 @@ export interface CoreChangeType {
|
|
|
579
700
|
export interface CoreFlow {
|
|
580
701
|
appId: string;
|
|
581
702
|
description: string | null;
|
|
703
|
+
eventListening: Generated<Json>;
|
|
582
704
|
id: Generated<string>;
|
|
583
705
|
isPublic: Generated<boolean>;
|
|
584
706
|
leftType: string | null;
|
|
@@ -646,6 +768,7 @@ export interface CoreSync {
|
|
|
646
768
|
type: string;
|
|
647
769
|
updatedAt: Generated<Timestamp>;
|
|
648
770
|
userId: string | null;
|
|
771
|
+
webhookVersion: Generated<Int8>;
|
|
649
772
|
}
|
|
650
773
|
export interface CoreSyncStatus {
|
|
651
774
|
name: string;
|
|
@@ -770,6 +893,246 @@ export interface HdbCatalogHdbVersion {
|
|
|
770
893
|
upgradedOn: Timestamp;
|
|
771
894
|
version: string;
|
|
772
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
|
+
}
|
|
773
1136
|
export interface PublicAccountCollection {
|
|
774
1137
|
automationId: string | null;
|
|
775
1138
|
connectionId: string;
|
|
@@ -890,7 +1253,10 @@ export interface PublicBookingChannel {
|
|
|
890
1253
|
iconProvider: string | null;
|
|
891
1254
|
id: Generated<string>;
|
|
892
1255
|
lastGenerateRun: Timestamp | null;
|
|
1256
|
+
logo: string | null;
|
|
1257
|
+
logoProvider: string | null;
|
|
893
1258
|
selectedBookingChannelIconCandidateId: string | null;
|
|
1259
|
+
selectedBookingChannelLogoCandidateId: string | null;
|
|
894
1260
|
uniqueRef: string;
|
|
895
1261
|
updatedAt: Generated<Timestamp>;
|
|
896
1262
|
}
|
|
@@ -901,12 +1267,16 @@ export interface PublicBookingChannelIconCandidate {
|
|
|
901
1267
|
comment: string | null;
|
|
902
1268
|
createdAt: Generated<Timestamp>;
|
|
903
1269
|
externalIcon: string | null;
|
|
1270
|
+
height: number | null;
|
|
904
1271
|
id: Generated<string>;
|
|
905
1272
|
provider: Generated<string>;
|
|
906
1273
|
source: string | null;
|
|
907
1274
|
updatedAt: Generated<Timestamp>;
|
|
1275
|
+
width: number | null;
|
|
908
1276
|
}
|
|
909
1277
|
export interface PublicConnection {
|
|
1278
|
+
accountingEndAt: Timestamp | null;
|
|
1279
|
+
accountingStartAt: Timestamp | null;
|
|
910
1280
|
appId: string;
|
|
911
1281
|
backendVersion: number | null;
|
|
912
1282
|
createdAt: Generated<Timestamp>;
|
|
@@ -926,6 +1296,36 @@ export interface PublicConnection {
|
|
|
926
1296
|
uniqueRef: string | null;
|
|
927
1297
|
updatedAt: Generated<Timestamp | null>;
|
|
928
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>;
|
|
929
1329
|
}
|
|
930
1330
|
export interface PublicCurrency {
|
|
931
1331
|
name: string;
|
|
@@ -1026,6 +1426,36 @@ export interface PublicLatestDuplicateEmails {
|
|
|
1026
1426
|
name: string | null;
|
|
1027
1427
|
status: string | null;
|
|
1028
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
|
+
}
|
|
1029
1459
|
export interface PublicListing {
|
|
1030
1460
|
address: string | null;
|
|
1031
1461
|
addressCity: string | null;
|
|
@@ -1053,6 +1483,7 @@ export interface PublicListing {
|
|
|
1053
1483
|
metadata: Generated<Json | null>;
|
|
1054
1484
|
name: string | null;
|
|
1055
1485
|
ownerContactId: string | null;
|
|
1486
|
+
parentId: string | null;
|
|
1056
1487
|
pmsAddressData: Json | null;
|
|
1057
1488
|
pmsStatus: string | null;
|
|
1058
1489
|
/**
|
|
@@ -1065,6 +1496,7 @@ export interface PublicListing {
|
|
|
1065
1496
|
title: string | null;
|
|
1066
1497
|
uniqueRef: string | null;
|
|
1067
1498
|
updatedAt: Generated<Timestamp | null>;
|
|
1499
|
+
webhookVersion: Generated<Int8>;
|
|
1068
1500
|
}
|
|
1069
1501
|
export interface PublicListingCollection {
|
|
1070
1502
|
createdAt: Generated<Timestamp>;
|
|
@@ -1179,6 +1611,7 @@ export interface PublicOwnerStatement {
|
|
|
1179
1611
|
tenantId: string;
|
|
1180
1612
|
uniqueRef: string | null;
|
|
1181
1613
|
updatedAt: Generated<Timestamp>;
|
|
1614
|
+
webhookVersion: Generated<Int8>;
|
|
1182
1615
|
}
|
|
1183
1616
|
export interface PublicOwnerStatementLayout {
|
|
1184
1617
|
automationId: string | null;
|
|
@@ -1336,6 +1769,24 @@ export interface PublicPaymentStatus {
|
|
|
1336
1769
|
export interface PublicPaymentType {
|
|
1337
1770
|
name: string;
|
|
1338
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
|
+
}
|
|
1339
1790
|
export interface PublicRecurringFee {
|
|
1340
1791
|
bookingChannelsFilter: string[] | null;
|
|
1341
1792
|
createdAt: Generated<Timestamp>;
|
|
@@ -1450,6 +1901,7 @@ export interface PublicReservation {
|
|
|
1450
1901
|
uniqueRef2: string | null;
|
|
1451
1902
|
updatedAt: Generated<Timestamp | null>;
|
|
1452
1903
|
userdata: Generated<Json | null>;
|
|
1904
|
+
webhookVersion: Generated<Int8>;
|
|
1453
1905
|
}
|
|
1454
1906
|
export interface PublicReservationStatus {
|
|
1455
1907
|
name: string;
|
|
@@ -1590,6 +2042,10 @@ export interface PublicTenant {
|
|
|
1590
2042
|
addressCountry: string | null;
|
|
1591
2043
|
addressLine1: string | null;
|
|
1592
2044
|
addressPostcode: string | null;
|
|
2045
|
+
/**
|
|
2046
|
+
* JSON column for app-owned tenant settings exposed through APIs.
|
|
2047
|
+
*/
|
|
2048
|
+
appSettings: Json | null;
|
|
1593
2049
|
billingAddressData: Json | null;
|
|
1594
2050
|
billingAddressId: string | null;
|
|
1595
2051
|
billingCustomerId: string | null;
|
|
@@ -1612,10 +2068,15 @@ export interface PublicTenant {
|
|
|
1612
2068
|
companyName: string | null;
|
|
1613
2069
|
companyTaxCode: string | null;
|
|
1614
2070
|
createdAt: Generated<Timestamp>;
|
|
2071
|
+
dataRegion: Generated<string>;
|
|
1615
2072
|
defaultCurrency: string | null;
|
|
1616
2073
|
defaultRevenueRecognition: string | null;
|
|
1617
2074
|
email: string | null;
|
|
1618
2075
|
featureFlags: Generated<Json | null>;
|
|
2076
|
+
/**
|
|
2077
|
+
* JSON column for explicit VRPilot onboarding guide state.
|
|
2078
|
+
*/
|
|
2079
|
+
guideOnboarding: Json | null;
|
|
1619
2080
|
historicalStatementsImportedAt: Timestamp | null;
|
|
1620
2081
|
id: Generated<string>;
|
|
1621
2082
|
intercomId: string | null;
|
|
@@ -1625,9 +2086,13 @@ export interface PublicTenant {
|
|
|
1625
2086
|
isTest: Generated<boolean | null>;
|
|
1626
2087
|
logo: string | null;
|
|
1627
2088
|
longTermStayNights: number | null;
|
|
2089
|
+
migratedAt: Timestamp | null;
|
|
1628
2090
|
migratedFromTenantId: string | null;
|
|
2091
|
+
migratedToRegion: string | null;
|
|
2092
|
+
migrationStatus: Generated<string>;
|
|
1629
2093
|
name: string;
|
|
1630
2094
|
ownerPortalShowDraftStatements: boolean | null;
|
|
2095
|
+
partnerDeniedPermissions: Generated<string[]>;
|
|
1631
2096
|
partnerId: Generated<string | null>;
|
|
1632
2097
|
/**
|
|
1633
2098
|
* JSON column to hold team settings like "owner_portal_show_reservation_totals" or "owner_portal_show_draft_statements
|
|
@@ -1635,17 +2100,19 @@ export interface PublicTenant {
|
|
|
1635
2100
|
settingsData: Json | null;
|
|
1636
2101
|
setup: Json | null;
|
|
1637
2102
|
setupCompleted: Generated<boolean | null>;
|
|
2103
|
+
slug: Generated<string>;
|
|
1638
2104
|
statementAddressData: Json | null;
|
|
1639
2105
|
statementAddressId: string | null;
|
|
1640
2106
|
statementStartAt: Timestamp | null;
|
|
1641
2107
|
status: Generated<string | null>;
|
|
2108
|
+
storageRealm: Generated<string>;
|
|
1642
2109
|
stripeId: string | null;
|
|
1643
2110
|
stripeSubscriptionItemId: string | null;
|
|
1644
2111
|
supportEmail: string | null;
|
|
1645
2112
|
supportPhone: string | null;
|
|
1646
2113
|
svixEndpoints: boolean | null;
|
|
1647
|
-
trialUntil: Timestamp | null;
|
|
1648
2114
|
type: Generated<string | null>;
|
|
2115
|
+
uniqueRef: string | null;
|
|
1649
2116
|
updatedAt: Generated<Timestamp | null>;
|
|
1650
2117
|
website: string | null;
|
|
1651
2118
|
}
|
|
@@ -1653,7 +2120,9 @@ export interface PublicTenantUser {
|
|
|
1653
2120
|
createdAt: Generated<Timestamp | null>;
|
|
1654
2121
|
id: Generated<string>;
|
|
1655
2122
|
lastInvitedAt: Timestamp | null;
|
|
2123
|
+
managedTeamAccess: Generated<"all" | "assigned">;
|
|
1656
2124
|
notificationPreferences: Generated<Json | null>;
|
|
2125
|
+
permissionBundles: Generated<string[]>;
|
|
1657
2126
|
role: Generated<string | null>;
|
|
1658
2127
|
status: Generated<string | null>;
|
|
1659
2128
|
tenantId: string;
|
|
@@ -1828,6 +2297,77 @@ export interface TrackingMonitorConnection {
|
|
|
1828
2297
|
export interface TrackingMonitorConnectionState {
|
|
1829
2298
|
name: string;
|
|
1830
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
|
+
}
|
|
1831
2371
|
export interface DB {
|
|
1832
2372
|
"accounting.account": AccountingAccount;
|
|
1833
2373
|
"accounting.accountAssignment": AccountingAccountAssignment;
|
|
@@ -1835,10 +2375,10 @@ export interface DB {
|
|
|
1835
2375
|
"accounting.accountAssignmentType": AccountingAccountAssignmentType;
|
|
1836
2376
|
"accounting.accountCategory": AccountingAccountCategory;
|
|
1837
2377
|
"accounting.accountClassification": AccountingAccountClassification;
|
|
2378
|
+
"accounting.accountConnection": AccountingAccountConnection;
|
|
1838
2379
|
"accounting.accountReservationLineType": AccountingAccountReservationLineType;
|
|
1839
2380
|
"accounting.accountReservationRevRec": AccountingAccountReservationRevRec;
|
|
1840
2381
|
"accounting.accountType": AccountingAccountType;
|
|
1841
|
-
"accounting.bankAccount": AccountingBankAccount;
|
|
1842
2382
|
"accounting.bankAccountCategory": AccountingBankAccountCategory;
|
|
1843
2383
|
"accounting.bankAccountType": AccountingBankAccountType;
|
|
1844
2384
|
"accounting.bankRecord": AccountingBankRecord;
|
|
@@ -1860,6 +2400,7 @@ export interface DB {
|
|
|
1860
2400
|
"accounting.journalEntryTriggerType": AccountingJournalEntryTriggerType;
|
|
1861
2401
|
"accounting.journalEntryType": AccountingJournalEntryType;
|
|
1862
2402
|
"accounting.ownerStatementProjection": AccountingOwnerStatementProjection;
|
|
2403
|
+
"accounting.ownerStatementProjectionListingRevision": AccountingOwnerStatementProjectionListingRevision;
|
|
1863
2404
|
"accounting.ownerStatementProjectionRevision": AccountingOwnerStatementProjectionRevision;
|
|
1864
2405
|
"accounting.paidStatus": AccountingPaidStatus;
|
|
1865
2406
|
"accounting.party": AccountingParty;
|
|
@@ -1875,6 +2416,9 @@ export interface DB {
|
|
|
1875
2416
|
"audit.effectAttempt": AuditEffectAttempt;
|
|
1876
2417
|
"audit.journalDelta": AuditJournalDelta;
|
|
1877
2418
|
"audit.mutation": AuditMutation;
|
|
2419
|
+
"audit.publicEvent": AuditPublicEvent;
|
|
2420
|
+
"audit.publicEventEntryChange": AuditPublicEventEntryChange;
|
|
2421
|
+
"audit.publicEventProjectionState": AuditPublicEventProjectionState;
|
|
1878
2422
|
"core.activeStatus": CoreActiveStatus;
|
|
1879
2423
|
"core.change": CoreChange;
|
|
1880
2424
|
"core.changeEntityType": CoreChangeEntityType;
|
|
@@ -1903,6 +2447,19 @@ export interface DB {
|
|
|
1903
2447
|
"hdbCatalog.hdbSchemaNotifications": HdbCatalogHdbSchemaNotifications;
|
|
1904
2448
|
"hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
|
|
1905
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;
|
|
1906
2463
|
"public.accountCollection": PublicAccountCollection;
|
|
1907
2464
|
"public.accountCollectionType": PublicAccountCollectionType;
|
|
1908
2465
|
"public.address": PublicAddress;
|
|
@@ -1914,6 +2471,9 @@ export interface DB {
|
|
|
1914
2471
|
"public.bookingChannel": PublicBookingChannel;
|
|
1915
2472
|
"public.bookingChannelIconCandidate": PublicBookingChannelIconCandidate;
|
|
1916
2473
|
"public.connection": PublicConnection;
|
|
2474
|
+
"public.connectionRoute": PublicConnectionRoute;
|
|
2475
|
+
"public.controlPlaneOutbox": PublicControlPlaneOutbox;
|
|
2476
|
+
"public.controlPlaneProjectionEvent": PublicControlPlaneProjectionEvent;
|
|
1917
2477
|
"public.currency": PublicCurrency;
|
|
1918
2478
|
"public.duplicateEmails": PublicDuplicateEmails;
|
|
1919
2479
|
"public.emailTemplate": PublicEmailTemplate;
|
|
@@ -1927,6 +2487,9 @@ export interface DB {
|
|
|
1927
2487
|
"public.fileStorageSourceLink": PublicFileStorageSourceLink;
|
|
1928
2488
|
"public.fileStorageTag": PublicFileStorageTag;
|
|
1929
2489
|
"public.latestDuplicateEmails": PublicLatestDuplicateEmails;
|
|
2490
|
+
"public.lineClassificationUsage": PublicLineClassificationUsage;
|
|
2491
|
+
"public.lineClassificationUsageBackfill": PublicLineClassificationUsageBackfill;
|
|
2492
|
+
"public.lineClassificationUsageCapture": PublicLineClassificationUsageCapture;
|
|
1930
2493
|
"public.listing": PublicListing;
|
|
1931
2494
|
"public.listingCollection": PublicListingCollection;
|
|
1932
2495
|
"public.listingConnection": PublicListingConnection;
|
|
@@ -1952,6 +2515,7 @@ export interface DB {
|
|
|
1952
2515
|
"public.paymentLineClassification": PublicPaymentLineClassification;
|
|
1953
2516
|
"public.paymentStatus": PublicPaymentStatus;
|
|
1954
2517
|
"public.paymentType": PublicPaymentType;
|
|
2518
|
+
"public.plaidConnectSession": PublicPlaidConnectSession;
|
|
1955
2519
|
"public.recurringFee": PublicRecurringFee;
|
|
1956
2520
|
"public.recurringFeeAccount": PublicRecurringFeeAccount;
|
|
1957
2521
|
"public.recurringFeeAccountCondition": PublicRecurringFeeAccountCondition;
|
|
@@ -1986,4 +2550,10 @@ export interface DB {
|
|
|
1986
2550
|
"tracking.metricCache": TrackingMetricCache;
|
|
1987
2551
|
"tracking.monitorConnection": TrackingMonitorConnection;
|
|
1988
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;
|
|
1989
2559
|
}
|