@vrplatform/kysely 1.3.20 → 1.3.21

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.
@@ -1,1917 +0,0 @@
1
- /**
2
- * This file was generated by kysely-codegen.
3
- * Please do not edit it manually.
4
- */
5
-
6
- import type { ColumnType } from "kysely";
7
-
8
- export type Generated<T> = T extends ColumnType<infer S, infer I, infer U>
9
- ? ColumnType<S, I | undefined, U>
10
- : ColumnType<T, T | undefined, T>;
11
-
12
- export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
13
-
14
- export type Json = JsonValue;
15
-
16
- export type JsonArray = JsonValue[];
17
-
18
- export type JsonObject = {
19
- [x: string]: JsonValue | undefined;
20
- };
21
-
22
- export type JsonPrimitive = boolean | number | string | null;
23
-
24
- export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
25
-
26
- export type Numeric = ColumnType<string, number | string, number | string>;
27
-
28
- export type PublicFlowType = "pull" | "push";
29
-
30
- export type StoreEffectStatus = "claimed" | "completed" | "dead_letter" | "failed" | "pending" | "running";
31
-
32
- export type Timestamp = ColumnType<Date | string, Date | string, Date | string>;
33
-
34
- export interface AccountingAccount {
35
- bankingCategory: string | null;
36
- bankingCurrency: string | null;
37
- bankingLast4: string | null;
38
- bankingType: string | null;
39
- categoryId: string;
40
- /**
41
- * deprecated
42
- */
43
- classification: string | null;
44
- createdAt: Generated<Timestamp | null>;
45
- id: Generated<string>;
46
- offsetAccountId: string | null;
47
- status: Generated<string>;
48
- tenantId: string | null;
49
- title: string;
50
- type: string;
51
- uniqueRef: string | null;
52
- updatedAt: Generated<Timestamp | null>;
53
- }
54
-
55
- export interface AccountingAccountAssignment {
56
- accountId: string | null;
57
- createdAt: Generated<Timestamp>;
58
- id: Generated<string>;
59
- tenantId: string;
60
- type: string;
61
- updatedAt: Generated<Timestamp>;
62
- }
63
-
64
- export interface AccountingAccountAssignmentLineType {
65
- accountAssignmentType: string;
66
- createdAt: Generated<Timestamp>;
67
- id: Generated<string>;
68
- lineType: string;
69
- updatedAt: Generated<Timestamp>;
70
- }
71
-
72
- export interface AccountingAccountAssignmentType {
73
- name: string;
74
- }
75
-
76
- export interface AccountingAccountCategory {
77
- classification: string | null;
78
- id: Generated<string>;
79
- index: number;
80
- name: string;
81
- }
82
-
83
- export interface AccountingAccountClassification {
84
- name: string;
85
- }
86
-
87
- export interface AccountingAccountReservationLineType {
88
- accountId: string | null;
89
- bookingChannel: string | null;
90
- createdAt: Generated<Timestamp>;
91
- id: Generated<string>;
92
- lineType: string;
93
- revenueRecognition: string | null;
94
- status: Generated<string | null>;
95
- tenantId: string;
96
- updatedAt: Generated<Timestamp>;
97
- }
98
-
99
- export interface AccountingAccountReservationRevRec {
100
- name: string;
101
- }
102
-
103
- export interface AccountingAccountType {
104
- name: string;
105
- }
106
-
107
- export interface AccountingBankAccount {
108
- accountId: string | null;
109
- category: Generated<string | null>;
110
- connectionId: string | null;
111
- createdAt: Generated<Timestamp>;
112
- currency: string | null;
113
- holderName: string | null;
114
- id: Generated<string>;
115
- lastDigits: string | null;
116
- name: string | null;
117
- sourceId: string | null;
118
- /**
119
- * The starting bank record for reconciliation
120
- */
121
- startingBankRecordId: string | null;
122
- status: Generated<string>;
123
- tenantId: string;
124
- type: Generated<string | null>;
125
- uniqueRef: string | null;
126
- updatedAt: Generated<Timestamp>;
127
- }
128
-
129
- export interface AccountingBankAccountCategory {
130
- name: string;
131
- }
132
-
133
- export interface AccountingBankAccountType {
134
- name: string;
135
- }
136
-
137
- export interface AccountingBankRecord {
138
- accountId: string | null;
139
- bankAccountId: string | null;
140
- calculatedCentBalance: number | null;
141
- calculatedCentTotalCorrection: number | null;
142
- centBalance: number | null;
143
- centTotal: number | null;
144
- connectionId: string | null;
145
- createdAt: Generated<Timestamp>;
146
- date: Timestamp;
147
- description: string;
148
- id: Generated<string>;
149
- isBalanceAdjustment: Generated<boolean | null>;
150
- reconcileStatus: Generated<string>;
151
- sourceId: string | null;
152
- status: Generated<string>;
153
- tenantId: string;
154
- uniqueRef: string | null;
155
- updatedAt: Generated<Timestamp>;
156
- }
157
-
158
- export interface AccountingBankRecordTransactionPayment {
159
- bankRecordId: string;
160
- createdAt: Generated<Timestamp>;
161
- id: Generated<string>;
162
- tenantId: string | null;
163
- transactionId: string;
164
- updatedAt: Generated<Timestamp>;
165
- }
166
-
167
- export interface AccountingContact {
168
- addressData: Json | null;
169
- /**
170
- * When NULL, the type is "individual"
171
- */
172
- companyType: string | null;
173
- connectionId: string | null;
174
- createdAt: Generated<Timestamp>;
175
- defaultAccountId: string | null;
176
- email: string | null;
177
- firstName: string | null;
178
- id: Generated<string>;
179
- is1099PostalDelivery: Generated<boolean>;
180
- name: string;
181
- phone: string | null;
182
- pmsStatus: string | null;
183
- /**
184
- * Human-readable system ID (CNT-XXX-XXXX-XXX).
185
- */
186
- shortRef: string | null;
187
- sourceId: string | null;
188
- status: Generated<string | null>;
189
- taxId: string | null;
190
- tenantId: string;
191
- /**
192
- * owner OR vendor
193
- */
194
- type: string;
195
- uniqueRef: string | null;
196
- updatedAt: Generated<Timestamp>;
197
- }
198
-
199
- export interface AccountingContactCompanyType {
200
- name: string;
201
- }
202
-
203
- export interface AccountingContactType {
204
- name: string;
205
- }
206
-
207
- export interface AccountingJournalEntry {
208
- accountId: string | null;
209
- attachedToOwnerStatementId: string | null;
210
- centTotal: Int8;
211
- contactId: string | null;
212
- createdAt: Generated<Timestamp | null>;
213
- currency: string;
214
- description: string | null;
215
- entitySortNum: Generated<number | null>;
216
- entityType: string | null;
217
- id: Generated<string>;
218
- lineId: string | null;
219
- lineUniqueRef: string | null;
220
- listingId: string | null;
221
- listingOwnershipPeriodId: string | null;
222
- party: string | null;
223
- recurringFeeId: string | null;
224
- recurringFeeListingSubscriptionId: string | null;
225
- reservationId: string | null;
226
- status: Generated<string>;
227
- tenantId: string | null;
228
- transactionId: string | null;
229
- transferOwnerStatementId: string | null;
230
- triggerId: string | null;
231
- triggerType: string | null;
232
- txnAt: Timestamp | null;
233
- txnCode: Generated<string | null>;
234
- txnNum: number | null;
235
- type: string | null;
236
- uniqueRef: string | null;
237
- updatedAt: Generated<Timestamp | null>;
238
- }
239
-
240
- export interface AccountingJournalEntryEntityType {
241
- name: string;
242
- }
243
-
244
- export interface AccountingJournalEntryTriggerType {
245
- name: string;
246
- }
247
-
248
- export interface AccountingJournalEntryType {
249
- name: string;
250
- }
251
-
252
- export interface AccountingPaidStatus {
253
- name: string;
254
- }
255
-
256
- export interface AccountingParty {
257
- name: string;
258
- }
259
-
260
- export interface AccountingRate {
261
- accountId: string | null;
262
- basisPoints: number;
263
- behavior: string | null;
264
- countryCode: string | null;
265
- createdAt: Generated<Timestamp>;
266
- currency: string | null;
267
- debitAccountId: string | null;
268
- description: string | null;
269
- id: Generated<string>;
270
- name: string | null;
271
- status: Generated<string | null>;
272
- tenantId: string;
273
- type: string | null;
274
- uniqueRef: string | null;
275
- updatedAt: Generated<Timestamp>;
276
- }
277
-
278
- export interface AccountingRateType {
279
- name: string;
280
- }
281
-
282
- export interface AccountingTaxBehavior {
283
- name: string;
284
- }
285
-
286
- export interface AccountingTransaction {
287
- accountId: string | null;
288
- centTotal: number;
289
- connectionId: string | null;
290
- contactId: string | null;
291
- createdAt: Generated<Timestamp>;
292
- currency: string;
293
- date: Timestamp;
294
- description: string;
295
- dueAt: Timestamp | null;
296
- id: Generated<string>;
297
- matchBankAccountLast4: string | null;
298
- matchers: Json | null;
299
- matchStatus: Generated<string | null>;
300
- paidAt: Timestamp | null;
301
- paidStatus: Generated<string | null>;
302
- recurringFeeId: string | null;
303
- recurringPattern: Json | null;
304
- recurringTemplateId: string | null;
305
- /**
306
- * Human-readable system ID (EXP/DEP/TRF-XXX-XXXX-XXX depending on transaction.type).
307
- */
308
- shortRef: string | null;
309
- sourceId: string | null;
310
- status: Generated<string>;
311
- tenantId: string;
312
- type: string;
313
- uniqueRef: string | null;
314
- updatedAt: Generated<Timestamp>;
315
- }
316
-
317
- export interface AccountingTransactionLine {
318
- accountAssignmentType: string | null;
319
- accountId: string | null;
320
- centTotal: number;
321
- contactId: string | null;
322
- createdAt: Generated<Timestamp>;
323
- description: string;
324
- id: Generated<string>;
325
- listingId: string | null;
326
- markupCentTotal: number | null;
327
- markupTaxBehavior: string | null;
328
- markupTaxRateId: string | null;
329
- matchers: Generated<Json | null>;
330
- matchLineTypeClassification: string | null;
331
- matchReservationConfirmationCode: string | null;
332
- matchReservationStripeGuestRef: string | null;
333
- matchStatus: Generated<string | null>;
334
- ownerStatementId: string | null;
335
- party: string | null;
336
- reservationId: string | null;
337
- tenantId: string;
338
- transactionId: string;
339
- uniqueRef: string | null;
340
- updatedAt: Generated<Timestamp>;
341
- }
342
-
343
- export interface AccountingTransactionType {
344
- name: string;
345
- }
346
-
347
- export interface CoreActiveStatus {
348
- name: string;
349
- }
350
-
351
- export interface CoreChange {
352
- automationId: string | null;
353
- changeData: Json | null;
354
- changeFields: Generated<Json | null>;
355
- changeType: string | null;
356
- connectionId: string | null;
357
- createdAt: Generated<Timestamp>;
358
- dataSha256: string | null;
359
- entityId: string;
360
- entityType: string;
361
- entityUniqueRef: string | null;
362
- id: Generated<string>;
363
- isLatestVersion: Generated<boolean | null>;
364
- message: string | null;
365
- seq: Int8 | null;
366
- status: string | null;
367
- syncId: string | null;
368
- syncSubtaskId: string | null;
369
- syncType: string | null;
370
- tenantId: string;
371
- updatedAt: Generated<Timestamp>;
372
- version: Numeric;
373
- }
374
-
375
- export interface CoreChangeEntityType {
376
- name: string;
377
- }
378
-
379
- export interface CoreChangeLink {
380
- createdAt: Generated<Timestamp>;
381
- id: Generated<string>;
382
- leftChangeId: string;
383
- rightChangeId: string;
384
- tenantId: string;
385
- updatedAt: Generated<Timestamp>;
386
- }
387
-
388
- export interface CoreChangeSourceLink {
389
- changeId: string;
390
- createdAt: Generated<Timestamp>;
391
- id: Generated<string>;
392
- sourceId: string;
393
- tenantId: string;
394
- updatedAt: Generated<Timestamp>;
395
- }
396
-
397
- export interface CoreChangeStatus {
398
- name: string;
399
- }
400
-
401
- export interface CoreChangeSyncType {
402
- name: string;
403
- }
404
-
405
- export interface CoreChangeType {
406
- name: string;
407
- }
408
-
409
- export interface CoreFlow {
410
- appId: string;
411
- description: string | null;
412
- id: Generated<string>;
413
- isPublic: Generated<boolean>;
414
- leftType: string | null;
415
- mappingSchema: Json;
416
- rightType: string | null;
417
- runSchema: Generated<Json>;
418
- settingSchema: Json;
419
- title: string;
420
- type: Generated<PublicFlowType | null>;
421
- uniqueRef: string;
422
- useGlobalMapping: Generated<boolean>;
423
- }
424
-
425
- export interface CoreFlowMapping {
426
- accountId: string | null;
427
- bookingChannelId: string | null;
428
- connectionId: string;
429
- contactId: string | null;
430
- createdAt: Generated<Timestamp>;
431
- flowId: string | null;
432
- id: Generated<string>;
433
- listingId: string | null;
434
- mappingKey: string;
435
- rateId: string | null;
436
- sourceId: string;
437
- tenantId: string;
438
- updatedAt: Generated<Timestamp>;
439
- value: Json | null;
440
- }
441
-
442
- export interface CoreFlowSetting {
443
- accountId: string | null;
444
- bookingChannelId: string | null;
445
- connectionId: string;
446
- contactId: string | null;
447
- createdAt: Generated<Timestamp>;
448
- flowId: string;
449
- id: Generated<string>;
450
- listingId: string | null;
451
- rateId: string | null;
452
- settingKey: string;
453
- tenantId: string;
454
- updatedAt: Generated<Timestamp>;
455
- value: Json | null;
456
- }
457
-
458
- export interface CoreIssueMessageOverwrite {
459
- createdAt: Generated<Timestamp | null>;
460
- id: Generated<string>;
461
- message: string;
462
- pattern: string;
463
- updatedAt: Generated<Timestamp | null>;
464
- }
465
-
466
- export interface CoreSync {
467
- automationId: string | null;
468
- connectionId: string | null;
469
- createdAt: Generated<Timestamp>;
470
- environment: string | null;
471
- id: Generated<string>;
472
- isCurrentOnAutomation: Generated<boolean | null>;
473
- isCurrentOnConnection: Generated<boolean>;
474
- message: string | null;
475
- params: Generated<Json>;
476
- status: string;
477
- syncedAt: Timestamp | null;
478
- tenantId: string;
479
- triggerRef: string | null;
480
- type: string;
481
- updatedAt: Generated<Timestamp>;
482
- userId: string | null;
483
- }
484
-
485
- export interface CoreSyncStatus {
486
- name: string;
487
- }
488
-
489
- export interface CoreSyncSubtask {
490
- createdAt: Generated<Timestamp>;
491
- id: Generated<string>;
492
- message: string | null;
493
- params: Generated<Json | null>;
494
- status: Generated<string>;
495
- syncId: string;
496
- tenantId: string;
497
- triggerRef: string | null;
498
- updatedAt: Generated<Timestamp>;
499
- }
500
-
501
- export interface CoreSyncType {
502
- name: string;
503
- }
504
-
505
- export interface HdbCatalogEventInvocationLogs {
506
- createdAt: Generated<Timestamp | null>;
507
- eventId: string | null;
508
- id: Generated<string>;
509
- request: Json | null;
510
- response: Json | null;
511
- status: number | null;
512
- triggerName: string | null;
513
- }
514
-
515
- export interface HdbCatalogEventLog {
516
- archived: Generated<boolean>;
517
- createdAt: Generated<Timestamp | null>;
518
- delivered: Generated<boolean>;
519
- error: Generated<boolean>;
520
- id: Generated<string>;
521
- locked: Timestamp | null;
522
- nextRetryAt: Timestamp | null;
523
- payload: Json;
524
- schemaName: string;
525
- tableName: string;
526
- tries: Generated<number>;
527
- triggerName: string;
528
- }
529
-
530
- export interface HdbCatalogHdbActionLog {
531
- actionName: string | null;
532
- createdAt: Generated<Timestamp>;
533
- errors: Json | null;
534
- id: Generated<string>;
535
- inputPayload: Json;
536
- requestHeaders: Json;
537
- responsePayload: Json | null;
538
- responseReceivedAt: Timestamp | null;
539
- sessionVariables: Json;
540
- status: string;
541
- }
542
-
543
- export interface HdbCatalogHdbCronEventInvocationLogs {
544
- createdAt: Generated<Timestamp | null>;
545
- eventId: string | null;
546
- id: Generated<string>;
547
- request: Json | null;
548
- response: Json | null;
549
- status: number | null;
550
- }
551
-
552
- export interface HdbCatalogHdbCronEvents {
553
- createdAt: Generated<Timestamp | null>;
554
- id: Generated<string>;
555
- nextRetryAt: Timestamp | null;
556
- scheduledTime: Timestamp;
557
- status: Generated<string>;
558
- tries: Generated<number>;
559
- triggerName: string;
560
- }
561
-
562
- export interface HdbCatalogHdbEventLogCleanups {
563
- deletedEventInvocationLogs: number | null;
564
- deletedEventLogs: number | null;
565
- id: Generated<string>;
566
- scheduledAt: Timestamp;
567
- status: string;
568
- triggerName: string;
569
- }
570
-
571
- export interface HdbCatalogHdbMetadata {
572
- id: number;
573
- metadata: Json;
574
- resourceVersion: Generated<number>;
575
- }
576
-
577
- export interface HdbCatalogHdbScheduledEventInvocationLogs {
578
- createdAt: Generated<Timestamp | null>;
579
- eventId: string | null;
580
- id: Generated<string>;
581
- request: Json | null;
582
- response: Json | null;
583
- status: number | null;
584
- }
585
-
586
- export interface HdbCatalogHdbScheduledEvents {
587
- comment: string | null;
588
- createdAt: Generated<Timestamp | null>;
589
- headerConf: Json | null;
590
- id: Generated<string>;
591
- nextRetryAt: Timestamp | null;
592
- payload: Json | null;
593
- retryConf: Json | null;
594
- scheduledTime: Timestamp;
595
- status: Generated<string>;
596
- tries: Generated<number>;
597
- webhookConf: Json;
598
- }
599
-
600
- export interface HdbCatalogHdbSchemaNotifications {
601
- id: number;
602
- instanceId: string;
603
- notification: Json;
604
- resourceVersion: Generated<number>;
605
- updatedAt: Generated<Timestamp | null>;
606
- }
607
-
608
- export interface HdbCatalogHdbSourceCatalogVersion {
609
- upgradedOn: Timestamp;
610
- version: string;
611
- }
612
-
613
- export interface HdbCatalogHdbVersion {
614
- cliState: Generated<Json>;
615
- consoleState: Generated<Json>;
616
- eeClientId: string | null;
617
- eeClientSecret: string | null;
618
- hasuraUuid: Generated<string>;
619
- upgradedOn: Timestamp;
620
- version: string;
621
- }
622
-
623
- export interface PublicAccountCollection {
624
- automationId: string | null;
625
- connectionId: string;
626
- createdAt: Generated<Timestamp | null>;
627
- id: Generated<string>;
628
- name: string;
629
- tenantId: string;
630
- type: Generated<string | null>;
631
- updatedAt: Generated<Timestamp | null>;
632
- }
633
-
634
- export interface PublicAccountCollectionType {
635
- name: string;
636
- }
637
-
638
- export interface PublicAddress {
639
- city: string | null;
640
- country: string | null;
641
- countryCode: string | null;
642
- createdAt: Generated<Timestamp>;
643
- full: string | null;
644
- id: Generated<string>;
645
- lastValidated: Timestamp | null;
646
- line: string | null;
647
- lineDetails: string | null;
648
- postalCode: string | null;
649
- state: string | null;
650
- stateCode: string | null;
651
- tenantId: string | null;
652
- uniqueRef: string | null;
653
- updatedAt: Generated<Timestamp>;
654
- }
655
-
656
- export interface PublicApp {
657
- authentication: Generated<Json>;
658
- category: string | null;
659
- color: string | null;
660
- config: Generated<Json>;
661
- createdAt: Generated<Timestamp>;
662
- defaultMachineSize: string | null;
663
- endpoint: string | null;
664
- flows: Generated<Json>;
665
- flyApp: string | null;
666
- icon: string | null;
667
- iconRound: string | null;
668
- id: Generated<string>;
669
- info: Json | null;
670
- name: string;
671
- pluginData: Json | null;
672
- type: string;
673
- uid: Generated<string | null>;
674
- version: Generated<number>;
675
- }
676
-
677
- export interface PublicAuditLog {
678
- actorUserId: string | null;
679
- automationId: string | null;
680
- connectionId: string | null;
681
- contactId: string | null;
682
- createdAt: Generated<Timestamp>;
683
- deltaJson: Json | null;
684
- id: Generated<string>;
685
- listingCollectionId: string | null;
686
- listingId: string | null;
687
- objectId: string | null;
688
- op: string;
689
- ownerId: string | null;
690
- ownerStatementId: string | null;
691
- ownerStatementLayoutId: string | null;
692
- tableName: string;
693
- taxStatementId: string | null;
694
- tenantId: string | null;
695
- userId: string | null;
696
- }
697
-
698
- export interface PublicAutomation {
699
- connectionId: string | null;
700
- createdAt: Generated<Timestamp>;
701
- id: Generated<string>;
702
- leftConnectionId: string | null;
703
- rightConnectionId: string | null;
704
- runSettings: Json | null;
705
- scheduleStatus: Generated<string | null>;
706
- status: Generated<string>;
707
- template: string | null;
708
- templateId: string | null;
709
- tenantId: string;
710
- title: string | null;
711
- triggerDevTaskOverwrite: string | null;
712
- updatedAt: Generated<Timestamp>;
713
- viewSettings: Json | null;
714
- }
715
-
716
- export interface PublicAutomationTemplate {
717
- /**
718
- * determines whether this automation allows a team to configure multiple versions of this with the same leftConnection rightConnection combination
719
- */
720
- allowMultiple: boolean | null;
721
- appId: string | null;
722
- createdAt: Generated<Timestamp | null>;
723
- description: string;
724
- endpoint: string;
725
- id: Generated<string>;
726
- input: string;
727
- label: string | null;
728
- leftAppId: string | null;
729
- mappings: Json | null;
730
- name: string | null;
731
- params: Generated<Json | null>;
732
- preview: Json | null;
733
- rightAppId: string | null;
734
- settings: Json | null;
735
- stripePriceRef: string | null;
736
- title: string | null;
737
- triggerDevTask: string | null;
738
- triggers: Generated<Json | null>;
739
- type: string | null;
740
- uniqueRef: string | null;
741
- updatedAt: Generated<Timestamp | null>;
742
- version: string | null;
743
- visibility: string | null;
744
- }
745
-
746
- export interface PublicBillingPaymentMethodType {
747
- name: string;
748
- }
749
-
750
- export interface PublicBookingChannel {
751
- channelRef: string | null;
752
- createdAt: Generated<Timestamp>;
753
- icon: string | null;
754
- id: Generated<string>;
755
- uniqueRef: string;
756
- updatedAt: Generated<Timestamp>;
757
- }
758
-
759
- export interface PublicConnection {
760
- appId: string;
761
- backendVersion: number | null;
762
- createdAt: Generated<Timestamp>;
763
- credentials: Generated<Json | null>;
764
- disabled: Generated<boolean | null>;
765
- fetchNext: Generated<Timestamp | null>;
766
- fetchStatus: Generated<string>;
767
- icon: string | null;
768
- id: Generated<string>;
769
- lastFetch: Timestamp | null;
770
- metadata: Json | null;
771
- name: string;
772
- persistentState: Generated<Json | null>;
773
- status: Generated<string | null>;
774
- tenantId: string;
775
- type: string | null;
776
- uniqueRef: string | null;
777
- updatedAt: Generated<Timestamp | null>;
778
- version: number | null;
779
- }
780
-
781
- export interface PublicCurrency {
782
- name: string;
783
- }
784
-
785
- export interface PublicDuplicateEmails {
786
- count: Int8 | null;
787
- email: string | null;
788
- id: string | null;
789
- }
790
-
791
- export interface PublicEmailTemplate {
792
- createdAt: Generated<Timestamp>;
793
- dataJson: Json;
794
- id: Generated<string>;
795
- tenantId: string;
796
- type: string;
797
- updatedAt: Generated<Timestamp>;
798
- }
799
-
800
- export interface PublicEmailTemplateType {
801
- name: string;
802
- }
803
-
804
- export interface PublicFeature {
805
- createdAt: Generated<Timestamp>;
806
- description: string | null;
807
- id: Generated<string>;
808
- issueUrl: string | null;
809
- /**
810
- * user ids of user needed to approve this feature
811
- */
812
- requiredApprovals: Generated<Json | null>;
813
- status: Generated<string | null>;
814
- tenantId: string | null;
815
- title: string;
816
- updatedAt: Generated<Timestamp>;
817
- url: string | null;
818
- }
819
-
820
- export interface PublicFeatureApproval {
821
- createdAt: Generated<Timestamp>;
822
- featureId: string;
823
- id: Generated<string>;
824
- status: Generated<string | null>;
825
- updatedAt: Generated<Timestamp>;
826
- userId: string;
827
- }
828
-
829
- export interface PublicFeatureApprovalStatus {
830
- name: string;
831
- }
832
-
833
- export interface PublicFeatureEnabledTeam {
834
- createdAt: Generated<Timestamp>;
835
- featureId: string;
836
- id: Generated<string>;
837
- status: Generated<string | null>;
838
- tenantId: string;
839
- updatedAt: Generated<Timestamp>;
840
- }
841
-
842
- export interface PublicFeatureStatus {
843
- name: string;
844
- }
845
-
846
- export interface PublicFileStorage {
847
- connectionId: string | null;
848
- contactId: string | null;
849
- createdAt: Generated<Timestamp>;
850
- endDate: Timestamp | null;
851
- extension: string | null;
852
- filename: string;
853
- fileUri: string | null;
854
- id: Generated<string>;
855
- metadata: Json | null;
856
- newOwnerId: string | null;
857
- ownerUserId: string | null;
858
- reservationId: string | null;
859
- rowDateField: string | null;
860
- startDate: Timestamp | null;
861
- status: string | null;
862
- tenantId: string;
863
- type: string;
864
- uniqueRef: string | null;
865
- updatedAt: Generated<Timestamp>;
866
- }
867
-
868
- export interface PublicFileStorageSourceLink {
869
- createdAt: Generated<Timestamp>;
870
- fileStorageId: string;
871
- id: Generated<string>;
872
- sourceId: string;
873
- updatedAt: Generated<Timestamp>;
874
- }
875
-
876
- export interface PublicFileStorageTag {
877
- createdAt: Generated<Timestamp>;
878
- id: Generated<string>;
879
- tenantId: string;
880
- title: string;
881
- uniqueRef: string;
882
- updatedAt: Generated<Timestamp>;
883
- }
884
-
885
- export interface PublicLatestDuplicateEmails {
886
- createdAt: Timestamp | null;
887
- email: string | null;
888
- id: string | null;
889
- name: string | null;
890
- status: string | null;
891
- }
892
-
893
- export interface PublicListing {
894
- address: string | null;
895
- addressCity: string | null;
896
- addressCountry: string | null;
897
- addressData: Json | null;
898
- addressId: string | null;
899
- addressState: string | null;
900
- bedrooms: number | null;
901
- beds: number | null;
902
- calculatedStatus: Generated<string | null>;
903
- calculatedTitle: Generated<string | null>;
904
- calculatedTitleNew: Generated<string | null>;
905
- centExpenseReserve: number | null;
906
- /**
907
- * Starting balance for tax statements
908
- */
909
- centTaxStartingBalance: number | null;
910
- collectionId: string | null;
911
- connectionId: string | null;
912
- createdAt: Generated<Timestamp | null>;
913
- customCode: string | null;
914
- defaultCurrency: string | null;
915
- id: Generated<string>;
916
- imageUri: string | null;
917
- metadata: Generated<Json | null>;
918
- name: string | null;
919
- ownerContactId: string | null;
920
- pmsAddressData: Json | null;
921
- pmsStatus: string | null;
922
- /**
923
- * Human-readable system ID (LST-XXX-XXXX-XXX).
924
- */
925
- shortRef: string | null;
926
- sourceId: string | null;
927
- status: string | null;
928
- tenantId: string;
929
- title: string | null;
930
- uniqueRef: string | null;
931
- updatedAt: Generated<Timestamp | null>;
932
- }
933
-
934
- export interface PublicListingCollection {
935
- createdAt: Generated<Timestamp>;
936
- id: Generated<string>;
937
- name: string;
938
- tenantId: string;
939
- updatedAt: Generated<Timestamp>;
940
- }
941
-
942
- export interface PublicListingConnection {
943
- address: string | null;
944
- bedrooms: number | null;
945
- beds: number | null;
946
- connectionId: string;
947
- createdAt: Generated<Timestamp | null>;
948
- groupKey: string | null;
949
- id: Generated<string>;
950
- listingId: string | null;
951
- metadata: Json | null;
952
- name: string | null;
953
- nickname: string | null;
954
- sourceId: string | null;
955
- status: string | null;
956
- tenantId: string | null;
957
- uniqueRef: string | null;
958
- updatedAt: Generated<Timestamp | null>;
959
- }
960
-
961
- export interface PublicListingOwner {
962
- createdAt: Generated<Timestamp | null>;
963
- id: Generated<string>;
964
- listingId: string;
965
- newOwnerId: string | null;
966
- ownerId: string | null;
967
- role: Generated<string>;
968
- split: Numeric | null;
969
- updatedAt: Generated<Timestamp | null>;
970
- }
971
-
972
- export interface PublicListingOwnerRole {
973
- name: string;
974
- }
975
-
976
- export interface PublicListingOwnershipPeriod {
977
- businessModel: Generated<string | null>;
978
- createdAt: Generated<Timestamp>;
979
- endAt: Timestamp | null;
980
- id: Generated<string>;
981
- listingId: string;
982
- setListingInactive: Generated<boolean | null>;
983
- startAt: Generated<Timestamp | null>;
984
- tenantId: string;
985
- updatedAt: Generated<Timestamp>;
986
- }
987
-
988
- export interface PublicListingOwnershipPeriodBusinessModel {
989
- name: string;
990
- }
991
-
992
- export interface PublicListingOwnershipPeriodMember {
993
- contactId: string | null;
994
- createdAt: Generated<Timestamp | null>;
995
- id: Generated<string>;
996
- ownerId: string | null;
997
- periodId: string;
998
- split: number;
999
- updatedAt: Generated<Timestamp | null>;
1000
- }
1001
-
1002
- export interface PublicOwner {
1003
- addressId: string | null;
1004
- companyType: string | null;
1005
- connectionId: string | null;
1006
- createdAt: Generated<Timestamp>;
1007
- email: string | null;
1008
- firstName: string | null;
1009
- id: Generated<string>;
1010
- is1099PostalDelivery: Generated<boolean>;
1011
- /**
1012
- * Lastname or company name
1013
- */
1014
- name: string;
1015
- phone: string | null;
1016
- pmsStatus: string | null;
1017
- sourceId: string | null;
1018
- status: Generated<string | null>;
1019
- taxId: string | null;
1020
- tenantId: string;
1021
- type: string;
1022
- uniqueRef: string | null;
1023
- updatedAt: Generated<Timestamp>;
1024
- }
1025
-
1026
- export interface PublicOwnerStatement {
1027
- automationId: string | null;
1028
- centAccountingBalanceEnd: number | null;
1029
- centAccountingBalanceStart: number | null;
1030
- centBalanceEnd: Int8 | null;
1031
- centBalanceStart: Int8 | null;
1032
- centExpenses: Int8 | null;
1033
- centNetRevenue: Int8 | null;
1034
- centPayedOut: number | null;
1035
- centRentalRevenue: number | null;
1036
- centTotal: Int8 | null;
1037
- centTransfer: Int8 | null;
1038
- createdAt: Generated<Timestamp>;
1039
- currency: string | null;
1040
- endAt: Timestamp;
1041
- id: Generated<string>;
1042
- layoutId: string | null;
1043
- listingId: string | null;
1044
- listingOwnershipPeriodId: string | null;
1045
- metadata: Json | null;
1046
- ownerId: string | null;
1047
- party: Generated<string | null>;
1048
- previousOwnerStatementId: string | null;
1049
- startAt: Timestamp;
1050
- status: Generated<string>;
1051
- templateId: string | null;
1052
- templateJson: Json | null;
1053
- tenantId: string;
1054
- uniqueRef: string | null;
1055
- updatedAt: Generated<Timestamp>;
1056
- }
1057
-
1058
- export interface PublicOwnerStatementLayout {
1059
- automationId: string | null;
1060
- connectionId: string | null;
1061
- createdAt: Generated<Timestamp>;
1062
- dataJson: Json;
1063
- id: Generated<string>;
1064
- isDefault: Generated<boolean | null>;
1065
- tenantId: string;
1066
- title: string;
1067
- updatedAt: Generated<Timestamp>;
1068
- }
1069
-
1070
- export interface PublicOwnerStatementLayoutAccount {
1071
- accountId: string;
1072
- createdAt: Generated<Timestamp>;
1073
- id: Generated<string>;
1074
- layoutId: string;
1075
- updatedAt: Generated<Timestamp>;
1076
- }
1077
-
1078
- export interface PublicOwnerStatementLayoutListing {
1079
- createdAt: Generated<Timestamp>;
1080
- id: Generated<string>;
1081
- layoutId: string;
1082
- listingId: string;
1083
- updatedAt: Generated<Timestamp>;
1084
- }
1085
-
1086
- export interface PublicOwnerStatementLine {
1087
- centTotal: number;
1088
- createdAt: Generated<Timestamp>;
1089
- currency: string | null;
1090
- customDescription: string | null;
1091
- date: Timestamp | null;
1092
- description: string | null;
1093
- externalLink: string | null;
1094
- groupId: string | null;
1095
- id: Generated<string>;
1096
- isOwnerPayout: Generated<boolean | null>;
1097
- metadata: Json | null;
1098
- ownerStatementId: string;
1099
- reservationId: string | null;
1100
- role: Generated<string | null>;
1101
- sourceId: string | null;
1102
- tenantId: string;
1103
- uniqueRef: string;
1104
- updatedAt: Generated<Timestamp>;
1105
- }
1106
-
1107
- export interface PublicOwnerStatementOwner {
1108
- createdAt: Generated<Timestamp | null>;
1109
- id: Generated<string>;
1110
- newOwnerId: string | null;
1111
- ownerId: string | null;
1112
- role: string;
1113
- split: Numeric | null;
1114
- statementId: string;
1115
- updatedAt: Generated<Timestamp | null>;
1116
- /**
1117
- * The source id to the listing owner vendor
1118
- */
1119
- vendorSourceId: string | null;
1120
- }
1121
-
1122
- export interface PublicOwnerStatementStatus {
1123
- name: string;
1124
- }
1125
-
1126
- export interface PublicOwnerStatementTemplate {
1127
- balanceStartAt: Timestamp | null;
1128
- billingAccountId: string | null;
1129
- createdAt: Generated<Timestamp>;
1130
- data: Json;
1131
- id: Generated<string>;
1132
- tenantId: string;
1133
- updatedAt: Generated<Timestamp>;
1134
- version: Generated<number | null>;
1135
- }
1136
-
1137
- export interface PublicOwnerType {
1138
- name: string;
1139
- }
1140
-
1141
- export interface PublicOwnerUserAccess {
1142
- contactId: string | null;
1143
- createdAt: Generated<Timestamp>;
1144
- id: Generated<string>;
1145
- ownerId: string | null;
1146
- role: Generated<string>;
1147
- updatedAt: Generated<Timestamp>;
1148
- userId: string;
1149
- }
1150
-
1151
- export interface PublicOwnerUserAccessRole {
1152
- name: string;
1153
- }
1154
-
1155
- export interface PublicPayment {
1156
- bankAccountDigits: string | null;
1157
- centTotal: Generated<Int8 | null>;
1158
- connectionId: string | null;
1159
- createdAt: Generated<Timestamp | null>;
1160
- currency: string | null;
1161
- description: string | null;
1162
- etaAt: Timestamp | null;
1163
- id: Generated<string>;
1164
- isReconciled: Generated<boolean | null>;
1165
- issues: Json | null;
1166
- metadata: Generated<Json | null>;
1167
- payedAt: Timestamp | null;
1168
- paymentMethod: string | null;
1169
- sourceId: string | null;
1170
- status: string | null;
1171
- tenantId: string | null;
1172
- type: string | null;
1173
- uniqueRef: string | null;
1174
- uniqueRefAir: string | null;
1175
- uniqueRefTemp: string | null;
1176
- updatedAt: Generated<Timestamp | null>;
1177
- userdata: Generated<Json | null>;
1178
- }
1179
-
1180
- export interface PublicPaymentLine {
1181
- accountId: string | null;
1182
- centTotal: Int8 | null;
1183
- connectionId: string | null;
1184
- createdAt: Generated<Timestamp>;
1185
- description: string | null;
1186
- generalLedgerPostingAt: Timestamp | null;
1187
- id: Generated<string>;
1188
- lineId: string | null;
1189
- listingId: string | null;
1190
- matchReservationConfirmationCode: string | null;
1191
- matchReservationStripeGuestRef: string | null;
1192
- matchStatus: Generated<string | null>;
1193
- metadata: Json | null;
1194
- originCentTotal: Int8 | null;
1195
- originCurrency: string | null;
1196
- originExchangeRate: Numeric | null;
1197
- party: string | null;
1198
- paymentId: string | null;
1199
- recurringFeeId: string | null;
1200
- reservationId: string | null;
1201
- skipReconcile: Generated<boolean | null>;
1202
- tenantId: string | null;
1203
- type: string | null;
1204
- type2: string | null;
1205
- uniqueRef: string | null;
1206
- uniqueRef2: string | null;
1207
- updatedAt: Generated<Timestamp | null>;
1208
- }
1209
-
1210
- export interface PublicPaymentLineClassification {
1211
- appId: string | null;
1212
- createdAt: Generated<Timestamp | null>;
1213
- id: Generated<string | null>;
1214
- name: string;
1215
- type: string | null;
1216
- updatedAt: Generated<Timestamp | null>;
1217
- }
1218
-
1219
- export interface PublicPaymentStatus {
1220
- name: string;
1221
- }
1222
-
1223
- export interface PublicPaymentType {
1224
- name: string;
1225
- }
1226
-
1227
- export interface PublicRecurringFee {
1228
- bookingChannelsFilter: string[] | null;
1229
- createdAt: Generated<Timestamp>;
1230
- creditAccountId: string | null;
1231
- creditParty: Generated<string>;
1232
- debitAccountId: string | null;
1233
- debitParty: Generated<string>;
1234
- defaultRate: number | null;
1235
- formula: string | null;
1236
- icon: string | null;
1237
- id: Generated<string>;
1238
- rateType: Generated<string | null>;
1239
- revenueRecognition: string | null;
1240
- status: Generated<string>;
1241
- statusFilter: string | null;
1242
- taxBehavior: string | null;
1243
- taxRateId: string | null;
1244
- tenantId: string;
1245
- title: string;
1246
- type: Generated<string>;
1247
- uniqueRef: string | null;
1248
- updatedAt: Generated<Timestamp>;
1249
- }
1250
-
1251
- export interface PublicRecurringFeeAccount {
1252
- accountId: string;
1253
- createdAt: Generated<Timestamp>;
1254
- id: Generated<string>;
1255
- recurringFeeId: string;
1256
- updatedAt: Generated<Timestamp>;
1257
- }
1258
-
1259
- export interface PublicRecurringFeeListingSubscription {
1260
- createdAt: Generated<Timestamp>;
1261
- endAt: Timestamp | null;
1262
- id: Generated<string>;
1263
- listingId: string;
1264
- rate: number | null;
1265
- rateType: Generated<string | null>;
1266
- recurringFeeId: string;
1267
- startAt: Generated<Timestamp | null>;
1268
- status: Generated<string>;
1269
- updatedAt: Generated<Timestamp>;
1270
- }
1271
-
1272
- export interface PublicRecurringFeeListingSubscriptionRateType {
1273
- name: string;
1274
- }
1275
-
1276
- export interface PublicRecurringFeeType {
1277
- name: string;
1278
- }
1279
-
1280
- export interface PublicReservation {
1281
- bookedAt: Generated<Timestamp | null>;
1282
- bookerName: string | null;
1283
- bookingPlatform: string | null;
1284
- calculatedDeduplicationRef: Generated<string | null>;
1285
- cancelledAt: Timestamp | null;
1286
- centAccommodation: number | null;
1287
- centAdjustment: number | null;
1288
- centCancellation: number | null;
1289
- centCityTax: number | null;
1290
- centCleaning: Int8 | null;
1291
- centOta: number | null;
1292
- centPaid: Int8 | null;
1293
- centPaymentFee: number | null;
1294
- centService: number | null;
1295
- centTotal: Generated<Int8 | null>;
1296
- channelId: string | null;
1297
- checkIn: Timestamp | null;
1298
- checkOut: Timestamp | null;
1299
- confirmationCode: string | null;
1300
- connectionId: string | null;
1301
- createdAt: Generated<Timestamp | null>;
1302
- currency: string | null;
1303
- generalLedgerPostingAt: Timestamp | null;
1304
- guestName: string | null;
1305
- guests: number | null;
1306
- id: Generated<string>;
1307
- lineMap: Json | null;
1308
- listingConnectionId: string | null;
1309
- listingId: string | null;
1310
- matchPaymentCustomerRef: string | null;
1311
- metadata: Json | null;
1312
- nights: number | null;
1313
- otaReservationId: string | null;
1314
- paidStatus: string | null;
1315
- paymentMethod: string | null;
1316
- pmsReferenceCode: string | null;
1317
- /**
1318
- * Human-readable system ID (RES-XXX-XXXX-XXX).
1319
- */
1320
- shortRef: string | null;
1321
- sourceId: string | null;
1322
- status: Generated<string | null>;
1323
- tenantId: string | null;
1324
- uniqueRef: string | null;
1325
- uniqueRef2: string | null;
1326
- updatedAt: Generated<Timestamp | null>;
1327
- userdata: Generated<Json | null>;
1328
- }
1329
-
1330
- export interface PublicReservationStatus {
1331
- name: string;
1332
- }
1333
-
1334
- export interface PublicReservationWithOccupancyStatus {
1335
- bookedAt: Timestamp | null;
1336
- bookerName: string | null;
1337
- bookingPlatform: string | null;
1338
- cancelledAt: Timestamp | null;
1339
- centAccommodation: number | null;
1340
- centAdjustment: number | null;
1341
- centCancellation: number | null;
1342
- centCityTax: number | null;
1343
- centCleaning: Int8 | null;
1344
- centOta: number | null;
1345
- centPaid: Int8 | null;
1346
- centPaymentFee: number | null;
1347
- centService: number | null;
1348
- centTotal: Int8 | null;
1349
- channelId: string | null;
1350
- checkIn: Timestamp | null;
1351
- checkOut: Timestamp | null;
1352
- confirmationCode: string | null;
1353
- connectionId: string | null;
1354
- createdAt: Timestamp | null;
1355
- currency: string | null;
1356
- guestName: string | null;
1357
- guests: number | null;
1358
- id: string | null;
1359
- lineMap: Json | null;
1360
- listingConnectionId: string | null;
1361
- listingId: string | null;
1362
- metadata: Json | null;
1363
- nights: number | null;
1364
- occupancyStatus: string | null;
1365
- otaReservationId: string | null;
1366
- paidStatus: string | null;
1367
- paymentMethod: string | null;
1368
- pmsReferenceCode: string | null;
1369
- sourceId: string | null;
1370
- status: string | null;
1371
- tenantId: string | null;
1372
- uniqueRef: string | null;
1373
- uniqueRef2: string | null;
1374
- updatedAt: Timestamp | null;
1375
- userdata: Json | null;
1376
- }
1377
-
1378
- export interface PublicSetting {
1379
- automationId: string | null;
1380
- connectionId: string | null;
1381
- createdAt: Generated<Timestamp>;
1382
- group: string | null;
1383
- id: Generated<string>;
1384
- key: string;
1385
- leftConnectionId: string | null;
1386
- leftId: Generated<string | null>;
1387
- leftType: string | null;
1388
- lineClassification: string | null;
1389
- listingId: string | null;
1390
- localAutomationId: string | null;
1391
- parentSettingId: string | null;
1392
- partner: string | null;
1393
- rightConnectionId: string | null;
1394
- rightId: Generated<string | null>;
1395
- rightType: string | null;
1396
- sourceId: string | null;
1397
- status: Generated<string | null>;
1398
- target: string;
1399
- targetUuid: Generated<string | null>;
1400
- tenantId: string | null;
1401
- updatedAt: Generated<Timestamp>;
1402
- value: string | null;
1403
- }
1404
-
1405
- export interface PublicSource {
1406
- /**
1407
- * deprecated
1408
- */
1409
- appId: string | null;
1410
- code: string | null;
1411
- connectionId: string | null;
1412
- createdAt: Generated<Timestamp>;
1413
- dataHref: string | null;
1414
- date: Timestamp | null;
1415
- description: string | null;
1416
- id: Generated<string>;
1417
- indexedJson: Json | null;
1418
- isArchived: Generated<boolean | null>;
1419
- json: Json | null;
1420
- lastWebhookAt: Timestamp | null;
1421
- /**
1422
- * deprecated
1423
- */
1424
- listingConnectionId: string | null;
1425
- /**
1426
- * deprecated
1427
- */
1428
- listingId: string | null;
1429
- modifiedAt: Timestamp | null;
1430
- parentId: string | null;
1431
- remoteId: string | null;
1432
- reservationId: string | null;
1433
- status: Generated<string | null>;
1434
- tenantId: string;
1435
- transformJson: Json | null;
1436
- transformType: string | null;
1437
- type: string;
1438
- updatedAt: Generated<Timestamp | null>;
1439
- version: Generated<number | null>;
1440
- }
1441
-
1442
- export interface PublicTask {
1443
- createdAt: Generated<Timestamp | null>;
1444
- id: Generated<string>;
1445
- message: string | null;
1446
- status: string | null;
1447
- }
1448
-
1449
- export interface PublicTaxStatement {
1450
- centRentalRevenue: number | null;
1451
- createdAt: Generated<Timestamp>;
1452
- endAt: Timestamp | null;
1453
- error: string | null;
1454
- id: Generated<string>;
1455
- metadata: Json | null;
1456
- ownerId: string | null;
1457
- startAt: Timestamp | null;
1458
- status: Generated<string>;
1459
- tenantId: string;
1460
- updatedAt: Generated<Timestamp>;
1461
- url: string | null;
1462
- userId: string | null;
1463
- year: number;
1464
- }
1465
-
1466
- export interface PublicTaxStatementStatus {
1467
- name: string;
1468
- }
1469
-
1470
- export interface PublicTenant {
1471
- address: string | null;
1472
- addressCity: string | null;
1473
- addressCountry: string | null;
1474
- addressLine1: string | null;
1475
- addressPostcode: string | null;
1476
- billingAddressData: Json | null;
1477
- billingAddressId: string | null;
1478
- billingCustomerId: string | null;
1479
- billingPartnerId: string | null;
1480
- billingPaymentMethodType: string | null;
1481
- billingPlan: string | null;
1482
- billingSubscriptionStatus: string | null;
1483
- booksClosedAt: Timestamp | null;
1484
- calculatedBillingPartnerId: Generated<string | null>;
1485
- calculatedIsBillable: Generated<boolean | null>;
1486
- calculatedStatus: Generated<string | null>;
1487
- /**
1488
- * Billing subscription is getting cancelled at date
1489
- */
1490
- cancelledAt: Timestamp | null;
1491
- chartOfAccountTenantId: string | null;
1492
- clerkId: string | null;
1493
- colorPrimary: string | null;
1494
- commissionPercentage: Numeric | null;
1495
- companyName: string | null;
1496
- companyTaxCode: string | null;
1497
- createdAt: Generated<Timestamp>;
1498
- defaultCurrency: string | null;
1499
- defaultRevenueRecognition: string | null;
1500
- email: string | null;
1501
- featureFlags: Generated<Json | null>;
1502
- id: Generated<string>;
1503
- intercomId: string | null;
1504
- isActive: Generated<boolean | null>;
1505
- isGeneralLedger: Generated<boolean | null>;
1506
- isOnboarding: Generated<boolean | null>;
1507
- isTest: Generated<boolean | null>;
1508
- logo: string | null;
1509
- longTermStayNights: number | null;
1510
- name: string;
1511
- partnerId: Generated<string | null>;
1512
- setup: Json | null;
1513
- setupCompleted: Generated<boolean | null>;
1514
- statementAddressData: Json | null;
1515
- statementAddressId: string | null;
1516
- statementStartAt: Timestamp | null;
1517
- status: Generated<string | null>;
1518
- stripeId: string | null;
1519
- stripeSubscriptionItemId: string | null;
1520
- supportEmail: string | null;
1521
- supportPhone: string | null;
1522
- svixEndpoints: boolean | null;
1523
- trialUntil: Timestamp | null;
1524
- type: Generated<string | null>;
1525
- updatedAt: Generated<Timestamp | null>;
1526
- website: string | null;
1527
- }
1528
-
1529
- export interface PublicTenantUser {
1530
- createdAt: Generated<Timestamp | null>;
1531
- id: Generated<string>;
1532
- lastInvitedAt: Timestamp | null;
1533
- notificationPreferences: Generated<Json | null>;
1534
- role: Generated<string | null>;
1535
- status: Generated<string | null>;
1536
- tenantId: string;
1537
- updatedAt: Generated<Timestamp | null>;
1538
- userId: string;
1539
- }
1540
-
1541
- export interface PublicToken {
1542
- createdAt: Generated<Timestamp>;
1543
- expiresAt: Timestamp | null;
1544
- id: Generated<string>;
1545
- nanoId: Generated<string>;
1546
- payload: Generated<Json>;
1547
- tenantId: string | null;
1548
- type: string | null;
1549
- userId: string | null;
1550
- }
1551
-
1552
- export interface PublicUser {
1553
- address: string | null;
1554
- addressCity: string | null;
1555
- addressCountry: string | null;
1556
- addressId: string | null;
1557
- addressLine1: string | null;
1558
- addressPostcode: string | null;
1559
- clerkId: string | null;
1560
- companyName: string | null;
1561
- companyType: string | null;
1562
- createdAt: Generated<Timestamp | null>;
1563
- email: string | null;
1564
- firstName: string | null;
1565
- id: Generated<string>;
1566
- isAdmin: Generated<boolean>;
1567
- lastName: string | null;
1568
- lastSeen: Timestamp | null;
1569
- name: string | null;
1570
- notificationPreferences: Generated<Json | null>;
1571
- partnerId: string | null;
1572
- password: string | null;
1573
- phone: string | null;
1574
- secondaryEmails: Generated<Json | null>;
1575
- status: Generated<string | null>;
1576
- sub: string | null;
1577
- taxId: string | null;
1578
- trialExpiryAt: Timestamp | null;
1579
- type: Generated<string | null>;
1580
- updatedAt: Generated<Timestamp | null>;
1581
- }
1582
-
1583
- export interface PublicUserCompanyType {
1584
- name: string;
1585
- }
1586
-
1587
- export interface PublicUserCompanyUser {
1588
- companyUserId: string;
1589
- createdAt: Generated<Timestamp>;
1590
- id: Generated<string>;
1591
- updatedAt: Generated<Timestamp>;
1592
- userId: string;
1593
- }
1594
-
1595
- export interface PublicView {
1596
- group: string | null;
1597
- icon: string | null;
1598
- id: Generated<string>;
1599
- isDefault: Generated<boolean | null>;
1600
- retoolViewId: string | null;
1601
- sortOrder: Generated<number | null>;
1602
- stateData: Json | null;
1603
- tenantId: string | null;
1604
- title: string;
1605
- type: string | null;
1606
- }
1607
-
1608
- export interface PublicViewNotificationEvents {
1609
- createdAt: Timestamp | null;
1610
- eventId: string | null;
1611
- id: string | null;
1612
- request: Json | null;
1613
- response: Json | null;
1614
- status: number | null;
1615
- triggerName: string | null;
1616
- }
1617
-
1618
- export interface PublicViewNotificationEventsGroupedByDate {
1619
- count: Int8 | null;
1620
- dateTrunc: Timestamp | null;
1621
- status: number | null;
1622
- triggerName: string | null;
1623
- }
1624
-
1625
- export interface PublicViewWebhookEvents {
1626
- createdAt: Timestamp | null;
1627
- eventId: string | null;
1628
- id: string | null;
1629
- request: Json | null;
1630
- response: Json | null;
1631
- status: number | null;
1632
- triggerName: string | null;
1633
- }
1634
-
1635
- export interface PublicViewWebhookEventsGroupedByDate {
1636
- count: Int8 | null;
1637
- dateTrunc: Timestamp | null;
1638
- status: number | null;
1639
- triggerName: string | null;
1640
- }
1641
-
1642
- export interface PublicWebhook {
1643
- createdAt: Generated<Timestamp>;
1644
- headers: Json | null;
1645
- id: Generated<string>;
1646
- tenantId: string | null;
1647
- types: Generated<Json>;
1648
- types2: string[] | null;
1649
- url: string;
1650
- }
1651
-
1652
- export interface StoreDispatchedAction {
1653
- actionType: string;
1654
- apiEndpoint: string | null;
1655
- createdAt: Generated<Timestamp>;
1656
- entityId: string | null;
1657
- entityType: string | null;
1658
- id: Generated<string>;
1659
- message: string | null;
1660
- payload: Json | null;
1661
- requestR2Link: string | null;
1662
- sequence: Generated<number>;
1663
- tenantId: string;
1664
- userId: string | null;
1665
- }
1666
-
1667
- export interface StoreEffectQueue {
1668
- claimedAt: Timestamp | null;
1669
- claimedBy: string | null;
1670
- completedAt: Timestamp | null;
1671
- createdAt: Generated<Timestamp>;
1672
- dispatchedActionId: string;
1673
- effectType: string;
1674
- entityId: string | null;
1675
- entityType: string | null;
1676
- id: Generated<string>;
1677
- lastAttemptAt: Timestamp | null;
1678
- lastError: string | null;
1679
- maxRetries: Generated<number>;
1680
- payload: Json;
1681
- priority: Generated<number>;
1682
- retryCount: Generated<number>;
1683
- sequence: Generated<number>;
1684
- status: Generated<StoreEffectStatus>;
1685
- tenantId: string;
1686
- }
1687
-
1688
- export interface StoreMutationLog {
1689
- changeRecord: Json;
1690
- createdAt: Generated<Timestamp>;
1691
- dispatchedActionId: string;
1692
- effectId: string | null;
1693
- id: Generated<string>;
1694
- mutatedEntityId: string;
1695
- mutatedEntityType: string;
1696
- mutationOp: string;
1697
- tenantId: string;
1698
- }
1699
-
1700
- export interface TrackingEvent {
1701
- createdAt: Generated<Timestamp>;
1702
- id: Generated<string>;
1703
- name: string;
1704
- packageName: string;
1705
- props: Json;
1706
- tenantId: string | null;
1707
- timestamp: Generated<Timestamp | null>;
1708
- trackedAt: Generated<Timestamp | null>;
1709
- userId: string | null;
1710
- }
1711
-
1712
- export interface TrackingIntercomConversation {
1713
- answer: string;
1714
- conversationId: Int8;
1715
- createdAt: Generated<Timestamp>;
1716
- id: Generated<string>;
1717
- isRelevant: boolean;
1718
- outcome: string;
1719
- question: string;
1720
- summary: string;
1721
- tags: string;
1722
- }
1723
-
1724
- export interface TrackingIntercomConversationUser {
1725
- conversationId: string;
1726
- createdAt: Generated<Timestamp>;
1727
- id: Generated<string>;
1728
- userId: string;
1729
- }
1730
-
1731
- export interface TrackingIntercomReport {
1732
- action: string;
1733
- category: string;
1734
- createdAt: Generated<Timestamp>;
1735
- id: Generated<string>;
1736
- summary: string;
1737
- tags: string;
1738
- }
1739
-
1740
- export interface TrackingIntercomReportConversation {
1741
- conversationId: string;
1742
- id: Generated<string>;
1743
- reportId: string;
1744
- }
1745
-
1746
- export interface TrackingMetricCache {
1747
- connectionId: Generated<string>;
1748
- date: Timestamp;
1749
- name: Generated<string>;
1750
- refreshedAt: Generated<Timestamp>;
1751
- status: Generated<string>;
1752
- tenantId: string;
1753
- total: Numeric;
1754
- type: string;
1755
- }
1756
-
1757
- export interface TrackingMonitorConnection {
1758
- appId: string;
1759
- connectionId: string;
1760
- createdAt: Generated<Timestamp>;
1761
- id: Generated<string>;
1762
- message: string | null;
1763
- status: string | null;
1764
- syncedAt: Timestamp | null;
1765
- tenantId: string;
1766
- triggerRef: string | null;
1767
- updatedAt: Timestamp | null;
1768
- version: number | null;
1769
- }
1770
-
1771
- export interface TrackingMonitorConnectionState {
1772
- name: string;
1773
- }
1774
-
1775
- export interface DB {
1776
- "accounting.account": AccountingAccount;
1777
- "accounting.accountAssignment": AccountingAccountAssignment;
1778
- "accounting.accountAssignmentLineType": AccountingAccountAssignmentLineType;
1779
- "accounting.accountAssignmentType": AccountingAccountAssignmentType;
1780
- "accounting.accountCategory": AccountingAccountCategory;
1781
- "accounting.accountClassification": AccountingAccountClassification;
1782
- "accounting.accountReservationLineType": AccountingAccountReservationLineType;
1783
- "accounting.accountReservationRevRec": AccountingAccountReservationRevRec;
1784
- "accounting.accountType": AccountingAccountType;
1785
- "accounting.bankAccount": AccountingBankAccount;
1786
- "accounting.bankAccountCategory": AccountingBankAccountCategory;
1787
- "accounting.bankAccountType": AccountingBankAccountType;
1788
- "accounting.bankRecord": AccountingBankRecord;
1789
- "accounting.bankRecordTransactionPayment": AccountingBankRecordTransactionPayment;
1790
- "accounting.contact": AccountingContact;
1791
- "accounting.contactCompanyType": AccountingContactCompanyType;
1792
- "accounting.contactType": AccountingContactType;
1793
- "accounting.journalEntry": AccountingJournalEntry;
1794
- "accounting.journalEntryEntityType": AccountingJournalEntryEntityType;
1795
- "accounting.journalEntryTriggerType": AccountingJournalEntryTriggerType;
1796
- "accounting.journalEntryType": AccountingJournalEntryType;
1797
- "accounting.paidStatus": AccountingPaidStatus;
1798
- "accounting.party": AccountingParty;
1799
- "accounting.rate": AccountingRate;
1800
- "accounting.rateType": AccountingRateType;
1801
- "accounting.taxBehavior": AccountingTaxBehavior;
1802
- "accounting.transaction": AccountingTransaction;
1803
- "accounting.transactionLine": AccountingTransactionLine;
1804
- "accounting.transactionType": AccountingTransactionType;
1805
- "core.activeStatus": CoreActiveStatus;
1806
- "core.change": CoreChange;
1807
- "core.changeEntityType": CoreChangeEntityType;
1808
- "core.changeLink": CoreChangeLink;
1809
- "core.changeSourceLink": CoreChangeSourceLink;
1810
- "core.changeStatus": CoreChangeStatus;
1811
- "core.changeSyncType": CoreChangeSyncType;
1812
- "core.changeType": CoreChangeType;
1813
- "core.flow": CoreFlow;
1814
- "core.flowMapping": CoreFlowMapping;
1815
- "core.flowSetting": CoreFlowSetting;
1816
- "core.issueMessageOverwrite": CoreIssueMessageOverwrite;
1817
- "core.sync": CoreSync;
1818
- "core.syncStatus": CoreSyncStatus;
1819
- "core.syncSubtask": CoreSyncSubtask;
1820
- "core.syncType": CoreSyncType;
1821
- "hdbCatalog.eventInvocationLogs": HdbCatalogEventInvocationLogs;
1822
- "hdbCatalog.eventLog": HdbCatalogEventLog;
1823
- "hdbCatalog.hdbActionLog": HdbCatalogHdbActionLog;
1824
- "hdbCatalog.hdbCronEventInvocationLogs": HdbCatalogHdbCronEventInvocationLogs;
1825
- "hdbCatalog.hdbCronEvents": HdbCatalogHdbCronEvents;
1826
- "hdbCatalog.hdbEventLogCleanups": HdbCatalogHdbEventLogCleanups;
1827
- "hdbCatalog.hdbMetadata": HdbCatalogHdbMetadata;
1828
- "hdbCatalog.hdbScheduledEventInvocationLogs": HdbCatalogHdbScheduledEventInvocationLogs;
1829
- "hdbCatalog.hdbScheduledEvents": HdbCatalogHdbScheduledEvents;
1830
- "hdbCatalog.hdbSchemaNotifications": HdbCatalogHdbSchemaNotifications;
1831
- "hdbCatalog.hdbSourceCatalogVersion": HdbCatalogHdbSourceCatalogVersion;
1832
- "hdbCatalog.hdbVersion": HdbCatalogHdbVersion;
1833
- "public.accountCollection": PublicAccountCollection;
1834
- "public.accountCollectionType": PublicAccountCollectionType;
1835
- "public.address": PublicAddress;
1836
- "public.app": PublicApp;
1837
- "public.auditLog": PublicAuditLog;
1838
- "public.automation": PublicAutomation;
1839
- "public.automationTemplate": PublicAutomationTemplate;
1840
- "public.billingPaymentMethodType": PublicBillingPaymentMethodType;
1841
- "public.bookingChannel": PublicBookingChannel;
1842
- "public.connection": PublicConnection;
1843
- "public.currency": PublicCurrency;
1844
- "public.duplicateEmails": PublicDuplicateEmails;
1845
- "public.emailTemplate": PublicEmailTemplate;
1846
- "public.emailTemplateType": PublicEmailTemplateType;
1847
- "public.feature": PublicFeature;
1848
- "public.featureApproval": PublicFeatureApproval;
1849
- "public.featureApprovalStatus": PublicFeatureApprovalStatus;
1850
- "public.featureEnabledTeam": PublicFeatureEnabledTeam;
1851
- "public.featureStatus": PublicFeatureStatus;
1852
- "public.fileStorage": PublicFileStorage;
1853
- "public.fileStorageSourceLink": PublicFileStorageSourceLink;
1854
- "public.fileStorageTag": PublicFileStorageTag;
1855
- "public.latestDuplicateEmails": PublicLatestDuplicateEmails;
1856
- "public.listing": PublicListing;
1857
- "public.listingCollection": PublicListingCollection;
1858
- "public.listingConnection": PublicListingConnection;
1859
- "public.listingOwner": PublicListingOwner;
1860
- "public.listingOwnerRole": PublicListingOwnerRole;
1861
- "public.listingOwnershipPeriod": PublicListingOwnershipPeriod;
1862
- "public.listingOwnershipPeriodBusinessModel": PublicListingOwnershipPeriodBusinessModel;
1863
- "public.listingOwnershipPeriodMember": PublicListingOwnershipPeriodMember;
1864
- "public.owner": PublicOwner;
1865
- "public.ownerStatement": PublicOwnerStatement;
1866
- "public.ownerStatementLayout": PublicOwnerStatementLayout;
1867
- "public.ownerStatementLayoutAccount": PublicOwnerStatementLayoutAccount;
1868
- "public.ownerStatementLayoutListing": PublicOwnerStatementLayoutListing;
1869
- "public.ownerStatementLine": PublicOwnerStatementLine;
1870
- "public.ownerStatementOwner": PublicOwnerStatementOwner;
1871
- "public.ownerStatementStatus": PublicOwnerStatementStatus;
1872
- "public.ownerStatementTemplate": PublicOwnerStatementTemplate;
1873
- "public.ownerType": PublicOwnerType;
1874
- "public.ownerUserAccess": PublicOwnerUserAccess;
1875
- "public.ownerUserAccessRole": PublicOwnerUserAccessRole;
1876
- "public.payment": PublicPayment;
1877
- "public.paymentLine": PublicPaymentLine;
1878
- "public.paymentLineClassification": PublicPaymentLineClassification;
1879
- "public.paymentStatus": PublicPaymentStatus;
1880
- "public.paymentType": PublicPaymentType;
1881
- "public.recurringFee": PublicRecurringFee;
1882
- "public.recurringFeeAccount": PublicRecurringFeeAccount;
1883
- "public.recurringFeeListingSubscription": PublicRecurringFeeListingSubscription;
1884
- "public.recurringFeeListingSubscriptionRateType": PublicRecurringFeeListingSubscriptionRateType;
1885
- "public.recurringFeeType": PublicRecurringFeeType;
1886
- "public.reservation": PublicReservation;
1887
- "public.reservationStatus": PublicReservationStatus;
1888
- "public.reservationWithOccupancyStatus": PublicReservationWithOccupancyStatus;
1889
- "public.setting": PublicSetting;
1890
- "public.source": PublicSource;
1891
- "public.task": PublicTask;
1892
- "public.taxStatement": PublicTaxStatement;
1893
- "public.taxStatementStatus": PublicTaxStatementStatus;
1894
- "public.tenant": PublicTenant;
1895
- "public.tenantUser": PublicTenantUser;
1896
- "public.token": PublicToken;
1897
- "public.user": PublicUser;
1898
- "public.userCompanyType": PublicUserCompanyType;
1899
- "public.userCompanyUser": PublicUserCompanyUser;
1900
- "public.view": PublicView;
1901
- "public.viewNotificationEvents": PublicViewNotificationEvents;
1902
- "public.viewNotificationEventsGroupedByDate": PublicViewNotificationEventsGroupedByDate;
1903
- "public.viewWebhookEvents": PublicViewWebhookEvents;
1904
- "public.viewWebhookEventsGroupedByDate": PublicViewWebhookEventsGroupedByDate;
1905
- "public.webhook": PublicWebhook;
1906
- "store.dispatchedAction": StoreDispatchedAction;
1907
- "store.effectQueue": StoreEffectQueue;
1908
- "store.mutationLog": StoreMutationLog;
1909
- "tracking.event": TrackingEvent;
1910
- "tracking.intercomConversation": TrackingIntercomConversation;
1911
- "tracking.intercomConversationUser": TrackingIntercomConversationUser;
1912
- "tracking.intercomReport": TrackingIntercomReport;
1913
- "tracking.intercomReportConversation": TrackingIntercomReportConversation;
1914
- "tracking.metricCache": TrackingMetricCache;
1915
- "tracking.monitorConnection": TrackingMonitorConnection;
1916
- "tracking.monitorConnectionState": TrackingMonitorConnectionState;
1917
- }