@vrplatform/api 1.2.33-stage.738 → 1.2.33-stage.740

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.
@@ -1539,15 +1539,15 @@ export interface paths {
1539
1539
  patch?: never;
1540
1540
  trace?: never;
1541
1541
  };
1542
- "/reports/profit-and-loss/party": {
1542
+ "/reports/profit-and-loss": {
1543
1543
  parameters: {
1544
1544
  query?: never;
1545
1545
  header?: never;
1546
1546
  path?: never;
1547
1547
  cookie?: never;
1548
1548
  };
1549
- /** @description Profit & Loss report grouped by party */
1550
- get: operations["getProfitAndLossPartyReport"];
1549
+ /** @description Profit & Loss report grouped by party, listing, month, quarter, or year (configure with view query param) */
1550
+ get: operations["getProfitAndLossReport"];
1551
1551
  put?: never;
1552
1552
  post?: never;
1553
1553
  delete?: never;
@@ -1556,151 +1556,15 @@ export interface paths {
1556
1556
  patch?: never;
1557
1557
  trace?: never;
1558
1558
  };
1559
- "/reports/profit-and-loss/party/csv": {
1559
+ "/reports/profit-and-loss/csv": {
1560
1560
  parameters: {
1561
1561
  query?: never;
1562
1562
  header?: never;
1563
1563
  path?: never;
1564
1564
  cookie?: never;
1565
1565
  };
1566
- /** @description Profit & Loss report grouped by party (CSV) */
1567
- get: operations["getProfitAndLossPartyReportCsv"];
1568
- put?: never;
1569
- post?: never;
1570
- delete?: never;
1571
- options?: never;
1572
- head?: never;
1573
- patch?: never;
1574
- trace?: never;
1575
- };
1576
- "/reports/profit-and-loss/listing": {
1577
- parameters: {
1578
- query?: never;
1579
- header?: never;
1580
- path?: never;
1581
- cookie?: never;
1582
- };
1583
- /** @description Profit & Loss report grouped by listing */
1584
- get: operations["getProfitAndLossListingReport"];
1585
- put?: never;
1586
- post?: never;
1587
- delete?: never;
1588
- options?: never;
1589
- head?: never;
1590
- patch?: never;
1591
- trace?: never;
1592
- };
1593
- "/reports/profit-and-loss/listing/csv": {
1594
- parameters: {
1595
- query?: never;
1596
- header?: never;
1597
- path?: never;
1598
- cookie?: never;
1599
- };
1600
- /** @description Profit & Loss report grouped by listing (CSV) */
1601
- get: operations["getProfitAndLossListingReportCsv"];
1602
- put?: never;
1603
- post?: never;
1604
- delete?: never;
1605
- options?: never;
1606
- head?: never;
1607
- patch?: never;
1608
- trace?: never;
1609
- };
1610
- "/reports/profit-and-loss/month": {
1611
- parameters: {
1612
- query?: never;
1613
- header?: never;
1614
- path?: never;
1615
- cookie?: never;
1616
- };
1617
- /** @description Profit & Loss report grouped by month */
1618
- get: operations["getProfitAndLossMonthReport"];
1619
- put?: never;
1620
- post?: never;
1621
- delete?: never;
1622
- options?: never;
1623
- head?: never;
1624
- patch?: never;
1625
- trace?: never;
1626
- };
1627
- "/reports/profit-and-loss/month/csv": {
1628
- parameters: {
1629
- query?: never;
1630
- header?: never;
1631
- path?: never;
1632
- cookie?: never;
1633
- };
1634
- /** @description Profit & Loss report grouped by month (CSV) */
1635
- get: operations["getProfitAndLossMonthReportCsv"];
1636
- put?: never;
1637
- post?: never;
1638
- delete?: never;
1639
- options?: never;
1640
- head?: never;
1641
- patch?: never;
1642
- trace?: never;
1643
- };
1644
- "/reports/profit-and-loss/quarter": {
1645
- parameters: {
1646
- query?: never;
1647
- header?: never;
1648
- path?: never;
1649
- cookie?: never;
1650
- };
1651
- /** @description Profit & Loss report grouped by quarter */
1652
- get: operations["getProfitAndLossQuarterReport"];
1653
- put?: never;
1654
- post?: never;
1655
- delete?: never;
1656
- options?: never;
1657
- head?: never;
1658
- patch?: never;
1659
- trace?: never;
1660
- };
1661
- "/reports/profit-and-loss/quarter/csv": {
1662
- parameters: {
1663
- query?: never;
1664
- header?: never;
1665
- path?: never;
1666
- cookie?: never;
1667
- };
1668
- /** @description Profit & Loss report grouped by quarter (CSV) */
1669
- get: operations["getProfitAndLossQuarterReportCsv"];
1670
- put?: never;
1671
- post?: never;
1672
- delete?: never;
1673
- options?: never;
1674
- head?: never;
1675
- patch?: never;
1676
- trace?: never;
1677
- };
1678
- "/reports/profit-and-loss/year": {
1679
- parameters: {
1680
- query?: never;
1681
- header?: never;
1682
- path?: never;
1683
- cookie?: never;
1684
- };
1685
- /** @description Profit & Loss report grouped by year */
1686
- get: operations["getProfitAndLossYearReport"];
1687
- put?: never;
1688
- post?: never;
1689
- delete?: never;
1690
- options?: never;
1691
- head?: never;
1692
- patch?: never;
1693
- trace?: never;
1694
- };
1695
- "/reports/profit-and-loss/year/csv": {
1696
- parameters: {
1697
- query?: never;
1698
- header?: never;
1699
- path?: never;
1700
- cookie?: never;
1701
- };
1702
- /** @description Profit & Loss report grouped by year (CSV) */
1703
- get: operations["getProfitAndLossYearReportCsv"];
1566
+ /** @description Profit & Loss report grouped by party, listing, month, quarter, or year (CSV, configure with view query param) */
1567
+ get: operations["getProfitAndLossReportCsv"];
1704
1568
  put?: never;
1705
1569
  post?: never;
1706
1570
  delete?: never;
@@ -1904,6 +1768,26 @@ export interface components {
1904
1768
  message: string;
1905
1769
  }[];
1906
1770
  };
1771
+ ProfitAndLossCategoryRow: {
1772
+ id: string;
1773
+ title: string;
1774
+ total: number;
1775
+ classifications: components["schemas"]["ProfitAndLossCategoryRow"][];
1776
+ } | {
1777
+ id: string;
1778
+ title: string;
1779
+ total: number;
1780
+ values: {
1781
+ id: string;
1782
+ title: string;
1783
+ total: number;
1784
+ accounts?: {
1785
+ id: string;
1786
+ title: string;
1787
+ total: number;
1788
+ }[];
1789
+ }[];
1790
+ };
1907
1791
  };
1908
1792
  responses: never;
1909
1793
  parameters: never;
@@ -23025,17 +22909,14 @@ export interface operations {
23025
22909
  };
23026
22910
  };
23027
22911
  };
