@vrplatform/api 1.3.1-stage.1429 → 1.3.1-stage.1431

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.
@@ -65,9 +65,9 @@ export interface paths {
65
65
  cookie?: never;
66
66
  };
67
67
  get?: never;
68
+ put?: never;
68
69
  /** @description Recalculate balances for an account by ID */
69
- put: operations["putAccounts:idRecalculate-balances"];
70
- post?: never;
70
+ post: operations["postAccounts:idRecalculate-balances"];
71
71
  delete?: never;
72
72
  options?: never;
73
73
  head?: never;
@@ -1203,23 +1203,6 @@ export interface paths {
1203
1203
  patch?: never;
1204
1204
  trace?: never;
1205
1205
  };
1206
- "/reports/owner-statement-summaries-per-layout-v2": {
1207
- parameters: {
1208
- query?: never;
1209
- header?: never;
1210
- path?: never;
1211
- cookie?: never;
1212
- };
1213
- /** @description Owner statement summaries aggregated by contact (per layout, v2) */
1214
- get: operations["getOwnerStatementSummariesPerLayoutReportV2"];
1215
- put?: never;
1216
- post?: never;
1217
- delete?: never;
1218
- options?: never;
1219
- head?: never;
1220
- patch?: never;
1221
- trace?: never;
1222
- };
1223
1206
  "/reports/owner-statement-summaries-per-layout/csv": {
1224
1207
  parameters: {
1225
1208
  query?: never;
@@ -3361,7 +3344,7 @@ export interface operations {
3361
3344
  };
3362
3345
  };
3363
3346
  };
