@vrplatform/api 1.3.1-stage.2139 → 1.3.1-stage.2141

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.2139",
6
+ "version": "1.3.1-stage.2141",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -409,7 +409,7 @@ export interface paths {
409
409
  };
410
410
  get?: never;
411
411
  put?: never;
412
- /** @description Preview an unsaved bank rule against one bank record */
412
+ /** @description Preview an unsaved bank rule against unmatched bank records it would affect */
413
413
  post: operations["postBankRulesPreview"];
414
414
  delete?: never;
415
415
  options?: never;
@@ -7170,78 +7170,13 @@ export interface operations {
7170
7170
  /** Format: uuid */
7171
7171
  id: string;
7172
7172
  name: string;
7173
- /** @enum {string} */
7174
- status: "active" | "inactive";
7175
7173
  priority: number;
7176
7174
  /** @enum {string} */
7177
7175
  transactionType: "deposit" | "expense";
7178
7176
  /** @enum {string} */
7179
7177
  mode: "suggest" | "autoCreateAndMatch";
7180
- descriptionOperator?: ("contains" | "equals" | "startsWith") | null;
7181
- descriptionValue?: string | null;
7182
- amountMinCent?: number | null;
7183
- amountMaxCent?: number | null;
7184
- descriptionOverride?: string | null;
7185
- usePriorMonthEnd: boolean;
7186
- version: number;
7187
- vendorContact?: {
7188
- /** Format: uuid */
7189
- id: string;
7190
- name?: string | null;
7191
- firstName?: string | null;
7192
- uniqueRef?: string | null;
7193
- shortRef?: string | null;
7194
- } | null;
7195
- accounts: {
7196
- id: string;
7197
- name: string;
7198
- uniqueRef?: string | null;
7199
- /** @enum {string} */
7200
- status: "active" | "inactive";
7201
- }[];
7202
- lines: {
7203
- /** Format: uuid */
7204
- id: string;
7205
- sortOrder: number;
7206
- /** @enum {string} */
7207
- splitMode: "fixed" | "percentage" | "remainder";
7208
- fixedCentAmount?: number | null;
7209
- percentageBps?: number | null;
7210
- party?: ("owners" | "manager") | null;
7211
- taxBehavior?: ("excluded" | "included") | null;
7212
- descriptionOverride?: string | null;
7213
- account: {
7214
- id: string;
7215
- name: string;
7216
- uniqueRef?: string | null;
7217
- /** @enum {string} */
7218
- status: "active" | "inactive";
7219
- };
7220
- listing?: {
7221
- /** Format: uuid */
7222
- id: string;
7223
- name: string;
7224
- uniqueRef?: string | null;
7225
- shortRef?: string | null;
7226
- } | null;
7227
- contact?: {
7228
- /** Format: uuid */
7229
- id: string;
7230
- name?: string | null;
7231
- firstName?: string | null;
7232
- uniqueRef?: string | null;
7233
- shortRef?: string | null;
7234
- } | null;
7235
- taxRate?: {
7236
- id: string;
7237
- name: string;
7238
- /**
7239
- * @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%)
7240
- * @example 100000
7241
- */
7242
- basisPoints: number;
7243
- } | null;
7244
- }[];
7178
+ /** @enum {string} */
7179
+ status: "active" | "inactive";
7245
7180
  };
