@vrplatform/api 1.2.33-stage.848 → 1.2.33-stage.851

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.
@@ -356,6 +356,75 @@ export interface paths {
356
356
  patch?: never;
357
357
  trace?: never;
358
358
  };
359
+ "/listings/{id}/opening-balance": {
360
+ parameters: {
361
+ query?: never;
362
+ header?: never;
363
+ path?: never;
364
+ cookie?: never;
365
+ };
366
+ /** @description Get opening balance for listing */
367
+ get: operations["getListingOpeningBalance"];
368
+ /** @description Update opening balance for listing */
369
+ put: operations["updateListingOpeningBalance"];
370
+ post?: never;
371
+ delete?: never;
372
+ options?: never;
373
+ head?: never;
374
+ patch?: never;
375
+ trace?: never;
376
+ };
377
+ "/teams/opening-balances": {
378
+ parameters: {
379
+ query?: never;
380
+ header?: never;
381
+ path?: never;
382
+ cookie?: never;
383
+ };
384
+ /** @description Retrieve tenant opening balances overview */
385
+ get: operations["getTenantOpeningBalances"];
386
+ put?: never;
387
+ post?: never;
388
+ delete?: never;
389
+ options?: never;
390
+ head?: never;
391
+ patch?: never;
392
+ trace?: never;
393
+ };
394
+ "/teams/opening-balances/tax-payable": {
395
+ parameters: {
396
+ query?: never;
397
+ header?: never;
398
+ path?: never;
399
+ cookie?: never;
400
+ };
401
+ get?: never;
402
+ /** @description Update opening balance tax payable */
403
+ put: operations["updateTenantTaxPayable"];
404
+ post?: never;
405
+ delete?: never;
406
+ options?: never;
407
+ head?: never;
408
+ patch?: never;
409
+ trace?: never;
410
+ };
411
+ "/teams/opening-balances/advanced-deposits": {
412
+ parameters: {
413
+ query?: never;
414
+ header?: never;
415
+ path?: never;
416
+ cookie?: never;
417
+ };
418
+ get?: never;
419
+ /** @description Update opening balance advanced deposits */
420
+ put: operations["updateTenantAdvancedDeposits"];
421
+ post?: never;
422
+ delete?: never;
423
+ options?: never;
424
+ head?: never;
425
+ patch?: never;
426
+ trace?: never;
427
+ };
359
428
  "/teams/{id}": {
360
429
  parameters: {
361
430
  query?: never;
@@ -8017,10 +8086,12 @@ export interface operations {
8017
8086
  };
8018
8087
  };
8019
8088
  };
