@vrplatform/api 1.3.1-6343 → 1.3.1-6350

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.
@@ -996,7 +996,7 @@ export interface paths {
996
996
  get?: never;
997
997
  put?: never;
998
998
  /**
999
- * @description Import a CSV after validating its importer against canonical app capabilities. Mapped bank records require the reviewed preview, upload, and bank account; confirmation is rejected if the account beginning-balance date changed after preview.
999
+ * @description Queue a CSV import after permission checks. Reviewed imports must match the preview's upload, resource, mapping, and source hash. Bank-record previews become stale when the account start date changes.
1000
1000
  *
1001
1001
  * Required scope: integrations:import
1002
1002
  */
@@ -1017,7 +1017,7 @@ export interface paths {
1017
1017
  get?: never;
1018
1018
  put?: never;
1019
1019
  /**
1020
- * @description Start a bank-record CSV preview for a tenant-scoped bank account from this Connection's upload reference. Rows before the account's beginning-balance date are returned as system exclusions.
1020
+ * @description Start a CSV preview after checking the resource's write permission. Bank records require a team-scoped bank account; rows before its start date are system exclusions.
1021
1021
  *
1022
1022
  * Required scope: integrations:import
1023
1023
  */
@@ -1036,7 +1036,7 @@ export interface paths {
1036
1036
  cookie?: never;
1037
1037
  };
1038
1038
  /**
1039
- * @description Get a validated bank-record CSV preview result. Optional unresolved or unused date and amount-column mappings, plus untransformed invalid sample rows, can be null and may be submitted unchanged when confirming the import.
1039
+ * @description Get a validated resource-discriminated CSV preview summary. Full logical records are available through the paginated records endpoint.
1040
1040
  *
1041
1041
  * Required scope: integrations:import
1042
1042
  */
@@ -1049,6 +1049,27 @@ export interface paths {
1049
1049
  patch?: never;
1050
1050
  trace?: never;
1051
1051
  };
1052
+ "/connections/{id}/csv-import/preview/{previewId}/records": {
1053
+ parameters: {
1054
+ query?: never;
1055
+ header?: never;
1056
+ path?: never;
1057
+ cookie?: never;
1058
+ };
1059
+ /**
1060
+ * @description Get a bounded page of logical records from a completed CSV preview. The opaque cursor is bound to the preview, filter, and page size.
1061
+ *
1062
+ * Required scope: integrations:import
1063
+ */
1064
+ get: operations["getConnectionsByIdCsvImportPreviewByPreviewIdRecords"];
1065
+ put?: never;
1066
+ post?: never;
1067
+ delete?: never;
1068
+ options?: never;
1069
+ head?: never;
1070
+ patch?: never;
1071
+ trace?: never;
1072
+ };
1052
1073
  "/connections/{id}/csv-import/uploads": {
1053
1074
  parameters: {
1054
1075
  query?: never;
@@ -1059,7 +1080,7 @@ export interface paths {
1059
1080
  get?: never;
1060
1081
  put?: never;
1061
1082
  /**
1062
- * @description Create a 24-hour, size-bound CSV upload reference and regional raw PUT URL for this Connection for a file up to 100,000,000 bytes. PUT the original file with Content-Type text/csv (optional parameters are accepted) and Content-Length. Completed retries are idempotent.
1083
+ * @description Create a 24-hour Connection-scoped upload for one CSV up to 100,000,000 bytes. Send the unchanged file once to uploadUrl with Content-Type text/csv and Content-Length. Completed retries are idempotent.
1063
1084
  *
1064
1085
  * Required scope: integrations:import
1065
1086
  */
@@ -1079,7 +1100,7 @@ export interface paths {
1079
1100
  };
1080
1101
  get?: never;
1081
1102
  /**
1082
- * @description Stream the complete raw CSV body into regional storage using an issued upload reference. Content-Type must be text/csv (optional parameters are accepted), Content-Length is required, and the stored byte size must exactly match the create-upload request. A completed retry does not overwrite the stored object.
1103
+ * @description Upload the complete raw CSV once to regional storage. Content-Type must be text/csv (parameters allowed). Content-Length is required, and the stored byte size must match fileSize. A completed retry does not overwrite the stored object.
1083
1104
  *
1084
1105
  * Required scope: integrations:import
1085
1106
  */
@@ -1169,7 +1190,7 @@ export interface paths {
1169
1190
  get?: never;
1170
1191
  put?: never;
1171
1192
  /**
1172
- * @description Create multiple contacts
1193
+ * @description Create or update contacts. ownerGroups accepts one owner-only group with empty contact data and atomically writes its contacts plus one managed listing ownership from 1970-01-01 with default splits and no end date; retries reuse the group source provenance.
1173
1194
  *
1174
1195
  * Required scope: contacts:write
1175
1196
  */
@@ -4095,7 +4116,7 @@ export interface paths {
4095
4116
  cookie?: never;
4096
4117
  };
4097
4118
  /**
4098
- * @description As-of guest accounts receivable, excluding internal net-zero deposit rebalances while preserving co-host A/R relief for real guest charges
4119
+ * @description As-of guest accounts receivable, excluding internal net-zero deposit rebalances while preserving valid co-host A/R relief and clearing reversals
4099
4120
  *
4100
4121
  * Required scope: reports:read
4101
4122
  */
@@ -4116,7 +4137,7 @@ export interface paths {
4116
4137
  cookie?: never;
4117
4138
  };
4118
4139
  /**
4119
- * @description CSV export of as-of guest accounts receivable, excluding internal net-zero deposit rebalances while preserving co-host A/R relief for real guest charges
4140
+ * @description CSV export of as-of guest accounts receivable, excluding internal net-zero deposit rebalances while preserving valid co-host A/R relief and clearing reversals
4120
4141
  *
4121
4142
  * Required scope: reports:read, reports:export
4122
4143
  */
@@ -4137,7 +4158,7 @@ export interface paths {
4137
4158
  cookie?: never;
4138
4159
  };
4139
4160
  /**
4140
- * @description Aggregated as-of guest accounts receivable, excluding internal net-zero deposit rebalances while preserving co-host A/R relief for real guest charges
4161
+ * @description Aggregated as-of guest accounts receivable, excluding internal net-zero deposit rebalances while preserving valid co-host A/R relief and clearing reversals
4141
4162
  *
4142
4163
  * Required scope: reports:read
4143
4164
  */
@@ -6209,7 +6230,7 @@ export interface paths {
6209
6230
  get?: never;
6210
6231
  put?: never;
6211
6232
  /**
6212
- * @description Create or update a connection-scoped batch of transactions. Each item uses the same type, party, link, payment, and lock rules as single transaction mutations. Items match existing transactions by id, uniqueRef, or sourceId. Concurrent retries with the same uniqueRef or sourceId are serialized, and duplicate transaction or line references return an item issue.
6233
+ * @description Create or update a connection-scoped batch of transactions. Each item uses the same type, party, link, payment, and lock rules as single transaction mutations. Items match existing transactions by id, uniqueRef, or sourceId. Concurrent retries with the same uniqueRef or sourceId are serialized, and duplicate transaction or line references return an item issue. createOnly rejects an existing uniqueRef unless it has the same source provenance, in which case the retry returns the existing transaction.
6213
6234
  *
6214
6235
  * Required scope: transactions:write
6215
6236
  */
@@ -13075,6 +13096,7 @@ export interface operations {
13075
13096
  importers: {
13076
13097
  docsLink?: string;
13077
13098
  uniqueRef: string;
13099
+ resource?: string;
13078
13100
  description: string;
13079
13101
  types?: string[];
13080
13102
  }[];
@@ -13381,6 +13403,7 @@ export interface operations {
13381
13403
  importers: {
13382
13404
  docsLink?: string;
13383
13405
  uniqueRef: string;
13406
+ resource?: string;
13384
13407
  description: string;
13385
13408
  types?: string[];
13386
13409
  }[];
@@ -26013,11 +26036,15 @@ export interface operations {
26013
26036
  accountId?: string;
26014
26037
  /** Format: uuid */
26015
26038
  previewId?: string;
26016
- uniqueRef: string;
26039
+ /** @enum {string} */
26040
+ resource?: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
26041
+ uniqueRef?: string;
26017
26042
  params?: {
26018
26043
  [key: string]: unknown;
26019
26044
  };
26020
26045
  mapping?: {
26046
+ /** @constant */
26047
+ resource?: "bankRecords";
26021
26048
  /** @constant */
26022
26049
  version: 1;
26023
26050
  /** @enum {string} */
@@ -26044,6 +26071,318 @@ export interface operations {
26044
26071
  creditSign: 1;
26045
26072
  };
26046
26073
  excludedRows: number[];
26074
+ } | {
26075
+ /** @constant */
26076
+ resource: "owners";
26077
+ /** @constant */
26078
+ version: 1;
26079
+ /** @enum {string} */
26080
+ delimiter: "," | ";" | "\t" | "|";
26081
+ headerRow: number;
26082
+ excludedRows: number[];
26083
+ fields: {
26084
+ listing: {
26085
+ source?: string;
26086
+ overrides: {
26087
+ [key: string]: string;
26088
+ };
26089
+ };
26090
+ ownerKind: {
26091
+ source?: string;
26092
+ /** @enum {string} */
26093
+ constant?: "individual" | "company";
26094
+ values: {
26095
+ [key: string]: "individual" | "company";
26096
+ };
26097
+ };
26098
+ firstName: {
26099
+ source?: string;
26100
+ };
26101
+ lastName: {
26102
+ source?: string;
26103
+ };
26104
+ companyName: {
26105
+ source?: string;
26106
+ };
26107
+ companyType: {
26108
+ source?: string;
26109
+ values: {
26110
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
26111
+ };
26112
+ };
26113
+ ownerReference: {
26114
+ source?: string;
26115
+ overrides: {
26116
+ [key: string]: string;
26117
+ };
26118
+ };
26119
+ email: {
26120
+ source?: string;
26121
+ };
26122
+ phone: {
26123
+ source?: string;
26124
+ };
26125
+ taxIdentifier: {
26126
+ source?: string;
26127
+ };
26128
+ address: {
26129
+ source?: string;
26130
+ };
26131
+ unit: {
26132
+ source?: string;
26133
+ };
26134
+ city: {
26135
+ source?: string;
26136
+ };
26137
+ state: {
26138
+ source?: string;
26139
+ };
26140
+ postalCode: {
26141
+ source?: string;
26142
+ };
26143
+ country: {
26144
+ source?: string;
26145
+ };
26146
+ payoutAccount: {
26147
+ source?: string;
26148
+ overrides: {
26149
+ [key: string]: string;
26150
+ };
26151
+ };
26152
+ };
26153
+ } | {
26154
+ /** @constant */
26155
+ resource: "expenses";
26156
+ /** @constant */
26157
+ version: 1;
26158
+ /** @enum {string} */
26159
+ delimiter: "," | ";" | "\t" | "|";
26160
+ headerRow: number;
26161
+ excludedRows: number[];
26162
+ fields: {
26163
+ billReference: {
26164
+ source?: string;
26165
+ };
26166
+ issueDate: {
26167
+ source?: string;
26168
+ /** @enum {string} */
26169
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
26170
+ };
26171
+ vendor: {
26172
+ source?: string;
26173
+ overrides: {
26174
+ [key: string]: string;
26175
+ };
26176
+ };
26177
+ status: {
26178
+ source?: string;
26179
+ /** @enum {string} */
26180
+ constant?: "paid" | "unpaid";
26181
+ values: {
26182
+ [key: string]: "paid" | "unpaid";
26183
+ };
26184
+ };
26185
+ paymentDate: {
26186
+ source?: string;
26187
+ /** @enum {string} */
26188
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
26189
+ };
26190
+ bankAccount: {
26191
+ source?: string;
26192
+ overrides: {
26193
+ [key: string]: string;
26194
+ };
26195
+ };
26196
+ currency: {
26197
+ source?: string;
26198
+ };
26199
+ description: {
26200
+ source?: string;
26201
+ };
26202
+ lineDescription: {
26203
+ source?: string;
26204
+ };
26205
+ expenseAccount: {
26206
+ source?: string;
26207
+ overrides: {
26208
+ [key: string]: string;
26209
+ };
26210
+ };
26211
+ appliedAmount: {
26212
+ source?: string;
26213
+ };
26214
+ reservation: {
26215
+ source?: string;
26216
+ overrides: {
26217
+ [key: string]: string;
26218
+ };
26219
+ };
26220
+ listing: {
26221
+ source?: string;
26222
+ overrides: {
26223
+ [key: string]: string;
26224
+ };
26225
+ };
26226
+ billToOwner: {
26227
+ source?: string;
26228
+ constant?: boolean;
26229
+ values: {
26230
+ [key: string]: boolean;
26231
+ };
26232
+ };
26233
+ markup: {
26234
+ source?: string;
26235
+ };
26236
+ markupTax: {
26237
+ source?: string;
26238
+ overrides: {
26239
+ [key: string]: string;
26240
+ };
26241
+ };
26242
+ };
26243
+ } | {
26244
+ /** @constant */
26245
+ resource: "vendors";
26246
+ /** @constant */
26247
+ version: 1;
26248
+ /** @enum {string} */
26249
+ delimiter: "," | ";" | "\t" | "|";
26250
+ headerRow: number;
26251
+ excludedRows: number[];
26252
+ fields: {
26253
+ vendorKind: {
26254
+ source?: string;
26255
+ /** @enum {string} */
26256
+ constant?: "individual" | "company";
26257
+ values: {
26258
+ [key: string]: "individual" | "company";
26259
+ };
26260
+ };
26261
+ firstName: {
26262
+ source?: string;
26263
+ };
26264
+ lastName: {
26265
+ source?: string;
26266
+ };
26267
+ companyName: {
26268
+ source?: string;
26269
+ };
26270
+ companyType: {
26271
+ source?: string;
26272
+ values: {
26273
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
26274
+ };
26275
+ };
26276
+ vendorReference: {
26277
+ source?: string;
26278
+ overrides: {
26279
+ [key: string]: string;
26280
+ };
26281
+ };
26282
+ email: {
26283
+ source?: string;
26284
+ };
26285
+ phone: {
26286
+ source?: string;
26287
+ };
26288
+ taxIdentifier: {
26289
+ source?: string;
26290
+ };
26291
+ address: {
26292
+ source?: string;
26293
+ };
26294
+ unit: {
26295
+ source?: string;
26296
+ };
26297
+ city: {
26298
+ source?: string;
26299
+ };
26300
+ state: {
26301
+ source?: string;
26302
+ };
26303
+ postalCode: {
26304
+ source?: string;
26305
+ };
26306
+ country: {
26307
+ source?: string;
26308
+ };
26309
+ };
26310
+ } | {
26311
+ /** @constant */
26312
+ resource: "deposits";
26313
+ /** @constant */
26314
+ version: 1;
26315
+ /** @enum {string} */
26316
+ delimiter: "," | ";" | "\t" | "|";
26317
+ headerRow: number;
26318
+ excludedRows: number[];
26319
+ fields: {
26320
+ reference: {
26321
+ source?: string;
26322
+ };
26323
+ date: {
26324
+ source?: string;
26325
+ /** @enum {string} */
26326
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
26327
+ };
26328
+ bankAccount: {
26329
+ source?: string;
26330
+ overrides: {
26331
+ [key: string]: string;
26332
+ };
26333
+ };
26334
+ description: {
26335
+ source?: string;
26336
+ };
26337
+ currency: {
26338
+ source?: string;
26339
+ };
26340
+ reservation: {
26341
+ source?: string;
26342
+ overrides: {
26343
+ [key: string]: string;
26344
+ };
26345
+ };
26346
+ contact: {
26347
+ source?: string;
26348
+ overrides: {
26349
+ [key: string]: string;
26350
+ };
26351
+ };
26352
+ listing: {
26353
+ source?: string;
26354
+ overrides: {
26355
+ [key: string]: string;
26356
+ };
26357
+ };
26358
+ account: {
26359
+ source?: string;
26360
+ overrides: {
26361
+ [key: string]: string;
26362
+ };
26363
+ };
26364
+ lineDescription: {
26365
+ source?: string;
26366
+ };
26367
+ appliedAmount: {
26368
+ source?: string;
26369
+ };
26370
+ merchantFee: {
26371
+ source?: string;
26372
+ };
26373
+ channelFee: {
26374
+ source?: string;
26375
+ };
26376
+ reserve: {
26377
+ source?: string;
26378
+ };
26379
+ coHostPayout: {
26380
+ source?: string;
26381
+ };
26382
+ vat: {
26383
+ source?: string;
26384
+ };
26385
+ };
26047
26386
  };
26048
26387
  sourceHash?: string;
26049
26388
  };
@@ -26317,10 +26656,14 @@ export interface operations {
26317
26656
  requestBody?: {
26318
26657
  content: {
26319
26658
  "application/json": {
26659
+ /** @enum {string} */
26660
+ resource?: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
26320
26661
  /** Format: uuid */
26321
- accountId: string;
26662
+ accountId?: string;
26322
26663
  uploadRef: string;
26323
26664
  mapping?: {
26665
+ /** @constant */
26666
+ resource?: "bankRecords";
26324
26667
  /** @constant */
26325
26668
  version: 1;
26326
26669
  /** @enum {string} */
@@ -26347,6 +26690,318 @@ export interface operations {
26347
26690
  creditSign: 1;
26348
26691
  };
26349
26692
  excludedRows: number[];
26693
+ } | {
26694
+ /** @constant */
26695
+ resource: "owners";
26696
+ /** @constant */
26697
+ version: 1;
26698
+ /** @enum {string} */
26699
+ delimiter: "," | ";" | "\t" | "|";
26700
+ headerRow: number;
26701
+ excludedRows: number[];
26702
+ fields: {
26703
+ listing: {
26704
+ source?: string;
26705
+ overrides: {
26706
+ [key: string]: string;
26707
+ };
26708
+ };
26709
+ ownerKind: {
26710
+ source?: string;
26711
+ /** @enum {string} */
26712
+ constant?: "individual" | "company";
26713
+ values: {
26714
+ [key: string]: "individual" | "company";
26715
+ };
26716
+ };
26717
+ firstName: {
26718
+ source?: string;
26719
+ };
26720
+ lastName: {
26721
+ source?: string;
26722
+ };
26723
+ companyName: {
26724
+ source?: string;
26725
+ };
26726
+ companyType: {
26727
+ source?: string;
26728
+ values: {
26729
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
26730
+ };
26731
+ };
26732
+ ownerReference: {
26733
+ source?: string;
26734
+ overrides: {
26735
+ [key: string]: string;
26736
+ };
26737
+ };
26738
+ email: {
26739
+ source?: string;
26740
+ };
26741
+ phone: {
26742
+ source?: string;
26743
+ };
26744
+ taxIdentifier: {
26745
+ source?: string;
26746
+ };
26747
+ address: {
26748
+ source?: string;
26749
+ };
26750
+ unit: {
26751
+ source?: string;
26752
+ };
26753
+ city: {
26754
+ source?: string;
26755
+ };
26756
+ state: {
26757
+ source?: string;
26758
+ };
26759
+ postalCode: {
26760
+ source?: string;
26761
+ };
26762
+ country: {
26763
+ source?: string;
26764
+ };
26765
+ payoutAccount: {
26766
+ source?: string;
26767
+ overrides: {
26768
+ [key: string]: string;
26769
+ };
26770
+ };
26771
+ };
26772
+ } | {
26773
+ /** @constant */
26774
+ resource: "expenses";
26775
+ /** @constant */
26776
+ version: 1;
26777
+ /** @enum {string} */
26778
+ delimiter: "," | ";" | "\t" | "|";
26779
+ headerRow: number;
26780
+ excludedRows: number[];
26781
+ fields: {
26782
+ billReference: {
26783
+ source?: string;
26784
+ };
26785
+ issueDate: {
26786
+ source?: string;
26787
+ /** @enum {string} */
26788
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
26789
+ };
26790
+ vendor: {
26791
+ source?: string;
26792
+ overrides: {
26793
+ [key: string]: string;
26794
+ };
26795
+ };
26796
+ status: {
26797
+ source?: string;
26798
+ /** @enum {string} */
26799
+ constant?: "paid" | "unpaid";
26800
+ values: {
26801
+ [key: string]: "paid" | "unpaid";
26802
+ };
26803
+ };
26804
+ paymentDate: {
26805
+ source?: string;
26806
+ /** @enum {string} */
26807
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
26808
+ };
26809
+ bankAccount: {
26810
+ source?: string;
26811
+ overrides: {
26812
+ [key: string]: string;
26813
+ };
26814
+ };
26815
+ currency: {
26816
+ source?: string;
26817
+ };
26818
+ description: {
26819
+ source?: string;
26820
+ };
26821
+ lineDescription: {
26822
+ source?: string;
26823
+ };
26824
+ expenseAccount: {
26825
+ source?: string;
26826
+ overrides: {
26827
+ [key: string]: string;
26828
+ };
26829
+ };
26830
+ appliedAmount: {
26831
+ source?: string;
26832
+ };
26833
+ reservation: {
26834
+ source?: string;
26835
+ overrides: {
26836
+ [key: string]: string;
26837
+ };
26838
+ };
26839
+ listing: {
26840
+ source?: string;
26841
+ overrides: {
26842
+ [key: string]: string;
26843
+ };
26844
+ };
26845
+ billToOwner: {
26846
+ source?: string;
26847
+ constant?: boolean;
26848
+ values: {
26849
+ [key: string]: boolean;
26850
+ };
26851
+ };
26852
+ markup: {
26853
+ source?: string;
26854
+ };
26855
+ markupTax: {
26856
+ source?: string;
26857
+ overrides: {
26858
+ [key: string]: string;
26859
+ };
26860
+ };
26861
+ };
26862
+ } | {
26863
+ /** @constant */
26864
+ resource: "vendors";
26865
+ /** @constant */
26866
+ version: 1;
26867
+ /** @enum {string} */
26868
+ delimiter: "," | ";" | "\t" | "|";
26869
+ headerRow: number;
26870
+ excludedRows: number[];
26871
+ fields: {
26872
+ vendorKind: {
26873
+ source?: string;
26874
+ /** @enum {string} */
26875
+ constant?: "individual" | "company";
26876
+ values: {
26877
+ [key: string]: "individual" | "company";
26878
+ };
26879
+ };
26880
+ firstName: {
26881
+ source?: string;
26882
+ };
26883
+ lastName: {
26884
+ source?: string;
26885
+ };
26886
+ companyName: {
26887
+ source?: string;
26888
+ };
26889
+ companyType: {
26890
+ source?: string;
26891
+ values: {
26892
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
26893
+ };
26894
+ };
26895
+ vendorReference: {
26896
+ source?: string;
26897
+ overrides: {
26898
+ [key: string]: string;
26899
+ };
26900
+ };
26901
+ email: {
26902
+ source?: string;
26903
+ };
26904
+ phone: {
26905
+ source?: string;
26906
+ };
26907
+ taxIdentifier: {
26908
+ source?: string;
26909
+ };
26910
+ address: {
26911
+ source?: string;
26912
+ };
26913
+ unit: {
26914
+ source?: string;
26915
+ };
26916
+ city: {
26917
+ source?: string;
26918
+ };
26919
+ state: {
26920
+ source?: string;
26921
+ };
26922
+ postalCode: {
26923
+ source?: string;
26924
+ };
26925
+ country: {
26926
+ source?: string;
26927
+ };
26928
+ };
26929
+ } | {
26930
+ /** @constant */
26931
+ resource: "deposits";
26932
+ /** @constant */
26933
+ version: 1;
26934
+ /** @enum {string} */
26935
+ delimiter: "," | ";" | "\t" | "|";
26936
+ headerRow: number;
26937
+ excludedRows: number[];
26938
+ fields: {
26939
+ reference: {
26940
+ source?: string;
26941
+ };
26942
+ date: {
26943
+ source?: string;
26944
+ /** @enum {string} */
26945
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
26946
+ };
26947
+ bankAccount: {
26948
+ source?: string;
26949
+ overrides: {
26950
+ [key: string]: string;
26951
+ };
26952
+ };
26953
+ description: {
26954
+ source?: string;
26955
+ };
26956
+ currency: {
26957
+ source?: string;
26958
+ };
26959
+ reservation: {
26960
+ source?: string;
26961
+ overrides: {
26962
+ [key: string]: string;
26963
+ };
26964
+ };
26965
+ contact: {
26966
+ source?: string;
26967
+ overrides: {
26968
+ [key: string]: string;
26969
+ };
26970
+ };
26971
+ listing: {
26972
+ source?: string;
26973
+ overrides: {
26974
+ [key: string]: string;
26975
+ };
26976
+ };
26977
+ account: {
26978
+ source?: string;
26979
+ overrides: {
26980
+ [key: string]: string;
26981
+ };
26982
+ };
26983
+ lineDescription: {
26984
+ source?: string;
26985
+ };
26986
+ appliedAmount: {
26987
+ source?: string;
26988
+ };
26989
+ merchantFee: {
26990
+ source?: string;
26991
+ };
26992
+ channelFee: {
26993
+ source?: string;
26994
+ };
26995
+ reserve: {
26996
+ source?: string;
26997
+ };
26998
+ coHostPayout: {
26999
+ source?: string;
27000
+ };
27001
+ vat: {
27002
+ source?: string;
27003
+ };
27004
+ };
26350
27005
  };
26351
27006
  };
26352
27007
  };
@@ -26384,10 +27039,844 @@ export interface operations {
26384
27039
  canImport: boolean;
26385
27040
  columns: string[];
26386
27041
  issues: {
27042
+ code: string;
27043
+ field?: string;
26387
27044
  rowNumber: number;
26388
27045
  message: string;
26389
27046
  }[];
27047
+ issueCounts: {
27048
+ [key: string]: number;
27049
+ };
27050
+ logicalRecordCount: number;
27051
+ resolutionCounts: {
27052
+ matched: number;
27053
+ unmatched: number;
27054
+ ambiguous: number;
27055
+ };
27056
+ sourceHash: string;
27057
+ /** @constant */
27058
+ resource: "bankRecords";
27059
+ mapping: {
27060
+ /** @constant */
27061
+ resource?: "bankRecords";
27062
+ /** @constant */
27063
+ version: 1;
27064
+ /** @enum {string} */
27065
+ delimiter: "," | ";" | "\t" | "|";
27066
+ headerRow: number;
27067
+ date: {
27068
+ source?: string | null;
27069
+ format?: ("yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy") | null;
27070
+ };
27071
+ description: {
27072
+ sources: string[];
27073
+ /** @constant */
27074
+ operation: "join";
27075
+ };
27076
+ amount: {
27077
+ /** @enum {string} */
27078
+ mode: "signed" | "debitCredit";
27079
+ source?: string | null;
27080
+ debit?: string | null;
27081
+ credit?: string | null;
27082
+ /** @constant */
27083
+ debitSign: -1;
27084
+ /** @constant */
27085
+ creditSign: 1;
27086
+ };
27087
+ excludedRows: number[];
27088
+ };
27089
+ sampleRows: {
27090
+ rowNumber: number;
27091
+ source: {
27092
+ [key: string]: string | null;
27093
+ };
27094
+ transformed?: {
27095
+ Date: string;
27096
+ Description: string;
27097
+ Amount: number;
27098
+ } | null;
27099
+ systemExclusion?: {
27100
+ /** @constant */
27101
+ code: "beforeBankRecordStartDate";
27102
+ bankRecordStartDate: string;
27103
+ };
27104
+ }[];
27105
+ sampleRowsTruncated: boolean;
27106
+ totals: {
27107
+ rows: number;
27108
+ valid: number;
27109
+ invalid: number;
27110
+ excluded: number;
27111
+ moneyIn: number;
27112
+ moneyOut: number;
27113
+ net: number;
27114
+ };
27115
+ } | {
27116
+ canImport: boolean;
27117
+ columns: string[];
27118
+ issues: {
27119
+ code: string;
27120
+ field?: string;
27121
+ rowNumber: number;
27122
+ message: string;
27123
+ }[];
27124
+ issueCounts: {
27125
+ [key: string]: number;
27126
+ };
27127
+ logicalRecordCount: number;
27128
+ resolutionCounts: {
27129
+ matched: number;
27130
+ unmatched: number;
27131
+ ambiguous: number;
27132
+ };
27133
+ sourceHash: string;
27134
+ /** @constant */
27135
+ resource: "owners";
27136
+ mapping: {
27137
+ /** @constant */
27138
+ resource: "owners";
27139
+ /** @constant */
27140
+ version: 1;
27141
+ /** @enum {string} */
27142
+ delimiter: "," | ";" | "\t" | "|";
27143
+ headerRow: number;
27144
+ excludedRows: number[];
27145
+ fields: {
27146
+ listing: {
27147
+ source?: string;
27148
+ overrides: {
27149
+ [key: string]: string;
27150
+ };
27151
+ };
27152
+ ownerKind: {
27153
+ source?: string;
27154
+ /** @enum {string} */
27155
+ constant?: "individual" | "company";
27156
+ values: {
27157
+ [key: string]: "individual" | "company";
27158
+ };
27159
+ };
27160
+ firstName: {
27161
+ source?: string;
27162
+ };
27163
+ lastName: {
27164
+ source?: string;
27165
+ };
27166
+ companyName: {
27167
+ source?: string;
27168
+ };
27169
+ companyType: {
27170
+ source?: string;
27171
+ values: {
27172
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
27173
+ };
27174
+ };
27175
+ ownerReference: {
27176
+ source?: string;
27177
+ overrides: {
27178
+ [key: string]: string;
27179
+ };
27180
+ };
27181
+ email: {
27182
+ source?: string;
27183
+ };
27184
+ phone: {
27185
+ source?: string;
27186
+ };
27187
+ taxIdentifier: {
27188
+ source?: string;
27189
+ };
27190
+ address: {
27191
+ source?: string;
27192
+ };
27193
+ unit: {
27194
+ source?: string;
27195
+ };
27196
+ city: {
27197
+ source?: string;
27198
+ };
27199
+ state: {
27200
+ source?: string;
27201
+ };
27202
+ postalCode: {
27203
+ source?: string;
27204
+ };
27205
+ country: {
27206
+ source?: string;
27207
+ };
27208
+ payoutAccount: {
27209
+ source?: string;
27210
+ overrides: {
27211
+ [key: string]: string;
27212
+ };
27213
+ };
27214
+ };
27215
+ };
27216
+ totals: {
27217
+ rows: number;
27218
+ valid: number;
27219
+ invalid: number;
27220
+ excluded: number;
27221
+ owners: number;
27222
+ listings: number;
27223
+ create: number;
27224
+ update: number;
27225
+ conflicts: number;
27226
+ };
27227
+ } | {
27228
+ canImport: boolean;
27229
+ columns: string[];
27230
+ issues: {
27231
+ code: string;
27232
+ field?: string;
27233
+ rowNumber: number;
27234
+ message: string;
27235
+ }[];
27236
+ issueCounts: {
27237
+ [key: string]: number;
27238
+ };
27239
+ logicalRecordCount: number;
27240
+ resolutionCounts: {
27241
+ matched: number;
27242
+ unmatched: number;
27243
+ ambiguous: number;
27244
+ };
27245
+ sourceHash: string;
27246
+ /** @constant */
27247
+ resource: "expenses";
27248
+ mapping: {
27249
+ /** @constant */
27250
+ resource: "expenses";
27251
+ /** @constant */
27252
+ version: 1;
27253
+ /** @enum {string} */
27254
+ delimiter: "," | ";" | "\t" | "|";
27255
+ headerRow: number;
27256
+ excludedRows: number[];
27257
+ fields: {
27258
+ billReference: {
27259
+ source?: string;
27260
+ };
27261
+ issueDate: {
27262
+ source?: string;
27263
+ /** @enum {string} */
27264
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
27265
+ };
27266
+ vendor: {
27267
+ source?: string;
27268
+ overrides: {
27269
+ [key: string]: string;
27270
+ };
27271
+ };
27272
+ status: {
27273
+ source?: string;
27274
+ /** @enum {string} */
27275
+ constant?: "paid" | "unpaid";
27276
+ values: {
27277
+ [key: string]: "paid" | "unpaid";
27278
+ };
27279
+ };
27280
+ paymentDate: {
27281
+ source?: string;
27282
+ /** @enum {string} */
27283
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
27284
+ };
27285
+ bankAccount: {
27286
+ source?: string;
27287
+ overrides: {
27288
+ [key: string]: string;
27289
+ };
27290
+ };
27291
+ currency: {
27292
+ source?: string;
27293
+ };
27294
+ description: {
27295
+ source?: string;
27296
+ };
27297
+ lineDescription: {
27298
+ source?: string;
27299
+ };
27300
+ expenseAccount: {
27301
+ source?: string;
27302
+ overrides: {
27303
+ [key: string]: string;
27304
+ };
27305
+ };
27306
+ appliedAmount: {
27307
+ source?: string;
27308
+ };
27309
+ reservation: {
27310
+ source?: string;
27311
+ overrides: {
27312
+ [key: string]: string;
27313
+ };
27314
+ };
27315
+ listing: {
27316
+ source?: string;
27317
+ overrides: {
27318
+ [key: string]: string;
27319
+ };
27320
+ };
27321
+ billToOwner: {
27322
+ source?: string;
27323
+ constant?: boolean;
27324
+ values: {
27325
+ [key: string]: boolean;
27326
+ };
27327
+ };
27328
+ markup: {
27329
+ source?: string;
27330
+ };
27331
+ markupTax: {
27332
+ source?: string;
27333
+ overrides: {
27334
+ [key: string]: string;
27335
+ };
27336
+ };
27337
+ };
27338
+ };
27339
+ totals: {
27340
+ rows: number;
27341
+ expenses: number;
27342
+ valid: number;
27343
+ invalid: number;
27344
+ excluded: number;
27345
+ applied: number;
27346
+ markup: number;
27347
+ byCurrency: {
27348
+ [key: string]: {
27349
+ applied: number;
27350
+ markup: number;
27351
+ };
27352
+ };
27353
+ };
27354
+ } | {
27355
+ canImport: boolean;
27356
+ columns: string[];
27357
+ issues: {
27358
+ code: string;
27359
+ field?: string;
27360
+ rowNumber: number;
27361
+ message: string;
27362
+ }[];
27363
+ issueCounts: {
27364
+ [key: string]: number;
27365
+ };
27366
+ logicalRecordCount: number;
27367
+ resolutionCounts: {
27368
+ matched: number;
27369
+ unmatched: number;
27370
+ ambiguous: number;
27371
+ };
27372
+ sourceHash: string;
27373
+ /** @constant */
27374
+ resource: "vendors";
27375
+ mapping: {
27376
+ /** @constant */
27377
+ resource: "vendors";
27378
+ /** @constant */
27379
+ version: 1;
27380
+ /** @enum {string} */
27381
+ delimiter: "," | ";" | "\t" | "|";
27382
+ headerRow: number;
27383
+ excludedRows: number[];
27384
+ fields: {
27385
+ vendorKind: {
27386
+ source?: string;
27387
+ /** @enum {string} */
27388
+ constant?: "individual" | "company";
27389
+ values: {
27390
+ [key: string]: "individual" | "company";
27391
+ };
27392
+ };
27393
+ firstName: {
27394
+ source?: string;
27395
+ };
27396
+ lastName: {
27397
+ source?: string;
27398
+ };
27399
+ companyName: {
27400
+ source?: string;
27401
+ };
27402
+ companyType: {
27403
+ source?: string;
27404
+ values: {
27405
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
27406
+ };
27407
+ };
27408
+ vendorReference: {
27409
+ source?: string;
27410
+ overrides: {
27411
+ [key: string]: string;
27412
+ };
27413
+ };
27414
+ email: {
27415
+ source?: string;
27416
+ };
27417
+ phone: {
27418
+ source?: string;
27419
+ };
27420
+ taxIdentifier: {
27421
+ source?: string;
27422
+ };
27423
+ address: {
27424
+ source?: string;
27425
+ };
27426
+ unit: {
27427
+ source?: string;
27428
+ };
27429
+ city: {
27430
+ source?: string;
27431
+ };
27432
+ state: {
27433
+ source?: string;
27434
+ };
27435
+ postalCode: {
27436
+ source?: string;
27437
+ };
27438
+ country: {
27439
+ source?: string;
27440
+ };
27441
+ };
27442
+ };
27443
+ totals: {
27444
+ rows: number;
27445
+ valid: number;
27446
+ invalid: number;
27447
+ excluded: number;
27448
+ create: number;
27449
+ update: number;
27450
+ duplicate: number;
27451
+ ambiguous: number;
27452
+ };
27453
+ } | {
27454
+ canImport: boolean;
27455
+ columns: string[];
27456
+ issues: {
27457
+ code: string;
27458
+ field?: string;
27459
+ rowNumber: number;
27460
+ message: string;
27461
+ }[];
27462
+ issueCounts: {
27463
+ [key: string]: number;
27464
+ };
27465
+ logicalRecordCount: number;
27466
+ resolutionCounts: {
27467
+ matched: number;
27468
+ unmatched: number;
27469
+ ambiguous: number;
27470
+ };
27471
+ sourceHash: string;
27472
+ /** @constant */
27473
+ resource: "deposits";
27474
+ mapping: {
27475
+ /** @constant */
27476
+ resource: "deposits";
27477
+ /** @constant */
27478
+ version: 1;
27479
+ /** @enum {string} */
27480
+ delimiter: "," | ";" | "\t" | "|";
27481
+ headerRow: number;
27482
+ excludedRows: number[];
27483
+ fields: {
27484
+ reference: {
27485
+ source?: string;
27486
+ };
27487
+ date: {
27488
+ source?: string;
27489
+ /** @enum {string} */
27490
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
27491
+ };
27492
+ bankAccount: {
27493
+ source?: string;
27494
+ overrides: {
27495
+ [key: string]: string;
27496
+ };
27497
+ };
27498
+ description: {
27499
+ source?: string;
27500
+ };
27501
+ currency: {
27502
+ source?: string;
27503
+ };
27504
+ reservation: {
27505
+ source?: string;
27506
+ overrides: {
27507
+ [key: string]: string;
27508
+ };
27509
+ };
27510
+ contact: {
27511
+ source?: string;
27512
+ overrides: {
27513
+ [key: string]: string;
27514
+ };
27515
+ };
27516
+ listing: {
27517
+ source?: string;
27518
+ overrides: {
27519
+ [key: string]: string;
27520
+ };
27521
+ };
27522
+ account: {
27523
+ source?: string;
27524
+ overrides: {
27525
+ [key: string]: string;
27526
+ };
27527
+ };
27528
+ lineDescription: {
27529
+ source?: string;
27530
+ };
27531
+ appliedAmount: {
27532
+ source?: string;
27533
+ };
27534
+ merchantFee: {
27535
+ source?: string;
27536
+ };
27537
+ channelFee: {
27538
+ source?: string;
27539
+ };
27540
+ reserve: {
27541
+ source?: string;
27542
+ };
27543
+ coHostPayout: {
27544
+ source?: string;
27545
+ };
27546
+ vat: {
27547
+ source?: string;
27548
+ };
27549
+ };
27550
+ };
27551
+ totals: {
27552
+ rows: number;
27553
+ deposits: number;
27554
+ valid: number;
27555
+ invalid: number;
27556
+ excluded: number;
27557
+ applied: number;
27558
+ merchantFee: number;
27559
+ channelFee: number;
27560
+ reserve: number;
27561
+ coHostPayout: number;
27562
+ vat: number;
27563
+ net: number;
27564
+ byCurrency: {
27565
+ [key: string]: {
27566
+ applied: number;
27567
+ merchantFee: number;
27568
+ channelFee: number;
27569
+ reserve: number;
27570
+ coHostPayout: number;
27571
+ vat: number;
27572
+ net: number;
27573
+ };
27574
+ };
27575
+ };
27576
+ };
27577
+ } | {
27578
+ /** @constant */
27579
+ status: "failed";
27580
+ /** Format: uuid */
27581
+ previewId: string;
27582
+ /** Format: uuid */
27583
+ syncId: string;
27584
+ error: string;
27585
+ };
27586
+ };
27587
+ };
27588
+ };
27589
+ /** @description Bad request */
27590
+ 400: {
27591
+ headers: {
27592
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27593
+ "Retry-After"?: number;
27594
+ [name: string]: unknown;
27595
+ };
27596
+ content: {
27597
+ "application/json": {
27598
+ code: string;
27599
+ message: string;
27600
+ links?: {
27601
+ docs: string;
27602
+ schema: string;
27603
+ };
27604
+ issues?: {
27605
+ message: string;
27606
+ path?: (string | number)[];
27607
+ schema?: string;
27608
+ }[];
27609
+ retryable?: boolean;
27610
+ context?: unknown;
27611
+ };
27612
+ };
27613
+ };
27614
+ /** @description Unauthorized */
27615
+ 401: {
27616
+ headers: {
27617
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27618
+ "Retry-After"?: number;
27619
+ [name: string]: unknown;
27620
+ };
27621
+ content: {
27622
+ "application/json": {
27623
+ code: string;
27624
+ message: string;
27625
+ links?: {
27626
+ docs: string;
27627
+ schema: string;
27628
+ };
27629
+ issues?: {
27630
+ message: string;
27631
+ path?: (string | number)[];
27632
+ schema?: string;
27633
+ }[];
27634
+ retryable?: boolean;
27635
+ context?: unknown;
27636
+ };
27637
+ };
27638
+ };
27639
+ /** @description Forbidden */
27640
+ 403: {
27641
+ headers: {
27642
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27643
+ "Retry-After"?: number;
27644
+ [name: string]: unknown;
27645
+ };
27646
+ content: {
27647
+ "application/json": {
27648
+ code: string;
27649
+ message: string;
27650
+ links?: {
27651
+ docs: string;
27652
+ schema: string;
27653
+ };
27654
+ issues?: {
27655
+ message: string;
27656
+ path?: (string | number)[];
27657
+ schema?: string;
27658
+ }[];
27659
+ retryable?: boolean;
27660
+ context?: unknown;
27661
+ };
27662
+ };
27663
+ };
27664
+ /** @description Not found */
27665
+ 404: {
27666
+ headers: {
27667
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27668
+ "Retry-After"?: number;
27669
+ [name: string]: unknown;
27670
+ };
27671
+ content: {
27672
+ "application/json": {
27673
+ code: string;
27674
+ message: string;
27675
+ links?: {
27676
+ docs: string;
27677
+ schema: string;
27678
+ };
27679
+ issues?: {
27680
+ message: string;
27681
+ path?: (string | number)[];
27682
+ schema?: string;
27683
+ }[];
27684
+ retryable?: boolean;
27685
+ context?: unknown;
27686
+ };
27687
+ };
27688
+ };
27689
+ /** @description Conflict */
27690
+ 409: {
27691
+ headers: {
27692
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27693
+ "Retry-After"?: number;
27694
+ [name: string]: unknown;
27695
+ };
27696
+ content: {
27697
+ "application/json": {
27698
+ code: string;
27699
+ message: string;
27700
+ links?: {
27701
+ docs: string;
27702
+ schema: string;
27703
+ };
27704
+ issues?: {
27705
+ message: string;
27706
+ path?: (string | number)[];
27707
+ schema?: string;
27708
+ }[];
27709
+ retryable?: boolean;
27710
+ context?: unknown;
27711
+ };
27712
+ };
27713
+ };
27714
+ /** @description Gone */
27715
+ 410: {
27716
+ headers: {
27717
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27718
+ "Retry-After"?: number;
27719
+ [name: string]: unknown;
27720
+ };
27721
+ content: {
27722
+ "application/json": {
27723
+ code: string;
27724
+ message: string;
27725
+ links?: {
27726
+ docs: string;
27727
+ schema: string;
27728
+ };
27729
+ issues?: {
27730
+ message: string;
27731
+ path?: (string | number)[];
27732
+ schema?: string;
27733
+ }[];
27734
+ retryable?: boolean;
27735
+ context?: unknown;
27736
+ };
27737
+ };
27738
+ };
27739
+ /** @description Unprocessable content */
27740
+ 422: {
27741
+ headers: {
27742
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27743
+ "Retry-After"?: number;
27744
+ [name: string]: unknown;
27745
+ };
27746
+ content: {
27747
+ "application/json": {
27748
+ code: string;
27749
+ message: string;
27750
+ links?: {
27751
+ docs: string;
27752
+ schema: string;
27753
+ };
27754
+ issues?: {
27755
+ message: string;
27756
+ path?: (string | number)[];
27757
+ schema?: string;
27758
+ }[];
27759
+ retryable?: boolean;
27760
+ context?: unknown;
27761
+ };
27762
+ };
27763
+ };
27764
+ /** @description Internal server error */
27765
+ 500: {
27766
+ headers: {
27767
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27768
+ "Retry-After"?: number;
27769
+ [name: string]: unknown;
27770
+ };
27771
+ content: {
27772
+ "application/json": {
27773
+ code: string;
27774
+ message: string;
27775
+ links?: {
27776
+ docs: string;
27777
+ schema: string;
27778
+ };
27779
+ issues?: {
27780
+ message: string;
27781
+ path?: (string | number)[];
27782
+ schema?: string;
27783
+ }[];
27784
+ retryable?: boolean;
27785
+ context?: unknown;
27786
+ };
27787
+ };
27788
+ };
27789
+ /** @description Service unavailable */
27790
+ 503: {
27791
+ headers: {
27792
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
27793
+ "Retry-After"?: number;
27794
+ [name: string]: unknown;
27795
+ };
27796
+ content: {
27797
+ "application/json": {
27798
+ code: string;
27799
+ message: string;
27800
+ links?: {
27801
+ docs: string;
27802
+ schema: string;
27803
+ };
27804
+ issues?: {
27805
+ message: string;
27806
+ path?: (string | number)[];
27807
+ schema?: string;
27808
+ }[];
27809
+ retryable?: boolean;
27810
+ context?: unknown;
27811
+ };
27812
+ };
27813
+ };
27814
+ };
27815
+ };
27816
+ getConnectionsByIdCsvImportPreviewByPreviewId: {
27817
+ parameters: {
27818
+ query?: never;
27819
+ header?: never;
27820
+ path: {
27821
+ id: string;
27822
+ previewId: string;
27823
+ };
27824
+ cookie?: never;
27825
+ };
27826
+ requestBody?: never;
27827
+ responses: {
27828
+ /** @description Successful response */
27829
+ 200: {
27830
+ headers: {
27831
+ [name: string]: unknown;
27832
+ };
27833
+ content: {
27834
+ "application/json": {
27835
+ data: {
27836
+ /** @constant */
27837
+ status: "queued";
27838
+ /** Format: uuid */
27839
+ previewId: string;
27840
+ /** Format: uuid */
27841
+ syncId: string;
27842
+ } | {
27843
+ /** @constant */
27844
+ status: "processing";
27845
+ /** Format: uuid */
27846
+ previewId: string;
27847
+ /** Format: uuid */
27848
+ syncId: string;
27849
+ } | {
27850
+ /** @constant */
27851
+ status: "completed";
27852
+ /** Format: uuid */
27853
+ previewId: string;
27854
+ /** Format: uuid */
27855
+ syncId: string;
27856
+ result: {
27857
+ canImport: boolean;
27858
+ columns: string[];
27859
+ issues: {
27860
+ code: string;
27861
+ field?: string;
27862
+ rowNumber: number;
27863
+ message: string;
27864
+ }[];
27865
+ issueCounts: {
27866
+ [key: string]: number;
27867
+ };
27868
+ logicalRecordCount: number;
27869
+ resolutionCounts: {
27870
+ matched: number;
27871
+ unmatched: number;
27872
+ ambiguous: number;
27873
+ };
27874
+ sourceHash: string;
27875
+ /** @constant */
27876
+ resource: "bankRecords";
26390
27877
  mapping: {
27878
+ /** @constant */
27879
+ resource?: "bankRecords";
26391
27880
  /** @constant */
26392
27881
  version: 1;
26393
27882
  /** @enum {string} */
@@ -26432,7 +27921,6 @@ export interface operations {
26432
27921
  };
26433
27922
  }[];
26434
27923
  sampleRowsTruncated: boolean;
26435
- sourceHash: string;
26436
27924
  totals: {
26437
27925
  rows: number;
26438
27926
  valid: number;
@@ -26442,6 +27930,467 @@ export interface operations {
26442
27930
  moneyOut: number;
26443
27931
  net: number;
26444
27932
  };
27933
+ } | {
27934
+ canImport: boolean;
27935
+ columns: string[];
27936
+ issues: {
27937
+ code: string;
27938
+ field?: string;
27939
+ rowNumber: number;
27940
+ message: string;
27941
+ }[];
27942
+ issueCounts: {
27943
+ [key: string]: number;
27944
+ };
27945
+ logicalRecordCount: number;
27946
+ resolutionCounts: {
27947
+ matched: number;
27948
+ unmatched: number;
27949
+ ambiguous: number;
27950
+ };
27951
+ sourceHash: string;
27952
+ /** @constant */
27953
+ resource: "owners";
27954
+ mapping: {
27955
+ /** @constant */
27956
+ resource: "owners";
27957
+ /** @constant */
27958
+ version: 1;
27959
+ /** @enum {string} */
27960
+ delimiter: "," | ";" | "\t" | "|";
27961
+ headerRow: number;
27962
+ excludedRows: number[];
27963
+ fields: {
27964
+ listing: {
27965
+ source?: string;
27966
+ overrides: {
27967
+ [key: string]: string;
27968
+ };
27969
+ };
27970
+ ownerKind: {
27971
+ source?: string;
27972
+ /** @enum {string} */
27973
+ constant?: "individual" | "company";
27974
+ values: {
27975
+ [key: string]: "individual" | "company";
27976
+ };
27977
+ };
27978
+ firstName: {
27979
+ source?: string;
27980
+ };
27981
+ lastName: {
27982
+ source?: string;
27983
+ };
27984
+ companyName: {
27985
+ source?: string;
27986
+ };
27987
+ companyType: {
27988
+ source?: string;
27989
+ values: {
27990
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
27991
+ };
27992
+ };
27993
+ ownerReference: {
27994
+ source?: string;
27995
+ overrides: {
27996
+ [key: string]: string;
27997
+ };
27998
+ };
27999
+ email: {
28000
+ source?: string;
28001
+ };
28002
+ phone: {
28003
+ source?: string;
28004
+ };
28005
+ taxIdentifier: {
28006
+ source?: string;
28007
+ };
28008
+ address: {
28009
+ source?: string;
28010
+ };
28011
+ unit: {
28012
+ source?: string;
28013
+ };
28014
+ city: {
28015
+ source?: string;
28016
+ };
28017
+ state: {
28018
+ source?: string;
28019
+ };
28020
+ postalCode: {
28021
+ source?: string;
28022
+ };
28023
+ country: {
28024
+ source?: string;
28025
+ };
28026
+ payoutAccount: {
28027
+ source?: string;
28028
+ overrides: {
28029
+ [key: string]: string;
28030
+ };
28031
+ };
28032
+ };
28033
+ };
28034
+ totals: {
28035
+ rows: number;
28036
+ valid: number;
28037
+ invalid: number;
28038
+ excluded: number;
28039
+ owners: number;
28040
+ listings: number;
28041
+ create: number;
28042
+ update: number;
28043
+ conflicts: number;
28044
+ };
28045
+ } | {
28046
+ canImport: boolean;
28047
+ columns: string[];
28048
+ issues: {
28049
+ code: string;
28050
+ field?: string;
28051
+ rowNumber: number;
28052
+ message: string;
28053
+ }[];
28054
+ issueCounts: {
28055
+ [key: string]: number;
28056
+ };
28057
+ logicalRecordCount: number;
28058
+ resolutionCounts: {
28059
+ matched: number;
28060
+ unmatched: number;
28061
+ ambiguous: number;
28062
+ };
28063
+ sourceHash: string;
28064
+ /** @constant */
28065
+ resource: "expenses";
28066
+ mapping: {
28067
+ /** @constant */
28068
+ resource: "expenses";
28069
+ /** @constant */
28070
+ version: 1;
28071
+ /** @enum {string} */
28072
+ delimiter: "," | ";" | "\t" | "|";
28073
+ headerRow: number;
28074
+ excludedRows: number[];
28075
+ fields: {
28076
+ billReference: {
28077
+ source?: string;
28078
+ };
28079
+ issueDate: {
28080
+ source?: string;
28081
+ /** @enum {string} */
28082
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
28083
+ };
28084
+ vendor: {
28085
+ source?: string;
28086
+ overrides: {
28087
+ [key: string]: string;
28088
+ };
28089
+ };
28090
+ status: {
28091
+ source?: string;
28092
+ /** @enum {string} */
28093
+ constant?: "paid" | "unpaid";
28094
+ values: {
28095
+ [key: string]: "paid" | "unpaid";
28096
+ };
28097
+ };
28098
+ paymentDate: {
28099
+ source?: string;
28100
+ /** @enum {string} */
28101
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
28102
+ };
28103
+ bankAccount: {
28104
+ source?: string;
28105
+ overrides: {
28106
+ [key: string]: string;
28107
+ };
28108
+ };
28109
+ currency: {
28110
+ source?: string;
28111
+ };
28112
+ description: {
28113
+ source?: string;
28114
+ };
28115
+ lineDescription: {
28116
+ source?: string;
28117
+ };
28118
+ expenseAccount: {
28119
+ source?: string;
28120
+ overrides: {
28121
+ [key: string]: string;
28122
+ };
28123
+ };
28124
+ appliedAmount: {
28125
+ source?: string;
28126
+ };
28127
+ reservation: {
28128
+ source?: string;
28129
+ overrides: {
28130
+ [key: string]: string;
28131
+ };
28132
+ };
28133
+ listing: {
28134
+ source?: string;
28135
+ overrides: {
28136
+ [key: string]: string;
28137
+ };
28138
+ };
28139
+ billToOwner: {
28140
+ source?: string;
28141
+ constant?: boolean;
28142
+ values: {
28143
+ [key: string]: boolean;
28144
+ };
28145
+ };
28146
+ markup: {
28147
+ source?: string;
28148
+ };
28149
+ markupTax: {
28150
+ source?: string;
28151
+ overrides: {
28152
+ [key: string]: string;
28153
+ };
28154
+ };
28155
+ };
28156
+ };
28157
+ totals: {
28158
+ rows: number;
28159
+ expenses: number;
28160
+ valid: number;
28161
+ invalid: number;
28162
+ excluded: number;
28163
+ applied: number;
28164
+ markup: number;
28165
+ byCurrency: {
28166
+ [key: string]: {
28167
+ applied: number;
28168
+ markup: number;
28169
+ };
28170
+ };
28171
+ };
28172
+ } | {
28173
+ canImport: boolean;
28174
+ columns: string[];
28175
+ issues: {
28176
+ code: string;
28177
+ field?: string;
28178
+ rowNumber: number;
28179
+ message: string;
28180
+ }[];
28181
+ issueCounts: {
28182
+ [key: string]: number;
28183
+ };
28184
+ logicalRecordCount: number;
28185
+ resolutionCounts: {
28186
+ matched: number;
28187
+ unmatched: number;
28188
+ ambiguous: number;
28189
+ };
28190
+ sourceHash: string;
28191
+ /** @constant */
28192
+ resource: "vendors";
28193
+ mapping: {
28194
+ /** @constant */
28195
+ resource: "vendors";
28196
+ /** @constant */
28197
+ version: 1;
28198
+ /** @enum {string} */
28199
+ delimiter: "," | ";" | "\t" | "|";
28200
+ headerRow: number;
28201
+ excludedRows: number[];
28202
+ fields: {
28203
+ vendorKind: {
28204
+ source?: string;
28205
+ /** @enum {string} */
28206
+ constant?: "individual" | "company";
28207
+ values: {
28208
+ [key: string]: "individual" | "company";
28209
+ };
28210
+ };
28211
+ firstName: {
28212
+ source?: string;
28213
+ };
28214
+ lastName: {
28215
+ source?: string;
28216
+ };
28217
+ companyName: {
28218
+ source?: string;
28219
+ };
28220
+ companyType: {
28221
+ source?: string;
28222
+ values: {
28223
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
28224
+ };
28225
+ };
28226
+ vendorReference: {
28227
+ source?: string;
28228
+ overrides: {
28229
+ [key: string]: string;
28230
+ };
28231
+ };
28232
+ email: {
28233
+ source?: string;
28234
+ };
28235
+ phone: {
28236
+ source?: string;
28237
+ };
28238
+ taxIdentifier: {
28239
+ source?: string;
28240
+ };
28241
+ address: {
28242
+ source?: string;
28243
+ };
28244
+ unit: {
28245
+ source?: string;
28246
+ };
28247
+ city: {
28248
+ source?: string;
28249
+ };
28250
+ state: {
28251
+ source?: string;
28252
+ };
28253
+ postalCode: {
28254
+ source?: string;
28255
+ };
28256
+ country: {
28257
+ source?: string;
28258
+ };
28259
+ };
28260
+ };
28261
+ totals: {
28262
+ rows: number;
28263
+ valid: number;
28264
+ invalid: number;
28265
+ excluded: number;
28266
+ create: number;
28267
+ update: number;
28268
+ duplicate: number;
28269
+ ambiguous: number;
28270
+ };
28271
+ } | {
28272
+ canImport: boolean;
28273
+ columns: string[];
28274
+ issues: {
28275
+ code: string;
28276
+ field?: string;
28277
+ rowNumber: number;
28278
+ message: string;
28279
+ }[];
28280
+ issueCounts: {
28281
+ [key: string]: number;
28282
+ };
28283
+ logicalRecordCount: number;
28284
+ resolutionCounts: {
28285
+ matched: number;
28286
+ unmatched: number;
28287
+ ambiguous: number;
28288
+ };
28289
+ sourceHash: string;
28290
+ /** @constant */
28291
+ resource: "deposits";
28292
+ mapping: {
28293
+ /** @constant */
28294
+ resource: "deposits";
28295
+ /** @constant */
28296
+ version: 1;
28297
+ /** @enum {string} */
28298
+ delimiter: "," | ";" | "\t" | "|";
28299
+ headerRow: number;
28300
+ excludedRows: number[];
28301
+ fields: {
28302
+ reference: {
28303
+ source?: string;
28304
+ };
28305
+ date: {
28306
+ source?: string;
28307
+ /** @enum {string} */
28308
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
28309
+ };
28310
+ bankAccount: {
28311
+ source?: string;
28312
+ overrides: {
28313
+ [key: string]: string;
28314
+ };
28315
+ };
28316
+ description: {
28317
+ source?: string;
28318
+ };
28319
+ currency: {
28320
+ source?: string;
28321
+ };
28322
+ reservation: {
28323
+ source?: string;
28324
+ overrides: {
28325
+ [key: string]: string;
28326
+ };
28327
+ };
28328
+ contact: {
28329
+ source?: string;
28330
+ overrides: {
28331
+ [key: string]: string;
28332
+ };
28333
+ };
28334
+ listing: {
28335
+ source?: string;
28336
+ overrides: {
28337
+ [key: string]: string;
28338
+ };
28339
+ };
28340
+ account: {
28341
+ source?: string;
28342
+ overrides: {
28343
+ [key: string]: string;
28344
+ };
28345
+ };
28346
+ lineDescription: {
28347
+ source?: string;
28348
+ };
28349
+ appliedAmount: {
28350
+ source?: string;
28351
+ };
28352
+ merchantFee: {
28353
+ source?: string;
28354
+ };
28355
+ channelFee: {
28356
+ source?: string;
28357
+ };
28358
+ reserve: {
28359
+ source?: string;
28360
+ };
28361
+ coHostPayout: {
28362
+ source?: string;
28363
+ };
28364
+ vat: {
28365
+ source?: string;
28366
+ };
28367
+ };
28368
+ };
28369
+ totals: {
28370
+ rows: number;
28371
+ deposits: number;
28372
+ valid: number;
28373
+ invalid: number;
28374
+ excluded: number;
28375
+ applied: number;
28376
+ merchantFee: number;
28377
+ channelFee: number;
28378
+ reserve: number;
28379
+ coHostPayout: number;
28380
+ vat: number;
28381
+ net: number;
28382
+ byCurrency: {
28383
+ [key: string]: {
28384
+ applied: number;
28385
+ merchantFee: number;
28386
+ channelFee: number;
28387
+ reserve: number;
28388
+ coHostPayout: number;
28389
+ vat: number;
28390
+ net: number;
28391
+ };
28392
+ };
28393
+ };
26445
28394
  };
26446
28395
  } | {
26447
28396
  /** @constant */
@@ -26682,9 +28631,13 @@ export interface operations {
26682
28631
  };
26683
28632
  };
26684
28633
  };
26685
- getConnectionsByIdCsvImportPreviewByPreviewId: {
28634
+ getConnectionsByIdCsvImportPreviewByPreviewIdRecords: {
26686
28635
  parameters: {
26687
- query?: never;
28636
+ query?: {
28637
+ cursor?: string;
28638
+ limit?: number;
28639
+ state?: "all" | "valid" | "invalid" | "excluded" | "unresolved";
28640
+ };
26688
28641
  header?: never;
26689
28642
  path: {
26690
28643
  id: string;
@@ -26702,98 +28655,48 @@ export interface operations {
26702
28655
  content: {
26703
28656
  "application/json": {
26704
28657
  data: {
26705
- /** @constant */
26706
- status: "queued";
26707
- /** Format: uuid */
26708
- previewId: string;
26709
- /** Format: uuid */
26710
- syncId: string;
26711
- } | {
26712
- /** @constant */
26713
- status: "processing";
26714
- /** Format: uuid */
26715
- previewId: string;
26716
- /** Format: uuid */
26717
- syncId: string;
26718
- } | {
26719
- /** @constant */
26720
- status: "completed";
26721
- /** Format: uuid */
26722
- previewId: string;
26723
- /** Format: uuid */
26724
- syncId: string;
26725
- result: {
26726
- canImport: boolean;
26727
- columns: string[];
26728
- issues: {
26729
- rowNumber: number;
26730
- message: string;
26731
- }[];
26732
- mapping: {
26733
- /** @constant */
26734
- version: 1;
26735
- /** @enum {string} */
26736
- delimiter: "," | ";" | "\t" | "|";
26737
- headerRow: number;
26738
- date: {
26739
- source?: string | null;
26740
- format?: ("yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy") | null;
26741
- };
26742
- description: {
26743
- sources: string[];
26744
- /** @constant */
26745
- operation: "join";
26746
- };
26747
- amount: {
26748
- /** @enum {string} */
26749
- mode: "signed" | "debitCredit";
26750
- source?: string | null;
26751
- debit?: string | null;
26752
- credit?: string | null;
26753
- /** @constant */
26754
- debitSign: -1;
26755
- /** @constant */
26756
- creditSign: 1;
26757
- };
26758
- excludedRows: number[];
26759
- };
26760
- sampleRows: {
26761
- rowNumber: number;
26762
- source: {
26763
- [key: string]: string | null;
26764
- };
26765
- transformed?: {
26766
- Date: string;
26767
- Description: string;
26768
- Amount: number;
26769
- } | null;
26770
- systemExclusion?: {
26771
- /** @constant */
26772
- code: "beforeBankRecordStartDate";
26773
- bankRecordStartDate: string;
26774
- };
26775
- }[];
26776
- sampleRowsTruncated: boolean;
26777
- sourceHash: string;
26778
- totals: {
26779
- rows: number;
26780
- valid: number;
26781
- invalid: number;
26782
- excluded: number;
26783
- moneyIn: number;
26784
- moneyOut: number;
26785
- net: number;
26786
- };
28658
+ /** @enum {string} */
28659
+ resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
28660
+ recordRef: string;
28661
+ rowNumbers: number[];
28662
+ source: {
28663
+ [key: string]: string | null;
28664
+ }[];
28665
+ transformed?: {
28666
+ [key: string]: unknown;
28667
+ } | null;
28668
+ systemExclusion?: {
28669
+ /** @constant */
28670
+ code: "beforeBankRecordStartDate";
28671
+ bankRecordStartDate: string;
26787
28672
  };
26788
- } | {
26789
- /** @constant */
26790
- status: "failed";
26791
- /** Format: uuid */
26792
- previewId: string;
26793
- /** Format: uuid */
26794
- syncId: string;
26795
- error: string;
26796
- };
28673
+ resolutions: {
28674
+ field: string;
28675
+ sourceValue: string;
28676
+ /** @enum {string} */
28677
+ state: "matched" | "unmatched" | "ambiguous";
28678
+ candidates: {
28679
+ /** Format: uuid */
28680
+ id: string;
28681
+ label: string;
28682
+ secondaryLabel?: string;
28683
+ }[];
28684
+ candidateCount: number;
28685
+ candidatesTruncated: boolean;
28686
+ /** Format: uuid */
28687
+ selectedId?: string;
28688
+ }[];
28689
+ issues: {
28690
+ code: string;
28691
+ field?: string;
28692
+ rowNumber: number;
28693
+ message: string;
28694
+ }[];
28695
+ excluded: boolean;
28696
+ /** @enum {string} */
28697
+ state: "valid" | "invalid" | "excluded" | "unresolved";
28698
+ }[];
28699
+ nextCursor: string | null;
26797
28700
  };
26798
28701
  };
26799
28702
  };
@@ -28824,6 +30727,40 @@ export interface operations {
28824
30727
  id?: string | null;
28825
30728
  email?: string | null;
28826
30729
  }[];
30730
+ ownerGroups?: {
30731
+ /** Format: uuid */
30732
+ sourceId: string;
30733
+ /** Format: uuid */
30734
+ listingId: string;
30735
+ owners: {
30736
+ address?: {
30737
+ full?: string | null;
30738
+ line1?: string | null;
30739
+ line2?: string | null;
30740
+ city?: string | null;
30741
+ /** @description Deprecated, use stateCode instead */
30742
+ state?: string | null;
30743
+ postalCode?: string | null;
30744
+ stateCode?: string | null;
30745
+ countryCode?: string | null;
30746
+ } | null;
30747
+ firstName?: string | null;
30748
+ name?: string | null;
30749
+ phone?: string | null;
30750
+ connectionId?: string | null;
30751
+ companyType?: ("c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate") | null;
30752
+ taxIdentifier?: string | null;
30753
+ sourceId?: string | null;
30754
+ uniqueRef?: string | null;
30755
+ payoutAccountId?: string | null;
30756
+ id?: string | null;
30757
+ email?: string | null;
30758
+ /** @constant */
30759
+ type: "owner";
30760
+ /** @constant */
30761
+ status: "active";
30762
+ }[];
30763
+ }[];
28827
30764
  };
28828
30765
  };
28829
30766
  };
@@ -133163,6 +135100,7 @@ export interface operations {
133163
135100
  "application/json": {
133164
135101
  /** Format: uuid */
133165
135102
  connectionId: string;
135103
+ createOnly?: boolean;
133166
135104
  data: {
133167
135105
  description?: string;
133168
135106
  status?: ("active" | "inactive") | null;