23028
- getProfitAndLossPartyReport: {
22912
+ getProfitAndLossReport: {
23029
22913
  parameters: {
23030
22914
  query?: {
23031
22915
  startDate?: string;
23032
22916
  endDate?: string;
23033
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23034
- /** @description comma separated listings */
23035
- listingIds?: string;
23036
- /** @description comma separated categories */
23037
- categoryIds?: string;
23038
22917
  party?: "manager" | "owners";
22918
+ view?: "party" | "listing" | "month" | "quarter" | "year";
22919
+ listingIds?: string[];
23039
22920
  };
23040
22921
  header?: {
23041
22922
  "X-Team-Id"?: string;
@@ -23053,65 +22934,15 @@ export interface operations {
23053
22934
  content: {
23054
22935
  "application/json": {
23055
22936
  data: {
23056
- key: string;
22937
+ id: string;
23057
22938
  title: string;
23058
- values: {
23059
- id: string;
23060
- title: string;
23061
- total: number;
23062
- subClassification?: {
23063
- id: string;
23064
- title: string;
23065
- total: number;
23066
- }[];
23067
- }[];
23068
- classification: {
23069
- id: string;
23070
- title: string;
23071
- values: {
23072
- id: string;
23073
- title: string;
23074
- total: number;
23075
- subClassification?: {
23076
- id: string;
23077
- title: string;
23078
- total: number;
23079
- }[];
23080
- }[];
23081
- total: number;
23082
- classification?: unknown[];
23083
- }[];
22939
+ classifications: components["schemas"]["ProfitAndLossCategoryRow"][];
23084
22940
  total: number;
23085
22941
  }[];
23086
22942
  netIncome?: {
23087
- key: string;
22943
+ id: string;
23088
22944
  title: string;
23089
- values: {
23090
- id: string;
23091
- title: string;
23092
- total: number;
23093
- subClassification?: {
23094
- id: string;
23095
- title: string;
23096
- total: number;
23097
- }[];
23098
- }[];
23099
- classification: {
23100
- id: string;
23101
- title: string;
23102
- values: {
23103
- id: string;
23104
- title: string;
23105
- total: number;
23106
- subClassification?: {
23107
- id: string;
23108
- title: string;
23109
- total: number;
23110
- }[];
23111
- }[];
23112
- total: number;
23113
- classification?: unknown[];
23114
- }[];
22945
+ classifications: components["schemas"]["ProfitAndLossCategoryRow"][];
23115
22946
  total: number;
23116
22947
  } | null;
23117
22948
  };
@@ -23164,885 +22995,14 @@ export interface operations {
23164
22995
  };
23165
22996
  };
23166
22997
  };
23167
- getProfitAndLossPartyReportCsv: {
23168
- parameters: {
23169
- query?: {
23170
- startDate?: string;
23171
- endDate?: string;
23172
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23173
- /** @description comma separated listings */
23174
- listingIds?: string;
23175
- /** @description comma separated categories */
23176
- categoryIds?: string;
23177
- party?: "manager" | "owners";
23178
- };
23179
- header?: {
23180
- "X-Team-Id"?: string;
23181
- };
23182
- path?: never;
23183
- cookie?: never;
23184
- };
23185
- requestBody?: never;
23186
- responses: {
23187
- /** @description Successful response */
23188
- 200: {
23189
- headers: {
23190
- [name: string]: unknown;
23191
- };
23192
- content: {
23193
- "application/json": {
23194
- url: string;
23195
- };
23196
- };
23197
- };
23198
- /** @description Invalid input data */
23199
- 400: {
23200
- headers: {
23201
- [name: string]: unknown;
23202
- };
23203
- content: {
23204
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23205
- };
23206
- };
23207
- /** @description Authorization not provided */
23208
- 401: {
23209
- headers: {
23210
- [name: string]: unknown;
23211
- };
23212
- content: {
23213
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23214
- };
23215
- };
23216
- /** @description Insufficient access */
23217
- 403: {
23218
- headers: {
23219
- [name: string]: unknown;
23220
- };
23221
- content: {
23222
- "application/json": components["schemas"]["error.FORBIDDEN"];
23223
- };
23224
- };
23225
- /** @description Not found */
23226
- 404: {
23227
- headers: {
23228
- [name: string]: unknown;
23229
- };
23230
- content: {
23231
- "application/json": components["schemas"]["error.NOT_FOUND"];
23232
- };
23233
- };
23234
- /** @description Internal server error */
23235
- 500: {
23236
- headers: {
23237
- [name: string]: unknown;
23238
- };
23239
- content: {
23240
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23241
- };
23242
- };
23243
- };
23244
- };
23245
- getProfitAndLossListingReport: {
22998
+ getProfitAndLossReportCsv: {
23246
22999
  parameters: {
23247
23000
  query?: {
23248
23001
  startDate?: string;
23249
23002
  endDate?: string;
23250
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23251
- /** @description comma separated listings */
23252
- listingIds?: string;
23253
- /** @description comma separated categories */
23254
- categoryIds?: string;
23255
- party?: "manager" | "owners";
23256
- };
23257
- header?: {
23258
- "X-Team-Id"?: string;
23259
- };
23260
- path?: never;
23261
- cookie?: never;
23262
- };
23263
- requestBody?: never;
23264
- responses: {
23265
- /** @description Successful response */
23266
- 200: {
23267
- headers: {
23268
- [name: string]: unknown;
23269
- };
23270
- content: {
23271
- "application/json": {
23272
- data: {
23273
- key: string;
23274
- title: string;
23275
- values: {
23276
- id: string;
23277
- title: string;
23278
- total: number;
23279
- subClassification?: {
23280
- id: string;
23281
- title: string;
23282
- total: number;
23283
- }[];
23284
- }[];
23285
- classification: {
23286
- id: string;
23287
- title: string;
23288
- values: {
23289
- id: string;
23290
- title: string;
23291
- total: number;
23292
- subClassification?: {
23293
- id: string;
23294
- title: string;
23295
- total: number;
23296
- }[];
23297
- }[];
23298
- total: number;
23299
- classification?: unknown[];
23300
- }[];
23301
- total: number;
23302
- }[];
23303
- netIncome?: {
23304
- key: string;
23305
- title: string;
23306
- values: {
23307
- id: string;
23308
- title: string;
23309
- total: number;
23310
- subClassification?: {
23311
- id: string;
23312
- title: string;
23313
- total: number;
23314
- }[];
23315
- }[];
23316
- classification: {
23317
- id: string;
23318
- title: string;
23319
- values: {
23320
- id: string;
23321
- title: string;
23322
- total: number;
23323
- subClassification?: {
23324
- id: string;
23325
- title: string;
23326
- total: number;
23327
- }[];
23328
- }[];
23329
- total: number;
23330
- classification?: unknown[];
23331
- }[];
23332
- total: number;
23333
- } | null;
23334
- };
23335
- };
23336
- };
23337
- /** @description Invalid input data */
23338
- 400: {
23339
- headers: {
23340
- [name: string]: unknown;
23341
- };
23342
- content: {
23343
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23344
- };
23345
- };
23346
- /** @description Authorization not provided */
23347
- 401: {
23348
- headers: {
23349
- [name: string]: unknown;
23350
- };
23351
- content: {
23352
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23353
- };
23354
- };
23355
- /** @description Insufficient access */
23356
- 403: {
23357
- headers: {
23358
- [name: string]: unknown;
23359
- };
23360
- content: {
23361
- "application/json": components["schemas"]["error.FORBIDDEN"];
23362
- };
23363
- };
23364
- /** @description Not found */
23365
- 404: {
23366
- headers: {
23367
- [name: string]: unknown;
23368
- };
23369
- content: {
23370
- "application/json": components["schemas"]["error.NOT_FOUND"];
23371
- };
23372
- };
23373
- /** @description Internal server error */
23374
- 500: {
23375
- headers: {
23376
- [name: string]: unknown;
23377
- };
23378
- content: {
23379
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23380
- };
23381
- };
23382
- };
23383
- };
23384
- getProfitAndLossListingReportCsv: {
23385
- parameters: {
23386
- query?: {
23387
- startDate?: string;
23388
- endDate?: string;
23389
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23390
- /** @description comma separated listings */
23391
- listingIds?: string;
23392
- /** @description comma separated categories */
23393
- categoryIds?: string;
23394
- party?: "manager" | "owners";
23395
- };
23396
- header?: {
23397
- "X-Team-Id"?: string;
23398
- };
23399
- path?: never;
23400
- cookie?: never;
23401
- };
23402
- requestBody?: never;
23403
- responses: {
23404
- /** @description Successful response */
23405
- 200: {
23406
- headers: {
23407
- [name: string]: unknown;
23408
- };
23409
- content: {
23410
- "application/json": {
23411
- url: string;
23412
- };
23413
- };
23414
- };
23415
- /** @description Invalid input data */
23416
- 400: {
23417
- headers: {
23418
- [name: string]: unknown;
23419
- };
23420
- content: {
23421
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23422
- };
23423
- };
23424
- /** @description Authorization not provided */
23425
- 401: {
23426
- headers: {
23427
- [name: string]: unknown;
23428
- };
23429
- content: {
23430
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23431
- };
23432
- };
23433
- /** @description Insufficient access */
23434
- 403: {
23435
- headers: {
23436
- [name: string]: unknown;
23437
- };
23438
- content: {
23439
- "application/json": components["schemas"]["error.FORBIDDEN"];
23440
- };
23441
- };
23442
- /** @description Not found */
23443
- 404: {
23444
- headers: {
23445
- [name: string]: unknown;
23446
- };
23447
- content: {
23448
- "application/json": components["schemas"]["error.NOT_FOUND"];
23449
- };
23450
- };
23451
- /** @description Internal server error */
23452
- 500: {
23453
- headers: {
23454
- [name: string]: unknown;
23455
- };
23456
- content: {
23457
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23458
- };
23459
- };
23460
- };
23461
- };
23462
- getProfitAndLossMonthReport: {
23463
- parameters: {
23464
- query?: {
23465
- startDate?: string;
23466
- endDate?: string;
23467
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23468
- /** @description comma separated listings */
23469
- listingIds?: string;
23470
- /** @description comma separated categories */
23471
- categoryIds?: string;
23472
- party?: "manager" | "owners";
23473
- };
23474
- header?: {
23475
- "X-Team-Id"?: string;
23476
- };
23477
- path?: never;
23478
- cookie?: never;
23479
- };
23480
- requestBody?: never;
23481
- responses: {
23482
- /** @description Successful response */
23483
- 200: {
23484
- headers: {
23485
- [name: string]: unknown;
23486
- };
23487
- content: {
23488
- "application/json": {
23489
- data: {
23490
- key: string;
23491
- title: string;
23492
- values: {
23493
- id: string;
23494
- title: string;
23495
- total: number;
23496
- subClassification?: {
23497
- id: string;
23498
- title: string;
23499
- total: number;
23500
- }[];
23501
- }[];
23502
- classification: {
23503
- id: string;
23504
- title: string;
23505
- values: {
23506
- id: string;
23507
- title: string;
23508
- total: number;
23509
- subClassification?: {
23510
- id: string;
23511
- title: string;
23512
- total: number;
23513
- }[];
23514
- }[];
23515
- total: number;
23516
- classification?: unknown[];
23517
- }[];
23518
- total: number;
23519
- }[];
23520
- netIncome?: {
23521
- key: string;
23522
- title: string;
23523
- values: {
23524
- id: string;
23525
- title: string;
23526
- total: number;
23527
- subClassification?: {
23528
- id: string;
23529
- title: string;
23530
- total: number;
23531
- }[];
23532
- }[];
23533
- classification: {
23534
- id: string;
23535
- title: string;
23536
- values: {
23537
- id: string;
23538
- title: string;
23539
- total: number;
23540
- subClassification?: {
23541
- id: string;
23542
- title: string;
23543
- total: number;
23544
- }[];
23545
- }[];
23546
- total: number;
23547
- classification?: unknown[];
23548
- }[];
23549
- total: number;
23550
- } | null;
23551
- };
23552
- };
23553
- };
23554
- /** @description Invalid input data */
23555
- 400: {
23556
- headers: {
23557
- [name: string]: unknown;
23558
- };
23559
- content: {
23560
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23561
- };
23562
- };
23563
- /** @description Authorization not provided */
23564
- 401: {
23565
- headers: {
23566
- [name: string]: unknown;
23567
- };
23568
- content: {
23569
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23570
- };
23571
- };
23572
- /** @description Insufficient access */
23573
- 403: {
23574
- headers: {
23575
- [name: string]: unknown;
23576
- };
23577
- content: {
23578
- "application/json": components["schemas"]["error.FORBIDDEN"];
23579
- };
23580
- };
23581
- /** @description Not found */
23582
- 404: {
23583
- headers: {
23584
- [name: string]: unknown;
23585
- };
23586
- content: {
23587
- "application/json": components["schemas"]["error.NOT_FOUND"];
23588
- };
23589
- };
23590
- /** @description Internal server error */
23591
- 500: {
23592
- headers: {
23593
- [name: string]: unknown;
23594
- };
23595
- content: {
23596
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23597
- };
23598
- };
23599
- };
23600
- };
23601
- getProfitAndLossMonthReportCsv: {
23602
- parameters: {
23603
- query?: {
23604
- startDate?: string;
23605
- endDate?: string;
23606
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23607
- /** @description comma separated listings */
23608
- listingIds?: string;
23609
- /** @description comma separated categories */
23610
- categoryIds?: string;
23611
- party?: "manager" | "owners";
23612
- };
23613
- header?: {
23614
- "X-Team-Id"?: string;
23615
- };
23616
- path?: never;
23617
- cookie?: never;
23618
- };
23619
- requestBody?: never;
23620
- responses: {
23621
- /** @description Successful response */
23622
- 200: {
23623
- headers: {
23624
- [name: string]: unknown;
23625
- };
23626
- content: {
23627
- "application/json": {
23628
- url: string;
23629
- };
23630
- };
23631
- };
23632
- /** @description Invalid input data */
23633
- 400: {
23634
- headers: {
23635
- [name: string]: unknown;
23636
- };
23637
- content: {
23638
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23639
- };
23640
- };
23641
- /** @description Authorization not provided */
23642
- 401: {
23643
- headers: {
23644
- [name: string]: unknown;
23645
- };
23646
- content: {
23647
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23648
- };
23649
- };
23650
- /** @description Insufficient access */
23651
- 403: {
23652
- headers: {
23653
- [name: string]: unknown;
23654
- };
23655
- content: {
23656
- "application/json": components["schemas"]["error.FORBIDDEN"];
23657
- };
23658
- };
23659
- /** @description Not found */
23660
- 404: {
23661
- headers: {
23662
- [name: string]: unknown;
23663
- };
23664
- content: {
23665
- "application/json": components["schemas"]["error.NOT_FOUND"];
23666
- };
23667
- };
23668
- /** @description Internal server error */
23669
- 500: {
23670
- headers: {
23671
- [name: string]: unknown;
23672
- };
23673
- content: {
23674
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23675
- };
23676
- };
23677
- };
23678
- };
23679
- getProfitAndLossQuarterReport: {
23680
- parameters: {
23681
- query?: {
23682
- startDate?: string;
23683
- endDate?: string;
23684
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23685
- /** @description comma separated listings */
23686
- listingIds?: string;
23687
- /** @description comma separated categories */
23688
- categoryIds?: string;
23689
- party?: "manager" | "owners";
23690
- };
23691
- header?: {
23692
- "X-Team-Id"?: string;
23693
- };
23694
- path?: never;
23695
- cookie?: never;
23696
- };
23697
- requestBody?: never;
23698
- responses: {
23699
- /** @description Successful response */
23700
- 200: {
23701
- headers: {
23702
- [name: string]: unknown;
23703
- };
23704
- content: {
23705
- "application/json": {
23706
- data: {
23707
- key: string;
23708
- title: string;
23709
- values: {
23710
- id: string;
23711
- title: string;
23712
- total: number;
23713
- subClassification?: {
23714
- id: string;
23715
- title: string;
23716
- total: number;
23717
- }[];
23718
- }[];
23719
- classification: {
23720
- id: string;
23721
- title: string;
23722
- values: {
23723
- id: string;
23724
- title: string;
23725
- total: number;
23726
- subClassification?: {
23727
- id: string;
23728
- title: string;
23729
- total: number;
23730
- }[];
23731
- }[];
23732
- total: number;
23733
- classification?: unknown[];
23734
- }[];
23735
- total: number;
23736
- }[];
23737
- netIncome?: {
23738
- key: string;
23739
- title: string;
23740
- values: {
23741
- id: string;
23742
- title: string;
23743
- total: number;
23744
- subClassification?: {
23745
- id: string;
23746
- title: string;
23747
- total: number;
23748
- }[];
23749
- }[];
23750
- classification: {
23751
- id: string;
23752
- title: string;
23753
- values: {
23754
- id: string;
23755
- title: string;
23756
- total: number;
23757
- subClassification?: {
23758
- id: string;
23759
- title: string;
23760
- total: number;
23761
- }[];
23762
- }[];
23763
- total: number;
23764
- classification?: unknown[];
23765
- }[];
23766
- total: number;
23767
- } | null;
23768
- };
23769
- };
23770
- };
23771
- /** @description Invalid input data */
23772
- 400: {
23773
- headers: {
23774
- [name: string]: unknown;
23775
- };
23776
- content: {
23777
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23778
- };
23779
- };
23780
- /** @description Authorization not provided */
23781
- 401: {
23782
- headers: {
23783
- [name: string]: unknown;
23784
- };
23785
- content: {
23786
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23787
- };
23788
- };
23789
- /** @description Insufficient access */
23790
- 403: {
23791
- headers: {
23792
- [name: string]: unknown;
23793
- };
23794
- content: {
23795
- "application/json": components["schemas"]["error.FORBIDDEN"];
23796
- };
23797
- };
23798
- /** @description Not found */
23799
- 404: {
23800
- headers: {
23801
- [name: string]: unknown;
23802
- };
23803
- content: {
23804
- "application/json": components["schemas"]["error.NOT_FOUND"];
23805
- };
23806
- };
23807
- /** @description Internal server error */
23808
- 500: {
23809
- headers: {
23810
- [name: string]: unknown;
23811
- };
23812
- content: {
23813
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23814
- };
23815
- };
23816
- };
23817
- };
23818
- getProfitAndLossQuarterReportCsv: {
23819
- parameters: {
23820
- query?: {
23821
- startDate?: string;
23822
- endDate?: string;
23823
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23824
- /** @description comma separated listings */
23825
- listingIds?: string;
23826
- /** @description comma separated categories */
23827
- categoryIds?: string;
23828
- party?: "manager" | "owners";
23829
- };
23830
- header?: {
23831
- "X-Team-Id"?: string;
23832
- };
23833
- path?: never;
23834
- cookie?: never;
23835
- };
23836
- requestBody?: never;
23837
- responses: {
23838
- /** @description Successful response */
23839
- 200: {
23840
- headers: {
23841
- [name: string]: unknown;
23842
- };
23843
- content: {
23844
- "application/json": {
23845
- url: string;
23846
- };
23847
- };
23848
- };
23849
- /** @description Invalid input data */
23850
- 400: {
23851
- headers: {
23852
- [name: string]: unknown;
23853
- };
23854
- content: {
23855
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23856
- };
23857
- };
23858
- /** @description Authorization not provided */
23859
- 401: {
23860
- headers: {
23861
- [name: string]: unknown;
23862
- };
23863
- content: {
23864
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23865
- };
23866
- };
23867
- /** @description Insufficient access */
23868
- 403: {
23869
- headers: {
23870
- [name: string]: unknown;
23871
- };
23872
- content: {
23873
- "application/json": components["schemas"]["error.FORBIDDEN"];
23874
- };
23875
- };
23876
- /** @description Not found */
23877
- 404: {
23878
- headers: {
23879
- [name: string]: unknown;
23880
- };
23881
- content: {
23882
- "application/json": components["schemas"]["error.NOT_FOUND"];
23883
- };
23884
- };
23885
- /** @description Internal server error */
23886
- 500: {
23887
- headers: {
23888
- [name: string]: unknown;
23889
- };
23890
- content: {
23891
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23892
- };
23893
- };
23894
- };
23895
- };
23896
- getProfitAndLossYearReport: {
23897
- parameters: {
23898
- query?: {
23899
- startDate?: string;
23900
- endDate?: string;
23901
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
23902
- /** @description comma separated listings */
23903
- listingIds?: string;
23904
- /** @description comma separated categories */
23905
- categoryIds?: string;
23906
- party?: "manager" | "owners";
23907
- };
23908
- header?: {
23909
- "X-Team-Id"?: string;
23910
- };
23911
- path?: never;
23912
- cookie?: never;
23913
- };
23914
- requestBody?: never;
23915
- responses: {
23916
- /** @description Successful response */
23917
- 200: {
23918
- headers: {
23919
- [name: string]: unknown;
23920
- };
23921
- content: {
23922
- "application/json": {
23923
- data: {
23924
- key: string;
23925
- title: string;
23926
- values: {
23927
- id: string;
23928
- title: string;
23929
- total: number;
23930
- subClassification?: {
23931
- id: string;
23932
- title: string;
23933
- total: number;
23934
- }[];
23935
- }[];
23936
- classification: {
23937
- id: string;
23938
- title: string;
23939
- values: {
23940
- id: string;
23941
- title: string;
23942
- total: number;
23943
- subClassification?: {
23944
- id: string;
23945
- title: string;
23946
- total: number;
23947
- }[];
23948
- }[];
23949
- total: number;
23950
- classification?: unknown[];
23951
- }[];
23952
- total: number;
23953
- }[];
23954
- netIncome?: {
23955
- key: string;
23956
- title: string;
23957
- values: {
23958
- id: string;
23959
- title: string;
23960
- total: number;
23961
- subClassification?: {
23962
- id: string;
23963
- title: string;
23964
- total: number;
23965
- }[];
23966
- }[];
23967
- classification: {
23968
- id: string;
23969
- title: string;
23970
- values: {
23971
- id: string;
23972
- title: string;
23973
- total: number;
23974
- subClassification?: {
23975
- id: string;
23976
- title: string;
23977
- total: number;
23978
- }[];
23979
- }[];
23980
- total: number;
23981
- classification?: unknown[];
23982
- }[];
23983
- total: number;
23984
- } | null;
23985
- };
23986
- };
23987
- };
23988
- /** @description Invalid input data */
23989
- 400: {
23990
- headers: {
23991
- [name: string]: unknown;
23992
- };
23993
- content: {
23994
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23995
- };
23996
- };
23997
- /** @description Authorization not provided */
23998
- 401: {
23999
- headers: {
24000
- [name: string]: unknown;
24001
- };
24002
- content: {
24003
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
24004
- };
24005
- };
24006
- /** @description Insufficient access */
24007
- 403: {
24008
- headers: {
24009
- [name: string]: unknown;
24010
- };
24011
- content: {
24012
- "application/json": components["schemas"]["error.FORBIDDEN"];
24013
- };
24014
- };
24015
- /** @description Not found */
24016
- 404: {
24017
- headers: {
24018
- [name: string]: unknown;
24019
- };
24020
- content: {
24021
- "application/json": components["schemas"]["error.NOT_FOUND"];
24022
- };
24023
- };
24024
- /** @description Internal server error */
24025
- 500: {
24026
- headers: {
24027
- [name: string]: unknown;
24028
- };
24029
- content: {
24030
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
24031
- };
24032
- };
24033
- };
24034
- };
24035
- getProfitAndLossYearReportCsv: {
24036
- parameters: {
24037
- query?: {
24038
- startDate?: string;
24039
- endDate?: string;
24040
- classificationKeys?: ("revenue" | "directCosts" | "operatingExpenses" | "nonOperating" | "netOperatingIncome" | "netIncome")[];
24041
- /** @description comma separated listings */
24042
- listingIds?: string;
24043
- /** @description comma separated categories */
24044
- categoryIds?: string;
24045
23003
  party?: "manager" | "owners";
23004
+ view?: "party" | "listing" | "month" | "quarter" | "year";
23005
+ listingIds?: string[];
24046
23006
  };
24047
23007
  header?: {
24048
23008
  "X-Team-Id"?: string;