7246
7181
  preview: {
7247
7182
  matches: boolean;
@@ -7271,13 +7206,17 @@ export interface operations {
7271
7206
  uniqueRef?: string | null;
7272
7207
  description: string;
7273
7208
  accountId?: string | null;
7274
- assignment?: string | null;
7209
+ assignment?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "dueToFromTrust" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "payout_bankAccount" | "payout_distribution") | null;
7275
7210
  amount: number;
7276
7211
  appliedAmount?: {
7277
7212
  taxRateId?: string | null;
7278
7213
  taxBehavior?: ("excluded" | "included") | null;
7279
7214
  } | null;
7280
- markup: null;
7215
+ markup?: {
7216
+ amount?: number | null;
7217
+ taxRateId?: string | null;
7218
+ taxBehavior?: ("excluded" | "included") | null;
7219
+ } | null;
7281
7220
  listingId?: string | null;
7282
7221
  reservationId?: string | null;
7283
7222
  ownerStatementId?: string | null;
@@ -7775,78 +7714,13 @@ export interface operations {
7775
7714
  /** Format: uuid */
7776
7715
  id: string;
7777
7716
  name: string;
7778
- /** @enum {string} */
7779
- status: "active" | "inactive";
7780
7717
  priority: number;
7781
7718
  /** @enum {string} */
7782
7719
  transactionType: "deposit" | "expense";
7783
7720
  /** @enum {string} */
7784
7721
  mode: "suggest" | "autoCreateAndMatch";
7785
- descriptionOperator?: ("contains" | "equals" | "startsWith") | null;
7786
- descriptionValue?: string | null;
7787
- amountMinCent?: number | null;
7788
- amountMaxCent?: number | null;
7789
- descriptionOverride?: string | null;
7790
- usePriorMonthEnd: boolean;
7791
- version: number;
7792
- vendorContact?: {
7793
- /** Format: uuid */
7794
- id: string;
7795
- name?: string | null;
7796
- firstName?: string | null;
7797
- uniqueRef?: string | null;
7798
- shortRef?: string | null;
7799
- } | null;
7800
- accounts: {
7801
- id: string;
7802
- name: string;
7803
- uniqueRef?: string | null;
7804
- /** @enum {string} */
7805
- status: "active" | "inactive";
7806
- }[];
7807
- lines: {
7808
- /** Format: uuid */
7809
- id: string;
7810
- sortOrder: number;
7811
- /** @enum {string} */
7812
- splitMode: "fixed" | "percentage" | "remainder";
7813
- fixedCentAmount?: number | null;
7814
- percentageBps?: number | null;
7815
- party?: ("owners" | "manager") | null;
7816
- taxBehavior?: ("excluded" | "included") | null;
7817
- descriptionOverride?: string | null;
7818
- account: {
7819
- id: string;
7820
- name: string;
7821
- uniqueRef?: string | null;
7822
- /** @enum {string} */
7823
- status: "active" | "inactive";
7824
- };
7825
- listing?: {
7826
- /** Format: uuid */
7827
- id: string;
7828
- name: string;
7829
- uniqueRef?: string | null;
7830
- shortRef?: string | null;
7831
- } | null;
7832
- contact?: {
7833
- /** Format: uuid */
7834
- id: string;
7835
- name?: string | null;
7836
- firstName?: string | null;
7837
- uniqueRef?: string | null;
7838
- shortRef?: string | null;
7839
- } | null;
7840
- taxRate?: {
7841
- id: string;
7842
- name: string;
7843
- /**
7844
- * @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%)
7845
- * @example 100000
7846
- */
7847
- basisPoints: number;
7848
- } | null;
7849
- }[];
7722
+ /** @enum {string} */
7723
+ status: "active" | "inactive";
7850
7724
  };
7851
7725
  preview: {
7852
7726
  matches: boolean;
@@ -7876,13 +7750,17 @@ export interface operations {
7876
7750
  uniqueRef?: string | null;
7877
7751
  description: string;
7878
7752
  accountId?: string | null;
7879
- assignment?: string | null;
7753
+ assignment?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "dueToFromTrust" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "payout_bankAccount" | "payout_distribution") | null;
7880
7754
  amount: number;
7881
7755
  appliedAmount?: {
7882
7756
  taxRateId?: string | null;
7883
7757
  taxBehavior?: ("excluded" | "included") | null;
7884
7758
  } | null;
7885
- markup: null;
7759
+ markup?: {
7760
+ amount?: number | null;
7761
+ taxRateId?: string | null;
7762
+ taxBehavior?: ("excluded" | "included") | null;
7763
+ } | null;
7886
7764
  listingId?: string | null;
7887
7765
  reservationId?: string | null;
7888
7766
  ownerStatementId?: string | null;
@@ -8174,16 +8052,30 @@ export interface operations {
8174
8052
  splitMode: "fixed" | "percentage" | "remainder";
8175
8053
  fixedCentAmount?: number | null;
8176
8054
  percentageBps?: number | null;
8055
+ assignment?: "deposit_merchantFee" | null;
8177
8056
  party?: ("owners" | "manager") | null;
8178
8057
  taxBehavior?: ("excluded" | "included") | null;
8179
8058
  descriptionOverride?: string | null;
8180
- account: {
8059
+ markup?: {
8060
+ amount?: number | null;
8061
+ taxBehavior?: ("excluded" | "included") | null;
8062
+ taxRate?: {
8063
+ id: string;
8064
+ name: string;
8065
+ /**
8066
+ * @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%)
8067
+ * @example 100000
8068
+ */
8069
+ basisPoints: number;
8070
+ } | null;
8071
+ } | null;
8072
+ account?: {
8181
8073
  id: string;
8182
8074
  name: string;
8183
8075
  uniqueRef?: string | null;
8184
8076
  /** @enum {string} */
8185
8077
  status: "active" | "inactive";
8186
- };
8078
+ } | null;
8187
8079
  listing?: {
8188
8080
  /** Format: uuid */
8189
8081
  id: string;
@@ -8334,13 +8226,18 @@ export interface operations {
8334
8226
  splitMode: "fixed" | "percentage" | "remainder";
8335
8227
  fixedCentAmount?: number | null;
8336
8228
  percentageBps?: number | null;
8337
- /** Format: uuid */
8338
- accountId: string;
8229
+ accountId?: string | null;
8230
+ assignment?: "deposit_merchantFee" | null;
8339
8231
  listingId?: string | null;
8340
8232
  contactId?: string | null;
8341
8233
  party?: ("owners" | "manager") | null;
8342
8234
  taxRateId?: string | null;
8343
8235
  taxBehavior?: ("excluded" | "included") | null;
8236
+ markup?: {
8237
+ amount?: number | null;
8238
+ taxRateId?: string | null;
8239
+ taxBehavior?: ("excluded" | "included") | null;
8240
+ } | null;
8344
8241
  descriptionOverride?: string | null;
8345
8242
  }[];
8346
8243
  };
@@ -8394,16 +8291,30 @@ export interface operations {
8394
8291
  splitMode: "fixed" | "percentage" | "remainder";
8395
8292
  fixedCentAmount?: number | null;
8396
8293
  percentageBps?: number | null;
8294
+ assignment?: "deposit_merchantFee" | null;
8397
8295
  party?: ("owners" | "manager") | null;
8398
8296
  taxBehavior?: ("excluded" | "included") | null;
8399
8297
  descriptionOverride?: string | null;
8400
- account: {
8298
+ markup?: {
8299
+ amount?: number | null;
8300
+ taxBehavior?: ("excluded" | "included") | null;
8301
+ taxRate?: {
8302
+ id: string;
8303
+ name: string;
8304
+ /**
8305
+ * @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%)
8306
+ * @example 100000
8307
+ */
8308
+ basisPoints: number;
8309
+ } | null;
8310
+ } | null;
8311
+ account?: {
8401
8312
  id: string;
8402
8313
  name: string;
8403
8314
  uniqueRef?: string | null;
8404
8315
  /** @enum {string} */
8405
8316
  status: "active" | "inactive";
8406
- };
8317
+ } | null;
8407
8318
  listing?: {
8408
8319
  /** Format: uuid */
8409
8320
  id: string;
@@ -8544,17 +8455,20 @@ export interface operations {
8544
8455
  splitMode: "fixed" | "percentage" | "remainder";
8545
8456
  fixedCentAmount?: number | null;
8546
8457
  percentageBps?: number | null;
8547
- /** Format: uuid */
8548
- accountId: string;
8458
+ accountId?: string | null;
8459
+ assignment?: "deposit_merchantFee" | null;
8549
8460
  listingId?: string | null;
8550
8461
  contactId?: string | null;
8551
8462
  party?: ("owners" | "manager") | null;
8552
8463
  taxRateId?: string | null;
8553
8464
  taxBehavior?: ("excluded" | "included") | null;
8465
+ markup?: {
8466
+ amount?: number | null;
8467
+ taxRateId?: string | null;
8468
+ taxBehavior?: ("excluded" | "included") | null;
8469
+ } | null;
8554
8470
  descriptionOverride?: string | null;
8555
8471
  }[];
8556
- /** Format: uuid */
8557
- bankRecordId: string;
8558
8472
  };
8559
8473
  };
8560
8474
  };
@@ -8566,62 +8480,68 @@ export interface operations {
8566
8480
  };
8567
8481
  content: {
8568
8482
  "application/json": {
8569
- matches: boolean;
8570
- isAutoApplicable: boolean;
8571
- bankRecord: {
8572
- /** Format: uuid */
8573
- id: string;
8574
- date: string;
8575
- description: string;
8576
- amount: number;
8577
- bankAccountId?: string | null;
8578
- accountId?: string | null;
8579
- };
8580
- transaction: {
8581
- description: string;
8582
- status?: ("active" | "inactive") | null;
8583
- accountId?: string | null;
8584
- contactId?: string | null;
8585
- uniqueRef?: string | null;
8586
- isOpeningBalance?: boolean;
8587
- /** @enum {string} */
8588
- type: "deposit" | "expense";
8589
- date: string;
8590
- currency?: string | null;
8591
- lines: {
8592
- recurringTemplateId?: string | null;
8593
- uniqueRef?: string | null;
8483
+ data: {
8484
+ matches: boolean;
8485
+ isAutoApplicable: boolean;
8486
+ bankRecord: {
8487
+ /** Format: uuid */
8488
+ id: string;
8489
+ date: string;
8594
8490
  description: string;
8595
- accountId?: string | null;
8596
- assignment?: string | null;
8597
8491
  amount: number;
8598
- appliedAmount?: {
8599
- taxRateId?: string | null;
8600
- taxBehavior?: ("excluded" | "included") | null;
8601
- } | null;
8602
- markup: null;
8603
- listingId?: string | null;
8604
- reservationId?: string | null;
8605
- ownerStatementId?: string | null;
8606
- party?: ("owners" | "manager") | null;
8492
+ bankAccountId?: string | null;
8493
+ accountId?: string | null;
8494
+ };
8495
+ transaction: {
8496
+ description: string;
8497
+ status?: ("active" | "inactive") | null;
8498
+ accountId?: string | null;
8607
8499
  contactId?: string | null;
8608
- matchReservationConfirmationCode?: string | null;
8609
- matchReservationStripeGuestRef?: string | null;
8610
- matchLineTypeClassification?: string | null;
8611
- }[];
8612
- attachmentIds?: string[] | null;
8613
- payment?: {
8614
- bankRecordIds: string[];
8500
+ uniqueRef?: string | null;
8501
+ isOpeningBalance?: boolean;
8615
8502
  /** @enum {string} */
8616
- status: "unpaid" | "underpaid" | "overpaid" | "paid";
8617
- date?: string | null;
8618
- lock: null;
8619
- } | null;
8620
- connectionId?: string | null;
8621
- sourceId?: string | null;
8622
- recurringTemplateId?: string | null;
8623
- matchBankAccountLast4?: string | null;
8624
- };
8503
+ type: "deposit" | "expense";
8504
+ date: string;
8505
+ currency?: string | null;
8506
+ lines: {
8507
+ recurringTemplateId?: string | null;
8508
+ uniqueRef?: string | null;
8509
+ description: string;
8510
+ accountId?: string | null;
8511
+ assignment?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "dueToFromTrust" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "payout_bankAccount" | "payout_distribution") | null;
8512
+ amount: number;
8513
+ appliedAmount?: {
8514
+ taxRateId?: string | null;
8515
+ taxBehavior?: ("excluded" | "included") | null;
8516
+ } | null;
8517
+ markup?: {
8518
+ amount?: number | null;
8519
+ taxRateId?: string | null;
8520
+ taxBehavior?: ("excluded" | "included") | null;
8521
+ } | null;
8522
+ listingId?: string | null;
8523
+ reservationId?: string | null;
8524
+ ownerStatementId?: string | null;
8525
+ party?: ("owners" | "manager") | null;
8526
+ contactId?: string | null;
8527
+ matchReservationConfirmationCode?: string | null;
8528
+ matchReservationStripeGuestRef?: string | null;
8529
+ matchLineTypeClassification?: string | null;
8530
+ }[];
8531
+ attachmentIds?: string[] | null;
8532
+ payment?: {
8533
+ bankRecordIds: string[];
8534
+ /** @enum {string} */
8535
+ status: "unpaid" | "underpaid" | "overpaid" | "paid";
8536
+ date?: string | null;
8537
+ lock: null;
8538
+ } | null;
8539
+ connectionId?: string | null;
8540
+ sourceId?: string | null;
8541
+ recurringTemplateId?: string | null;
8542
+ matchBankAccountLast4?: string | null;
8543
+ };
8544
+ }[];
8625
8545
  };
8626
8546
  };
8627
8547
  };
