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

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