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