@vrplatform/api 1.2.33-stage.847 → 1.2.33-stage.850

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.
@@ -12502,7 +12502,7 @@ export interface operations {
12502
12502
  content: {
12503
12503
  "application/json": {
12504
12504
  data: {
12505
- id?: string | null;
12505
+ id: string | null;
12506
12506
  /** @description Value in cents (100 = 1€) */
12507
12507
  total: number;
12508
12508
  financials: {
@@ -12608,18 +12608,18 @@ export interface operations {
12608
12608
  listing: {
12609
12609
  id: string;
12610
12610
  name: string;
12611
- uniqueRef?: string | null;
12611
+ uniqueRef: string | null;
12612
12612
  };
12613
12613
  /** @enum {string} */
12614
- status: "preview" | "draft" | "inReview" | "void" | "published";
12615
- ownership?: {
12614
+ status: "draft" | "inReview" | "void" | "published";
12615
+ ownership: {
12616
12616
  id: string;
12617
12617
  startAt: string;
12618
- endAt?: string | null;
12618
+ endAt: string | null;
12619
12619
  members: {
12620
12620
  id: string;
12621
- ownerId?: string | null;
12622
- contactId?: string | null;
12621
+ ownerId: string | null;
12622
+ contactId: string | null;
12623
12623
  split: number;
12624
12624
  }[];
12625
12625
  } | null;
@@ -12627,6 +12627,7 @@ export interface operations {
12627
12627
  name: string;
12628
12628
  /** @enum {string|null} */
12629
12629
  summaryType?: "default" | "invoice" | null;
12630
+ isDefault: boolean;
12630
12631
  netRevenueSections: {
12631
12632
  id?: string | null;
12632
12633
  name: string;
@@ -12680,6 +12681,73 @@ export interface operations {
12680
12681
  })[];
12681
12682
  }[];
12682
12683
  id: string;
12684
+ activeListings: {
12685
+ id: string;
12686
+ name?: string | null;
12687
+ }[];
12688
+ linkedAccounts: {
12689
+ name: string;
12690
+ /** @enum {string|null} */
12691
+ status?: "active" | "inactive" | null;
12692
+ /** @enum {string} */
12693
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
12694
+ id: string;
12695
+ offsetAccount?: {
12696
+ id: string;
12697
+ name: string;
12698
+ } | null;
12699
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
12700
+ category?: {
12701
+ id: string;
12702
+ name: string;
12703
+ /** @enum {string|null} */
12704
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
12705
+ } | null;
12706
+ banking?: {
12707
+ /** @enum {string|null} */
12708
+ category?: "trust" | "operating" | "external" | null;
12709
+ /** @enum {string|null} */
12710
+ type?: "deposit" | "creditCard" | null;
12711
+ last4?: string | null;
12712
+ currency?: string | null;
12713
+ connections: {
12714
+ id: string;
12715
+ name: string;
12716
+ connection?: {
12717
+ id: string;
12718
+ icon?: string | null;
12719
+ } | null;
12720
+ /** @enum {string|null} */
12721
+ status?: "active" | "inactive" | null;
12722
+ currentSync?: {
12723
+ /** @enum {string} */
12724
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
12725
+ createdAt: string;
12726
+ updatedAt: string;
12727
+ message?: string | null;
12728
+ } | null;
12729
+ source?: {
12730
+ /** Format: uuid */
12731
+ id: string;
12732
+ type: string;
12733
+ /** @enum {string|null} */
12734
+ status?: "active" | "inactive" | null;
12735
+ } | null;
12736
+ }[];
12737
+ bankRecords: {
12738
+ reconciled: number;
12739
+ unreconciled: number;
12740
+ total: number;
12741
+ latestCreatedAt?: string | null;
12742
+ };
12743
+ balance?: {
12744
+ openingDate?: string | null;
12745
+ opening: number;
12746
+ ending: number;
12747
+ } | null;
12748
+ } | null;
12749
+ }[];
12750
+ createdAt: string;
12683
12751
  systemSections: {
12684
12752
  id?: string | null;
12685
12753
  name: string;
@@ -12708,7 +12776,7 @@ export interface operations {
12708
12776
  }[];
12709
12777
  };
12710
12778
  rows: ({
12711
- id?: string | null;
12779
+ id: string | null;
12712
12780
  /** @description Value in cents (100 = 1€) */
12713
12781
  total: number;
12714
12782
  section: string;
@@ -12733,7 +12801,7 @@ export interface operations {
12733
12801
  name: string;
12734
12802
  text: string;
12735
12803
  type: string;
12736
- value?: (number | string) | null;
12804
+ value: (number | string) | null;
12737
12805
  props?: {
12738
12806
  [key: string]: unknown;
12739
12807
  };
@@ -12745,12 +12813,12 @@ export interface operations {
12745
12813
  /** @enum {string} */
12746
12814
  type: "deposit" | "expense" | "transfer";
12747
12815
  description: string;
12748
- recurringFee?: {
12816
+ recurringFee: {
12749
12817
  id: string;
12750
12818
  } | null;
12751
12819
  };
12752
12820
  } | {
12753
- id?: string | null;
12821
+ id: string | null;
12754
12822
  /** @description Value in cents (100 = 1€) */
12755
12823
  total: number;
12756
12824
  section: string;
@@ -12775,7 +12843,7 @@ export interface operations {
12775
12843
  name: string;
12776
12844
  text: string;
12777
12845
  type: string;
12778
- value?: (number | string) | null;
12846
+ value: (number | string) | null;
12779
12847
  props?: {
12780
12848
  [key: string]: unknown;
12781
12849
  };
@@ -12783,19 +12851,21 @@ export interface operations {
12783
12851
  /** @enum {string} */
12784
12852
  type: "reservation";
12785
12853
  source: {
12786
- /** Format: uuid */
12787
12854
  id: string;
12788
- confirmationCode?: string | null;
12789
- pmsReferenceCode?: string | null;
12790
- guestName?: string | null;
12791
- checkIn?: string | null;
12792
- checkOut?: string | null;
12793
- nights?: number | null;
12794
- bookingPlatform?: string | null;
12855
+ confirmationCode: string | null;
12856
+ pmsReferenceCode: string | null;
12857
+ guestName: string | null;
12858
+ checkIn: string | null;
12859
+ checkOut: string | null;
12860
+ nights: number | null;
12861
+ bookingPlatform: string | null;
12862
+ channelName: string | null;
12863
+ channelUniqueRef: string | null;
12795
12864
  payment: {
12796
12865
  expected: number;
12797
12866
  received: number;
12798
- status: ("unpaid" | "underpaid" | "overpaid" | "paid") | "coHost";
12867
+ /** @enum {string} */
12868
+ status: "unpaid" | "underpaid" | "overpaid" | "paid" | "coHost";
12799
12869
  };
12800
12870
  issues: ({
12801
12871
  /** @enum {string} */
@@ -12811,7 +12881,7 @@ export interface operations {
12811
12881
  /** @enum {string} */
12812
12882
  severity: "warning";
12813
12883
  context: {
12814
- startDate?: string | null;
12884
+ startDate: string | null;
12815
12885
  };
12816
12886
  } | {
12817
12887
  /** @enum {string} */
@@ -12819,7 +12889,7 @@ export interface operations {
12819
12889
  /** @enum {string} */
12820
12890
  severity: "warning";
12821
12891
  context: {
12822
- startDate?: string | null;
12892
+ startDate: string | null;
12823
12893
  };
12824
12894
  } | {
12825
12895
  /** @enum {string} */
@@ -12828,10 +12898,10 @@ export interface operations {
12828
12898
  severity: "warning";
12829
12899
  context: Record<string, never>;
12830
12900
  })[];
12831
- generalLedgerPostingAt?: string | null;
12901
+ generalLedgerPostingAt: string | null;
12832
12902
  };
12833
12903
  } | {
12834
- id?: string | null;
12904
+ id: string | null;
12835
12905
  /** @description Value in cents (100 = 1€) */
12836
12906
  total: number;
12837
12907
  section: string;
@@ -12856,7 +12926,7 @@ export interface operations {
12856
12926
  name: string;
12857
12927
  text: string;
12858
12928
  type: string;
12859
- value?: (number | string) | null;
12929
+ value: (number | string) | null;
12860
12930
  props?: {
12861
12931
  [key: string]: unknown;
12862
12932
  };
@@ -12864,7 +12934,7 @@ export interface operations {
12864
12934
  /** @enum {string} */
12865
12935
  type: "summary";
12866
12936
  source: {
12867
- id?: string | null;
12937
+ id: string | null;
12868
12938
  };
12869
12939
  })[];
12870
12940
  }[];
@@ -12940,7 +13010,7 @@ export interface operations {
12940
13010
  };
12941
13011
  content: {
12942
13012
  "application/json": {
12943
- id?: string | null;
13013
+ id: string | null;
12944
13014
  /** @description Value in cents (100 = 1€) */
12945
13015
  total: number;
12946
13016
  financials: {
@@ -13046,18 +13116,18 @@ export interface operations {
13046
13116
  listing: {
13047
13117
  id: string;
13048
13118
  name: string;
13049
- uniqueRef?: string | null;
13119
+ uniqueRef: string | null;
13050
13120
  };
13051
13121
  /** @enum {string} */
13052
- status: "preview" | "draft" | "inReview" | "void" | "published";
13053
- ownership?: {
13122
+ status: "draft" | "inReview" | "void" | "published";
13123
+ ownership: {
13054
13124
  id: string;
13055
13125
  startAt: string;
13056
- endAt?: string | null;
13126
+ endAt: string | null;
13057
13127
  members: {
13058
13128
  id: string;
13059
- ownerId?: string | null;
13060
- contactId?: string | null;
13129
+ ownerId: string | null;
13130
+ contactId: string | null;
13061
13131
  split: number;
13062
13132
  }[];
13063
13133
  } | null;
@@ -13065,6 +13135,7 @@ export interface operations {
13065
13135
  name: string;
13066
13136
  /** @enum {string|null} */
13067
13137
  summaryType?: "default" | "invoice" | null;
13138
+ isDefault: boolean;
13068
13139
  netRevenueSections: {
13069
13140
  id?: string | null;
13070
13141
  name: string;
@@ -13118,6 +13189,73 @@ export interface operations {
13118
13189
  })[];
13119
13190
  }[];
13120
13191
  id: string;
13192
+ activeListings: {
13193
+ id: string;
13194
+ name?: string | null;
13195
+ }[];
13196
+ linkedAccounts: {
13197
+ name: string;
13198
+ /** @enum {string|null} */
13199
+ status?: "active" | "inactive" | null;
13200
+ /** @enum {string} */
13201
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
13202
+ id: string;
13203
+ offsetAccount?: {
13204
+ id: string;
13205
+ name: string;
13206
+ } | null;
13207
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
13208
+ category?: {
13209
+ id: string;
13210
+ name: string;
13211
+ /** @enum {string|null} */
13212
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
13213
+ } | null;
13214
+ banking?: {
13215
+ /** @enum {string|null} */
13216
+ category?: "trust" | "operating" | "external" | null;
13217
+ /** @enum {string|null} */
13218
+ type?: "deposit" | "creditCard" | null;
13219
+ last4?: string | null;
13220
+ currency?: string | null;
13221
+ connections: {
13222
+ id: string;
13223
+ name: string;
13224
+ connection?: {
13225
+ id: string;
13226
+ icon?: string | null;
13227
+ } | null;
13228
+ /** @enum {string|null} */
13229
+ status?: "active" | "inactive" | null;
13230
+ currentSync?: {
13231
+ /** @enum {string} */
13232
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
13233
+ createdAt: string;
13234
+ updatedAt: string;
13235
+ message?: string | null;
13236
+ } | null;
13237
+ source?: {
13238
+ /** Format: uuid */
13239
+ id: string;
13240
+ type: string;
13241
+ /** @enum {string|null} */
13242
+ status?: "active" | "inactive" | null;
13243
+ } | null;
13244
+ }[];
13245
+ bankRecords: {
13246
+ reconciled: number;
13247
+ unreconciled: number;
13248
+ total: number;
13249
+ latestCreatedAt?: string | null;
13250
+ };
13251
+ balance?: {
13252
+ openingDate?: string | null;
13253
+ opening: number;
13254
+ ending: number;
13255
+ } | null;
13256
+ } | null;
13257
+ }[];
13258
+ createdAt: string;
13121
13259
  systemSections: {
13122
13260
  id?: string | null;
13123
13261
  name: string;
@@ -13146,7 +13284,7 @@ export interface operations {
13146
13284
  }[];
13147
13285
  };
13148
13286
  rows: ({
13149
- id?: string | null;
13287
+ id: string | null;
13150
13288
  /** @description Value in cents (100 = 1€) */
13151
13289
  total: number;
13152
13290
  section: string;
@@ -13171,7 +13309,7 @@ export interface operations {
13171
13309
  name: string;
13172
13310
  text: string;
13173
13311
  type: string;
13174
- value?: (number | string) | null;
13312
+ value: (number | string) | null;
13175
13313
  props?: {
13176
13314
  [key: string]: unknown;
13177
13315
  };
@@ -13183,12 +13321,12 @@ export interface operations {
13183
13321
  /** @enum {string} */
13184
13322
  type: "deposit" | "expense" | "transfer";
13185
13323
  description: string;
13186
- recurringFee?: {
13324
+ recurringFee: {
13187
13325
  id: string;
13188
13326
  } | null;
13189
13327
  };
13190
13328
  } | {
13191
- id?: string | null;
13329
+ id: string | null;
13192
13330
  /** @description Value in cents (100 = 1€) */
13193
13331
  total: number;
13194
13332
  section: string;
@@ -13213,7 +13351,7 @@ export interface operations {
13213
13351
  name: string;
13214
13352
  text: string;
13215
13353
  type: string;
13216
- value?: (number | string) | null;
13354
+ value: (number | string) | null;
13217
13355
  props?: {
13218
13356
  [key: string]: unknown;
13219
13357
  };
@@ -13221,19 +13359,21 @@ export interface operations {
13221
13359
  /** @enum {string} */
13222
13360
  type: "reservation";
13223
13361
  source: {
13224
- /** Format: uuid */
13225
13362
  id: string;
13226
- confirmationCode?: string | null;
13227
- pmsReferenceCode?: string | null;
13228
- guestName?: string | null;
13229
- checkIn?: string | null;
13230
- checkOut?: string | null;
13231
- nights?: number | null;
13232
- bookingPlatform?: string | null;
13363
+ confirmationCode: string | null;
13364
+ pmsReferenceCode: string | null;
13365
+ guestName: string | null;
13366
+ checkIn: string | null;
13367
+ checkOut: string | null;
13368
+ nights: number | null;
13369
+ bookingPlatform: string | null;
13370
+ channelName: string | null;
13371
+ channelUniqueRef: string | null;
13233
13372
  payment: {
13234
13373
  expected: number;
13235
13374
  received: number;
13236
- status: ("unpaid" | "underpaid" | "overpaid" | "paid") | "coHost";
13375
+ /** @enum {string} */
13376
+ status: "unpaid" | "underpaid" | "overpaid" | "paid" | "coHost";
13237
13377
  };
13238
13378
  issues: ({
13239
13379
  /** @enum {string} */
@@ -13249,7 +13389,7 @@ export interface operations {
13249
13389
  /** @enum {string} */
13250
13390
  severity: "warning";
13251
13391
  context: {
13252
- startDate?: string | null;
13392
+ startDate: string | null;
13253
13393
  };
13254
13394
  } | {
13255
13395
  /** @enum {string} */
@@ -13257,7 +13397,7 @@ export interface operations {
13257
13397
  /** @enum {string} */
13258
13398
  severity: "warning";
13259
13399
  context: {
13260
- startDate?: string | null;
13400
+ startDate: string | null;
13261
13401
  };
13262
13402
  } | {
13263
13403
  /** @enum {string} */
@@ -13266,10 +13406,10 @@ export interface operations {
13266
13406
  severity: "warning";
13267
13407
  context: Record<string, never>;
13268
13408
  })[];
13269
- generalLedgerPostingAt?: string | null;
13409
+ generalLedgerPostingAt: string | null;
13270
13410
  };
13271
13411
  } | {
13272
- id?: string | null;
13412
+ id: string | null;
13273
13413
  /** @description Value in cents (100 = 1€) */
13274
13414
  total: number;
13275
13415
  section: string;
@@ -13294,7 +13434,7 @@ export interface operations {
13294
13434
  name: string;
13295
13435
  text: string;
13296
13436
  type: string;
13297
- value?: (number | string) | null;
13437
+ value: (number | string) | null;
13298
13438
  props?: {
13299
13439
  [key: string]: unknown;
13300
13440
  };
@@ -13302,7 +13442,7 @@ export interface operations {
13302
13442
  /** @enum {string} */
13303
13443
  type: "summary";
13304
13444
  source: {
13305
- id?: string | null;
13445
+ id: string | null;
13306
13446
  };
13307
13447
  })[];
13308
13448
  };
@@ -13369,11 +13509,6 @@ export interface operations {
13369
13509
  requestBody: {
13370
13510
  content: {
13371
13511
  "application/json": {
13372
- /**
13373
- * @default all
13374
- * @enum {string}
13375
- */
13376
- collectionMode?: "auto" | "all" | "currentMonthOnly";
13377
13512
  /** @enum {string} */
13378
13513
  status: "draft" | "inReview" | "void" | "published";
13379
13514
  /** @description If set, an email will be sent to each owner when the statement is published */
@@ -13392,7 +13527,7 @@ export interface operations {
13392
13527
  };
13393
13528
  content: {
13394
13529
  "application/json": {
13395
- id?: string | null;
13530
+ id: string | null;
13396
13531
  /** @description Value in cents (100 = 1€) */
13397
13532
  total: number;
13398
13533
  financials: {
@@ -13498,18 +13633,18 @@ export interface operations {
13498
13633
  listing: {
13499
13634
  id: string;
13500
13635
  name: string;
13501
- uniqueRef?: string | null;
13636
+ uniqueRef: string | null;
13502
13637
  };
13503
13638
  /** @enum {string} */
13504
13639
  status: "draft" | "inReview" | "void" | "published";
13505
- ownership?: {
13640
+ ownership: {
13506
13641
  id: string;
13507
13642
  startAt: string;
13508
- endAt?: string | null;
13643
+ endAt: string | null;
13509
13644
  members: {
13510
13645
  id: string;
13511
- ownerId?: string | null;
13512
- contactId?: string | null;
13646
+ ownerId: string | null;
13647
+ contactId: string | null;
13513
13648
  split: number;
13514
13649
  }[];
13515
13650
  } | null;
@@ -13517,6 +13652,7 @@ export interface operations {
13517
13652
  name: string;
13518
13653
  /** @enum {string|null} */
13519
13654
  summaryType?: "default" | "invoice" | null;
13655
+ isDefault: boolean;
13520
13656
  netRevenueSections: {
13521
13657
  id?: string | null;
13522
13658
  name: string;
@@ -13570,6 +13706,73 @@ export interface operations {
13570
13706
  })[];
13571
13707
  }[];
13572
13708
  id: string;
13709
+ activeListings: {
13710
+ id: string;
13711
+ name?: string | null;
13712
+ }[];
13713
+ linkedAccounts: {
13714
+ name: string;
13715
+ /** @enum {string|null} */
13716
+ status?: "active" | "inactive" | null;
13717
+ /** @enum {string} */
13718
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
13719
+ id: string;
13720
+ offsetAccount?: {
13721
+ id: string;
13722
+ name: string;
13723
+ } | null;
13724
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
13725
+ category?: {
13726
+ id: string;
13727
+ name: string;
13728
+ /** @enum {string|null} */
13729
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
13730
+ } | null;
13731
+ banking?: {
13732
+ /** @enum {string|null} */
13733
+ category?: "trust" | "operating" | "external" | null;
13734
+ /** @enum {string|null} */
13735
+ type?: "deposit" | "creditCard" | null;
13736
+ last4?: string | null;
13737
+ currency?: string | null;
13738
+ connections: {
13739
+ id: string;
13740
+ name: string;
13741
+ connection?: {
13742
+ id: string;
13743
+ icon?: string | null;
13744
+ } | null;
13745
+ /** @enum {string|null} */
13746
+ status?: "active" | "inactive" | null;
13747
+ currentSync?: {
13748
+ /** @enum {string} */
13749
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
13750
+ createdAt: string;
13751
+ updatedAt: string;
13752
+ message?: string | null;
13753
+ } | null;
13754
+ source?: {
13755
+ /** Format: uuid */
13756
+ id: string;
13757
+ type: string;
13758
+ /** @enum {string|null} */
13759
+ status?: "active" | "inactive" | null;
13760
+ } | null;
13761
+ }[];
13762
+ bankRecords: {
13763
+ reconciled: number;
13764
+ unreconciled: number;
13765
+ total: number;
13766
+ latestCreatedAt?: string | null;
13767
+ };
13768
+ balance?: {
13769
+ openingDate?: string | null;
13770
+ opening: number;
13771
+ ending: number;
13772
+ } | null;
13773
+ } | null;
13774
+ }[];
13775
+ createdAt: string;
13573
13776
  systemSections: {
13574
13777
  id?: string | null;
13575
13778
  name: string;
@@ -13598,7 +13801,7 @@ export interface operations {
13598
13801
  }[];
13599
13802
  };
13600
13803
  rows: ({
13601
- id?: string | null;
13804
+ id: string | null;
13602
13805
  /** @description Value in cents (100 = 1€) */
13603
13806
  total: number;
13604
13807
  section: string;
@@ -13623,7 +13826,7 @@ export interface operations {
13623
13826
  name: string;
13624
13827
  text: string;
13625
13828
  type: string;
13626
- value?: (number | string) | null;
13829
+ value: (number | string) | null;
13627
13830
  props?: {
13628
13831
  [key: string]: unknown;
13629
13832
  };
@@ -13635,12 +13838,12 @@ export interface operations {
13635
13838
  /** @enum {string} */
13636
13839
  type: "deposit" | "expense" | "transfer";
13637
13840
  description: string;
13638
- recurringFee?: {
13841
+ recurringFee: {
13639
13842
  id: string;
13640
13843
  } | null;
13641
13844
  };
13642
13845
  } | {
13643
- id?: string | null;
13846
+ id: string | null;
13644
13847
  /** @description Value in cents (100 = 1€) */
13645
13848
  total: number;
13646
13849
  section: string;
@@ -13665,7 +13868,7 @@ export interface operations {
13665
13868
  name: string;
13666
13869
  text: string;
13667
13870
  type: string;
13668
- value?: (number | string) | null;
13871
+ value: (number | string) | null;
13669
13872
  props?: {
13670
13873
  [key: string]: unknown;
13671
13874
  };
@@ -13673,19 +13876,21 @@ export interface operations {
13673
13876
  /** @enum {string} */
13674
13877
  type: "reservation";
13675
13878
  source: {
13676
- /** Format: uuid */
13677
13879
  id: string;
13678
- confirmationCode?: string | null;
13679
- pmsReferenceCode?: string | null;
13680
- guestName?: string | null;
13681
- checkIn?: string | null;
13682
- checkOut?: string | null;
13683
- nights?: number | null;
13684
- bookingPlatform?: string | null;
13880
+ confirmationCode: string | null;
13881
+ pmsReferenceCode: string | null;
13882
+ guestName: string | null;
13883
+ checkIn: string | null;
13884
+ checkOut: string | null;
13885
+ nights: number | null;
13886
+ bookingPlatform: string | null;
13887
+ channelName: string | null;
13888
+ channelUniqueRef: string | null;
13685
13889
  payment: {
13686
13890
  expected: number;
13687
13891
  received: number;
13688
- status: ("unpaid" | "underpaid" | "overpaid" | "paid") | "coHost";
13892
+ /** @enum {string} */
13893
+ status: "unpaid" | "underpaid" | "overpaid" | "paid" | "coHost";
13689
13894
  };
13690
13895
  issues: ({
13691
13896
  /** @enum {string} */
@@ -13701,7 +13906,7 @@ export interface operations {
13701
13906
  /** @enum {string} */
13702
13907
  severity: "warning";
13703
13908
  context: {
13704
- startDate?: string | null;
13909
+ startDate: string | null;
13705
13910
  };
13706
13911
  } | {
13707
13912
  /** @enum {string} */
@@ -13709,7 +13914,7 @@ export interface operations {
13709
13914
  /** @enum {string} */
13710
13915
  severity: "warning";
13711
13916
  context: {
13712
- startDate?: string | null;
13917
+ startDate: string | null;
13713
13918
  };
13714
13919
  } | {
13715
13920
  /** @enum {string} */
@@ -13718,10 +13923,10 @@ export interface operations {
13718
13923
  severity: "warning";
13719
13924
  context: Record<string, never>;
13720
13925
  })[];
13721
- generalLedgerPostingAt?: string | null;
13926
+ generalLedgerPostingAt: string | null;
13722
13927
  };
13723
13928
  } | {
13724
- id?: string | null;
13929
+ id: string | null;
13725
13930
  /** @description Value in cents (100 = 1€) */
13726
13931
  total: number;
13727
13932
  section: string;
@@ -13746,7 +13951,7 @@ export interface operations {
13746
13951
  name: string;
13747
13952
  text: string;
13748
13953
  type: string;
13749
- value?: (number | string) | null;
13954
+ value: (number | string) | null;
13750
13955
  props?: {
13751
13956
  [key: string]: unknown;
13752
13957
  };
@@ -13754,7 +13959,7 @@ export interface operations {
13754
13959
  /** @enum {string} */
13755
13960
  type: "summary";
13756
13961
  source: {
13757
- id?: string | null;
13962
+ id: string | null;
13758
13963
  };
13759
13964
  })[];
13760
13965
  /** Format: uuid */
@@ -13896,7 +14101,7 @@ export interface operations {
13896
14101
  /** @description Date in format YYYY-MM */
13897
14102
  month?: string;
13898
14103
  search?: string;
13899
- status?: "draft" | "inReview" | "void" | "published" | "all";
14104
+ status?: ("draft" | "inReview" | "void" | "published") | "all";
13900
14105
  /** @description comma separated owners */
13901
14106
  ownerIds?: string;
13902
14107
  /** @description comma separated owners */
@@ -13920,7 +14125,7 @@ export interface operations {
13920
14125
  content: {
13921
14126
  "application/json": {
13922
14127
  data: {
13923
- id?: string | null;
14128
+ id: string | null;
13924
14129
  /** @description Value in cents (100 = 1€) */
13925
14130
  total: number;
13926
14131
  financials: {
@@ -14026,18 +14231,18 @@ export interface operations {
14026
14231
  listing: {
14027
14232
  id: string;
14028
14233
  name: string;
14029
- uniqueRef?: string | null;
14234
+ uniqueRef: string | null;
14030
14235
  };
14031
14236
  /** @enum {string} */
14032
- status: "preview" | "draft" | "inReview" | "void" | "published";
14033
- ownership?: {
14237
+ status: "draft" | "inReview" | "void" | "published";
14238
+ ownership: {
14034
14239
  id: string;
14035
14240
  startAt: string;
14036
- endAt?: string | null;
14241
+ endAt: string | null;
14037
14242
  members: {
14038
14243
  id: string;
14039
- ownerId?: string | null;
14040
- contactId?: string | null;
14244
+ ownerId: string | null;
14245
+ contactId: string | null;
14041
14246
  split: number;
14042
14247
  }[];
14043
14248
  } | null;
@@ -14168,7 +14373,7 @@ export interface operations {
14168
14373
  content: {
14169
14374
  "application/json": {
14170
14375
  data: {
14171
- id?: string | null;
14376
+ id: string | null;
14172
14377
  /** @description Value in cents (100 = 1€) */
14173
14378
  total: number;
14174
14379
  financials: {
@@ -14274,18 +14479,18 @@ export interface operations {
14274
14479
  listing: {
14275
14480
  id: string;
14276
14481
  name: string;
14277
- uniqueRef?: string | null;
14482
+ uniqueRef: string | null;
14278
14483
  };
14279
14484
  /** @enum {string} */
14280
14485
  status: "draft" | "inReview" | "void" | "published";
14281
- ownership?: {
14486
+ ownership: {
14282
14487
  id: string;
14283
14488
  startAt: string;
14284
- endAt?: string | null;
14489
+ endAt: string | null;
14285
14490
  members: {
14286
14491
  id: string;
14287
- ownerId?: string | null;
14288
- contactId?: string | null;
14492
+ ownerId: string | null;
14493
+ contactId: string | null;
14289
14494
  split: number;
14290
14495
  }[];
14291
14496
  } | null;
@@ -14293,6 +14498,7 @@ export interface operations {
14293
14498
  name: string;
14294
14499
  /** @enum {string|null} */
14295
14500
  summaryType?: "default" | "invoice" | null;
14501
+ isDefault: boolean;
14296
14502
  netRevenueSections: {
14297
14503
  id?: string | null;
14298
14504
  name: string;
@@ -14346,6 +14552,73 @@ export interface operations {
14346
14552
  })[];
14347
14553
  }[];
14348
14554
  id: string;
14555
+ activeListings: {
14556
+ id: string;
14557
+ name?: string | null;
14558
+ }[];
14559
+ linkedAccounts: {
14560
+ name: string;
14561
+ /** @enum {string|null} */
14562
+ status?: "active" | "inactive" | null;
14563
+ /** @enum {string} */
14564
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
14565
+ id: string;
14566
+ offsetAccount?: {
14567
+ id: string;
14568
+ name: string;
14569
+ } | null;
14570
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
14571
+ category?: {
14572
+ id: string;
14573
+ name: string;
14574
+ /** @enum {string|null} */
14575
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
14576
+ } | null;
14577
+ banking?: {
14578
+ /** @enum {string|null} */
14579
+ category?: "trust" | "operating" | "external" | null;
14580
+ /** @enum {string|null} */
14581
+ type?: "deposit" | "creditCard" | null;
14582
+ last4?: string | null;
14583
+ currency?: string | null;
14584
+ connections: {
14585
+ id: string;
14586
+ name: string;
14587
+ connection?: {
14588
+ id: string;
14589
+ icon?: string | null;
14590
+ } | null;
14591
+ /** @enum {string|null} */
14592
+ status?: "active" | "inactive" | null;
14593
+ currentSync?: {
14594
+ /** @enum {string} */
14595
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
14596
+ createdAt: string;
14597
+ updatedAt: string;
14598
+ message?: string | null;
14599
+ } | null;
14600
+ source?: {
14601
+ /** Format: uuid */
14602
+ id: string;
14603
+ type: string;
14604
+ /** @enum {string|null} */
14605
+ status?: "active" | "inactive" | null;
14606
+ } | null;
14607
+ }[];
14608
+ bankRecords: {
14609
+ reconciled: number;
14610
+ unreconciled: number;
14611
+ total: number;
14612
+ latestCreatedAt?: string | null;
14613
+ };
14614
+ balance?: {
14615
+ openingDate?: string | null;
14616
+ opening: number;
14617
+ ending: number;
14618
+ } | null;
14619
+ } | null;
14620
+ }[];
14621
+ createdAt: string;
14349
14622
  systemSections: {
14350
14623
  id?: string | null;
14351
14624
  name: string;
@@ -14374,7 +14647,7 @@ export interface operations {
14374
14647
  }[];
14375
14648
  };
14376
14649
  rows: ({
14377
- id?: string | null;
14650
+ id: string | null;
14378
14651
  /** @description Value in cents (100 = 1€) */
14379
14652
  total: number;
14380
14653
  section: string;
@@ -14399,7 +14672,7 @@ export interface operations {
14399
14672
  name: string;
14400
14673
  text: string;
14401
14674
  type: string;
14402
- value?: (number | string) | null;
14675
+ value: (number | string) | null;
14403
14676
  props?: {
14404
14677
  [key: string]: unknown;
14405
14678
  };
@@ -14411,12 +14684,12 @@ export interface operations {
14411
14684
  /** @enum {string} */
14412
14685
  type: "deposit" | "expense" | "transfer";
14413
14686
  description: string;
14414
- recurringFee?: {
14687
+ recurringFee: {
14415
14688
  id: string;
14416
14689
  } | null;
14417
14690
  };
14418
14691
  } | {
14419
- id?: string | null;
14692
+ id: string | null;
14420
14693
  /** @description Value in cents (100 = 1€) */
14421
14694
  total: number;
14422
14695
  section: string;
@@ -14441,7 +14714,7 @@ export interface operations {
14441
14714
  name: string;
14442
14715
  text: string;
14443
14716
  type: string;
14444
- value?: (number | string) | null;
14717
+ value: (number | string) | null;
14445
14718
  props?: {
14446
14719
  [key: string]: unknown;
14447
14720
  };
@@ -14449,19 +14722,21 @@ export interface operations {
14449
14722
  /** @enum {string} */
14450
14723
  type: "reservation";
14451
14724
  source: {
14452
- /** Format: uuid */
14453
14725
  id: string;
14454
- confirmationCode?: string | null;
14455
- pmsReferenceCode?: string | null;
14456
- guestName?: string | null;
14457
- checkIn?: string | null;
14458
- checkOut?: string | null;
14459
- nights?: number | null;
14460
- bookingPlatform?: string | null;
14726
+ confirmationCode: string | null;
14727
+ pmsReferenceCode: string | null;
14728
+ guestName: string | null;
14729
+ checkIn: string | null;
14730
+ checkOut: string | null;
14731
+ nights: number | null;
14732
+ bookingPlatform: string | null;
14733
+ channelName: string | null;
14734
+ channelUniqueRef: string | null;
14461
14735
  payment: {
14462
14736
  expected: number;
14463
14737
  received: number;
14464
- status: ("unpaid" | "underpaid" | "overpaid" | "paid") | "coHost";
14738
+ /** @enum {string} */
14739
+ status: "unpaid" | "underpaid" | "overpaid" | "paid" | "coHost";
14465
14740
  };
14466
14741
  issues: ({
14467
14742
  /** @enum {string} */
@@ -14477,7 +14752,7 @@ export interface operations {
14477
14752
  /** @enum {string} */
14478
14753
  severity: "warning";
14479
14754
  context: {
14480
- startDate?: string | null;
14755
+ startDate: string | null;
14481
14756
  };
14482
14757
  } | {
14483
14758
  /** @enum {string} */
@@ -14485,7 +14760,7 @@ export interface operations {
14485
14760
  /** @enum {string} */
14486
14761
  severity: "warning";
14487
14762
  context: {
14488
- startDate?: string | null;
14763
+ startDate: string | null;
14489
14764
  };
14490
14765
  } | {
14491
14766
  /** @enum {string} */
@@ -14494,10 +14769,10 @@ export interface operations {
14494
14769
  severity: "warning";
14495
14770
  context: Record<string, never>;
14496
14771
  })[];
14497
- generalLedgerPostingAt?: string | null;
14772
+ generalLedgerPostingAt: string | null;
14498
14773
  };
14499
14774
  } | {
14500
- id?: string | null;
14775
+ id: string | null;
14501
14776
  /** @description Value in cents (100 = 1€) */
14502
14777
  total: number;
14503
14778
  section: string;
@@ -14522,7 +14797,7 @@ export interface operations {
14522
14797
  name: string;
14523
14798
  text: string;
14524
14799
  type: string;
14525
- value?: (number | string) | null;
14800
+ value: (number | string) | null;
14526
14801
  props?: {
14527
14802
  [key: string]: unknown;
14528
14803
  };
@@ -14530,11 +14805,9 @@ export interface operations {
14530
14805
  /** @enum {string} */
14531
14806
  type: "summary";
14532
14807
  source: {
14533
- id?: string | null;
14808
+ id: string | null;
14534
14809
  };
14535
14810
  })[];
14536
- /** Format: uuid */
14537
- syncId?: string | null;
14538
14811
  }[];
14539
14812
  };
14540
14813
  };