3364
- "putAccounts:idRecalculate-balances": {
3347
+ "postAccounts:idRecalculate-balances": {
3365
3348
  parameters: {
3366
3349
  query?: never;
3367
3350
  header?: never;
@@ -3372,23 +3355,7 @@ export interface operations {
3372
3355
  };
3373
3356
  requestBody?: {
3374
3357
  content: {
3375
- "application/json": {
3376
- name?: string;
3377
- /** @enum {string} */
3378
- status?: "active" | "inactive";
3379
- /** @enum {string} */
3380
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting";
3381
- 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")[] | null;
3382
- offsetAccountId?: string | null;
3383
- categoryId?: string;
3384
- banking?: {
3385
- category?: ("trust" | "operating" | "external") | null;
3386
- type?: ("deposit" | "creditCard") | null;
3387
- last4?: string | null;
3388
- currency?: string | null;
3389
- } | null;
3390
- uniqueRef?: string | null;
3391
- };
3358
+ "application/json": Record<string, never>;
3392
3359
  };
3393
3360
  };
3394
3361
  responses: {
@@ -16212,133 +16179,6 @@ export interface operations {
16212
16179
  };
16213
16180
  };
16214
16181
  };
16215
- getOwnerStatementSummariesPerLayoutReportV2: {
16216
- parameters: {
16217
- query: {
16218
- startAt: string;
16219
- endAt: string;
16220
- /** @description comma separated listings */
16221
- listingIds?: string;
16222
- };
16223
- header?: never;
16224
- path?: never;
16225
- cookie?: never;
16226
- };
16227
- requestBody?: never;
16228
- responses: {
16229
- /** @description Successful response */
16230
- 200: {
16231
- headers: {
16232
- [name: string]: unknown;
16233
- };
16234
- content: {
16235
- "application/json": {
16236
- data: {
16237
- contact: {
16238
- contactId: string;
16239
- name?: string;
16240
- firstName?: string;
16241
- /** Format: email */
16242
- email?: string;
16243
- phone?: string;
16244
- };
16245
- /** @description Currency in ISO 4217 format, will be converted to lowercase */
16246
- currency: string;
16247
- financials: {
16248
- balanceStart: number;
16249
- netRevenue: number;
16250
- expenses: number;
16251
- transfers: number;
16252
- netIncome: number;
16253
- currentBalance: number;
16254
- balanceEnd: number;
16255
- };
16256
- }[];
16257
- };
16258
- };
16259
- };
16260
- /** @description Bad request */
16261
- 400: {
16262
- headers: {
16263
- [name: string]: unknown;
16264
- };
16265
- content: {
16266
- "application/json": {
16267
- code: string;
16268
- message: string;
16269
- issues?: {
16270
- message: string;
16271
- }[];
16272
- context?: unknown;
16273
- };
16274
- };
16275
- };
16276
- /** @description Unauthorized */
16277
- 401: {
16278
- headers: {
16279
- [name: string]: unknown;
16280
- };
16281
- content: {
16282
- "application/json": {
16283
- code: string;
16284
- message: string;
16285
- issues?: {
16286
- message: string;
16287
- }[];
16288
- context?: unknown;
16289
- };
16290
- };
16291
- };
16292
- /** @description Forbidden */
16293
- 403: {
16294
- headers: {
16295
- [name: string]: unknown;
16296
- };
16297
- content: {
16298
- "application/json": {
16299
- code: string;
16300
- message: string;
16301
- issues?: {
16302
- message: string;
16303
- }[];
16304
- context?: unknown;
16305
- };
16306
- };
16307
- };
16308
- /** @description Not found */
16309
- 404: {
16310
- headers: {
16311
- [name: string]: unknown;
16312
- };
16313
- content: {
16314
- "application/json": {
16315
- code: string;
16316
- message: string;
16317
- issues?: {
16318
- message: string;
16319
- }[];
16320
- context?: unknown;
16321
- };
16322
- };
16323
- };
16324
- /** @description Internal server error */
16325
- 500: {
16326
- headers: {
16327
- [name: string]: unknown;
16328
- };
16329
- content: {
16330
- "application/json": {
16331
- code: string;
16332
- message: string;
16333
- issues?: {
16334
- message: string;
16335
- }[];
16336
- context?: unknown;
16337
- };
16338
- };
16339
- };
16340
- };
16341
- };
16342
16182
  getOwnerStatementSummariesPerLayoutReportCsv: {
16343
16183
  parameters: {
16344
16184
  query: {
@@ -16498,12 +16338,14 @@ export interface operations {
16498
16338
  netRevenueSection: {
16499
16339
  title: string;
16500
16340
  rows: {
16341
+ id: string;
16501
16342
  title: string;
16502
16343
  statementIds?: string[];
16503
16344
  columns: {
16504
16345
  title: string;
16505
16346
  value: number | string;
16506
16347
  formatted: string;
16348
+ accountIds: string[];
16507
16349
  }[];
16508
16350
  }[];
16509
16351
  subtotal?: {
@@ -16512,18 +16354,21 @@ export interface operations {
16512
16354
  title: string;
16513
16355
  value: number | string;
16514
16356
  formatted: string;
16357
+ accountIds: string[];
16515
16358
  }[];
16516
16359
  };
16517
16360
  };
16518
16361
  otherSections: {
16519
16362
  title: string;
16520
16363
  rows: {
16364
+ id: string;
16521
16365
  title: string;
16522
16366
  statementIds?: string[];
16523
16367
  columns: {
16524
16368
  title: string;
16525
16369
  value: number | string;
16526
16370
  formatted: string;
16371
+ accountIds: string[];
16527
16372
  }[];
16528
16373
  }[];
16529
16374
  subtotal?: {
@@ -16532,18 +16377,21 @@ export interface operations {
16532
16377
  title: string;
16533
16378
  value: number | string;
16534
16379
  formatted: string;
16380
+ accountIds: string[];
16535
16381
  }[];
16536
16382
  };
16537
16383
  }[];
16538
16384
  transfersSection?: {
16539
16385
  title: string;
16540
16386
  rows: {
16387
+ id: string;
16541
16388
  title: string;
16542
16389
  statementIds?: string[];
16543
16390
  columns: {
16544
16391
  title: string;
16545
16392
  value: number | string;
16546
16393
  formatted: string;
16394
+ accountIds: string[];
16547
16395
  }[];
16548
16396
  }[];
16549
16397
  subtotal?: {
@@ -16552,10 +16400,23 @@ export interface operations {
16552
16400
  title: string;
16553
16401
  value: number | string;
16554
16402
  formatted: string;
16403
+ accountIds: string[];
16555
16404
  }[];
16556
16405
  };
16557
16406
  };
16558
16407
  }[];
16408
+ issues?: {
16409
+ /** @constant */
16410
+ code: "orphanOwnerJournalEntries";
16411
+ /** @constant */
16412
+ severity: "warning";
16413
+ context: {
16414
+ affected: number;
16415
+ startAt: string;
16416
+ endAt: string;
16417
+ };
16418
+ message: string;
16419
+ }[];
16559
16420
  };
16560
16421
  };
16561
16422
  };
@@ -21826,6 +21687,26 @@ export interface operations {
21826
21687
  severity: "error";
21827
21688
  context: Record<string, never>;
21828
21689
  message: string;
21690
+ } | {
21691
+ /** @constant */
21692
+ code: "previousUnpublishedStatement";
21693
+ /** @constant */
21694
+ severity: "error";
21695
+ context: {
21696
+ priorStatementStartAt: string;
21697
+ priorStatementStatus: string;
21698
+ };
21699
+ message: string;
21700
+ } | {
21701
+ /** @constant */
21702
+ code: "previousUnattachedOwnerActivity";
21703
+ /** @constant */
21704
+ severity: "error";
21705
+ context: {
21706
+ affected: number;
21707
+ windowStartAt: string;
21708
+ };
21709
+ message: string;
21829
21710
  } | {
21830
21711
  /** @constant */
21831
21712
  code: "balanceMismatch_start";
@@ -21870,6 +21751,16 @@ export interface operations {
21870
21751
  affected: number;
21871
21752
  };
21872
21753
  message: string;
21754
+ } | {
21755
+ /** @constant */
21756
+ code: "missingPreviousStatement";
21757
+ /** @constant */
21758
+ severity: "warning";
21759
+ context: {
21760
+ periodStartAt: string;
21761
+ statementStartAt: string;
21762
+ };
21763
+ message: string;
21873
21764
  } | {
21874
21765
  /** @constant */
21875
21766
  code: "unpaidReservations";
@@ -21883,8 +21774,10 @@ export interface operations {
21883
21774
  /** @constant */
21884
21775
  severity: "warning";
21885
21776
  context: {
21886
- layoutUpdatedAt: string;
21887
- statementCreatedAt: string;
21777
+ layoutVersion?: number | null;
21778
+ statementLayoutVersion?: number | null;
21779
+ layoutUpdatedAt?: string | null;
21780
+ statementCreatedAt?: string | null;
21888
21781
  };
21889
21782
  message: string;
21890
21783
  })[];
@@ -22117,6 +22010,26 @@ export interface operations {
22117
22010
  severity: "error";
22118
22011
  context: Record<string, never>;
22119
22012
  message: string;
22013
+ } | {
22014
+ /** @constant */
22015
+ code: "previousUnpublishedStatement";
22016
+ /** @constant */
22017
+ severity: "error";
22018
+ context: {
22019
+ priorStatementStartAt: string;
22020
+ priorStatementStatus: string;
22021
+ };
22022
+ message: string;
22023
+ } | {
22024
+ /** @constant */
22025
+ code: "previousUnattachedOwnerActivity";
22026
+ /** @constant */
22027
+ severity: "error";
22028
+ context: {
22029
+ affected: number;
22030
+ windowStartAt: string;
22031
+ };
22032
+ message: string;
22120
22033
  } | {
22121
22034
  /** @constant */
22122
22035
  code: "balanceMismatch_start";
@@ -22161,6 +22074,16 @@ export interface operations {
22161
22074
  affected: number;
22162
22075
  };
22163
22076
  message: string;
22077
+ } | {
22078
+ /** @constant */
22079
+ code: "missingPreviousStatement";
22080
+ /** @constant */
22081
+ severity: "warning";
22082
+ context: {
22083
+ periodStartAt: string;
22084
+ statementStartAt: string;
22085
+ };
22086
+ message: string;
22164
22087
  } | {
22165
22088
  /** @constant */
22166
22089
  code: "unpaidReservations";
@@ -22174,8 +22097,10 @@ export interface operations {
22174
22097
  /** @constant */
22175
22098
  severity: "warning";
22176
22099
  context: {
22177
- layoutUpdatedAt: string;
22178
- statementCreatedAt: string;
22100
+ layoutVersion?: number | null;
22101
+ statementLayoutVersion?: number | null;
22102
+ layoutUpdatedAt?: string | null;
22103
+ statementCreatedAt?: string | null;
22179
22104
  };
22180
22105
  message: string;
22181
22106
  })[];
@@ -22254,6 +22179,7 @@ export interface operations {
22254
22179
  })[];
22255
22180
  }[];
