@vrplatform/api 1.3.1-stage.3873 → 1.3.1-stage.3876

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.
@@ -2747,6 +2747,23 @@ export interface paths {
2747
2747
  patch?: never;
2748
2748
  trace?: never;
2749
2749
  };
2750
+ "/statements/historic": {
2751
+ parameters: {
2752
+ query?: never;
2753
+ header?: never;
2754
+ path?: never;
2755
+ cookie?: never;
2756
+ };
2757
+ get?: never;
2758
+ put?: never;
2759
+ /** @description Import a historic owner statement with journal entries on the historical ledger; re-posting the same uniqueRef replaces the previous import */
2760
+ post: operations["postStatementsHistoric"];
2761
+ delete?: never;
2762
+ options?: never;
2763
+ head?: never;
2764
+ patch?: never;
2765
+ trace?: never;
2766
+ };
2750
2767
  "/statements/layouts": {
2751
2768
  parameters: {
2752
2769
  query?: never;
@@ -43429,6 +43446,174 @@ export interface operations {
43429
43446
  };
43430
43447
  };
43431
43448
  };
43449
+ postStatementsHistoric: {
43450
+ parameters: {
43451
+ query?: never;
43452
+ header?: never;
43453
+ path?: never;
43454
+ cookie?: never;
43455
+ };
43456
+ requestBody?: {
43457
+ content: {
43458
+ "application/json": {
43459
+ /** @description Stable statement idempotency key; re-posting replaces */
43460
+ uniqueRef: string;
43461
+ /** Format: uuid */
43462
+ listingId: string;
43463
+ startAt: string;
43464
+ endAt: string;
43465
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
43466
+ currency: string;
43467
+ /**
43468
+ * @default published
43469
+ * @enum {string}
43470
+ */
43471
+ status?: "inReview" | "published";
43472
+ /** @description Value in cents (100 = 1€) */
43473
+ centBalanceStart?: number;
43474
+ /** @description Derived from balanceStart + net income + payouts when omitted */
43475
+ centBalanceEnd?: number;
43476
+ lines: {
43477
+ /** @description Stable per-line idempotency key within the team */
43478
+ uniqueRef: string;
43479
+ /**
43480
+ * @default line
43481
+ * @enum {string}
43482
+ */
43483
+ type?: "line" | "payout";
43484
+ /**
43485
+ * Format: uuid
43486
+ * @description Required for type=line; ignored for payouts
43487
+ */
43488
+ accountId?: string;
43489
+ /** @description Owner-facing amount: revenue positive, expenses negative; payout positive = paid to owner */
43490
+ centTotal: number;
43491
+ description?: string;
43492
+ /** @description Posting date; defaults to the day before endAt */
43493
+ date?: string;
43494
+ /** Format: uuid */
43495
+ reservationId?: string;
43496
+ /** Format: uuid */
43497
+ contactId?: string;
43498
+ }[];
43499
+ };
43500
+ };
43501
+ };
43502
+ responses: {
43503
+ /** @description Successful response */
43504
+ 200: {
43505
+ headers: {
43506
+ [name: string]: unknown;
43507
+ };
43508
+ content: {
43509
+ "application/json": {
43510
+ /** Format: uuid */
43511
+ id: string;
43512
+ uniqueRef: string;
43513
+ /** @enum {string} */
43514
+ status: "inReview" | "published";
43515
+ /** Format: uuid */
43516
+ listingId: string;
43517
+ /** Format: uuid */
43518
+ listingOwnershipPeriodId: string;
43519
+ startAt: string;
43520
+ endAt: string;
43521
+ currency: string;
43522
+ replaced: boolean;
43523
+ journalEntryCount: number;
43524
+ financials: {
43525
+ centBalanceStart: number;
43526
+ centBalanceEnd: number;
43527
+ centTotal: number;
43528
+ centExpenses: number;
43529
+ centNetRevenue: number;
43530
+ centTransfer: number;
43531
+ };
43532
+ };
43533
+ };
43534
+ };
43535
+ /** @description Bad request */
43536
+ 400: {
43537
+ headers: {
43538
+ [name: string]: unknown;
43539
+ };
43540
+ content: {
43541
+ "application/json": {
43542
+ code: string;
43543
+ message: string;
43544
+ issues?: {
43545
+ message: string;
43546
+ }[];
43547
+ context?: unknown;
43548
+ };
43549
+ };
43550
+ };
43551
+ /** @description Unauthorized */
43552
+ 401: {
43553
+ headers: {
43554
+ [name: string]: unknown;
43555
+ };
43556
+ content: {
43557
+ "application/json": {
43558
+ code: string;
43559
+ message: string;
43560
+ issues?: {
43561
+ message: string;
43562
+ }[];
43563
+ context?: unknown;
43564
+ };
43565
+ };
43566
+ };
43567
+ /** @description Forbidden */
43568
+ 403: {
43569
+ headers: {
43570
+ [name: string]: unknown;
43571
+ };
43572
+ content: {
43573
+ "application/json": {
43574
+ code: string;
43575
+ message: string;
43576
+ issues?: {
43577
+ message: string;
43578
+ }[];
43579
+ context?: unknown;
43580
+ };
43581
+ };
43582
+ };
43583
+ /** @description Not found */
43584
+ 404: {
43585
+ headers: {
43586
+ [name: string]: unknown;
43587
+ };
43588
+ content: {
43589
+ "application/json": {
43590
+ code: string;
43591
+ message: string;
43592
+ issues?: {
43593
+ message: string;
43594
+ }[];
43595
+ context?: unknown;
43596
+ };
43597
+ };
43598
+ };
43599
+ /** @description Internal server error */
43600
+ 500: {
43601
+ headers: {
43602
+ [name: string]: unknown;
43603
+ };
43604
+ content: {
43605
+ "application/json": {
43606
+ code: string;
43607
+ message: string;
43608
+ issues?: {
43609
+ message: string;
43610
+ }[];
43611
+ context?: unknown;
43612
+ };
43613
+ };
43614
+ };
43615
+ };
43616
+ };
43432
43617
  getStatementsLayouts: {
43433
43618
  parameters: {
43434
43619
  query?: {