@vrplatform/api 1.3.0-stage.1199 → 1.3.0-stage.1202

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.
@@ -1374,41 +1374,6 @@ export interface paths {
1374
1374
  patch?: never;
1375
1375
  trace?: never;
1376
1376
  };
1377
- "/sources/batch": {
1378
- parameters: {
1379
- query?: never;
1380
- header?: never;
1381
- path?: never;
1382
- cookie?: never;
1383
- };
1384
- get?: never;
1385
- /** @description Updates a sources batch */
1386
- put: operations["updateSources"];
1387
- /** @description Create a sources batch */
1388
- post: operations["batchSources"];
1389
- delete?: never;
1390
- options?: never;
1391
- head?: never;
1392
- patch?: never;
1393
- trace?: never;
1394
- };
1395
- "/sources/cleanup": {
1396
- parameters: {
1397
- query?: never;
1398
- header?: never;
1399
- path?: never;
1400
- cookie?: never;
1401
- };
1402
- get?: never;
1403
- /** @description Cleanup after a sync, setting sources to inactive */
1404
- put: operations["cleanUpSources"];
1405
- post?: never;
1406
- delete?: never;
1407
- options?: never;
1408
- head?: never;
1409
- patch?: never;
1410
- trace?: never;
1411
- };
1412
1377
  "/dispatch/effects": {
1413
1378
  parameters: {
1414
1379
  query?: never;
@@ -2591,30 +2556,9 @@ export interface operations {
2591
2556
  data: {
2592
2557
  /** Format: uuid */
2593
2558
  id: string;
2594
- /** @enum {string} */
2595
- type: "deposit" | "creditCard";
2596
- /** @enum {string} */
2597
- category: "trust" | "operating" | "external";
2598
- name: string;
2599
2559
  uniqueRef?: string | null;
2600
- currency?: string | null;
2601
- lastDigits?: string | null;
2602
- /** @enum {string|null} */
2603
- status: "active" | "inactive" | null;
2604
- account?: {
2605
- id: string;
2606
- name: string;
2607
- uniqueRef?: string | null;
2608
- /** @enum {string} */
2609
- status: "active" | "inactive";
2610
- } | null;
2611
- source?: {
2612
- /** Format: uuid */
2613
- id: string;
2614
- type: string;
2615
- /** @enum {string|null} */
2616
- status?: "active" | "inactive" | null;
2617
- } | null;
2560
+ /** Format: uuid */
2561
+ sourceId?: string | null;
2618
2562
  }[];
2619
2563
  issues: {
2620
2564
  ref: string;
@@ -3078,49 +3022,8 @@ export interface operations {
3078
3022
  /** Format: uuid */
3079
3023
  id: string;
3080
3024
  uniqueRef?: string | null;
3081
- etaAt?: string | null;
3082
- paidAt?: string | null;
3083
- connectionId: string;
3084
- currency: string;
3085
- description?: string | null;
3086
- metadata?: {
3087
- [key: string]: unknown;
3088
- } | null;
3089
- userdata?: {
3090
- [key: string]: unknown;
3091
- } | null;
3092
- lines: {
3093
- /** Format: uuid */
3094
- id: string;
3095
- uniqueRef?: string | null;
3096
- type: string;
3097
- description?: string | null;
3098
- /** Format: uuid */
3099
- reservationId?: string | null;
3100
- /** @description Value in cents (100 = 1€) */
3101
- amount: number;
3102
- connectionId?: string | null;
3103
- metadata?: {
3104
- [key: string]: unknown;
3105
- } | null;
3106
- account?: {
3107
- id: string;
3108
- name: string;
3109
- uniqueRef?: string | null;
3110
- /** @enum {string} */
3111
- status: "active" | "inactive";
3112
- } | null;
3113
- isExcluded?: boolean | null;
3114
- }[];
3115
- /** @description Value in cents (100 = 1€) */
3116
- amount: number;
3117
- source?: {
3118
- /** Format: uuid */
3119
- id: string;
3120
- type: string;
3121
- /** @enum {string|null} */
3122
- status?: "active" | "inactive" | null;
3123
- } | null;
3025
+ /** Format: uuid */
3026
+ sourceId?: string | null;
3124
3027
  }[];
3125
3028
  issues: {
3126
3029
  ref: string;
@@ -4191,270 +4094,11 @@ export interface operations {
4191
4094
  content: {
4192
4095
  "application/json": {
4193
4096
  data: {
4194
- currency: string | null;
4195
- uniqueRef?: string | null;
4196
- guestName?: string | null;
4197
- bookerName?: string | null;
4198
- checkIn?: string | null;
4199
- checkOut?: string | null;
4200
- generalLedgerPostingAt?: string | null;
4201
- bookedAt?: string | null;
4202
- cancelledAt?: string | null;
4203
- bookingPlatform?: string | null;
4204
- confirmationCode?: string | null;
4205
- pmsReferenceCode?: string | null;
4206
- guests?: number | null;
4207
- userdata: {
4208
- [key: string]: unknown;
4209
- } | null;
4210
- metadata: {
4211
- [key: string]: unknown;
4212
- } | null;
4213
4097
  /** Format: uuid */
4214
4098
  id: string;
4215
- hasLockedJournalEntries: boolean;
4216
- issues: ({
4217
- /** @enum {string} */
4218
- code: "lineNotFound";
4219
- /** @enum {string} */
4220
- severity: "error";
4221
- context: {
4222
- lineIds: string[];
4223
- };
4224
- message: string;
4225
- } | {
4226
- /** @enum {string} */
4227
- code: "unbalancedJournalEntries";
4228
- /** @enum {string} */
4229
- severity: "error";
4230
- context: {
4231
- difference: number;
4232
- };
4233
- message: string;
4234
- } | {
4235
- /** @enum {string} */
4236
- code: "unassignedAccount";
4237
- /** @enum {string} */
4238
- severity: "error";
4239
- context: {
4240
- accountIds: string[];
4241
- };
4242
- } | {
4243
- /** @enum {string} */
4244
- code: "priorToStartDate";
4245
- /** @enum {string} */
4246
- severity: "warning";
4247
- context: {
4248
- startDate?: string | null;
4249
- };
4250
- } | {
4251
- /** @enum {string} */
4252
- code: "inactiveListing";
4253
- /** @enum {string} */
4254
- severity: "warning";
4255
- context: {
4256
- startDate?: string | null;
4257
- };
4258
- } | {
4259
- /** @enum {string} */
4260
- code: "inactiveConnection";
4261
- /** @enum {string} */
4262
- severity: "warning";
4263
- context: Record<string, never>;
4264
- } | {
4265
- /** @enum {string} */
4266
- code: "guestTotalsZero";
4267
- /** @enum {string} */
4268
- severity: "warning";
4269
- context: Record<string, never>;
4270
- } | {
4271
- /** @enum {string} */
4272
- code: "guestTotalsMismatch";
4273
- /** @enum {string} */
4274
- severity: "warning";
4275
- context: {
4276
- difference: number;
4277
- };
4278
- message: string;
4279
- } | {
4280
- /** @enum {string} */
4281
- code: "locked";
4282
- /** @enum {string} */
4283
- severity: "warning";
4284
- context: {
4285
- reasons: ("statement" | "period")[];
4286
- statementIds?: string[];
4287
- booksClosedAt?: string;
4288
- };
4289
- })[];
4290
- connection?: {
4291
- /** Format: uuid */
4292
- id: string;
4293
- name: string;
4294
- /** @enum {string} */
4295
- status: "active" | "inactive";
4296
- uniqueRef?: string | null;
4297
- appId: string;
4298
- } | null;
4299
- nights?: number | null;
4300
- /** @enum {string} */
4301
- status: "booked" | "canceled" | "inactive";
4302
- financials: {
4303
- totals: {
4304
- tax: number;
4305
- manager: number;
4306
- owner: number;
4307
- reservation: number;
4308
- expense: number;
4309
- deposit: number;
4310
- guest: number;
4311
- };
4312
- lines?: {
4313
- name: string;
4314
- /** @enum {string|null} */
4315
- type?: "reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_coHost" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment" | null;
4316
- /** @enum {string|null} */
4317
- party?: "owners" | "manager" | null;
4318
- /** @enum {string} */
4319
- status: "active" | "inactive";
4320
- amount: number;
4321
- /** @enum {string|null} */
4322
- inactiveReason?: "reservationCancelled" | "referenceAccount" | "deferredRevenue" | "system" | null;
4323
- account?: {
4324
- id: string;
4325
- name: string;
4326
- uniqueRef?: string | null;
4327
- /** @enum {string} */
4328
- status: "active" | "inactive";
4329
- /** @enum {string} */
4330
- type: "ledger" | "bank" | "recurringFee" | "nonPosting";
4331
- } | null;
4332
- recurringFee?: {
4333
- id: string;
4334
- uniqueRef: string;
4335
- name: string;
4336
- /** @enum {string} */
4337
- type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
4338
- } | null;
4339
- transaction?: {
4340
- id: string;
4341
- /** @enum {string} */
4342
- status: "active" | "inactive";
4343
- /** @description Value in cents (100 = 1€) */
4344
- amount: number;
4345
- account?: {
4346
- id: string;
4347
- name: string;
4348
- uniqueRef?: string | null;
4349
- /** @enum {string} */
4350
- status: "active" | "inactive";
4351
- } | null;
4352
- date: string;
4353
- description: string;
4354
- currency: string;
4355
- /** @enum {string} */
4356
- type: "deposit" | "expense" | "transfer";
4357
- contact?: {
4358
- /** Format: uuid */
4359
- id: string;
4360
- name?: string | null;
4361
- uniqueRef?: string | null;
4362
- } | null;
4363
- connection?: {
4364
- /** Format: uuid */
4365
- id: string;
4366
- name: string;
4367
- /** @enum {string} */
4368
- status: "active" | "inactive";
4369
- uniqueRef?: string | null;
4370
- appId: string;
4371
- } | null;
4372
- uniqueRef?: string | null;
4373
- recurringTemplate?: {
4374
- id: string;
4375
- } | null;
4376
- } | null;
4377
- line?: {
4378
- id: string;
4379
- type?: string | null;
4380
- description?: string | null;
4381
- } | null;
4382
- }[] | null;
4383
- };
4384
- listing?: {
4385
- /** Format: uuid */
4386
- id: string;
4387
- name: string;
4388
- uniqueRef?: string | null;
4389
- } | null;
4390
- listingConnection?: {
4391
- /** Format: uuid */
4392
- id: string;
4393
- name: string;
4394
- uniqueRef?: string | null;
4395
- } | null;
4396
- payment: {
4397
- expected: number;
4398
- received: number;
4399
- status: ("unpaid" | "underpaid" | "overpaid" | "paid") | "coHost";
4400
- };
4401
- source?: {
4402
- /** Format: uuid */
4403
- id: string;
4404
- type: string;
4405
- /** @enum {string|null} */
4406
- status?: "active" | "inactive" | null;
4407
- } | null;
4408
- lines: {
4409
- /** Format: uuid */
4410
- id: string;
4411
- uniqueRef?: string | null;
4412
- type: string;
4413
- description?: string | null;
4414
- /** @description Value in cents (100 = 1€) */
4415
- amount: number;
4416
- connectionId?: string | null;
4417
- metadata?: {
4418
- [key: string]: unknown;
4419
- } | null;
4420
- account?: {
4421
- id: string;
4422
- name: string;
4423
- uniqueRef?: string | null;
4424
- /** @enum {string} */
4425
- status: "active" | "inactive";
4426
- } | null;
4427
- isExcluded?: boolean | null;
4428
- }[];
4429
- /** @description Adjustments are manually added financial lines that are not part of the booking platform */
4430
- adjustments: {
4431
- /** Format: uuid */
4432
- id: string;
4433
- description?: string | null;
4434
- /** @description Value in cents (100 = 1€) */
4435
- amount: number;
4436
- metadata?: {
4437
- [key: string]: unknown;
4438
- } | null;
4439
- type?: string | null;
4440
- /** @enum {string|null} */
4441
- party?: "owners" | "manager" | null;
4442
- generalLedgerPostingAt?: string | null;
4443
- account?: {
4444
- id: string;
4445
- name: string;
4446
- uniqueRef?: string | null;
4447
- /** @enum {string} */
4448
- status: "active" | "inactive";
4449
- } | null;
4450
- recurringFee?: {
4451
- id: string;
4452
- uniqueRef: string;
4453
- name: string;
4454
- /** @enum {string} */
4455
- type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
4456
- } | null;
4457
- }[];
4099
+ uniqueRef?: string | null;
4100
+ /** Format: uuid */
4101
+ sourceId?: string | null;
4458
4102
  }[];
4459
4103
  issues: {
4460
4104
  ref: string;
@@ -6131,7 +5775,7 @@ export interface operations {
6131
5775
  data: {
6132
5776
  /** Format: uuid */
6133
5777
  listingId: string;
6134
- /** @default 2025-12-03 */
5778
+ /** @default 2025-12-04 */
6135
5779
  startAt: string;
6136
5780
  endAt?: string | null;
6137
5781
  setListingInactive?: boolean | null;
@@ -6222,7 +5866,7 @@ export interface operations {
6222
5866
  "application/json": {
6223
5867
  /** Format: uuid */
6224
5868
  listingId: string;
6225
- /** @default 2025-12-03 */
5869
+ /** @default 2025-12-04 */
6226
5870
  startAt?: string;
6227
5871
  endAt?: string | null;
6228
5872
  members: {
@@ -6256,7 +5900,7 @@ export interface operations {
6256
5900
  "application/json": {
6257
5901
  /** Format: uuid */
6258
5902
  listingId: string;
6259
- /** @default 2025-12-03 */
5903
+ /** @default 2025-12-04 */
6260
5904
  startAt: string;
6261
5905
  endAt?: string | null;
6262
5906
  setListingInactive?: boolean | null;
@@ -6336,7 +5980,7 @@ export interface operations {
6336
5980
  "application/json": {
6337
5981
  /** Format: uuid */
6338
5982
  listingId: string;
6339
- /** @default 2025-12-03 */
5983
+ /** @default 2025-12-04 */
6340
5984
  startAt: string;
6341
5985
  endAt?: string | null;
6342
5986
  setListingInactive?: boolean | null;
@@ -6419,7 +6063,7 @@ export interface operations {
6419
6063
  "application/json": {
6420
6064
  /** Format: uuid */
6421
6065
  listingId?: string;
6422
- /** @default 2025-12-03 */
6066
+ /** @default 2025-12-04 */
6423
6067
  startAt?: string;
6424
6068
  endAt?: string | null;
6425
6069
  members?: {
@@ -6453,7 +6097,7 @@ export interface operations {
6453
6097
  "application/json": {
6454
6098
  /** Format: uuid */
6455
6099
  listingId: string;
6456
- /** @default 2025-12-03 */
6100
+ /** @default 2025-12-04 */
6457
6101
  startAt: string;
6458
6102
  endAt?: string | null;
6459
6103
  setListingInactive?: boolean | null;
@@ -6649,7 +6293,7 @@ export interface operations {
6649
6293
  /** Format: uuid */
6650
6294
  sourceId?: string | null;
6651
6295
  initialOwnership?: {
6652
- /** @default 2025-12-03 */
6296
+ /** @default 2025-12-04 */
6653
6297
  startAt?: string;
6654
6298
  endAt?: string | null;
6655
6299
  members: {
@@ -6690,77 +6334,7 @@ export interface operations {
6690
6334
  id: string;
6691
6335
  uniqueRef?: string | null;
6692
6336
  /** Format: uuid */
6693
- connectionId?: string | null;
6694
- name: string;
6695
- address?: {
6696
- full?: string | null;
6697
- line1?: string | null;
6698
- line2?: string | null;
6699
- city?: string | null;
6700
- /** @deprecated */
6701
- state?: string | null;
6702
- postalCode?: string | null;
6703
- stateCode?: string | null;
6704
- countryCode?: string | null;
6705
- } | null;
6706
- /** @enum {string} */
6707
- status: "active" | "inactive";
6708
- defaultCurrency?: string | null;
6709
- activeOwnership?: {
6710
- /** @default 2025-12-03 */
6711
- startAt: string;
6712
- endAt?: string | null;
6713
- setListingInactive?: boolean | null;
6714
- /**
6715
- * @default managed
6716
- * @enum {string|null}
6717
- */
6718
- businessModel: "managed" | "co_host" | "co_host_airbnb" | null;
6719
- members: {
6720
- /** Format: uuid */
6721
- contactId?: string | null;
6722
- /** @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%) */
6723
- split?: number | null;
6724
- }[];
6725
- /** Format: uuid */
6726
- id: string;
6727
- } | null;
6728
- activeRecurringFeePeriods?: {
6729
- startAt?: string | null;
6730
- endAt?: string | null;
6731
- /** @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%) */
6732
- rate?: number | null;
6733
- /** Format: uuid */
6734
- id: string;
6735
- recurringFee: {
6736
- /** Format: uuid */
6737
- id: string;
6738
- title: string;
6739
- /** @enum {string} */
6740
- type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
6741
- /**
6742
- * @default flat
6743
- * @enum {string}
6744
- */
6745
- rateType: "flat" | "percentage";
6746
- };
6747
- }[] | null;
6748
- source?: {
6749
- /** Format: uuid */
6750
- id: string;
6751
- type: string;
6752
- /** @enum {string|null} */
6753
- status?: "active" | "inactive" | null;
6754
- } | null;
6755
- upcomingDeactivation: {
6756
- /** @enum {string} */
6757
- status: "active" | "disable-upcoming" | "disabled-ending" | "disabled-forever";
6758
- period: {
6759
- id: string;
6760
- startAt: string;
6761
- endAt: string | null;
6762
- } | null;
6763
- };
6337
+ sourceId?: string | null;
6764
6338
  }[];
6765
6339
  issues: {
6766
6340
  ref: string;
@@ -7014,7 +6588,7 @@ export interface operations {
7014
6588
  /** Format: uuid */
7015
6589
  sourceId?: string | null;
7016
6590
  initialOwnership?: {
7017
- /** @default 2025-12-03 */
6591
+ /** @default 2025-12-04 */
7018
6592
  startAt?: string;
7019
6593
  endAt?: string | null;
7020
6594
  members: {
@@ -7474,7 +7048,7 @@ export interface operations {
7474
7048
  /** Format: uuid */
7475
7049
  sourceId?: string | null;
7476
7050
  initialOwnership?: {
7477
- /** @default 2025-12-03 */
7051
+ /** @default 2025-12-04 */
7478
7052
  startAt?: string;
7479
7053
  endAt?: string | null;
7480
7054
  members: {
@@ -7528,7 +7102,7 @@ export interface operations {
7528
7102
  status: "active" | "inactive";
7529
7103
  defaultCurrency?: string | null;
7530
7104
  activeOwnership?: {
7531
- /** @default 2025-12-03 */
7105
+ /** @default 2025-12-04 */
7532
7106
  startAt: string;
7533
7107
  endAt?: string | null;
7534
7108
  setListingInactive?: boolean | null;
@@ -14005,151 +13579,11 @@ export interface operations {
14005
13579
  content: {
14006
13580
  "application/json": {
14007
13581
  data: {
14008
- description: string;
14009
- /** @enum {string} */
14010
- status: "active" | "inactive";
14011
- uniqueRef?: string | null;
14012
- /** @enum {string} */
14013
- type: "deposit" | "expense" | "transfer";
14014
- date: string;
14015
- lines: {
14016
- uniqueRef?: string | null;
14017
- description: string;
14018
- /** @description Value in cents (100 = 1€) */
14019
- amount: number;
14020
- /** Format: uuid */
14021
- ownerStatementId?: string | null;
14022
- matchers?: {
14023
- confirmationCode?: string | null;
14024
- customerId?: string | null;
14025
- lineType?: string | null;
14026
- } | null;
14027
- id: string;
14028
- issues: {
14029
- /** @enum {string} */
14030
- code: "unassignedAccount";
14031
- /** @enum {string} */
14032
- severity: "error";
14033
- context: {
14034
- lineType: string;
14035
- };
14036
- }[];
14037
- recurringTemplate?: {
14038
- id: string;
14039
- } | null;
14040
- total: number;
14041
- listing?: {
14042
- /** Format: uuid */
14043
- id: string;
14044
- name: string;
14045
- uniqueRef?: string | null;
14046
- } | null;
14047
- reservation?: {
14048
- id: string;
14049
- confirmationCode?: string | null;
14050
- uniqueRef: string;
14051
- /** @enum {string} */
14052
- status: "booked" | "canceled" | "inactive";
14053
- checkIn?: string | null;
14054
- checkOut?: string | null;
14055
- } | null;
14056
- account?: {
14057
- id: string;
14058
- name: string;
14059
- uniqueRef?: string | null;
14060
- /** @enum {string} */
14061
- status: "active" | "inactive";
14062
- } | null;
14063
- /** @enum {string} */
14064
- party: "owners" | "manager";
14065
- contact?: {
14066
- /** Format: uuid */
14067
- id: string;
14068
- name?: string | null;
14069
- uniqueRef?: string | null;
14070
- } | null;
14071
- matchStatus?: string | null;
14072
- markup?: {
14073
- /** @description Value in cents (100 = 1€) */
14074
- amount?: number | null;
14075
- /**
14076
- * @default excluded
14077
- * @enum {string|null}
14078
- */
14079
- taxBehavior: "excluded" | "included" | null;
14080
- taxRate?: {
14081
- id: string;
14082
- name: string;
14083
- /** @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%) */
14084
- basisPoints: number;
14085
- } | null;
14086
- } | null;
14087
- }[];
14088
13582
  /** Format: uuid */
14089
- recurringTemplateId?: string | null;
14090
- matchers?: {
14091
- bankAccountRef?: string | null;
14092
- } | null;
14093
13583
  id: string;
14094
- issues: ({
14095
- /** @enum {string} */
14096
- code: "line_unassignedAccount";
14097
- /** @enum {string} */
14098
- severity: "error";
14099
- context: Record<string, never>;
14100
- } | {
14101
- /** @enum {string} */
14102
- code: "locked";
14103
- /** @enum {string} */
14104
- severity: "warning";
14105
- context: {
14106
- reasons: ("statement" | "period")[];
14107
- statementIds?: string[];
14108
- booksClosedAt?: string;
14109
- };
14110
- })[];
14111
- currency: string;
14112
- /** @description Value in cents (100 = 1€) */
14113
- amount: number;
14114
- recurringTemplate?: {
14115
- id: string;
14116
- } | null;
14117
- account?: {
14118
- id: string;
14119
- name: string;
14120
- uniqueRef?: string | null;
14121
- /** @enum {string} */
14122
- status: "active" | "inactive";
14123
- } | null;
14124
- payment: {
14125
- bankRecordIds: string[];
14126
- /** @enum {string} */
14127
- status: "unpaid" | "underpaid" | "overpaid" | "paid";
14128
- date?: string | null;
14129
- };
14130
- connection?: {
14131
- /** Format: uuid */
14132
- id: string;
14133
- name: string;
14134
- /** @enum {string} */
14135
- status: "active" | "inactive";
14136
- uniqueRef?: string | null;
14137
- appId: string;
14138
- } | null;
14139
- contact?: {
14140
- /** Format: uuid */
14141
- id: string;
14142
- name?: string | null;
14143
- uniqueRef?: string | null;
14144
- } | null;
14145
- source?: {
14146
- /** Format: uuid */
14147
- id: string;
14148
- type: string;
14149
- /** @enum {string|null} */
14150
- status?: "active" | "inactive" | null;
14151
- } | null;
14152
- matchStatus?: string | null;
13584
+ uniqueRef?: string | null;
13585
+ /** Format: uuid */
13586
+ sourceId?: string | null;
14153
13587
  }[];
14154
13588
  };
14155
13589
  };
@@ -15913,151 +15347,11 @@ export interface operations {
15913
15347
  content: {
15914
15348
  "application/json": {
15915
15349
  data: {
15916
- description: string;
15917
- /** @enum {string} */
15918
- status: "active" | "inactive";
15919
- uniqueRef?: string | null;
15920
- /** @enum {string} */
15921
- type: "deposit" | "expense" | "transfer";
15922
- date: string;
15923
- lines: {
15924
- uniqueRef?: string | null;
15925
- description: string;
15926
- /** @description Value in cents (100 = 1€) */
15927
- amount: number;
15928
- /** Format: uuid */
15929
- ownerStatementId?: string | null;
15930
- matchers?: {
15931
- confirmationCode?: string | null;
15932
- customerId?: string | null;
15933
- lineType?: string | null;
15934
- } | null;
15935
- id: string;
15936
- issues: {
15937
- /** @enum {string} */
15938
- code: "unassignedAccount";
15939
- /** @enum {string} */
15940
- severity: "error";
15941
- context: {
15942
- lineType: string;
15943
- };
15944
- }[];
15945
- recurringTemplate?: {
15946
- id: string;
15947
- } | null;
15948
- total: number;
15949
- listing?: {
15950
- /** Format: uuid */
15951
- id: string;
15952
- name: string;
15953
- uniqueRef?: string | null;
15954
- } | null;
15955
- reservation?: {
15956
- id: string;
15957
- confirmationCode?: string | null;
15958
- uniqueRef: string;
15959
- /** @enum {string} */
15960
- status: "booked" | "canceled" | "inactive";
15961
- checkIn?: string | null;
15962
- checkOut?: string | null;
15963
- } | null;
15964
- account?: {
15965
- id: string;
15966
- name: string;
15967
- uniqueRef?: string | null;
15968
- /** @enum {string} */
15969
- status: "active" | "inactive";
15970
- } | null;
15971
- /** @enum {string} */
15972
- party: "owners" | "manager";
15973
- contact?: {
15974
- /** Format: uuid */
15975
- id: string;
15976
- name?: string | null;
15977
- uniqueRef?: string | null;
15978
- } | null;
15979
- matchStatus?: string | null;
15980
- markup?: {
15981
- /** @description Value in cents (100 = 1€) */
15982
- amount?: number | null;
15983
- /**
15984
- * @default excluded
15985
- * @enum {string|null}
15986
- */
15987
- taxBehavior: "excluded" | "included" | null;
15988
- taxRate?: {
15989
- id: string;
15990
- name: string;
15991
- /** @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%) */
15992
- basisPoints: number;
15993
- } | null;
15994
- } | null;
15995
- }[];
15996
15350
  /** Format: uuid */
15997
- recurringTemplateId?: string | null;
15998
- matchers?: {
15999
- bankAccountRef?: string | null;
16000
- } | null;
16001
15351
  id: string;
16002
- issues: ({
16003
- /** @enum {string} */
16004
- code: "line_unassignedAccount";
16005
- /** @enum {string} */
16006
- severity: "error";
16007
- context: Record<string, never>;
16008
- } | {
16009
- /** @enum {string} */
16010
- code: "locked";
16011
- /** @enum {string} */
16012
- severity: "warning";
16013
- context: {
16014
- reasons: ("statement" | "period")[];
16015
- statementIds?: string[];
16016
- booksClosedAt?: string;
16017
- };
16018
- })[];
16019
- currency: string;
16020
- /** @description Value in cents (100 = 1€) */
16021
- amount: number;
16022
- recurringTemplate?: {
16023
- id: string;
16024
- } | null;
16025
- account?: {
16026
- id: string;
16027
- name: string;
16028
- uniqueRef?: string | null;
16029
- /** @enum {string} */
16030
- status: "active" | "inactive";
16031
- } | null;
16032
- payment: {
16033
- bankRecordIds: string[];
16034
- /** @enum {string} */
16035
- status: "unpaid" | "underpaid" | "overpaid" | "paid";
16036
- date?: string | null;
16037
- };
16038
- connection?: {
16039
- /** Format: uuid */
16040
- id: string;
16041
- name: string;
16042
- /** @enum {string} */
16043
- status: "active" | "inactive";
16044
- uniqueRef?: string | null;
16045
- appId: string;
16046
- } | null;
16047
- contact?: {
16048
- /** Format: uuid */
16049
- id: string;
16050
- name?: string | null;
16051
- uniqueRef?: string | null;
16052
- } | null;
16053
- source?: {
16054
- /** Format: uuid */
16055
- id: string;
16056
- type: string;
16057
- /** @enum {string|null} */
16058
- status?: "active" | "inactive" | null;
16059
- } | null;
16060
- matchStatus?: string | null;
15352
+ uniqueRef?: string | null;
15353
+ /** Format: uuid */
15354
+ sourceId?: string | null;
16061
15355
  }[];
16062
15356
  issues: {
16063
15357
  ref: string;
@@ -19236,39 +18530,8 @@ export interface operations {
19236
18530
  /** Format: uuid */
19237
18531
  id: string;
19238
18532
  uniqueRef?: string | null;
19239
- date: string;
19240
- /** @enum {string} */
19241
- status: "active" | "inactive";
19242
- description?: string | null;
19243
- bankAccountId?: string | null;
19244
- accountId?: string | null;
19245
18533
  /** Format: uuid */
19246
- connectionId?: string | null;
19247
- source?: {
19248
- /** Format: uuid */
19249
- id: string;
19250
- type: string;
19251
- /** @enum {string|null} */
19252
- status?: "active" | "inactive" | null;
19253
- } | null;
19254
- /** @enum {string} */
19255
- type: "transaction" | "balance";
19256
- amount: number;
19257
- balance: {
19258
- current: number;
19259
- correction: number;
19260
- };
19261
- reconciliation: {
19262
- /** @enum {string|null} */
19263
- status?: "unpaid" | "underpaid" | "overpaid" | "paid" | null;
19264
- transactions?: {
19265
- id: string;
19266
- date: string;
19267
- description?: string | null;
19268
- type: string;
19269
- amount: number;
19270
- }[] | null;
19271
- };
18534
+ sourceId?: string | null;
19272
18535
  }[];
19273
18536
  issues: {
19274
18537
  ref: string;
@@ -19494,6 +18757,8 @@ export interface operations {
19494
18757
  reconciledTransactionIds?: string[] | null;
19495
18758
  /** @enum {string|null} */
19496
18759
  status?: "active" | "inactive" | null;
18760
+ addedCount?: number;
18761
+ removedCount?: number;
19497
18762
  };
19498
18763
  };
19499
18764
  };
@@ -19769,54 +19034,11 @@ export interface operations {
19769
19034
  content: {
19770
19035
  "application/json": {
19771
19036
  data: {
19772
- address?: {
19773
- full?: string | null;
19774
- line1?: string | null;
19775
- line2?: string | null;
19776
- city?: string | null;
19777
- /** @deprecated */
19778
- state?: string | null;
19779
- postalCode?: string | null;
19780
- stateCode?: string | null;
19781
- countryCode?: string | null;
19782
- } | null;
19783
- /** @enum {string} */
19784
- type: "owner" | "vendor";
19785
- /** Format: email */
19786
- email?: string | null;
19787
- firstName?: string | null;
19788
- name?: string | null;
19789
- phone?: string | null;
19790
- connectionId?: string | null;
19791
- /** @enum {string|null} */
19792
- companyType?: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate" | null;
19793
- taxIdentifier?: string | null;
19794
- uniqueRef?: string | null;
19795
- /** @enum {string} */
19796
- status: "active" | "inactive";
19797
- /** Format: uuid */
19798
- payoutAccountId?: string | null;
19799
19037
  /** Format: uuid */
19800
19038
  id: string;
19801
- source?: {
19802
- /** Format: uuid */
19803
- id: string;
19804
- type: string;
19805
- /** @enum {string|null} */
19806
- status?: "active" | "inactive" | null;
19807
- } | null;
19808
- ownershipPeriods: {
19809
- listingId: string;
19810
- split: number;
19811
- startAt?: string | null;
19812
- endAt?: string | null;
19813
- }[];
19814
- activeOwnerships: {
19815
- listingId: string;
19816
- split: number;
19817
- startAt?: string | null;
19818
- endAt?: string | null;
19819
- }[];
19039
+ uniqueRef?: string | null;
19040
+ /** Format: uuid */
19041
+ sourceId?: string | null;
19820
19042
  }[];
19821
19043
  issues: {
19822
19044
  ref: string;
@@ -21421,356 +20643,6 @@ export interface operations {
21421
20643
  };
21422
20644
  };
21423
20645
  };
21424
- updateSources: {
21425
- parameters: {
21426
- query?: never;
21427
- header?: {
21428
- "X-Team-Id"?: string;
21429
- };
21430
- path?: never;
21431
- cookie?: never;
21432
- };
21433
- requestBody: {
21434
- content: {
21435
- "application/json": {
21436
- /** Format: uuid */
21437
- connectionId?: string | null;
21438
- /** Format: uuid */
21439
- syncId?: string | null;
21440
- /** Format: uuid */
21441
- syncSubtaskId?: string | null;
21442
- data: {
21443
- /** Format: uuid */
21444
- changeId: string;
21445
- /** @enum {string|null} */
21446
- status?: "completed" | "failed" | "skipped" | null;
21447
- message?: string | null;
21448
- source?: {
21449
- /** @enum {string|null} */
21450
- status?: "active" | "deleted" | null;
21451
- description?: string | null;
21452
- href?: string | null;
21453
- data?: {
21454
- [key: string]: unknown;
21455
- } | null;
21456
- date?: string | null;
21457
- transform?: {
21458
- /** Format: uuid */
21459
- id?: string | null;
21460
- /** @enum {string} */
21461
- type: "reservation" | "listing" | "payment" | "transaction" | "bankRecord" | "contact";
21462
- data?: {
21463
- [key: string]: unknown;
21464
- } | null;
21465
- } | null;
21466
- } | null;
21467
- }[];
21468
- };
21469
- };
21470
- };
21471
- responses: {
21472
- /** @description Successful response */
21473
- 200: {
21474
- headers: {
21475
- [name: string]: unknown;
21476
- };
21477
- content: {
21478
- "application/json": {
21479
- data: {
21480
- /** Format: uuid */
21481
- id: string;
21482
- }[];
21483
- };
21484
- };
21485
- };
21486
- /** @description Invalid input data */
21487
- 400: {
21488
- headers: {
21489
- [name: string]: unknown;
21490
- };
21491
- content: {
21492
- "application/json": components["schemas"]["error.BAD_REQUEST"];
21493
- };
21494
- };
21495
- /** @description Authorization not provided */
21496
- 401: {
21497
- headers: {
21498
- [name: string]: unknown;
21499
- };
21500
- content: {
21501
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
21502
- };
21503
- };
21504
- /** @description Insufficient access */
21505
- 403: {
21506
- headers: {
21507
- [name: string]: unknown;
21508
- };
21509
- content: {
21510
- "application/json": components["schemas"]["error.FORBIDDEN"];
21511
- };
21512
- };
21513
- /** @description Not found */
21514
- 404: {
21515
- headers: {
21516
- [name: string]: unknown;
21517
- };
21518
- content: {
21519
- "application/json": components["schemas"]["error.NOT_FOUND"];
21520
- };
21521
- };
21522
- /** @description Internal server error */
21523
- 500: {
21524
- headers: {
21525
- [name: string]: unknown;
21526
- };
21527
- content: {
21528
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
21529
- };
21530
- };
21531
- };
21532
- };
21533
- batchSources: {
21534
- parameters: {
21535
- query?: never;
21536
- header?: {
21537
- "X-Team-Id"?: string;
21538
- };
21539
- path?: never;
21540
- cookie?: never;
21541
- };
21542
- requestBody: {
21543
- content: {
21544
- "application/json": {
21545
- returnOnlyChanges?: boolean | null;
21546
- /** @enum {string|null} */
21547
- returnDataFields?: "data" | "transformData" | "all" | "none" | null;
21548
- /** Format: uuid */
21549
- syncId?: string | null;
21550
- /** Format: uuid */
21551
- syncSubtaskId?: string | null;
21552
- /** Format: uuid */
21553
- connectionId: string;
21554
- /** Format: uuid */
21555
- automationId?: string | null;
21556
- forceUpdate?: boolean | null;
21557
- allowDuplicateEntityUniqueRef?: boolean | null;
21558
- data: {
21559
- /** @enum {string|null} */
21560
- status?: "active" | "inactive" | null;
21561
- type: string;
21562
- uniqueRef: string;
21563
- date?: string | null;
21564
- lastWebhookAt?: string | null;
21565
- data?: {
21566
- [key: string]: unknown;
21567
- } | null;
21568
- href?: string | null;
21569
- description?: string | null;
21570
- transform?: {
21571
- /** Format: uuid */
21572
- id?: string | null;
21573
- /** @enum {string} */
21574
- type: "reservation" | "listing" | "payment" | "transaction" | "bankRecord" | "contact";
21575
- data?: {
21576
- [key: string]: unknown;
21577
- } | null;
21578
- } | null;
21579
- deprecatedFields?: {
21580
- reservationId?: string | null;
21581
- } | null;
21582
- customChange?: {
21583
- /** @enum {string} */
21584
- status: "skipped" | "failed";
21585
- message?: string | null;
21586
- } | null;
21587
- /** Format: uuid */
21588
- id?: string | null;
21589
- }[];
21590
- };
21591
- };
21592
- };
21593
- responses: {
21594
- /** @description Successful response */
21595
- 200: {
21596
- headers: {
21597
- [name: string]: unknown;
21598
- };
21599
- content: {
21600
- "application/json": {
21601
- data: {
21602
- /** Format: uuid */
21603
- connectionId: string;
21604
- /** @enum {string|null} */
21605
- status?: "active" | "inactive" | null;
21606
- type: string;
21607
- uniqueRef: string;
21608
- date?: string | null;
21609
- lastWebhookAt?: string | null;
21610
- data?: {
21611
- [key: string]: unknown;
21612
- } | null;
21613
- href?: string | null;
21614
- description?: string | null;
21615
- transform?: {
21616
- /** Format: uuid */
21617
- id?: string | null;
21618
- /** @enum {string} */
21619
- type: "reservation" | "listing" | "payment" | "transaction" | "bankRecord" | "contact";
21620
- data?: {
21621
- [key: string]: unknown;
21622
- } | null;
21623
- } | null;
21624
- deprecatedFields?: {
21625
- reservationId?: string | null;
21626
- } | null;
21627
- customChange?: {
21628
- /** @enum {string} */
21629
- status: "skipped" | "failed";
21630
- message?: string | null;
21631
- } | null;
21632
- /** Format: uuid */
21633
- id: string;
21634
- currentVersion: number;
21635
- change?: {
21636
- /** Format: uuid */
21637
- id: string;
21638
- /** @enum {string} */
21639
- status: "queued" | "completed" | "failed" | "skipped";
21640
- /** @enum {string} */
21641
- type: "create" | "update" | "delete";
21642
- createdAt: string;
21643
- version?: number | null;
21644
- message?: string | null;
21645
- } | null;
21646
- }[];
21647
- };
21648
- };
21649
- };
21650
- /** @description Invalid input data */
21651
- 400: {
21652
- headers: {
21653
- [name: string]: unknown;
21654
- };
21655
- content: {
21656
- "application/json": components["schemas"]["error.BAD_REQUEST"];
21657
- };
21658
- };
21659
- /** @description Authorization not provided */
21660
- 401: {
21661
- headers: {
21662
- [name: string]: unknown;
21663
- };
21664
- content: {
21665
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
21666
- };
21667
- };
21668
- /** @description Insufficient access */
21669
- 403: {
21670
- headers: {
21671
- [name: string]: unknown;
21672
- };
21673
- content: {
21674
- "application/json": components["schemas"]["error.FORBIDDEN"];
21675
- };
21676
- };
21677
- /** @description Internal server error */
21678
- 500: {
21679
- headers: {
21680
- [name: string]: unknown;
21681
- };
21682
- content: {
21683
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
21684
- };
21685
- };
21686
- };
21687
- };
21688
- cleanUpSources: {
21689
- parameters: {
21690
- query?: never;
21691
- header?: {
21692
- "X-Team-Id"?: string;
21693
- };
21694
- path?: never;
21695
- cookie?: never;
21696
- };
21697
- requestBody: {
21698
- content: {
21699
- "application/json": {
21700
- /** Format: uuid */
21701
- syncId?: string | null;
21702
- /** Format: uuid */
21703
- connectionId: string;
21704
- type: string;
21705
- /** @enum {string|null} */
21706
- transformType?: "listing" | "reservation" | "bankAccount" | "bankRecord" | null;
21707
- whereRange?: {
21708
- range?: string | null;
21709
- checkIn?: string | null;
21710
- checkOut?: string | null;
21711
- } | null;
21712
- };
21713
- };
21714
- };
21715
- responses: {
21716
- /** @description Successful response */
21717
- 200: {
21718
- headers: {
21719
- [name: string]: unknown;
21720
- };
21721
- content: {
21722
- "application/json": {
21723
- ok: boolean;
21724
- };
21725
- };
21726
- };
21727
- /** @description Invalid input data */
21728
- 400: {
21729
- headers: {
21730
- [name: string]: unknown;
21731
- };
21732
- content: {
21733
- "application/json": components["schemas"]["error.BAD_REQUEST"];
21734
- };
21735
- };
21736
- /** @description Authorization not provided */
21737
- 401: {
21738
- headers: {
21739
- [name: string]: unknown;
21740
- };
21741
- content: {
21742
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
21743
- };
21744
- };
21745
- /** @description Insufficient access */
21746
- 403: {
21747
- headers: {
21748
- [name: string]: unknown;
21749
- };
21750
- content: {
21751
- "application/json": components["schemas"]["error.FORBIDDEN"];
21752
- };
21753
- };
21754
- /** @description Not found */
21755
- 404: {
21756
- headers: {
21757
- [name: string]: unknown;
21758
- };
21759
- content: {
21760
- "application/json": components["schemas"]["error.NOT_FOUND"];
21761
- };
21762
- };
21763
- /** @description Internal server error */
21764
- 500: {
21765
- headers: {
21766
- [name: string]: unknown;
21767
- };
21768
- content: {
21769
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
21770
- };
21771
- };
21772
- };
21773
- };
21774
20646
  listEffects: {
21775
20647
  parameters: {
21776
20648
  query?: {