22256
22181
  id: string;
22182
+ version: number;
22257
22183
  activeListings: {
22258
22184
  id: string;
22259
22185
  name?: string | null;
@@ -22607,6 +22533,26 @@ export interface operations {
22607
22533
  severity: "error";
22608
22534
  context: Record<string, never>;
22609
22535
  message: string;
22536
+ } | {
22537
+ /** @constant */
22538
+ code: "previousUnpublishedStatement";
22539
+ /** @constant */
22540
+ severity: "error";
22541
+ context: {
22542
+ priorStatementStartAt: string;
22543
+ priorStatementStatus: string;
22544
+ };
22545
+ message: string;
22546
+ } | {
22547
+ /** @constant */
22548
+ code: "previousUnattachedOwnerActivity";
22549
+ /** @constant */
22550
+ severity: "error";
22551
+ context: {
22552
+ affected: number;
22553
+ windowStartAt: string;
22554
+ };
22555
+ message: string;
22610
22556
  } | {
22611
22557
  /** @constant */
22612
22558
  code: "balanceMismatch_start";
@@ -22651,6 +22597,16 @@ export interface operations {
22651
22597
  affected: number;
22652
22598
  };
22653
22599
  message: string;
22600
+ } | {
22601
+ /** @constant */
22602
+ code: "missingPreviousStatement";
22603
+ /** @constant */
22604
+ severity: "warning";
22605
+ context: {
22606
+ periodStartAt: string;
22607
+ statementStartAt: string;
22608
+ };
22609
+ message: string;
22654
22610
  } | {
22655
22611
  /** @constant */
22656
22612
  code: "unpaidReservations";
@@ -22664,8 +22620,10 @@ export interface operations {
22664
22620
  /** @constant */
22665
22621
  severity: "warning";
22666
22622
  context: {
22667
- layoutUpdatedAt: string;
22668
- statementCreatedAt: string;
22623
+ layoutVersion?: number | null;
22624
+ statementLayoutVersion?: number | null;
22625
+ layoutUpdatedAt?: string | null;
22626
+ statementCreatedAt?: string | null;
22669
22627
  };
22670
22628
  message: string;
22671
22629
  })[];
@@ -22744,6 +22702,7 @@ export interface operations {
22744
22702
  })[];