8020
- getTeam: {
8089
+ getListingOpeningBalance: {
8021
8090
  parameters: {
8022
8091
  query?: never;
8023
- header?: never;
8092
+ header?: {
8093
+ "X-Team-Id"?: string;
8094
+ };
8024
8095
  path: {
8025
8096
  id: string;
8026
8097
  };
@@ -8036,79 +8107,13 @@ export interface operations {
8036
8107
  content: {
8037
8108
  "application/json": {
8038
8109
  /** Format: uuid */
8039
- id: string;
8040
- defaultCurrency?: string | null;
8041
- longTermStayNights?: number | null;
8042
- /** @enum {string|null} */
8043
- defaultRevenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
8044
- name: string;
8045
- statementAddress?: {
8046
- full?: string | null;
8047
- line1?: string | null;
8048
- line2?: string | null;
8049
- city?: string | null;
8050
- /** @deprecated */
8051
- state?: string | null;
8052
- postalCode?: string | null;
8053
- stateCode?: string | null;
8054
- countryCode?: string | null;
8055
- } | null;
8056
- billingAddress?: {
8057
- full?: string | null;
8058
- line1?: string | null;
8059
- line2?: string | null;
8060
- city?: string | null;
8061
- /** @deprecated */
8062
- state?: string | null;
8063
- postalCode?: string | null;
8064
- stateCode?: string | null;
8065
- countryCode?: string | null;
8066
- } | null;
8067
- phone?: string | null;
8068
- email?: string | null;
8069
- taxId?: string | null;
8070
- partner?: {
8071
- /** Format: uuid */
8072
- id: string;
8073
- name: string;
8074
- } | null;
8075
- billingPartner?: {
8076
- /** Format: uuid */
8077
- id: string;
8078
- name: string;
8079
- } | null;
8080
- companyName?: string | null;
8081
- /** @enum {string} */
8082
- type: "propertyManager" | "partner" | "admin";
8083
- /** @enum {string} */
8084
- status: "active" | "inactive";
8085
- billingSubscriptionStatus?: string | null;
8086
- billingPlan?: string | null;
8087
- createdAt?: string | null;
8110
+ listingId: string;
8111
+ /** @description Value in cents (100 = 1€) */
8112
+ centTotal: number;
8113
+ currency: string;
8114
+ effectiveAt: string | null;
8115
+ note?: string | null;
8088
8116
  updatedAt?: string | null;
8089
- trialUntil?: string | null;
8090
- cancelledAt?: string | null;
8091
- isOnboarding?: boolean | null;
8092
- issues: {
8093
- /** @enum {string} */
8094
- code: "unassignedAccount";
8095
- /** @enum {string} */
8096
- severity: "error";
8097
- context: {
8098
- accountIds: string[];
8099
- };
8100
- }[];
8101
- isGeneralLedger?: boolean | null;
8102
- booksClosedAt?: string | null;
8103
- logo?: string | null;
8104
- statementStartAt?: string | null;
8105
- members?: {
8106
- userId: string;
8107
- email?: string | null;
8108
- role: string;
8109
- name?: string | null;
8110
- firstName?: string | null;
8111
- }[] | null;
8112
8117
  };
8113
8118
  };
8114
8119
  };
@@ -8159,7 +8164,7 @@ export interface operations {
8159
8164
  };
8160
8165
  };
8161
8166
  };
8162
- updateTeam: {
8167
+ updateListingOpeningBalance: {
8163
8168
  parameters: {
8164
8169
  query?: never;
8165
8170
  header?: {
@@ -8173,66 +8178,11 @@ export interface operations {
8173
8178
  requestBody: {
8174
8179
  content: {
8175
8180
  "application/json": {
8176
- defaultCurrency?: string | null;
8177
- longTermStayNights?: number | null;
8178
- /** @enum {string|null} */
8179
- defaultRevenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
8180
- name?: string;
8181
- statementAddress?: {
8182
- full?: string | null;
8183
- line1?: string | null;
8184
- line2?: string | null;
8185
- city?: string | null;
8186
- /** @deprecated */
8187
- state?: string | null;
8188
- postalCode?: string | null;
8189
- stateCode?: string | null;
8190
- countryCode?: string | null;
8191
- } | null;
8192
- billingAddress?: {
8193
- full?: string | null;
8194
- line1?: string | null;
8195
- line2?: string | null;
8196
- city?: string | null;
8197
- /** @deprecated */
8198
- state?: string | null;
8199
- postalCode?: string | null;
8200
- stateCode?: string | null;
8201
- countryCode?: string | null;
8202
- } | null;
8203
- phone?: string | null;
8204
- email?: string | null;
8205
- taxId?: string | null;
8206
- companyName?: string | null;
8207
- /** @enum {string} */
8208
- type?: "propertyManager" | "partner" | "admin";
8209
- billingSubscriptionStatus?: string | null;
8210
- billingPlan?: string | null;
8211
- trialUntil?: string | null;
8212
- cancelledAt?: string | null;
8213
- isOnboarding?: boolean | null;
8214
- booksClosedAt?: string | null;
8215
- logo?: string | null;
8216
- statementStartAt?: string | null;
8217
- partnerId?: string | null;
8218
- billingPartnerId?: string | null;
8219
- /** @description Cancelation or Reinstatement of the team. */
8220
- cancelation?: {
8221
- /** @description Date on which the cancelation will take effect or null if an active cancellation should be withdrawn. */
8222
- effectiveAt: string | null;
8223
- /**
8224
- * @description Reason for the cancelation if effectiveAt is set.
8225
- * @enum {string}
8226
- */
8227
- reason?: "different-expectations" | "different-provider" | "missing-feature" | "no-longer-needed" | "switch-to-gl" | "removed-from-billing-console" | "other";
8228
- /** @description Feedback for the cancelation if effectiveAt is set. */
8229
- feedback?: string | null;
8230
- } | null;
8231
- /**
8232
- * @description Only status of partner teams can be updated
8233
- * @enum {string}
8234
- */
8235
- status?: "active" | "inactive";
8181
+ /** @description Value in cents (100 = 1€) */
8182
+ centTotal: number;
8183
+ currency?: string | null;
8184
+ effectiveAt?: string | null;
8185
+ note?: string | null;
8236
8186
  };
8237
8187
  };
8238
8188
  };
@@ -8245,60 +8195,592 @@ export interface operations {
8245
8195
  content: {
8246
8196
  "application/json": {
8247
8197
  /** Format: uuid */
8248
- id: string;
8249
- defaultCurrency?: string | null;
8250
- longTermStayNights?: number | null;
8251
- /** @enum {string|null} */
8252
- defaultRevenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
8253
- name: string;
8254
- statementAddress?: {
8255
- full?: string | null;
8256
- line1?: string | null;
8257
- line2?: string | null;
8258
- city?: string | null;
8259
- /** @deprecated */
8260
- state?: string | null;
8261
- postalCode?: string | null;
8262
- stateCode?: string | null;
8263
- countryCode?: string | null;
8264
- } | null;
8265
- billingAddress?: {
8266
- full?: string | null;
8267
- line1?: string | null;
8268
- line2?: string | null;
8269
- city?: string | null;
8270
- /** @deprecated */
8271
- state?: string | null;
8272
- postalCode?: string | null;
8273
- stateCode?: string | null;
8274
- countryCode?: string | null;
8275
- } | null;
8276
- phone?: string | null;
8277
- email?: string | null;
8278
- taxId?: string | null;
8279
- partner?: {
8280
- /** Format: uuid */
8281
- id: string;
8282
- name: string;
8283
- } | null;
8284
- billingPartner?: {
8285
- /** Format: uuid */
8286
- id: string;
8287
- name: string;
8288
- } | null;
8289
- companyName?: string | null;
8290
- /** @enum {string} */
8291
- type: "propertyManager" | "partner" | "admin";
8292
- /** @enum {string} */
8293
- status: "active" | "inactive";
8294
- billingSubscriptionStatus?: string | null;
8295
- billingPlan?: string | null;
8296
- createdAt?: string | null;
8198
+ listingId: string;
8199
+ /** @description Value in cents (100 = 1€) */
8200
+ centTotal: number;
8201
+ currency: string;
8202
+ effectiveAt: string | null;
8203
+ note?: string | null;
8297
8204
  updatedAt?: string | null;
8298
- trialUntil?: string | null;
8299
- cancelledAt?: string | null;
8300
- isOnboarding?: boolean | null;
8301
- issues: {
8205
+ };
8206
+ };
8207
+ };
8208
+ /** @description Invalid input data */
8209
+ 400: {
8210
+ headers: {
8211
+ [name: string]: unknown;
8212
+ };
8213
+ content: {
8214
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
8215
+ };
8216
+ };
8217
+ /** @description Authorization not provided */
8218
+ 401: {
8219
+ headers: {
8220
+ [name: string]: unknown;
8221
+ };
8222
+ content: {
8223
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
8224
+ };
8225
+ };
8226
+ /** @description Insufficient access */
8227
+ 403: {
8228
+ headers: {
8229
+ [name: string]: unknown;
8230
+ };
8231
+ content: {
8232
+ "application/json": components["schemas"]["error.FORBIDDEN"];
8233
+ };
8234
+ };
8235
+ /** @description Not found */
8236
+ 404: {
8237
+ headers: {
8238
+ [name: string]: unknown;
8239
+ };
8240
+ content: {
8241
+ "application/json": components["schemas"]["error.NOT_FOUND"];
8242
+ };
8243
+ };
8244
+ /** @description Internal server error */
8245
+ 500: {
8246
+ headers: {
8247
+ [name: string]: unknown;
8248
+ };
8249
+ content: {
8250
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
8251
+ };
8252
+ };
8253
+ };
8254
+ };
8255
+ getTenantOpeningBalances: {
8256
+ parameters: {
8257
+ query?: never;
8258
+ header?: {
8259
+ "X-Team-Id"?: string;
8260
+ };
8261
+ path?: never;
8262
+ cookie?: never;
8263
+ };
8264
+ requestBody?: never;
8265
+ responses: {
8266
+ /** @description Successful response */
8267
+ 200: {
8268
+ headers: {
8269
+ [name: string]: unknown;
8270
+ };
8271
+ content: {
8272
+ "application/json": {
8273
+ /** @description Value in cents (100 = 1€) */
8274
+ taxPayableCentTotal: number;
8275
+ /** @description Value in cents (100 = 1€) */
8276
+ advancedDepositsCentTotal: number;
8277
+ currency: string;
8278
+ note?: string | null;
8279
+ updatedAt?: string | null;
8280
+ };
8281
+ };
8282
+ };
8283
+ /** @description Invalid input data */
8284
+ 400: {
8285
+ headers: {
8286
+ [name: string]: unknown;
8287
+ };
8288
+ content: {
8289
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
8290
+ };
8291
+ };
8292
+ /** @description Authorization not provided */
8293
+ 401: {
8294
+ headers: {
8295
+ [name: string]: unknown;
8296
+ };
8297
+ content: {
8298
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
8299
+ };
8300
+ };
8301
+ /** @description Insufficient access */
8302
+ 403: {
8303
+ headers: {
8304
+ [name: string]: unknown;
8305
+ };
8306
+ content: {
8307
+ "application/json": components["schemas"]["error.FORBIDDEN"];
8308
+ };
8309
+ };
8310
+ /** @description Not found */
8311
+ 404: {
8312
+ headers: {
8313
+ [name: string]: unknown;
8314
+ };
8315
+ content: {
8316
+ "application/json": components["schemas"]["error.NOT_FOUND"];
8317
+ };
8318
+ };
8319
+ /** @description Internal server error */
8320
+ 500: {
8321
+ headers: {
8322
+ [name: string]: unknown;
8323
+ };
8324
+ content: {
8325
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
8326
+ };
8327
+ };
8328
+ };
8329
+ };
8330
+ updateTenantTaxPayable: {
8331
+ parameters: {
8332
+ query?: never;
8333
+ header?: {
8334
+ "X-Team-Id"?: string;
8335
+ };
8336
+ path?: never;
8337
+ cookie?: never;
8338
+ };
8339
+ requestBody: {
8340
+ content: {
8341
+ "application/json": {
8342
+ /** @description Value in cents (100 = 1€) */
8343
+ centTotal: number;
8344
+ currency?: string | null;
8345
+ effectiveAt?: string | null;
8346
+ note?: string | null;
8347
+ };
8348
+ };
8349
+ };
8350
+ responses: {
8351
+ /** @description Successful response */
8352
+ 200: {
8353
+ headers: {
8354
+ [name: string]: unknown;
8355
+ };
8356
+ content: {
8357
+ "application/json": {
8358
+ /** @description Value in cents (100 = 1€) */
8359
+ taxPayableCentTotal: number;
8360
+ /** @description Value in cents (100 = 1€) */
8361
+ advancedDepositsCentTotal: number;
8362
+ currency: string;
8363
+ note?: string | null;
8364
+ updatedAt?: string | null;
8365
+ };
8366
+ };
8367
+ };
8368
+ /** @description Invalid input data */
8369
+ 400: {
8370
+ headers: {
8371
+ [name: string]: unknown;
8372
+ };
8373
+ content: {
8374
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
8375
+ };
8376
+ };
8377
+ /** @description Authorization not provided */
8378
+ 401: {
8379
+ headers: {
8380
+ [name: string]: unknown;
8381
+ };
8382
+ content: {
8383
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
8384
+ };
8385
+ };
8386
+ /** @description Insufficient access */
8387
+ 403: {
8388
+ headers: {
8389
+ [name: string]: unknown;
8390
+ };
8391
+ content: {
8392
+ "application/json": components["schemas"]["error.FORBIDDEN"];
8393
+ };
8394
+ };
8395
+ /** @description Not found */
8396
+ 404: {
8397
+ headers: {
8398
+ [name: string]: unknown;
8399
+ };
8400
+ content: {
8401
+ "application/json": components["schemas"]["error.NOT_FOUND"];
8402
+ };
8403
+ };
8404
+ /** @description Internal server error */
8405
+ 500: {
8406
+ headers: {
8407
+ [name: string]: unknown;
8408
+ };
8409
+ content: {
8410
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
8411
+ };
8412
+ };
8413
+ };
8414
+ };
8415
+ updateTenantAdvancedDeposits: {
8416
+ parameters: {
8417
+ query?: never;
8418
+ header?: {
8419
+ "X-Team-Id"?: string;
8420
+ };
8421
+ path?: never;
8422
+ cookie?: never;
8423
+ };
8424
+ requestBody: {
8425
+ content: {
8426
+ "application/json": {
8427
+ /** @description Value in cents (100 = 1€) */
8428
+ centTotal: number;
8429
+ currency?: string | null;
8430
+ effectiveAt?: string | null;
8431
+ /** Format: uuid */
8432
+ accountId: string;
8433
+ note?: string | null;
8434
+ };
8435
+ };
8436
+ };
8437
+ responses: {
8438
+ /** @description Successful response */
8439
+ 200: {
8440
+ headers: {
8441
+ [name: string]: unknown;
8442
+ };
8443
+ content: {
8444
+ "application/json": {
8445
+ /** @description Value in cents (100 = 1€) */
8446
+ taxPayableCentTotal: number;
8447
+ /** @description Value in cents (100 = 1€) */
8448
+ advancedDepositsCentTotal: number;
8449
+ currency: string;
8450
+ note?: string | null;
8451
+ updatedAt?: string | null;
8452
+ };
8453
+ };
8454
+ };
8455
+ /** @description Invalid input data */
8456
+ 400: {
8457
+ headers: {
8458
+ [name: string]: unknown;
8459
+ };
8460
+ content: {
8461
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
8462
+ };
8463
+ };
8464
+ /** @description Authorization not provided */
8465
+ 401: {
8466
+ headers: {
8467
+ [name: string]: unknown;
8468
+ };
8469
+ content: {
8470
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
8471
+ };
8472
+ };
8473
+ /** @description Insufficient access */
8474
+ 403: {
8475
+ headers: {
8476
+ [name: string]: unknown;
8477
+ };
8478
+ content: {
8479
+ "application/json": components["schemas"]["error.FORBIDDEN"];
8480
+ };
8481
+ };
8482
+ /** @description Not found */
8483
+ 404: {
8484
+ headers: {
8485
+ [name: string]: unknown;
8486
+ };
8487
+ content: {
8488
+ "application/json": components["schemas"]["error.NOT_FOUND"];
8489
+ };
8490
+ };
8491
+ /** @description Internal server error */
8492
+ 500: {
8493
+ headers: {
8494
+ [name: string]: unknown;
8495
+ };
8496
+ content: {
8497
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
8498
+ };
8499
+ };
8500
+ };
8501
+ };
8502
+ getTeam: {
8503
+ parameters: {
8504
+ query?: never;
8505
+ header?: never;
8506
+ path: {
8507
+ id: string;
8508
+ };
8509
+ cookie?: never;
8510
+ };
8511
+ requestBody?: never;
8512
+ responses: {
8513
+ /** @description Successful response */
8514
+ 200: {
8515
+ headers: {
8516
+ [name: string]: unknown;
8517
+ };
8518
+ content: {
8519
+ "application/json": {
8520
+ /** Format: uuid */
8521
+ id: string;
8522
+ defaultCurrency?: string | null;
8523
+ longTermStayNights?: number | null;
8524
+ /** @enum {string|null} */
8525
+ defaultRevenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
8526
+ name: string;
8527
+ statementAddress?: {
8528
+ full?: string | null;
8529
+ line1?: string | null;
8530
+ line2?: string | null;
8531
+ city?: string | null;
8532
+ /** @deprecated */
8533
+ state?: string | null;
8534
+ postalCode?: string | null;
8535
+ stateCode?: string | null;
8536
+ countryCode?: string | null;
8537
+ } | null;
8538
+ billingAddress?: {
8539
+ full?: string | null;
8540
+ line1?: string | null;
8541
+ line2?: string | null;
8542
+ city?: string | null;
8543
+ /** @deprecated */
8544
+ state?: string | null;
8545
+ postalCode?: string | null;
8546
+ stateCode?: string | null;
8547
+ countryCode?: string | null;
8548
+ } | null;
8549
+ phone?: string | null;
8550
+ email?: string | null;
8551
+ taxId?: string | null;
8552
+ partner?: {
8553
+ /** Format: uuid */
8554
+ id: string;
8555
+ name: string;
8556
+ } | null;
8557
+ billingPartner?: {
8558
+ /** Format: uuid */
8559
+ id: string;
8560
+ name: string;
8561
+ } | null;
8562
+ companyName?: string | null;
8563
+ /** @enum {string} */
8564
+ type: "propertyManager" | "partner" | "admin";
8565
+ /** @enum {string} */
8566
+ status: "active" | "inactive";
8567
+ billingSubscriptionStatus?: string | null;
8568
+ billingPlan?: string | null;
8569
+ createdAt?: string | null;
8570
+ updatedAt?: string | null;
8571
+ trialUntil?: string | null;
8572
+ cancelledAt?: string | null;
8573
+ isOnboarding?: boolean | null;
8574
+ issues: {
8575
+ /** @enum {string} */
8576
+ code: "unassignedAccount";
8577
+ /** @enum {string} */
8578
+ severity: "error";
8579
+ context: {
8580
+ accountIds: string[];
8581
+ };
8582
+ }[];
8583
+ isGeneralLedger?: boolean | null;
8584
+ booksClosedAt?: string | null;
8585
+ logo?: string | null;
8586
+ statementStartAt?: string | null;
8587
+ members?: {
8588
+ userId: string;
8589
+ email?: string | null;
8590
+ role: string;
8591
+ name?: string | null;
8592
+ firstName?: string | null;
8593
+ }[] | null;
8594
+ };
8595
+ };
8596
+ };
8597
+ /** @description Invalid input data */
8598
+ 400: {
8599
+ headers: {
8600
+ [name: string]: unknown;
8601
+ };
8602
+ content: {
8603
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
8604
+ };
8605
+ };
8606
+ /** @description Authorization not provided */
8607
+ 401: {
8608
+ headers: {
8609
+ [name: string]: unknown;
8610
+ };
8611
+ content: {
8612
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
8613
+ };
8614
+ };
8615
+ /** @description Insufficient access */
8616
+ 403: {
8617
+ headers: {
8618
+ [name: string]: unknown;
8619
+ };
8620
+ content: {
8621
+ "application/json": components["schemas"]["error.FORBIDDEN"];
8622
+ };
8623
+ };
8624
+ /** @description Not found */
8625
+ 404: {
8626
+ headers: {
8627
+ [name: string]: unknown;
8628
+ };
8629
+ content: {
8630
+ "application/json": components["schemas"]["error.NOT_FOUND"];
8631
+ };
8632
+ };
8633
+ /** @description Internal server error */
8634
+ 500: {
8635
+ headers: {
8636
+ [name: string]: unknown;
8637
+ };
8638
+ content: {
8639
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
8640
+ };
8641
+ };
8642
+ };
8643
+ };
8644
+ updateTeam: {
8645
+ parameters: {
8646
+ query?: never;
8647
+ header?: {
8648
+ "X-Team-Id"?: string;
8649
+ };
8650
+ path: {
8651
+ id: string;
8652
+ };
8653
+ cookie?: never;
8654
+ };
8655
+ requestBody: {
8656
+ content: {
8657
+ "application/json": {
8658
+ defaultCurrency?: string | null;
8659
+ longTermStayNights?: number | null;
8660
+ /** @enum {string|null} */
8661
+ defaultRevenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
8662
+ name?: string;
8663
+ statementAddress?: {
8664
+ full?: string | null;
8665
+ line1?: string | null;
8666
+ line2?: string | null;
8667
+ city?: string | null;
8668
+ /** @deprecated */
8669
+ state?: string | null;
8670
+ postalCode?: string | null;
8671
+ stateCode?: string | null;
8672
+ countryCode?: string | null;
8673
+ } | null;
8674
+ billingAddress?: {
8675
+ full?: string | null;
8676
+ line1?: string | null;
8677
+ line2?: string | null;
8678
+ city?: string | null;
8679
+ /** @deprecated */
8680
+ state?: string | null;
8681
+ postalCode?: string | null;
8682
+ stateCode?: string | null;
8683
+ countryCode?: string | null;
8684
+ } | null;
8685
+ phone?: string | null;
8686
+ email?: string | null;
8687
+ taxId?: string | null;
8688
+ companyName?: string | null;
8689
+ /** @enum {string} */
8690
+ type?: "propertyManager" | "partner" | "admin";
8691
+ billingSubscriptionStatus?: string | null;
8692
+ billingPlan?: string | null;
8693
+ trialUntil?: string | null;
8694
+ cancelledAt?: string | null;
8695
+ isOnboarding?: boolean | null;
8696
+ booksClosedAt?: string | null;
8697
+ logo?: string | null;
8698
+ statementStartAt?: string | null;
8699
+ partnerId?: string | null;
8700
+ billingPartnerId?: string | null;
8701
+ /** @description Cancelation or Reinstatement of the team. */
8702
+ cancelation?: {
8703
+ /** @description Date on which the cancelation will take effect or null if an active cancellation should be withdrawn. */
8704
+ effectiveAt: string | null;
8705
+ /**
8706
+ * @description Reason for the cancelation if effectiveAt is set.
8707
+ * @enum {string}
8708
+ */
8709
+ reason?: "different-expectations" | "different-provider" | "missing-feature" | "no-longer-needed" | "switch-to-gl" | "removed-from-billing-console" | "other";
8710
+ /** @description Feedback for the cancelation if effectiveAt is set. */
8711
+ feedback?: string | null;
8712
+ } | null;
8713
+ /**
8714
+ * @description Only status of partner teams can be updated
8715
+ * @enum {string}
8716
+ */
8717
+ status?: "active" | "inactive";
8718
+ };
8719
+ };
8720
+ };
8721
+ responses: {
8722
+ /** @description Successful response */
8723
+ 200: {
8724
+ headers: {
8725
+ [name: string]: unknown;
8726
+ };
8727
+ content: {
8728
+ "application/json": {
8729
+ /** Format: uuid */
8730
+ id: string;
8731
+ defaultCurrency?: string | null;
8732
+ longTermStayNights?: number | null;
8733
+ /** @enum {string|null} */
8734
+ defaultRevenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
8735
+ name: string;
8736
+ statementAddress?: {
8737
+ full?: string | null;
8738
+ line1?: string | null;
8739
+ line2?: string | null;
8740
+ city?: string | null;
8741
+ /** @deprecated */
8742
+ state?: string | null;
8743
+ postalCode?: string | null;
8744
+ stateCode?: string | null;
8745
+ countryCode?: string | null;
8746
+ } | null;
8747
+ billingAddress?: {
8748
+ full?: string | null;
8749
+ line1?: string | null;
8750
+ line2?: string | null;
8751
+ city?: string | null;
8752
+ /** @deprecated */
8753
+ state?: string | null;
8754
+ postalCode?: string | null;
8755
+ stateCode?: string | null;
8756
+ countryCode?: string | null;
8757
+ } | null;
8758
+ phone?: string | null;
8759
+ email?: string | null;
8760
+ taxId?: string | null;
8761
+ partner?: {
8762
+ /** Format: uuid */
8763
+ id: string;
8764
+ name: string;
8765
+ } | null;
8766
+ billingPartner?: {
8767
+ /** Format: uuid */
8768
+ id: string;
8769
+ name: string;
8770
+ } | null;
8771
+ companyName?: string | null;
8772
+ /** @enum {string} */
8773
+ type: "propertyManager" | "partner" | "admin";
8774
+ /** @enum {string} */
8775
+ status: "active" | "inactive";
8776
+ billingSubscriptionStatus?: string | null;
8777
+ billingPlan?: string | null;
8778
+ createdAt?: string | null;
8779
+ updatedAt?: string | null;
8780
+ trialUntil?: string | null;
8781
+ cancelledAt?: string | null;
8782
+ isOnboarding?: boolean | null;
8783
+ issues: {
8302
8784
  /** @enum {string} */
8303
8785
  code: "unassignedAccount";
8304
8786
  /** @enum {string} */
@@ -12612,7 +13094,7 @@ export interface operations {
12612
13094
  uniqueRef: string | null;
12613
13095
  };
12614
13096
  /** @enum {string} */
12615
- status: "draft" | "inReview" | "void" | "published" | "preview";
13097
+ status: "draft" | "inReview" | "void" | "published";
12616
13098
  ownership: {
12617
13099
  id: string;
12618
13100
  startAt: string;
@@ -12625,109 +13107,155 @@ export interface operations {
12625
13107
  }[];
12626
13108
  } | null;
12627
13109
  layout: {
12628
- id: string;
12629
13110
  name: string;
12630
- /**
12631
- * @default default
12632
- * @enum {string}
12633
- */
12634
- summaryType: "default" | "invoice";
13111
+ /** @enum {string|null} */
13112
+ summaryType?: "default" | "invoice" | null;
13113
+ isDefault: boolean;
12635
13114
  netRevenueSections: {
12636
13115
  id?: string | null;
12637
13116
  name: string;
12638
- /** @enum {string} */
12639
- visible?: "all" | "manager" | "none";
12640
- locked?: boolean;
12641
- /** @default [] */
12642
- columns: {
13117
+ locked?: boolean | null;
13118
+ /** @enum {string|null} */
13119
+ visible?: "all" | "manager" | "none" | null;
13120
+ columns: ({
12643
13121
  id?: string | null;
12644
13122
  name: string;
12645
- type: string;
12646
- value?: (string | number | string[] | number[] | {
12647
- [key: string]: unknown;
12648
- }) | null;
13123
+ locked?: boolean | null;
13124
+ /** @enum {string|null} */
13125
+ visible?: "all" | "manager" | "none" | null;
12649
13126
  /** @enum {string} */
12650
- visible?: "all" | "manager" | "none";
12651
- locked?: boolean;
12652
- bold?: boolean;
13127
+ type: "subTotal" | "field" | "formula.percentage" | "formula.currency";
13128
+ value: string;
13129
+ } | {
13130
+ id?: string | null;
13131
+ name: string;
13132
+ locked?: boolean | null;
13133
+ /** @enum {string|null} */
13134
+ visible?: "all" | "manager" | "none" | null;
12653
13135
  /** @enum {string} */
12654
- align?: "left" | "right";
12655
- hide?: boolean;
12656
- props?: {
12657
- [key: string]: unknown;
12658
- };
12659
- sectionId?: string | null;
12660
- invert?: boolean;
12661
- fees?: {
12662
- [key: string]: unknown;
12663
- };
12664
- }[];
13136
+ type: "accounts";
13137
+ value: string[];
13138
+ })[];
12665
13139
  }[];
12666
13140
  otherSections: {
12667
13141
  id?: string | null;
12668
13142
  name: string;
12669
- /** @enum {string} */
12670
- visible?: "all" | "manager" | "none";
12671
- locked?: boolean;
12672
- /** @default [] */
12673
- columns: {
13143
+ locked?: boolean | null;
13144
+ /** @enum {string|null} */
13145
+ visible?: "all" | "manager" | "none" | null;
13146
+ columns: ({
13147
+ id?: string | null;
13148
+ name: string;
13149
+ locked?: boolean | null;
13150
+ /** @enum {string|null} */
13151
+ visible?: "all" | "manager" | "none" | null;
13152
+ /** @enum {string} */
13153
+ type: "field";
13154
+ value: string;
13155
+ } | {
12674
13156
  id?: string | null;
12675
13157
  name: string;
12676
- type: string;
12677
- value?: (string | number | string[] | number[] | {
12678
- [key: string]: unknown;
12679
- }) | null;
12680
- /** @enum {string} */
12681
- visible?: "all" | "manager" | "none";
12682
- locked?: boolean;
12683
- bold?: boolean;
12684
- /** @enum {string} */
12685
- align?: "left" | "right";
12686
- hide?: boolean;
12687
- props?: {
12688
- [key: string]: unknown;
12689
- };
12690
- sectionId?: string | null;
12691
- invert?: boolean;
12692
- fees?: {
12693
- [key: string]: unknown;
13158
+ locked?: boolean | null;
13159
+ /** @enum {string|null} */
13160
+ visible?: "all" | "manager" | "none" | null;
13161
+ /** @enum {string} */
13162
+ type: "accounts";
13163
+ value: string[];
13164
+ })[];
13165
+ }[];
13166
+ id: string;
13167
+ activeListings: {
13168
+ id: string;
13169
+ name?: string | null;
13170
+ }[];
13171
+ linkedAccounts: {
13172
+ name: string;
13173
+ /** @enum {string|null} */
13174
+ status?: "active" | "inactive" | null;
13175
+ /** @enum {string} */
13176
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
13177
+ id: string;
13178
+ offsetAccount?: {
13179
+ id: string;
13180
+ name: string;
13181
+ } | null;
13182
+ 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")[];
13183
+ category?: {
13184
+ id: string;
13185
+ name: string;
13186
+ /** @enum {string|null} */
13187
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
13188
+ } | null;
13189
+ banking?: {
13190
+ /** @enum {string|null} */
13191
+ category?: "trust" | "operating" | "external" | null;
13192
+ /** @enum {string|null} */
13193
+ type?: "deposit" | "creditCard" | null;
13194
+ last4?: string | null;
13195
+ currency?: string | null;
13196
+ connections: {
13197
+ id: string;
13198
+ name: string;
13199
+ connection?: {
13200
+ id: string;
13201
+ icon?: string | null;
13202
+ } | null;
13203
+ /** @enum {string|null} */
13204
+ status?: "active" | "inactive" | null;
13205
+ currentSync?: {
13206
+ /** @enum {string} */
13207
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
13208
+ createdAt: string;
13209
+ updatedAt: string;
13210
+ message?: string | null;
13211
+ } | null;
13212
+ source?: {
13213
+ /** Format: uuid */
13214
+ id: string;
13215
+ type: string;
13216
+ /** @enum {string|null} */
13217
+ status?: "active" | "inactive" | null;
13218
+ } | null;
13219
+ }[];
13220
+ bankRecords: {
13221
+ reconciled: number;
13222
+ unreconciled: number;
13223
+ total: number;
13224
+ latestCreatedAt?: string | null;
12694
13225
  };
12695
- }[];
13226
+ balance?: {
13227
+ openingDate?: string | null;
13228
+ opening: number;
13229
+ ending: number;
13230
+ } | null;
13231
+ } | null;
12696
13232
  }[];
13233
+ createdAt: string;
12697
13234
  systemSections: {
12698
13235
  id?: string | null;
12699
13236
  name: string;
12700
- /** @enum {string} */
12701
- visible?: "all" | "manager" | "none";
12702
- locked?: boolean;
12703
- /** @default [] */
12704
- columns: {
13237
+ locked?: boolean | null;
13238
+ /** @enum {string|null} */
13239
+ visible?: "all" | "manager" | "none" | null;
13240
+ columns: ({
12705
13241
  id?: string | null;
12706
13242
  name: string;
12707
- type: string;
12708
- value?: (string | number | string[] | number[] | {
12709
- [key: string]: unknown;
12710
- }) | null;
13243
+ locked?: boolean | null;
13244
+ /** @enum {string|null} */
13245
+ visible?: "all" | "manager" | "none" | null;
12711
13246
  /** @enum {string} */
12712
- visible?: "all" | "manager" | "none";
12713
- locked?: boolean;
12714
- bold?: boolean;
13247
+ type: "field";
13248
+ value: string;
13249
+ } | {
13250
+ id?: string | null;
13251
+ name: string;
13252
+ locked?: boolean | null;
13253
+ /** @enum {string|null} */
13254
+ visible?: "all" | "manager" | "none" | null;
12715
13255
  /** @enum {string} */
12716
- align?: "left" | "right";
12717
- hide?: boolean;
12718
- props?: {
12719
- [key: string]: unknown;
12720
- };
12721
- sectionId?: string | null;
12722
- invert?: boolean;
12723
- fees?: {
12724
- [key: string]: unknown;
12725
- };
12726
- }[];
12727
- }[];
12728
- activeListings?: {
12729
- id: string;
12730
- name: string;
13256
+ type: "accounts";
13257
+ value: string[];
13258
+ })[];
12731
13259
  }[];
12732
13260
  };
12733
13261
  rows: ({
@@ -13074,7 +13602,7 @@ export interface operations {
13074
13602
  uniqueRef: string | null;
13075
13603
  };
13076
13604
  /** @enum {string} */
13077
- status: "draft" | "inReview" | "void" | "published" | "preview";
13605
+ status: "draft" | "inReview" | "void" | "published";
13078
13606
  ownership: {
13079
13607
  id: string;
13080
13608
  startAt: string;
@@ -13087,109 +13615,155 @@ export interface operations {
13087
13615
  }[];
13088
13616
  } | null;
13089
13617
  layout: {
13090
- id: string;
13091
13618
  name: string;
13092
- /**
13093
- * @default default
13094
- * @enum {string}
13095
- */
13096
- summaryType: "default" | "invoice";
13619
+ /** @enum {string|null} */
13620
+ summaryType?: "default" | "invoice" | null;
13621
+ isDefault: boolean;
13097
13622
  netRevenueSections: {
13098
13623
  id?: string | null;
13099
13624
  name: string;
13100
- /** @enum {string} */
13101
- visible?: "all" | "manager" | "none";
13102
- locked?: boolean;
13103
- /** @default [] */
13104
- columns: {
13625
+ locked?: boolean | null;
13626
+ /** @enum {string|null} */
13627
+ visible?: "all" | "manager" | "none" | null;
13628
+ columns: ({
13105
13629
  id?: string | null;
13106
13630
  name: string;
13107
- type: string;
13108
- value?: (string | number | string[] | number[] | {
13109
- [key: string]: unknown;
13110
- }) | null;
13631
+ locked?: boolean | null;
13632
+ /** @enum {string|null} */
13633
+ visible?: "all" | "manager" | "none" | null;
13111
13634
  /** @enum {string} */
13112
- visible?: "all" | "manager" | "none";
13113
- locked?: boolean;
13114
- bold?: boolean;
13635
+ type: "subTotal" | "field" | "formula.percentage" | "formula.currency";
13636
+ value: string;
13637
+ } | {
13638
+ id?: string | null;
13639
+ name: string;
13640
+ locked?: boolean | null;
13641
+ /** @enum {string|null} */
13642
+ visible?: "all" | "manager" | "none" | null;
13115
13643
  /** @enum {string} */
13116
- align?: "left" | "right";
13117
- hide?: boolean;
13118
- props?: {
13119
- [key: string]: unknown;
13120
- };
13121
- sectionId?: string | null;
13122
- invert?: boolean;
13123
- fees?: {
13124
- [key: string]: unknown;
13125
- };
13126
- }[];
13644
+ type: "accounts";
13645
+ value: string[];
13646
+ })[];
13127
13647
  }[];
13128
13648
  otherSections: {
13129
13649
  id?: string | null;
13130
13650
  name: string;
13131
- /** @enum {string} */
13132
- visible?: "all" | "manager" | "none";
13133
- locked?: boolean;
13134
- /** @default [] */
13135
- columns: {
13651
+ locked?: boolean | null;
13652
+ /** @enum {string|null} */
13653
+ visible?: "all" | "manager" | "none" | null;
13654
+ columns: ({
13136
13655
  id?: string | null;
13137
13656
  name: string;
13138
- type: string;
13139
- value?: (string | number | string[] | number[] | {
13140
- [key: string]: unknown;
13141
- }) | null;
13657
+ locked?: boolean | null;
13658
+ /** @enum {string|null} */
13659
+ visible?: "all" | "manager" | "none" | null;
13142
13660
  /** @enum {string} */
13143
- visible?: "all" | "manager" | "none";
13144
- locked?: boolean;
13145
- bold?: boolean;
13661
+ type: "field";
13662
+ value: string;
13663
+ } | {
13664
+ id?: string | null;
13665
+ name: string;
13666
+ locked?: boolean | null;
13667
+ /** @enum {string|null} */
13668
+ visible?: "all" | "manager" | "none" | null;
13146
13669
  /** @enum {string} */
13147
- align?: "left" | "right";
13148
- hide?: boolean;
13149
- props?: {
13150
- [key: string]: unknown;
13151
- };
13152
- sectionId?: string | null;
13153
- invert?: boolean;
13154
- fees?: {
13155
- [key: string]: unknown;
13670
+ type: "accounts";
13671
+ value: string[];
13672
+ })[];
13673
+ }[];
13674
+ id: string;
13675
+ activeListings: {
13676
+ id: string;
13677
+ name?: string | null;
13678
+ }[];
13679
+ linkedAccounts: {
13680
+ name: string;
13681
+ /** @enum {string|null} */
13682
+ status?: "active" | "inactive" | null;
13683
+ /** @enum {string} */
13684
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
13685
+ id: string;
13686
+ offsetAccount?: {
13687
+ id: string;
13688
+ name: string;
13689
+ } | null;
13690
+ 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")[];
13691
+ category?: {
13692
+ id: string;
13693
+ name: string;
13694
+ /** @enum {string|null} */
13695
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
13696
+ } | null;
13697
+ banking?: {
13698
+ /** @enum {string|null} */
13699
+ category?: "trust" | "operating" | "external" | null;
13700
+ /** @enum {string|null} */
13701
+ type?: "deposit" | "creditCard" | null;
13702
+ last4?: string | null;
13703
+ currency?: string | null;
13704
+ connections: {
13705
+ id: string;
13706
+ name: string;
13707
+ connection?: {
13708
+ id: string;
13709
+ icon?: string | null;
13710
+ } | null;
13711
+ /** @enum {string|null} */
13712
+ status?: "active" | "inactive" | null;
13713
+ currentSync?: {
13714
+ /** @enum {string} */
13715
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
13716
+ createdAt: string;
13717
+ updatedAt: string;
13718
+ message?: string | null;
13719
+ } | null;
13720
+ source?: {
13721
+ /** Format: uuid */
13722
+ id: string;
13723
+ type: string;
13724
+ /** @enum {string|null} */
13725
+ status?: "active" | "inactive" | null;
13726
+ } | null;
13727
+ }[];
13728
+ bankRecords: {
13729
+ reconciled: number;
13730
+ unreconciled: number;
13731
+ total: number;
13732
+ latestCreatedAt?: string | null;
13156
13733
  };
13157
- }[];
13734
+ balance?: {
13735
+ openingDate?: string | null;
13736
+ opening: number;
13737
+ ending: number;
13738
+ } | null;
13739
+ } | null;
13158
13740
  }[];
13741
+ createdAt: string;
13159
13742
  systemSections: {
13160
13743
  id?: string | null;
13161
13744
  name: string;
13162
- /** @enum {string} */
13163
- visible?: "all" | "manager" | "none";
13164
- locked?: boolean;
13165
- /** @default [] */
13166
- columns: {
13745
+ locked?: boolean | null;
13746
+ /** @enum {string|null} */
13747
+ visible?: "all" | "manager" | "none" | null;
13748
+ columns: ({
13167
13749
  id?: string | null;
13168
13750
  name: string;
13169
- type: string;
13170
- value?: (string | number | string[] | number[] | {
13171
- [key: string]: unknown;
13172
- }) | null;
13751
+ locked?: boolean | null;
13752
+ /** @enum {string|null} */
13753
+ visible?: "all" | "manager" | "none" | null;
13173
13754
  /** @enum {string} */
13174
- visible?: "all" | "manager" | "none";
13175
- locked?: boolean;
13176
- bold?: boolean;
13755
+ type: "field";
13756
+ value: string;
13757
+ } | {
13758
+ id?: string | null;
13759
+ name: string;
13760
+ locked?: boolean | null;
13761
+ /** @enum {string|null} */
13762
+ visible?: "all" | "manager" | "none" | null;
13177
13763
  /** @enum {string} */
13178
- align?: "left" | "right";
13179
- hide?: boolean;
13180
- props?: {
13181
- [key: string]: unknown;
13182
- };
13183
- sectionId?: string | null;
13184
- invert?: boolean;
13185
- fees?: {
13186
- [key: string]: unknown;
13187
- };
13188
- }[];
13189
- }[];
13190
- activeListings?: {
13191
- id: string;
13192
- name: string;
13764
+ type: "accounts";
13765
+ value: string[];
13766
+ })[];
13193
13767
  }[];
13194
13768
  };
13195
13769
  rows: ({
@@ -13545,7 +14119,7 @@ export interface operations {
13545
14119
  uniqueRef: string | null;
13546
14120
  };
13547
14121
  /** @enum {string} */
13548
- status: "draft" | "inReview" | "void" | "published" | "preview";
14122
+ status: "draft" | "inReview" | "void" | "published";
13549
14123
  ownership: {
13550
14124
  id: string;
13551
14125
  startAt: string;
@@ -13558,109 +14132,155 @@ export interface operations {
13558
14132
  }[];
13559
14133
  } | null;
13560
14134
  layout: {
13561
- id: string;
13562
14135
  name: string;
13563
- /**
13564
- * @default default
13565
- * @enum {string}
13566
- */
13567
- summaryType: "default" | "invoice";
14136
+ /** @enum {string|null} */
14137
+ summaryType?: "default" | "invoice" | null;
14138
+ isDefault: boolean;
13568
14139
  netRevenueSections: {
13569
14140
  id?: string | null;
13570
14141
  name: string;
13571
- /** @enum {string} */
13572
- visible?: "all" | "manager" | "none";
13573
- locked?: boolean;
13574
- /** @default [] */
13575
- columns: {
14142
+ locked?: boolean | null;
14143
+ /** @enum {string|null} */
14144
+ visible?: "all" | "manager" | "none" | null;
14145
+ columns: ({
14146
+ id?: string | null;
14147
+ name: string;
14148
+ locked?: boolean | null;
14149
+ /** @enum {string|null} */
14150
+ visible?: "all" | "manager" | "none" | null;
14151
+ /** @enum {string} */
14152
+ type: "subTotal" | "field" | "formula.percentage" | "formula.currency";
14153
+ value: string;
14154
+ } | {
13576
14155
  id?: string | null;
13577
14156
  name: string;
13578
- type: string;
13579
- value?: (string | number | string[] | number[] | {
13580
- [key: string]: unknown;
13581
- }) | null;
13582
- /** @enum {string} */
13583
- visible?: "all" | "manager" | "none";
13584
- locked?: boolean;
13585
- bold?: boolean;
14157
+ locked?: boolean | null;
14158
+ /** @enum {string|null} */
14159
+ visible?: "all" | "manager" | "none" | null;
13586
14160
  /** @enum {string} */
13587
- align?: "left" | "right";
13588
- hide?: boolean;
13589
- props?: {
13590
- [key: string]: unknown;
13591
- };
13592
- sectionId?: string | null;
13593
- invert?: boolean;
13594
- fees?: {
13595
- [key: string]: unknown;
13596
- };
13597
- }[];
14161
+ type: "accounts";
14162
+ value: string[];
14163
+ })[];
13598
14164
  }[];
13599
14165
  otherSections: {
13600
14166
  id?: string | null;
13601
14167
  name: string;
13602
- /** @enum {string} */
13603
- visible?: "all" | "manager" | "none";
13604
- locked?: boolean;
13605
- /** @default [] */
13606
- columns: {
14168
+ locked?: boolean | null;
14169
+ /** @enum {string|null} */
14170
+ visible?: "all" | "manager" | "none" | null;
14171
+ columns: ({
13607
14172
  id?: string | null;
13608
14173
  name: string;
13609
- type: string;
13610
- value?: (string | number | string[] | number[] | {
13611
- [key: string]: unknown;
13612
- }) | null;
14174
+ locked?: boolean | null;
14175
+ /** @enum {string|null} */
14176
+ visible?: "all" | "manager" | "none" | null;
13613
14177
  /** @enum {string} */
13614
- visible?: "all" | "manager" | "none";
13615
- locked?: boolean;
13616
- bold?: boolean;
14178
+ type: "field";
14179
+ value: string;
14180
+ } | {
14181
+ id?: string | null;
14182
+ name: string;
14183
+ locked?: boolean | null;
14184
+ /** @enum {string|null} */
14185
+ visible?: "all" | "manager" | "none" | null;
13617
14186
  /** @enum {string} */
13618
- align?: "left" | "right";
13619
- hide?: boolean;
13620
- props?: {
13621
- [key: string]: unknown;
13622
- };
13623
- sectionId?: string | null;
13624
- invert?: boolean;
13625
- fees?: {
13626
- [key: string]: unknown;
14187
+ type: "accounts";
14188
+ value: string[];
14189
+ })[];
14190
+ }[];
14191
+ id: string;
14192
+ activeListings: {
14193
+ id: string;
14194
+ name?: string | null;
14195
+ }[];
14196
+ linkedAccounts: {
14197
+ name: string;
14198
+ /** @enum {string|null} */
14199
+ status?: "active" | "inactive" | null;
14200
+ /** @enum {string} */
14201
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
14202
+ id: string;
14203
+ offsetAccount?: {
14204
+ id: string;
14205
+ name: string;
14206
+ } | null;
14207
+ 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")[];
14208
+ category?: {
14209
+ id: string;
14210
+ name: string;
14211
+ /** @enum {string|null} */
14212
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
14213
+ } | null;
14214
+ banking?: {
14215
+ /** @enum {string|null} */
14216
+ category?: "trust" | "operating" | "external" | null;
14217
+ /** @enum {string|null} */
14218
+ type?: "deposit" | "creditCard" | null;
14219
+ last4?: string | null;
14220
+ currency?: string | null;
14221
+ connections: {
14222
+ id: string;
14223
+ name: string;
14224
+ connection?: {
14225
+ id: string;
14226
+ icon?: string | null;
14227
+ } | null;
14228
+ /** @enum {string|null} */
14229
+ status?: "active" | "inactive" | null;
14230
+ currentSync?: {
14231
+ /** @enum {string} */
14232
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
14233
+ createdAt: string;
14234
+ updatedAt: string;
14235
+ message?: string | null;
14236
+ } | null;
14237
+ source?: {
14238
+ /** Format: uuid */
14239
+ id: string;
14240
+ type: string;
14241
+ /** @enum {string|null} */
14242
+ status?: "active" | "inactive" | null;
14243
+ } | null;
14244
+ }[];
14245
+ bankRecords: {
14246
+ reconciled: number;
14247
+ unreconciled: number;
14248
+ total: number;
14249
+ latestCreatedAt?: string | null;
13627
14250
  };
13628
- }[];
14251
+ balance?: {
14252
+ openingDate?: string | null;
14253
+ opening: number;
14254
+ ending: number;
14255
+ } | null;
14256
+ } | null;
13629
14257
  }[];
14258
+ createdAt: string;
13630
14259
  systemSections: {
13631
14260
  id?: string | null;
13632
14261
  name: string;
13633
- /** @enum {string} */
13634
- visible?: "all" | "manager" | "none";
13635
- locked?: boolean;
13636
- /** @default [] */
13637
- columns: {
14262
+ locked?: boolean | null;
14263
+ /** @enum {string|null} */
14264
+ visible?: "all" | "manager" | "none" | null;
14265
+ columns: ({
13638
14266
  id?: string | null;
13639
14267
  name: string;
13640
- type: string;
13641
- value?: (string | number | string[] | number[] | {
13642
- [key: string]: unknown;
13643
- }) | null;
14268
+ locked?: boolean | null;
14269
+ /** @enum {string|null} */
14270
+ visible?: "all" | "manager" | "none" | null;
13644
14271
  /** @enum {string} */
13645
- visible?: "all" | "manager" | "none";
13646
- locked?: boolean;
13647
- bold?: boolean;
14272
+ type: "field";
14273
+ value: string;
14274
+ } | {
14275
+ id?: string | null;
14276
+ name: string;
14277
+ locked?: boolean | null;
14278
+ /** @enum {string|null} */
14279
+ visible?: "all" | "manager" | "none" | null;
13648
14280
  /** @enum {string} */
13649
- align?: "left" | "right";
13650
- hide?: boolean;
13651
- props?: {
13652
- [key: string]: unknown;
13653
- };
13654
- sectionId?: string | null;
13655
- invert?: boolean;
13656
- fees?: {
13657
- [key: string]: unknown;
13658
- };
13659
- }[];
13660
- }[];
13661
- activeListings?: {
13662
- id: string;
13663
- name: string;
14281
+ type: "accounts";
14282
+ value: string[];
14283
+ })[];
13664
14284
  }[];
13665
14285
  };
13666
14286
  rows: ({
@@ -13964,7 +14584,7 @@ export interface operations {
13964
14584
  /** @description Date in format YYYY-MM */
13965
14585
  month?: string;
13966
14586
  search?: string;
13967
- status?: "draft" | "inReview" | "void" | "published";
14587
+ status?: ("draft" | "inReview" | "void" | "published") | "all";
13968
14588
  /** @description comma separated owners */
13969
14589
  ownerIds?: string;
13970
14590
  /** @description comma separated owners */
@@ -14097,7 +14717,7 @@ export interface operations {
14097
14717
  uniqueRef: string | null;
14098
14718
  };
14099
14719
  /** @enum {string} */
14100
- status: "draft" | "inReview" | "void" | "published" | "preview";
14720
+ status: "draft" | "inReview" | "void" | "published";
14101
14721
  ownership: {
14102
14722
  id: string;
14103
14723
  startAt: string;
@@ -14345,7 +14965,7 @@ export interface operations {
14345
14965
  uniqueRef: string | null;
14346
14966
  };
14347
14967
  /** @enum {string} */
14348
- status: "draft" | "inReview" | "void" | "published" | "preview";
14968
+ status: "draft" | "inReview" | "void" | "published";
14349
14969
  ownership: {
14350
14970
  id: string;
14351
14971
  startAt: string;
@@ -14358,109 +14978,155 @@ export interface operations {
14358
14978
  }[];
14359
14979
  } | null;
14360
14980
  layout: {
14361
- id: string;
14362
14981
  name: string;
14363
- /**
14364
- * @default default
14365
- * @enum {string}
14366
- */
14367
- summaryType: "default" | "invoice";
14982
+ /** @enum {string|null} */
14983
+ summaryType?: "default" | "invoice" | null;
14984
+ isDefault: boolean;
14368
14985
  netRevenueSections: {
14369
14986
  id?: string | null;
14370
14987
  name: string;
14371
- /** @enum {string} */
14372
- visible?: "all" | "manager" | "none";
14373
- locked?: boolean;
14374
- /** @default [] */
14375
- columns: {
14988
+ locked?: boolean | null;
14989
+ /** @enum {string|null} */
14990
+ visible?: "all" | "manager" | "none" | null;
14991
+ columns: ({
14376
14992
  id?: string | null;
14377
14993
  name: string;
14378
- type: string;
14379
- value?: (string | number | string[] | number[] | {
14380
- [key: string]: unknown;
14381
- }) | null;
14994
+ locked?: boolean | null;
14995
+ /** @enum {string|null} */
14996
+ visible?: "all" | "manager" | "none" | null;
14382
14997
  /** @enum {string} */
14383
- visible?: "all" | "manager" | "none";
14384
- locked?: boolean;
14385
- bold?: boolean;
14998
+ type: "subTotal" | "field" | "formula.percentage" | "formula.currency";
14999
+ value: string;
15000
+ } | {
15001
+ id?: string | null;
15002
+ name: string;
15003
+ locked?: boolean | null;
15004
+ /** @enum {string|null} */
15005
+ visible?: "all" | "manager" | "none" | null;
14386
15006
  /** @enum {string} */
14387
- align?: "left" | "right";
14388
- hide?: boolean;
14389
- props?: {
14390
- [key: string]: unknown;
14391
- };
14392
- sectionId?: string | null;
14393
- invert?: boolean;
14394
- fees?: {
14395
- [key: string]: unknown;
14396
- };
14397
- }[];
15007
+ type: "accounts";
15008
+ value: string[];
15009
+ })[];
14398
15010
  }[];
14399
15011
  otherSections: {
14400
15012
  id?: string | null;
14401
15013
  name: string;
14402
- /** @enum {string} */
14403
- visible?: "all" | "manager" | "none";
14404
- locked?: boolean;
14405
- /** @default [] */
14406
- columns: {
15014
+ locked?: boolean | null;
15015
+ /** @enum {string|null} */
15016
+ visible?: "all" | "manager" | "none" | null;
15017
+ columns: ({
14407
15018
  id?: string | null;
14408
15019
  name: string;
14409
- type: string;
14410
- value?: (string | number | string[] | number[] | {
14411
- [key: string]: unknown;
14412
- }) | null;
15020
+ locked?: boolean | null;
15021
+ /** @enum {string|null} */
15022
+ visible?: "all" | "manager" | "none" | null;
14413
15023
  /** @enum {string} */
14414
- visible?: "all" | "manager" | "none";
14415
- locked?: boolean;
14416
- bold?: boolean;
15024
+ type: "field";
15025
+ value: string;
15026
+ } | {
15027
+ id?: string | null;
15028
+ name: string;
15029
+ locked?: boolean | null;
15030
+ /** @enum {string|null} */
15031
+ visible?: "all" | "manager" | "none" | null;
14417
15032
  /** @enum {string} */
14418
- align?: "left" | "right";
14419
- hide?: boolean;
14420
- props?: {
14421
- [key: string]: unknown;
14422
- };
14423
- sectionId?: string | null;
14424
- invert?: boolean;
14425
- fees?: {
14426
- [key: string]: unknown;
15033
+ type: "accounts";
15034
+ value: string[];
15035
+ })[];
15036
+ }[];
15037
+ id: string;
15038
+ activeListings: {
15039
+ id: string;
15040
+ name?: string | null;
15041
+ }[];
15042
+ linkedAccounts: {
15043
+ name: string;
15044
+ /** @enum {string|null} */
15045
+ status?: "active" | "inactive" | null;
15046
+ /** @enum {string} */
15047
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
15048
+ id: string;
15049
+ offsetAccount?: {
15050
+ id: string;
15051
+ name: string;
15052
+ } | null;
15053
+ 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")[];
15054
+ category?: {
15055
+ id: string;
15056
+ name: string;
15057
+ /** @enum {string|null} */
15058
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
15059
+ } | null;
15060
+ banking?: {
15061
+ /** @enum {string|null} */
15062
+ category?: "trust" | "operating" | "external" | null;
15063
+ /** @enum {string|null} */
15064
+ type?: "deposit" | "creditCard" | null;
15065
+ last4?: string | null;
15066
+ currency?: string | null;
15067
+ connections: {
15068
+ id: string;
15069
+ name: string;
15070
+ connection?: {
15071
+ id: string;
15072
+ icon?: string | null;
15073
+ } | null;
15074
+ /** @enum {string|null} */
15075
+ status?: "active" | "inactive" | null;
15076
+ currentSync?: {
15077
+ /** @enum {string} */
15078
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
15079
+ createdAt: string;
15080
+ updatedAt: string;
15081
+ message?: string | null;
15082
+ } | null;
15083
+ source?: {
15084
+ /** Format: uuid */
15085
+ id: string;
15086
+ type: string;
15087
+ /** @enum {string|null} */
15088
+ status?: "active" | "inactive" | null;
15089
+ } | null;
15090
+ }[];
15091
+ bankRecords: {
15092
+ reconciled: number;
15093
+ unreconciled: number;
15094
+ total: number;
15095
+ latestCreatedAt?: string | null;
14427
15096
  };
14428
- }[];
15097
+ balance?: {
15098
+ openingDate?: string | null;
15099
+ opening: number;
15100
+ ending: number;
15101
+ } | null;
15102
+ } | null;
14429
15103
  }[];
15104
+ createdAt: string;
14430
15105
  systemSections: {
14431
15106
  id?: string | null;
14432
15107
  name: string;
14433
- /** @enum {string} */
14434
- visible?: "all" | "manager" | "none";
14435
- locked?: boolean;
14436
- /** @default [] */
14437
- columns: {
15108
+ locked?: boolean | null;
15109
+ /** @enum {string|null} */
15110
+ visible?: "all" | "manager" | "none" | null;
15111
+ columns: ({
14438
15112
  id?: string | null;
14439
15113
  name: string;
14440
- type: string;
14441
- value?: (string | number | string[] | number[] | {
14442
- [key: string]: unknown;
14443
- }) | null;
15114
+ locked?: boolean | null;
15115
+ /** @enum {string|null} */
15116
+ visible?: "all" | "manager" | "none" | null;
14444
15117
  /** @enum {string} */
14445
- visible?: "all" | "manager" | "none";
14446
- locked?: boolean;
14447
- bold?: boolean;
15118
+ type: "field";
15119
+ value: string;
15120
+ } | {
15121
+ id?: string | null;
15122
+ name: string;
15123
+ locked?: boolean | null;
15124
+ /** @enum {string|null} */
15125
+ visible?: "all" | "manager" | "none" | null;
14448
15126
  /** @enum {string} */
14449
- align?: "left" | "right";
14450
- hide?: boolean;
14451
- props?: {
14452
- [key: string]: unknown;
14453
- };
14454
- sectionId?: string | null;
14455
- invert?: boolean;
14456
- fees?: {
14457
- [key: string]: unknown;
14458
- };
14459
- }[];
14460
- }[];
14461
- activeListings?: {
14462
- id: string;
14463
- name: string;
15127
+ type: "accounts";
15128
+ value: string[];
15129
+ })[];
14464
15130
  }[];
14465
15131
  };
14466
15132
  rows: ({