@@ -8765,16 +8685,30 @@ export interface operations {
8765
8685
  splitMode: "fixed" | "percentage" | "remainder";
8766
8686
  fixedCentAmount?: number | null;
8767
8687
  percentageBps?: number | null;
8688
+ assignment?: "deposit_merchantFee" | null;
8768
8689
  party?: ("owners" | "manager") | null;
8769
8690
  taxBehavior?: ("excluded" | "included") | null;
8770
8691
  descriptionOverride?: string | null;
8771
- account: {
8692
+ markup?: {
8693
+ amount?: number | null;
8694
+ taxBehavior?: ("excluded" | "included") | null;
8695
+ taxRate?: {
8696
+ id: string;
8697
+ name: string;
8698
+ /**
8699
+ * @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%)
8700
+ * @example 100000
8701
+ */
8702
+ basisPoints: number;
8703
+ } | null;
8704
+ } | null;
8705
+ account?: {
8772
8706
  id: string;
8773
8707
  name: string;
8774
8708
  uniqueRef?: string | null;
8775
8709
  /** @enum {string} */
8776
8710
  status: "active" | "inactive";
8777
- };
8711
+ } | null;
8778
8712
  listing?: {
8779
8713
  /** Format: uuid */
8780
8714
  id: string;
@@ -8918,13 +8852,18 @@ export interface operations {
8918
8852
  splitMode: "fixed" | "percentage" | "remainder";
8919
8853
  fixedCentAmount?: number | null;
8920
8854
  percentageBps?: number | null;
8921
- /** Format: uuid */
8922
- accountId: string;
8855
+ accountId?: string | null;
8856
+ assignment?: "deposit_merchantFee" | null;
8923
8857
  listingId?: string | null;
8924
8858
  contactId?: string | null;
8925
8859
  party?: ("owners" | "manager") | null;
8926
8860
  taxRateId?: string | null;
8927
8861
  taxBehavior?: ("excluded" | "included") | null;
8862
+ markup?: {
8863
+ amount?: number | null;
8864
+ taxRateId?: string | null;
8865
+ taxBehavior?: ("excluded" | "included") | null;
8866
+ } | null;
8928
8867
  descriptionOverride?: string | null;
8929
8868
  }[];
8930
8869
  };
@@ -8978,16 +8917,30 @@ export interface operations {
8978
8917
  splitMode: "fixed" | "percentage" | "remainder";
8979
8918
  fixedCentAmount?: number | null;
8980
8919
  percentageBps?: number | null;
8920
+ assignment?: "deposit_merchantFee" | null;
8981
8921
  party?: ("owners" | "manager") | null;
8982
8922
  taxBehavior?: ("excluded" | "included") | null;
8983
8923
  descriptionOverride?: string | null;
8984
- account: {
8924
+ markup?: {
8925
+ amount?: number | null;
8926
+ taxBehavior?: ("excluded" | "included") | null;
8927
+ taxRate?: {
8928
+ id: string;
8929
+ name: string;
8930
+ /**
8931
+ * @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%)
8932
+ * @example 100000
8933
+ */
8934
+ basisPoints: number;
8935
+ } | null;
8936
+ } | null;
8937
+ account?: {
8985
8938
  id: string;
8986
8939
  name: string;
8987
8940
  uniqueRef?: string | null;
8988
8941
  /** @enum {string} */
8989
8942
  status: "active" | "inactive";
8990
- };
8943
+ } | null;
8991
8944
  listing?: {
8992
8945
  /** Format: uuid */
8993
8946
  id: string;
@@ -9267,13 +9220,17 @@ export interface operations {
9267
9220
  uniqueRef?: string | null;
9268
9221
  description: string;
9269
9222
  accountId?: string | null;
9270
- assignment?: string | null;
9223
+ assignment?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "dueToFromTrust" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "payout_bankAccount" | "payout_distribution") | null;
9271
9224
  amount: number;
9272
9225
  appliedAmount?: {
9273
9226
  taxRateId?: string | null;
9274
9227
  taxBehavior?: ("excluded" | "included") | null;
9275
9228
  } | null;
9276
- markup: null;
9229
+ markup?: {
9230
+ amount?: number | null;
9231
+ taxRateId?: string | null;
9232
+ taxBehavior?: ("excluded" | "included") | null;
9233
+ } | null;
9277
9234
  listingId?: string | null;
9278
9235
  reservationId?: string | null;
9279
9236
  ownerStatementId?: string | null;