22745
22703
  }[];
22746
22704
  id: string;
22705
+ version: number;
22747
22706
  activeListings: {
22748
22707
  id: string;
22749
22708
  name?: string | null;
@@ -23101,6 +23060,7 @@ export interface operations {
23101
23060
  })[];
23102
23061
  }[];
23103
23062
  id: string;
23063
+ version: number;
23104
23064
  activeListings: {
23105
23065
  id: string;
23106
23066
  name?: string | null;
@@ -23352,6 +23312,7 @@ export interface operations {
23352
23312
  })[];
23353
23313
  }[];
23354
23314
  id: string;
23315
+ version: number;
23355
23316
  activeListings: {
23356
23317
  id: string;
23357
23318
  name?: string | null;
@@ -23540,6 +23501,7 @@ export interface operations {
23540
23501
  })[];
23541
23502
  }[];
23542
23503
  id: string;
23504
+ version: number;
23543
23505
  activeListings: {
23544
23506
  id: string;
23545
23507
  name?: string | null;
@@ -23783,6 +23745,7 @@ export interface operations {
23783
23745
  })[];
23784
23746
  }[];
23785
23747
  id: string;
23748
+ version: number;
23786
23749
  activeListings: {
23787
23750
  id: string;
23788
23751
  name?: string | null;
@@ -24615,6 +24578,26 @@ export interface operations {
24615
24578
  severity: "error";
24616
24579
  context: Record<string, never>;
24617
24580
  message: string;
24581
+ } | {
24582
+ /** @constant */
24583
+ code: "previousUnpublishedStatement";
24584
+ /** @constant */
24585
+ severity: "error";
24586
+ context: {
24587
+ priorStatementStartAt: string;
24588
+ priorStatementStatus: string;
24589
+ };
24590
+ message: string;
24591
+ } | {
24592
+ /** @constant */
24593
+ code: "previousUnattachedOwnerActivity";
24594
+ /** @constant */
24595
+ severity: "error";
24596
+ context: {
24597
+ affected: number;
24598
+ windowStartAt: string;
24599
+ };
24600
+ message: string;
24618
24601
  } | {
24619
24602
  /** @constant */
24620
24603
  code: "balanceMismatch_start";
@@ -24659,6 +24642,16 @@ export interface operations {
24659
24642
  affected: number;
24660
24643
  };
24661
24644
  message: string;
24645
+ } | {
24646
+ /** @constant */
24647
+ code: "missingPreviousStatement";
24648
+ /** @constant */
24649
+ severity: "warning";
24650
+ context: {
24651
+ periodStartAt: string;
24652
+ statementStartAt: string;
24653
+ };
24654
+ message: string;
24662
24655
  } | {
24663
24656
  /** @constant */
24664
24657
  code: "unpaidReservations";
@@ -24672,8 +24665,10 @@ export interface operations {
24672
24665
  /** @constant */
24673
24666
  severity: "warning";
24674
24667
  context: {
24675
- layoutUpdatedAt: string;
24676
- statementCreatedAt: string;
24668
+ layoutVersion?: number | null;
24669
+ statementLayoutVersion?: number | null;
24670
+ layoutUpdatedAt?: string | null;
24671
+ statementCreatedAt?: string | null;
24677
24672
  };
24678
24673
  message: string;
24679
24674
  })[];
@@ -24752,6 +24747,7 @@ export interface operations {
24752
24747
  })[];
24753
24748
  }[];
24754
24749
  id: string;
24750
+ version: number;
24755
24751
  activeListings: {
24756
24752
  id: string;
24757
24753
  name?: string | null;
@@ -25110,6 +25106,26 @@ export interface operations {
25110
25106
  severity: "error";
25111
25107
  context: Record<string, never>;
25112
25108
  message: string;
25109
+ } | {
25110
+ /** @constant */
25111
+ code: "previousUnpublishedStatement";
25112
+ /** @constant */
25113
+ severity: "error";
25114
+ context: {
25115
+ priorStatementStartAt: string;
25116
+ priorStatementStatus: string;
25117
+ };
25118
+ message: string;
25119
+ } | {
25120
+ /** @constant */
25121
+ code: "previousUnattachedOwnerActivity";
25122
+ /** @constant */
25123
+ severity: "error";
25124
+ context: {
25125
+ affected: number;
25126
+ windowStartAt: string;
25127
+ };
25128
+ message: string;
25113
25129
  } | {
25114
25130
  /** @constant */
25115
25131
  code: "balanceMismatch_start";
@@ -25154,6 +25170,16 @@ export interface operations {
25154
25170
  affected: number;
25155
25171
  };
25156
25172
  message: string;
25173
+ } | {
25174
+ /** @constant */
25175
+ code: "missingPreviousStatement";
25176
+ /** @constant */
25177
+ severity: "warning";
25178
+ context: {
25179
+ periodStartAt: string;
25180
+ statementStartAt: string;
25181
+ };
25182
+ message: string;
25157
25183
  } | {
25158
25184
  /** @constant */
25159
25185
  code: "unpaidReservations";
@@ -25167,8 +25193,10 @@ export interface operations {
25167
25193
  /** @constant */
25168
25194
  severity: "warning";
25169
25195
  context: {
25170
- layoutUpdatedAt: string;
25171
- statementCreatedAt: string;
25196
+ layoutVersion?: number | null;
25197
+ statementLayoutVersion?: number | null;
25198
+ layoutUpdatedAt?: string | null;
25199
+ statementCreatedAt?: string | null;
25172
25200
  };
25173
25201
  message: string;
25174
25202
  })[];
@@ -25247,6 +25275,7 @@ export interface operations {
25247
25275
  })[];
25248
25276
  }[];
25249
25277
  id: string;
25278
+ version: number;
25250
25279
  activeListings: {
25251
25280
  id: string;
25252
25281
  name?: string | null;