@vrplatform/api 1.3.1-stage.6419 → 1.3.1-stage.6423

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.
@@ -1314,7 +1314,7 @@ export interface paths {
1314
1314
  patch?: never;
1315
1315
  trace?: never;
1316
1316
  };
1317
- "/csv-imports/imports/{importId}": {
1317
+ "/csv-imports/presets": {
1318
1318
  parameters: {
1319
1319
  query?: never;
1320
1320
  header?: never;
@@ -1322,11 +1322,11 @@ export interface paths {
1322
1322
  cookie?: never;
1323
1323
  };
1324
1324
  /**
1325
- * @description Read durable CSV import status without retrieving Trigger.dev output.
1325
+ * @description List CSV presets and configuration fields.
1326
1326
  *
1327
1327
  * Required scope: integrations:import
1328
1328
  */
1329
- get: operations["getCsvImportsImportsByImportId"];
1329
+ get: operations["getCsvImportsPresets"];
1330
1330
  put?: never;
1331
1331
  post?: never;
1332
1332
  delete?: never;
@@ -1335,28 +1335,28 @@ export interface paths {
1335
1335
  patch?: never;
1336
1336
  trace?: never;
1337
1337
  };
1338
- "/csv-imports/imports/{importId}/records": {
1338
+ "/csv-imports/previews": {
1339
1339
  parameters: {
1340
1340
  query?: never;
1341
1341
  header?: never;
1342
1342
  path?: never;
1343
1343
  cookie?: never;
1344
1344
  };
1345
+ get?: never;
1346
+ put?: never;
1345
1347
  /**
1346
- * @description Page bounded per-record outcomes from a completed or partially failed CSV import.
1348
+ * @description Create a CSV preview.
1347
1349
  *
1348
1350
  * Required scope: integrations:import
1349
1351
  */
1350
- get: operations["getCsvImportsImportsByImportIdRecords"];
1351
- put?: never;
1352
- post?: never;
1352
+ post: operations["postCsvImportsPreviews"];
1353
1353
  delete?: never;
1354
1354
  options?: never;
1355
1355
  head?: never;
1356
1356
  patch?: never;
1357
1357
  trace?: never;
1358
1358
  };
1359
- "/csv-imports/presets": {
1359
+ "/csv-imports/previews/{id}": {
1360
1360
  parameters: {
1361
1361
  query?: never;
1362
1362
  header?: never;
@@ -1364,11 +1364,11 @@ export interface paths {
1364
1364
  cookie?: never;
1365
1365
  };
1366
1366
  /**
1367
- * @description List API-owned CSV source presets and generic UI setting definitions.
1367
+ * @description Get CSV preview status.
1368
1368
  *
1369
1369
  * Required scope: integrations:import
1370
1370
  */
1371
- get: operations["getCsvImportsPresets"];
1371
+ get: operations["getCsvImportsPreviewsById"];
1372
1372
  put?: never;
1373
1373
  post?: never;
1374
1374
  delete?: never;
@@ -1377,7 +1377,7 @@ export interface paths {
1377
1377
  patch?: never;
1378
1378
  trace?: never;
1379
1379
  };
1380
- "/csv-imports/previews": {
1380
+ "/csv-imports/previews/{id}/confirm": {
1381
1381
  parameters: {
1382
1382
  query?: never;
1383
1383
  header?: never;
@@ -1387,18 +1387,18 @@ export interface paths {
1387
1387
  get?: never;
1388
1388
  put?: never;
1389
1389
  /**
1390
- * @description Queue an API-owned CSV preview from a preset, mapping, or automatic mapping selection.
1390
+ * @description Confirm a completed CSV preview and create an import.
1391
1391
  *
1392
1392
  * Required scope: integrations:import
1393
1393
  */
1394
- post: operations["postCsvImportsPreviews"];
1394
+ post: operations["postCsvImportsPreviewsByIdConfirm"];
1395
1395
  delete?: never;
1396
1396
  options?: never;
1397
1397
  head?: never;
1398
1398
  patch?: never;
1399
1399
  trace?: never;
1400
1400
  };
1401
- "/csv-imports/previews/{previewId}": {
1401
+ "/csv-imports/previews/{id}/records": {
1402
1402
  parameters: {
1403
1403
  query?: never;
1404
1404
  header?: never;
@@ -1406,11 +1406,11 @@ export interface paths {
1406
1406
  cookie?: never;
1407
1407
  };
1408
1408
  /**
1409
- * @description Read durable CSV preview status without retrieving Trigger.dev output.
1409
+ * @description List records from a completed CSV preview.
1410
1410
  *
1411
1411
  * Required scope: integrations:import
1412
1412
  */
1413
- get: operations["getCsvImportsPreviewsByPreviewId"];
1413
+ get: operations["getCsvImportsPreviewsByIdRecords"];
1414
1414
  put?: never;
1415
1415
  post?: never;
1416
1416
  delete?: never;
@@ -1419,49 +1419,49 @@ export interface paths {
1419
1419
  patch?: never;
1420
1420
  trace?: never;
1421
1421
  };
1422
- "/csv-imports/previews/{previewId}/confirm": {
1422
+ "/csv-imports/resources/{resource}": {
1423
1423
  parameters: {
1424
1424
  query?: never;
1425
1425
  header?: never;
1426
1426
  path?: never;
1427
1427
  cookie?: never;
1428
1428
  };
1429
- get?: never;
1430
- put?: never;
1431
1429
  /**
1432
- * @description Confirm the exact immutable preview plan without resending source configuration or mapping.
1430
+ * @description Get generic CSV mapping fields and supported row shapes for a resource.
1433
1431
  *
1434
1432
  * Required scope: integrations:import
1435
1433
  */
1436
- post: operations["postCsvImportsPreviewsByPreviewIdConfirm"];
1434
+ get: operations["getCsvImportsResourcesByResource"];
1435
+ put?: never;
1436
+ post?: never;
1437
1437
  delete?: never;
1438
1438
  options?: never;
1439
1439
  head?: never;
1440
1440
  patch?: never;
1441
1441
  trace?: never;
1442
1442
  };
1443
- "/csv-imports/previews/{previewId}/records": {
1443
+ "/csv-imports/uploads": {
1444
1444
  parameters: {
1445
1445
  query?: never;
1446
1446
  header?: never;
1447
1447
  path?: never;
1448
1448
  cookie?: never;
1449
1449
  };
1450
+ get?: never;
1451
+ put?: never;
1450
1452
  /**
1451
- * @description Page every canonical logical record from an immutable CSV preview plan.
1453
+ * @description Create a CSV upload reference and 24-hour upload URL.
1452
1454
  *
1453
1455
  * Required scope: integrations:import
1454
1456
  */
1455
- get: operations["getCsvImportsPreviewsByPreviewIdRecords"];
1456
- put?: never;
1457
- post?: never;
1457
+ post: operations["postCsvImportsUploads"];
1458
1458
  delete?: never;
1459
1459
  options?: never;
1460
1460
  head?: never;
1461
1461
  patch?: never;
1462
1462
  trace?: never;
1463
1463
  };
1464
- "/csv-imports/resources/{resource}": {
1464
+ "/csv-imports/uploads/{uploadRef}": {
1465
1465
  parameters: {
1466
1466
  query?: never;
1467
1467
  header?: never;
@@ -1469,12 +1469,17 @@ export interface paths {
1469
1469
  cookie?: never;
1470
1470
  };
1471
1471
  /**
1472
- * @description Get generic CSV mapping fields and supported row shapes for a resource.
1472
+ * @description Get source inspection for an existing CSV upload.
1473
1473
  *
1474
1474
  * Required scope: integrations:import
1475
1475
  */
1476
- get: operations["getCsvImportsResourcesByResource"];
1477
- put?: never;
1476
+ get: operations["getCsvImportsUploadsByUploadRef"];
1477
+ /**
1478
+ * @description Upload the raw CSV body and return source inspection.
1479
+ *
1480
+ * Required scope: integrations:import
1481
+ */
1482
+ put: operations["putCsvImportsUploadsByUploadRef"];
1478
1483
  post?: never;
1479
1484
  delete?: never;
1480
1485
  options?: never;
@@ -1482,28 +1487,28 @@ export interface paths {
1482
1487
  patch?: never;
1483
1488
  trace?: never;
1484
1489
  };
1485
- "/csv-imports/uploads": {
1490
+ "/csv-imports/{id}": {
1486
1491
  parameters: {
1487
1492
  query?: never;
1488
1493
  header?: never;
1489
1494
  path?: never;
1490
1495
  cookie?: never;
1491
1496
  };
1492
- get?: never;
1493
- put?: never;
1494
1497
  /**
1495
- * @description Create a 24-hour tenant-scoped CSV upload without exposing the internal CSV Connection.
1498
+ * @description Get CSV import status.
1496
1499
  *
1497
1500
  * Required scope: integrations:import
1498
1501
  */
1499
- post: operations["postCsvImportsUploads"];
1502
+ get: operations["getCsvImportsById"];
1503
+ put?: never;
1504
+ post?: never;
1500
1505
  delete?: never;
1501
1506
  options?: never;
1502
1507
  head?: never;
1503
1508
  patch?: never;
1504
1509
  trace?: never;
1505
1510
  };
1506
- "/csv-imports/uploads/{uploadRef}": {
1511
+ "/csv-imports/{id}/records": {
1507
1512
  parameters: {
1508
1513
  query?: never;
1509
1514
  header?: never;
@@ -1511,17 +1516,12 @@ export interface paths {
1511
1516
  cookie?: never;
1512
1517
  };
1513
1518
  /**
1514
- * @description Repeat bounded inspection for an existing unexpired upload.
1519
+ * @description List records from a completed or failed CSV import.
1515
1520
  *
1516
1521
  * Required scope: integrations:import
1517
1522
  */
1518
- get: operations["getCsvImportsUploadsByUploadRef"];
1519
- /**
1520
- * @description Stream a CSV into regional storage and return bounded API-owned source inspection.
1521
- *
1522
- * Required scope: integrations:import
1523
- */
1524
- put: operations["putCsvImportsUploadsByUploadRef"];
1523
+ get: operations["getCsvImportsByIdRecords"];
1524
+ put?: never;
1525
1525
  post?: never;
1526
1526
  delete?: never;
1527
1527
  options?: never;
@@ -31696,301 +31696,13 @@ export interface operations {
31696
31696
  };
31697
31697
  };
31698
31698
  };
31699
- getCsvImportsImportsByImportId: {
31700
- parameters: {
31701
- query?: never;
31702
- header?: never;
31703
- path: {
31704
- importId: string;
31705
- };
31706
- cookie?: never;
31707
- };
31708
- requestBody?: never;
31709
- responses: {
31710
- /** @description Successful response */
31711
- 200: {
31712
- headers: {
31713
- [name: string]: unknown;
31714
- };
31715
- content: {
31716
- "application/json": {
31717
- data: {
31718
- /** @constant */
31719
- status: "queued";
31720
- /** Format: uuid */
31721
- importId: string;
31722
- } | {
31723
- /** @constant */
31724
- status: "processing";
31725
- /** Format: uuid */
31726
- importId: string;
31727
- } | {
31728
- /** @constant */
31729
- status: "completed";
31730
- /** Format: uuid */
31731
- importId: string;
31732
- outcome: {
31733
- created: number;
31734
- updated: number;
31735
- existing: number;
31736
- failed: number;
31737
- skipped: number;
31738
- };
31739
- } | {
31740
- /** @constant */
31741
- status: "failed";
31742
- /** Format: uuid */
31743
- importId: string;
31744
- errorCode: string;
31745
- outcome?: {
31746
- created: number;
31747
- updated: number;
31748
- existing: number;
31749
- failed: number;
31750
- skipped: number;
31751
- };
31752
- };
31753
- };
31754
- };
31755
- };
31756
- /** @description Bad request */
31757
- 400: {
31758
- headers: {
31759
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31760
- "Retry-After"?: number;
31761
- [name: string]: unknown;
31762
- };
31763
- content: {
31764
- "application/json": {
31765
- code: string;
31766
- message: string;
31767
- links?: {
31768
- docs: string;
31769
- schema: string;
31770
- };
31771
- issues?: {
31772
- message: string;
31773
- path?: (string | number)[];
31774
- schema?: string;
31775
- }[];
31776
- retryable?: boolean;
31777
- context?: unknown;
31778
- };
31779
- };
31780
- };
31781
- /** @description Unauthorized */
31782
- 401: {
31783
- headers: {
31784
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31785
- "Retry-After"?: number;
31786
- [name: string]: unknown;
31787
- };
31788
- content: {
31789
- "application/json": {
31790
- code: string;
31791
- message: string;
31792
- links?: {
31793
- docs: string;
31794
- schema: string;
31795
- };
31796
- issues?: {
31797
- message: string;
31798
- path?: (string | number)[];
31799
- schema?: string;
31800
- }[];
31801
- retryable?: boolean;
31802
- context?: unknown;
31803
- };
31804
- };
31805
- };
31806
- /** @description Forbidden */
31807
- 403: {
31808
- headers: {
31809
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31810
- "Retry-After"?: number;
31811
- [name: string]: unknown;
31812
- };
31813
- content: {
31814
- "application/json": {
31815
- code: string;
31816
- message: string;
31817
- links?: {
31818
- docs: string;
31819
- schema: string;
31820
- };
31821
- issues?: {
31822
- message: string;
31823
- path?: (string | number)[];
31824
- schema?: string;
31825
- }[];
31826
- retryable?: boolean;
31827
- context?: unknown;
31828
- };
31829
- };
31830
- };
31831
- /** @description Not found */
31832
- 404: {
31833
- headers: {
31834
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31835
- "Retry-After"?: number;
31836
- [name: string]: unknown;
31837
- };
31838
- content: {
31839
- "application/json": {
31840
- code: string;
31841
- message: string;
31842
- links?: {
31843
- docs: string;
31844
- schema: string;
31845
- };
31846
- issues?: {
31847
- message: string;
31848
- path?: (string | number)[];
31849
- schema?: string;
31850
- }[];
31851
- retryable?: boolean;
31852
- context?: unknown;
31853
- };
31854
- };
31855
- };
31856
- /** @description Conflict */
31857
- 409: {
31858
- headers: {
31859
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31860
- "Retry-After"?: number;
31861
- [name: string]: unknown;
31862
- };
31863
- content: {
31864
- "application/json": {
31865
- code: string;
31866
- message: string;
31867
- links?: {
31868
- docs: string;
31869
- schema: string;
31870
- };
31871
- issues?: {
31872
- message: string;
31873
- path?: (string | number)[];
31874
- schema?: string;
31875
- }[];
31876
- retryable?: boolean;
31877
- context?: unknown;
31878
- };
31879
- };
31880
- };
31881
- /** @description Gone */
31882
- 410: {
31883
- headers: {
31884
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31885
- "Retry-After"?: number;
31886
- [name: string]: unknown;
31887
- };
31888
- content: {
31889
- "application/json": {
31890
- code: string;
31891
- message: string;
31892
- links?: {
31893
- docs: string;
31894
- schema: string;
31895
- };
31896
- issues?: {
31897
- message: string;
31898
- path?: (string | number)[];
31899
- schema?: string;
31900
- }[];
31901
- retryable?: boolean;
31902
- context?: unknown;
31903
- };
31904
- };
31905
- };
31906
- /** @description Unprocessable content */
31907
- 422: {
31908
- headers: {
31909
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31910
- "Retry-After"?: number;
31911
- [name: string]: unknown;
31912
- };
31913
- content: {
31914
- "application/json": {
31915
- code: string;
31916
- message: string;
31917
- links?: {
31918
- docs: string;
31919
- schema: string;
31920
- };
31921
- issues?: {
31922
- message: string;
31923
- path?: (string | number)[];
31924
- schema?: string;
31925
- }[];
31926
- retryable?: boolean;
31927
- context?: unknown;
31928
- };
31929
- };
31930
- };
31931
- /** @description Internal server error */
31932
- 500: {
31933
- headers: {
31934
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31935
- "Retry-After"?: number;
31936
- [name: string]: unknown;
31937
- };
31938
- content: {
31939
- "application/json": {
31940
- code: string;
31941
- message: string;
31942
- links?: {
31943
- docs: string;
31944
- schema: string;
31945
- };
31946
- issues?: {
31947
- message: string;
31948
- path?: (string | number)[];
31949
- schema?: string;
31950
- }[];
31951
- retryable?: boolean;
31952
- context?: unknown;
31953
- };
31954
- };
31955
- };
31956
- /** @description Service unavailable */
31957
- 503: {
31958
- headers: {
31959
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
31960
- "Retry-After"?: number;
31961
- [name: string]: unknown;
31962
- };
31963
- content: {
31964
- "application/json": {
31965
- code: string;
31966
- message: string;
31967
- links?: {
31968
- docs: string;
31969
- schema: string;
31970
- };
31971
- issues?: {
31972
- message: string;
31973
- path?: (string | number)[];
31974
- schema?: string;
31975
- }[];
31976
- retryable?: boolean;
31977
- context?: unknown;
31978
- };
31979
- };
31980
- };
31981
- };
31982
- };
31983
- getCsvImportsImportsByImportIdRecords: {
31699
+ getCsvImportsPresets: {
31984
31700
  parameters: {
31985
31701
  query?: {
31986
- cursor?: string;
31987
- limit?: number;
31988
- state?: "all" | ("created" | "updated" | "existing" | "skipped" | "failed");
31702
+ resource?: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
31989
31703
  };
31990
31704
  header?: never;
31991
- path: {
31992
- importId: string;
31993
- };
31705
+ path?: never;
31994
31706
  cookie?: never;
31995
31707
  };
31996
31708
  requestBody?: never;
@@ -32003,320 +31715,55 @@ export interface operations {
32003
31715
  content: {
32004
31716
  "application/json": {
32005
31717
  data: {
32006
- recordRef: string;
32007
- rowNumbers: number[];
31718
+ id: string;
31719
+ version: number;
32008
31720
  /** @enum {string} */
32009
- state: "created" | "updated" | "existing" | "skipped" | "failed";
32010
- entityIds: string[];
32011
- issues: {
32012
- code: string;
32013
- field?: string;
32014
- rowNumber: number;
32015
- message: string;
32016
- details?: {
32017
- [key: string]: unknown;
32018
- };
32019
- }[];
32020
- }[];
32021
- nextCursor: string | null;
32022
- };
32023
- };
32024
- };
32025
- /** @description Bad request */
32026
- 400: {
32027
- headers: {
32028
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32029
- "Retry-After"?: number;
32030
- [name: string]: unknown;
32031
- };
32032
- content: {
32033
- "application/json": {
32034
- code: string;
32035
- message: string;
32036
- links?: {
32037
- docs: string;
32038
- schema: string;
32039
- };
32040
- issues?: {
32041
- message: string;
32042
- path?: (string | number)[];
32043
- schema?: string;
32044
- }[];
32045
- retryable?: boolean;
32046
- context?: unknown;
32047
- };
32048
- };
32049
- };
32050
- /** @description Unauthorized */
32051
- 401: {
32052
- headers: {
32053
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32054
- "Retry-After"?: number;
32055
- [name: string]: unknown;
32056
- };
32057
- content: {
32058
- "application/json": {
32059
- code: string;
32060
- message: string;
32061
- links?: {
32062
- docs: string;
32063
- schema: string;
32064
- };
32065
- issues?: {
32066
- message: string;
32067
- path?: (string | number)[];
32068
- schema?: string;
32069
- }[];
32070
- retryable?: boolean;
32071
- context?: unknown;
32072
- };
32073
- };
32074
- };
32075
- /** @description Forbidden */
32076
- 403: {
32077
- headers: {
32078
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32079
- "Retry-After"?: number;
32080
- [name: string]: unknown;
32081
- };
32082
- content: {
32083
- "application/json": {
32084
- code: string;
32085
- message: string;
32086
- links?: {
32087
- docs: string;
32088
- schema: string;
32089
- };
32090
- issues?: {
32091
- message: string;
32092
- path?: (string | number)[];
32093
- schema?: string;
32094
- }[];
32095
- retryable?: boolean;
32096
- context?: unknown;
32097
- };
32098
- };
32099
- };
32100
- /** @description Not found */
32101
- 404: {
32102
- headers: {
32103
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32104
- "Retry-After"?: number;
32105
- [name: string]: unknown;
32106
- };
32107
- content: {
32108
- "application/json": {
32109
- code: string;
32110
- message: string;
32111
- links?: {
32112
- docs: string;
32113
- schema: string;
32114
- };
32115
- issues?: {
32116
- message: string;
32117
- path?: (string | number)[];
32118
- schema?: string;
32119
- }[];
32120
- retryable?: boolean;
32121
- context?: unknown;
32122
- };
32123
- };
32124
- };
32125
- /** @description Conflict */
32126
- 409: {
32127
- headers: {
32128
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32129
- "Retry-After"?: number;
32130
- [name: string]: unknown;
32131
- };
32132
- content: {
32133
- "application/json": {
32134
- code: string;
32135
- message: string;
32136
- links?: {
32137
- docs: string;
32138
- schema: string;
32139
- };
32140
- issues?: {
32141
- message: string;
32142
- path?: (string | number)[];
32143
- schema?: string;
32144
- }[];
32145
- retryable?: boolean;
32146
- context?: unknown;
32147
- };
32148
- };
32149
- };
32150
- /** @description Gone */
32151
- 410: {
32152
- headers: {
32153
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32154
- "Retry-After"?: number;
32155
- [name: string]: unknown;
32156
- };
32157
- content: {
32158
- "application/json": {
32159
- code: string;
32160
- message: string;
32161
- links?: {
32162
- docs: string;
32163
- schema: string;
32164
- };
32165
- issues?: {
32166
- message: string;
32167
- path?: (string | number)[];
32168
- schema?: string;
32169
- }[];
32170
- retryable?: boolean;
32171
- context?: unknown;
32172
- };
32173
- };
32174
- };
32175
- /** @description Unprocessable content */
32176
- 422: {
32177
- headers: {
32178
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32179
- "Retry-After"?: number;
32180
- [name: string]: unknown;
32181
- };
32182
- content: {
32183
- "application/json": {
32184
- code: string;
32185
- message: string;
32186
- links?: {
32187
- docs: string;
32188
- schema: string;
32189
- };
32190
- issues?: {
32191
- message: string;
32192
- path?: (string | number)[];
32193
- schema?: string;
32194
- }[];
32195
- retryable?: boolean;
32196
- context?: unknown;
32197
- };
32198
- };
32199
- };
32200
- /** @description Internal server error */
32201
- 500: {
32202
- headers: {
32203
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32204
- "Retry-After"?: number;
32205
- [name: string]: unknown;
32206
- };
32207
- content: {
32208
- "application/json": {
32209
- code: string;
32210
- message: string;
32211
- links?: {
32212
- docs: string;
32213
- schema: string;
32214
- };
32215
- issues?: {
32216
- message: string;
32217
- path?: (string | number)[];
32218
- schema?: string;
32219
- }[];
32220
- retryable?: boolean;
32221
- context?: unknown;
32222
- };
32223
- };
32224
- };
32225
- /** @description Service unavailable */
32226
- 503: {
32227
- headers: {
32228
- /** @description Seconds to wait when retryable=true and the server supplies a delay. */
32229
- "Retry-After"?: number;
32230
- [name: string]: unknown;
32231
- };
32232
- content: {
32233
- "application/json": {
32234
- code: string;
32235
- message: string;
32236
- links?: {
32237
- docs: string;
32238
- schema: string;
32239
- };
32240
- issues?: {
32241
- message: string;
32242
- path?: (string | number)[];
32243
- schema?: string;
32244
- }[];
32245
- retryable?: boolean;
32246
- context?: unknown;
32247
- };
32248
- };
32249
- };
32250
- };
32251
- };
32252
- getCsvImportsPresets: {
32253
- parameters: {
32254
- query?: {
32255
- resource?: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
32256
- };
32257
- header?: never;
32258
- path?: never;
32259
- cookie?: never;
32260
- };
32261
- requestBody?: never;
32262
- responses: {
32263
- /** @description Successful response */
32264
- 200: {
32265
- headers: {
32266
- [name: string]: unknown;
32267
- };
32268
- content: {
32269
- "application/json": {
32270
- data: {
32271
- id: string;
32272
- version: number;
32273
- /** @enum {string} */
32274
- resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
32275
- label: string;
32276
- description: string;
32277
- variants: string[];
32278
- settings: ({
32279
- key: string;
32280
- label: string;
32281
- description: string;
32282
- /** @constant */
32283
- control: "account";
32284
- required: boolean;
32285
- /** @enum {string} */
32286
- accountPurpose: "bank" | "clearing" | "expense" | "other";
32287
- } | {
32288
- key: string;
32289
- label: string;
32290
- description: string;
32291
- /** @constant */
32292
- control: "accountMap";
32293
- required: boolean;
32294
- /** @enum {string} */
32295
- accountPurpose: "bank" | "clearing" | "expense" | "other";
32296
- } | {
32297
- key: string;
32298
- label: string;
32299
- description: string;
32300
- /** @constant */
32301
- control: "string";
32302
- required: boolean;
32303
- } | {
32304
- key: string;
32305
- label: string;
32306
- description: string;
32307
- /** @constant */
32308
- control: "percentage";
32309
- required: boolean;
32310
- minimum: number;
32311
- maximum: number;
32312
- } | {
32313
- key: string;
32314
- label: string;
32315
- description: string;
32316
- /** @constant */
32317
- control: "currencyMoneyMap";
32318
- required: boolean;
32319
- })[];
31721
+ resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
31722
+ label: string;
31723
+ description: string;
31724
+ variants: string[];
31725
+ settings: ({
31726
+ key: string;
31727
+ label: string;
31728
+ description: string;
31729
+ /** @constant */
31730
+ control: "account";
31731
+ required: boolean;
31732
+ /** @enum {string} */
31733
+ accountPurpose: "bank" | "clearing" | "expense" | "other";
31734
+ } | {
31735
+ key: string;
31736
+ label: string;
31737
+ description: string;
31738
+ /** @constant */
31739
+ control: "accountMap";
31740
+ required: boolean;
31741
+ /** @enum {string} */
31742
+ accountPurpose: "bank" | "clearing" | "expense" | "other";
31743
+ } | {
31744
+ key: string;
31745
+ label: string;
31746
+ description: string;
31747
+ /** @constant */
31748
+ control: "string";
31749
+ required: boolean;
31750
+ } | {
31751
+ key: string;
31752
+ label: string;
31753
+ description: string;
31754
+ /** @constant */
31755
+ control: "percentage";
31756
+ required: boolean;
31757
+ minimum: number;
31758
+ maximum: number;
31759
+ } | {
31760
+ key: string;
31761
+ label: string;
31762
+ description: string;
31763
+ /** @constant */
31764
+ control: "currencyMoneyMap";
31765
+ required: boolean;
31766
+ })[];
32320
31767
  }[];
32321
31768
  };
32322
31769
  };
@@ -32559,9 +32006,7 @@ export interface operations {
32559
32006
  content: {
32560
32007
  "application/json": {
32561
32008
  uploadRef: string;
32562
- /** @enum {string} */
32563
- resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
32564
- source: {
32009
+ selection: {
32565
32010
  /** @constant */
32566
32011
  type: "preset";
32567
32012
  id: string;
@@ -32921,7 +32366,7 @@ export interface operations {
32921
32366
  accountId?: string;
32922
32367
  } | {
32923
32368
  /** @constant */
32924
- type: "detect";
32369
+ type: "detection";
32925
32370
  /** Format: uuid */
32926
32371
  accountId?: string;
32927
32372
  };
@@ -32936,565 +32381,549 @@ export interface operations {
32936
32381
  };
32937
32382
  content: {
32938
32383
  "application/json": {
32939
- data: {
32940
- /** @constant */
32941
- status: "queued";
32942
- /** Format: uuid */
32943
- previewId: string;
32944
- } | {
32945
- /** @constant */
32946
- status: "processing";
32947
- /** Format: uuid */
32948
- previewId: string;
32949
- } | {
32950
- /** @constant */
32951
- status: "completed";
32952
- /** Format: uuid */
32953
- previewId: string;
32954
- result: {
32384
+ /** Format: uuid */
32385
+ id: string;
32386
+ /** @enum {string} */
32387
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
32388
+ result?: {
32389
+ logicalRecordCount: number;
32390
+ stateCounts: {
32391
+ valid: number;
32392
+ invalid: number;
32393
+ unresolved: number;
32394
+ excluded: number;
32395
+ };
32396
+ issueCounts: {
32397
+ [key: string]: number;
32398
+ };
32399
+ fileHash: string;
32400
+ planHash: string;
32401
+ details?: {
32402
+ canImport: boolean;
32403
+ columns: string[];
32404
+ issues: {
32405
+ code: string;
32406
+ field?: string;
32407
+ rowNumber: number;
32408
+ message: string;
32409
+ }[];
32410
+ issueCounts: {
32411
+ [key: string]: number;
32412
+ };
32955
32413
  logicalRecordCount: number;
32956
- stateCounts: {
32414
+ resolutionCounts: {
32415
+ matched: number;
32416
+ unmatched: number;
32417
+ ambiguous: number;
32418
+ };
32419
+ fileHash: string;
32420
+ /** @constant */
32421
+ resource: "bankRecords";
32422
+ mapping: {
32423
+ /** @constant */
32424
+ resource: "bankRecords";
32425
+ /** @constant */
32426
+ version: 1;
32427
+ /** @enum {string} */
32428
+ delimiter: "," | ";" | "\t" | "|";
32429
+ headerRow: number;
32430
+ excludedRows: number[];
32431
+ date: {
32432
+ source?: string | null;
32433
+ /** @enum {string} */
32434
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
32435
+ };
32436
+ description: {
32437
+ sources: string[];
32438
+ /** @constant */
32439
+ operation: "join";
32440
+ };
32441
+ amount: {
32442
+ /** @enum {string} */
32443
+ mode: "signed" | "debitCredit";
32444
+ source?: string | null;
32445
+ debit?: string | null;
32446
+ credit?: string | null;
32447
+ /** @constant */
32448
+ debitSign: -1;
32449
+ /** @constant */
32450
+ creditSign: 1;
32451
+ };
32452
+ };
32453
+ totals: {
32454
+ rows: number;
32957
32455
  valid: number;
32958
32456
  invalid: number;
32959
- unresolved: number;
32960
32457
  excluded: number;
32458
+ moneyIn: number;
32459
+ moneyOut: number;
32460
+ net: number;
32961
32461
  };
32462
+ } | {
32463
+ canImport: boolean;
32464
+ columns: string[];
32465
+ issues: {
32466
+ code: string;
32467
+ field?: string;
32468
+ rowNumber: number;
32469
+ message: string;
32470
+ }[];
32962
32471
  issueCounts: {
32963
32472
  [key: string]: number;
32964
32473
  };
32965
- sourceHash: string;
32966
- planHash: string;
32967
- details?: {
32968
- canImport: boolean;
32969
- columns: string[];
32970
- issues: {
32971
- code: string;
32972
- field?: string;
32973
- rowNumber: number;
32974
- message: string;
32975
- }[];
32976
- issueCounts: {
32977
- [key: string]: number;
32978
- };
32979
- logicalRecordCount: number;
32980
- resolutionCounts: {
32981
- matched: number;
32982
- unmatched: number;
32983
- ambiguous: number;
32984
- };
32985
- sourceHash: string;
32474
+ logicalRecordCount: number;
32475
+ resolutionCounts: {
32476
+ matched: number;
32477
+ unmatched: number;
32478
+ ambiguous: number;
32479
+ };
32480
+ fileHash: string;
32481
+ /** @constant */
32482
+ resource: "owners";
32483
+ mapping: {
32986
32484
  /** @constant */
32987
- resource: "bankRecords";
32988
- mapping: {
32989
- /** @constant */
32990
- resource: "bankRecords";
32991
- /** @constant */
32992
- version: 1;
32993
- /** @enum {string} */
32994
- delimiter: "," | ";" | "\t" | "|";
32995
- headerRow: number;
32996
- excludedRows: number[];
32997
- date: {
32485
+ resource: "owners";
32486
+ /** @constant */
32487
+ version: 1;
32488
+ /** @enum {string} */
32489
+ delimiter: "," | ";" | "\t" | "|";
32490
+ headerRow: number;
32491
+ excludedRows: number[];
32492
+ fields: {
32493
+ listing: {
32494
+ source?: string | null;
32495
+ overrides: {
32496
+ [key: string]: string;
32497
+ };
32498
+ };
32499
+ ownerKind: {
32998
32500
  source?: string | null;
32999
32501
  /** @enum {string} */
33000
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
32502
+ constant?: "individual" | "company";
32503
+ values: {
32504
+ [key: string]: "individual" | "company";
32505
+ };
33001
32506
  };
33002
- description: {
33003
- sources: string[];
33004
- /** @constant */
33005
- operation: "join";
32507
+ firstName: {
32508
+ source?: string | null;
33006
32509
  };
33007
- amount: {
33008
- /** @enum {string} */
33009
- mode: "signed" | "debitCredit";
32510
+ lastName: {
33010
32511
  source?: string | null;
33011
- debit?: string | null;
33012
- credit?: string | null;
33013
- /** @constant */
33014
- debitSign: -1;
33015
- /** @constant */
33016
- creditSign: 1;
33017
32512
  };
33018
- };
33019
- totals: {
33020
- rows: number;
33021
- valid: number;
33022
- invalid: number;
33023
- excluded: number;
33024
- moneyIn: number;
33025
- moneyOut: number;
33026
- net: number;
33027
- };
33028
- } | {
33029
- canImport: boolean;
33030
- columns: string[];
33031
- issues: {
33032
- code: string;
33033
- field?: string;
33034
- rowNumber: number;
33035
- message: string;
33036
- }[];
33037
- issueCounts: {
33038
- [key: string]: number;
33039
- };
33040
- logicalRecordCount: number;
33041
- resolutionCounts: {
33042
- matched: number;
33043
- unmatched: number;
33044
- ambiguous: number;
33045
- };
33046
- sourceHash: string;
33047
- /** @constant */
33048
- resource: "owners";
33049
- mapping: {
33050
- /** @constant */
33051
- resource: "owners";
33052
- /** @constant */
33053
- version: 1;
33054
- /** @enum {string} */
33055
- delimiter: "," | ";" | "\t" | "|";
33056
- headerRow: number;
33057
- excludedRows: number[];
33058
- fields: {
33059
- listing: {
33060
- source?: string | null;
33061
- overrides: {
33062
- [key: string]: string;
33063
- };
33064
- };
33065
- ownerKind: {
33066
- source?: string | null;
33067
- /** @enum {string} */
33068
- constant?: "individual" | "company";
33069
- values: {
33070
- [key: string]: "individual" | "company";
33071
- };
33072
- };
33073
- firstName: {
33074
- source?: string | null;
33075
- };
33076
- lastName: {
33077
- source?: string | null;
33078
- };
33079
- companyName: {
33080
- source?: string | null;
33081
- };
33082
- companyType: {
33083
- source?: string | null;
33084
- values: {
33085
- [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33086
- };
33087
- };
33088
- ownerReference: {
33089
- source?: string | null;
33090
- overrides: {
33091
- [key: string]: string;
33092
- };
33093
- };
33094
- email: {
33095
- source?: string | null;
33096
- };
33097
- phone: {
33098
- source?: string | null;
33099
- };
33100
- taxIdentifier: {
33101
- source?: string | null;
33102
- };
33103
- address: {
33104
- source?: string | null;
33105
- };
33106
- unit: {
33107
- source?: string | null;
33108
- };
33109
- city: {
33110
- source?: string | null;
33111
- };
33112
- state: {
33113
- source?: string | null;
33114
- };
33115
- postalCode: {
33116
- source?: string | null;
32513
+ companyName: {
32514
+ source?: string | null;
32515
+ };
32516
+ companyType: {
32517
+ source?: string | null;
32518
+ values: {
32519
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33117
32520
  };
33118
- country: {
33119
- source?: string | null;
32521
+ };
32522
+ ownerReference: {
32523
+ source?: string | null;
32524
+ overrides: {
32525
+ [key: string]: string;
33120
32526
  };
33121
- payoutAccount: {
33122
- source?: string | null;
33123
- overrides: {
33124
- [key: string]: string;
33125
- };
32527
+ };
32528
+ email: {
32529
+ source?: string | null;
32530
+ };
32531
+ phone: {
32532
+ source?: string | null;
32533
+ };
32534
+ taxIdentifier: {
32535
+ source?: string | null;
32536
+ };
32537
+ address: {
32538
+ source?: string | null;
32539
+ };
32540
+ unit: {
32541
+ source?: string | null;
32542
+ };
32543
+ city: {
32544
+ source?: string | null;
32545
+ };
32546
+ state: {
32547
+ source?: string | null;
32548
+ };
32549
+ postalCode: {
32550
+ source?: string | null;
32551
+ };
32552
+ country: {
32553
+ source?: string | null;
32554
+ };
32555
+ payoutAccount: {
32556
+ source?: string | null;
32557
+ overrides: {
32558
+ [key: string]: string;
33126
32559
  };
33127
32560
  };
33128
32561
  };
33129
- totals: {
33130
- rows: number;
33131
- valid: number;
33132
- invalid: number;
33133
- excluded: number;
33134
- owners: number;
33135
- listings: number;
33136
- create: number;
33137
- update: number;
33138
- conflicts: number;
33139
- };
33140
- } | {
33141
- canImport: boolean;
33142
- columns: string[];
33143
- issues: {
33144
- code: string;
33145
- field?: string;
33146
- rowNumber: number;
33147
- message: string;
33148
- }[];
33149
- issueCounts: {
33150
- [key: string]: number;
33151
- };
33152
- logicalRecordCount: number;
33153
- resolutionCounts: {
33154
- matched: number;
33155
- unmatched: number;
33156
- ambiguous: number;
33157
- };
33158
- sourceHash: string;
32562
+ };
32563
+ totals: {
32564
+ rows: number;
32565
+ valid: number;
32566
+ invalid: number;
32567
+ excluded: number;
32568
+ owners: number;
32569
+ listings: number;
32570
+ create: number;
32571
+ update: number;
32572
+ conflicts: number;
32573
+ };
32574
+ } | {
32575
+ canImport: boolean;
32576
+ columns: string[];
32577
+ issues: {
32578
+ code: string;
32579
+ field?: string;
32580
+ rowNumber: number;
32581
+ message: string;
32582
+ }[];
32583
+ issueCounts: {
32584
+ [key: string]: number;
32585
+ };
32586
+ logicalRecordCount: number;
32587
+ resolutionCounts: {
32588
+ matched: number;
32589
+ unmatched: number;
32590
+ ambiguous: number;
32591
+ };
32592
+ fileHash: string;
32593
+ /** @constant */
32594
+ resource: "vendors";
32595
+ mapping: {
33159
32596
  /** @constant */
33160
32597
  resource: "vendors";
33161
- mapping: {
33162
- /** @constant */
33163
- resource: "vendors";
33164
- /** @constant */
33165
- version: 1;
33166
- /** @enum {string} */
33167
- delimiter: "," | ";" | "\t" | "|";
33168
- headerRow: number;
33169
- excludedRows: number[];
33170
- fields: {
33171
- vendorKind: {
33172
- source?: string | null;
33173
- /** @enum {string} */
33174
- constant?: "individual" | "company";
33175
- values: {
33176
- [key: string]: "individual" | "company";
33177
- };
33178
- };
33179
- firstName: {
33180
- source?: string | null;
33181
- };
33182
- lastName: {
33183
- source?: string | null;
33184
- };
33185
- companyName: {
33186
- source?: string | null;
33187
- };
33188
- companyType: {
33189
- source?: string | null;
33190
- values: {
33191
- [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33192
- };
33193
- };
33194
- vendorReference: {
33195
- source?: string | null;
33196
- overrides: {
33197
- [key: string]: string;
33198
- };
33199
- };
33200
- email: {
33201
- source?: string | null;
33202
- };
33203
- phone: {
33204
- source?: string | null;
33205
- };
33206
- taxIdentifier: {
33207
- source?: string | null;
33208
- };
33209
- address: {
33210
- source?: string | null;
33211
- };
33212
- unit: {
33213
- source?: string | null;
33214
- };
33215
- city: {
33216
- source?: string | null;
33217
- };
33218
- state: {
33219
- source?: string | null;
32598
+ /** @constant */
32599
+ version: 1;
32600
+ /** @enum {string} */
32601
+ delimiter: "," | ";" | "\t" | "|";
32602
+ headerRow: number;
32603
+ excludedRows: number[];
32604
+ fields: {
32605
+ vendorKind: {
32606
+ source?: string | null;
32607
+ /** @enum {string} */
32608
+ constant?: "individual" | "company";
32609
+ values: {
32610
+ [key: string]: "individual" | "company";
33220
32611
  };
33221
- postalCode: {
33222
- source?: string | null;
32612
+ };
32613
+ firstName: {
32614
+ source?: string | null;
32615
+ };
32616
+ lastName: {
32617
+ source?: string | null;
32618
+ };
32619
+ companyName: {
32620
+ source?: string | null;
32621
+ };
32622
+ companyType: {
32623
+ source?: string | null;
32624
+ values: {
32625
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33223
32626
  };
33224
- country: {
33225
- source?: string | null;
32627
+ };
32628
+ vendorReference: {
32629
+ source?: string | null;
32630
+ overrides: {
32631
+ [key: string]: string;
33226
32632
  };
33227
32633
  };
32634
+ email: {
32635
+ source?: string | null;
32636
+ };
32637
+ phone: {
32638
+ source?: string | null;
32639
+ };
32640
+ taxIdentifier: {
32641
+ source?: string | null;
32642
+ };
32643
+ address: {
32644
+ source?: string | null;
32645
+ };
32646
+ unit: {
32647
+ source?: string | null;
32648
+ };
32649
+ city: {
32650
+ source?: string | null;
32651
+ };
32652
+ state: {
32653
+ source?: string | null;
32654
+ };
32655
+ postalCode: {
32656
+ source?: string | null;
32657
+ };
32658
+ country: {
32659
+ source?: string | null;
32660
+ };
33228
32661
  };
33229
- totals: {
33230
- rows: number;
33231
- valid: number;
33232
- invalid: number;
33233
- excluded: number;
33234
- create: number;
33235
- update: number;
33236
- duplicate: number;
33237
- ambiguous: number;
33238
- };
33239
- } | {
33240
- canImport: boolean;
33241
- columns: string[];
33242
- issues: {
33243
- code: string;
33244
- field?: string;
33245
- rowNumber: number;
33246
- message: string;
33247
- }[];
33248
- issueCounts: {
33249
- [key: string]: number;
33250
- };
33251
- logicalRecordCount: number;
33252
- resolutionCounts: {
33253
- matched: number;
33254
- unmatched: number;
33255
- ambiguous: number;
33256
- };
33257
- sourceHash: string;
32662
+ };
32663
+ totals: {
32664
+ rows: number;
32665
+ valid: number;
32666
+ invalid: number;
32667
+ excluded: number;
32668
+ create: number;
32669
+ update: number;
32670
+ duplicate: number;
32671
+ ambiguous: number;
32672
+ };
32673
+ } | {
32674
+ canImport: boolean;
32675
+ columns: string[];
32676
+ issues: {
32677
+ code: string;
32678
+ field?: string;
32679
+ rowNumber: number;
32680
+ message: string;
32681
+ }[];
32682
+ issueCounts: {
32683
+ [key: string]: number;
32684
+ };
32685
+ logicalRecordCount: number;
32686
+ resolutionCounts: {
32687
+ matched: number;
32688
+ unmatched: number;
32689
+ ambiguous: number;
32690
+ };
32691
+ fileHash: string;
32692
+ /** @constant */
32693
+ resource: "expenses";
32694
+ mapping: {
33258
32695
  /** @constant */
33259
32696
  resource: "expenses";
33260
- mapping: {
33261
- /** @constant */
33262
- resource: "expenses";
33263
- /** @constant */
33264
- version: 1;
33265
- /** @enum {string} */
33266
- delimiter: "," | ";" | "\t" | "|";
33267
- headerRow: number;
33268
- excludedRows: number[];
33269
- fields: {
33270
- billReference: {
33271
- source?: string | null;
33272
- };
33273
- issueDate: {
33274
- source?: string | null;
33275
- /** @enum {string} */
33276
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33277
- };
33278
- vendor: {
33279
- source?: string | null;
33280
- overrides: {
33281
- [key: string]: string;
33282
- };
33283
- };
33284
- status: {
33285
- source?: string | null;
33286
- /** @enum {string} */
33287
- constant?: "paid" | "unpaid";
33288
- values: {
33289
- [key: string]: "paid" | "unpaid";
33290
- };
33291
- };
33292
- paymentDate: {
33293
- source?: string | null;
33294
- /** @enum {string} */
33295
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33296
- };
33297
- bankAccount: {
33298
- source?: string | null;
33299
- overrides: {
33300
- [key: string]: string;
33301
- };
33302
- };
33303
- currency: {
33304
- source?: string | null;
33305
- };
33306
- description: {
33307
- source?: string | null;
33308
- };
33309
- lineDescription: {
33310
- source?: string | null;
33311
- };
33312
- expenseAccount: {
33313
- source?: string | null;
33314
- overrides: {
33315
- [key: string]: string;
33316
- };
32697
+ /** @constant */
32698
+ version: 1;
32699
+ /** @enum {string} */
32700
+ delimiter: "," | ";" | "\t" | "|";
32701
+ headerRow: number;
32702
+ excludedRows: number[];
32703
+ fields: {
32704
+ billReference: {
32705
+ source?: string | null;
32706
+ };
32707
+ issueDate: {
32708
+ source?: string | null;
32709
+ /** @enum {string} */
32710
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
32711
+ };
32712
+ vendor: {
32713
+ source?: string | null;
32714
+ overrides: {
32715
+ [key: string]: string;
33317
32716
  };
33318
- appliedAmount: {
33319
- source?: string | null;
32717
+ };
32718
+ status: {
32719
+ source?: string | null;
32720
+ /** @enum {string} */
32721
+ constant?: "paid" | "unpaid";
32722
+ values: {
32723
+ [key: string]: "paid" | "unpaid";
33320
32724
  };
33321
- reservation: {
33322
- source?: string | null;
33323
- overrides: {
33324
- [key: string]: string;
33325
- };
32725
+ };
32726
+ paymentDate: {
32727
+ source?: string | null;
32728
+ /** @enum {string} */
32729
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
32730
+ };
32731
+ bankAccount: {
32732
+ source?: string | null;
32733
+ overrides: {
32734
+ [key: string]: string;
33326
32735
  };
33327
- listing: {
33328
- source?: string | null;
33329
- overrides: {
33330
- [key: string]: string;
33331
- };
32736
+ };
32737
+ currency: {
32738
+ source?: string | null;
32739
+ };
32740
+ description: {
32741
+ source?: string | null;
32742
+ };
32743
+ lineDescription: {
32744
+ source?: string | null;
32745
+ };
32746
+ expenseAccount: {
32747
+ source?: string | null;
32748
+ overrides: {
32749
+ [key: string]: string;
33332
32750
  };
33333
- billToOwner: {
33334
- source?: string | null;
33335
- constant?: boolean;
33336
- values: {
33337
- [key: string]: boolean;
33338
- };
32751
+ };
32752
+ appliedAmount: {
32753
+ source?: string | null;
32754
+ };
32755
+ reservation: {
32756
+ source?: string | null;
32757
+ overrides: {
32758
+ [key: string]: string;
33339
32759
  };
33340
- markup: {
33341
- source?: string | null;
32760
+ };
32761
+ listing: {
32762
+ source?: string | null;
32763
+ overrides: {
32764
+ [key: string]: string;
33342
32765
  };
33343
- markupTax: {
33344
- source?: string | null;
33345
- overrides: {
33346
- [key: string]: string;
33347
- };
32766
+ };
32767
+ billToOwner: {
32768
+ source?: string | null;
32769
+ constant?: boolean;
32770
+ values: {
32771
+ [key: string]: boolean;
33348
32772
  };
33349
32773
  };
33350
- };
33351
- totals: {
33352
- rows: number;
33353
- expenses: number;
33354
- valid: number;
33355
- invalid: number;
33356
- excluded: number;
33357
- applied: number;
33358
- markup: number;
33359
- byCurrency: {
33360
- [key: string]: {
33361
- applied: number;
33362
- markup: number;
32774
+ markup: {
32775
+ source?: string | null;
32776
+ };
32777
+ markupTax: {
32778
+ source?: string | null;
32779
+ overrides: {
32780
+ [key: string]: string;
33363
32781
  };
33364
32782
  };
33365
32783
  };
33366
- } | {
33367
- canImport: boolean;
33368
- columns: string[];
33369
- issues: {
33370
- code: string;
33371
- field?: string;
33372
- rowNumber: number;
33373
- message: string;
33374
- }[];
33375
- issueCounts: {
33376
- [key: string]: number;
33377
- };
33378
- logicalRecordCount: number;
33379
- resolutionCounts: {
33380
- matched: number;
33381
- unmatched: number;
33382
- ambiguous: number;
32784
+ };
32785
+ totals: {
32786
+ rows: number;
32787
+ expenses: number;
32788
+ valid: number;
32789
+ invalid: number;
32790
+ excluded: number;
32791
+ applied: number;
32792
+ markup: number;
32793
+ byCurrency: {
32794
+ [key: string]: {
32795
+ applied: number;
32796
+ markup: number;
32797
+ };
33383
32798
  };
33384
- sourceHash: string;
32799
+ };
32800
+ } | {
32801
+ canImport: boolean;
32802
+ columns: string[];
32803
+ issues: {
32804
+ code: string;
32805
+ field?: string;
32806
+ rowNumber: number;
32807
+ message: string;
32808
+ }[];
32809
+ issueCounts: {
32810
+ [key: string]: number;
32811
+ };
32812
+ logicalRecordCount: number;
32813
+ resolutionCounts: {
32814
+ matched: number;
32815
+ unmatched: number;
32816
+ ambiguous: number;
32817
+ };
32818
+ fileHash: string;
32819
+ /** @constant */
32820
+ resource: "deposits";
32821
+ mapping: {
33385
32822
  /** @constant */
33386
32823
  resource: "deposits";
33387
- mapping: {
33388
- /** @constant */
33389
- resource: "deposits";
33390
- /** @constant */
33391
- version: 1;
33392
- /** @enum {string} */
33393
- delimiter: "," | ";" | "\t" | "|";
33394
- headerRow: number;
33395
- excludedRows: number[];
33396
- fields: {
33397
- reference: {
33398
- source?: string | null;
33399
- };
33400
- date: {
33401
- source?: string | null;
33402
- /** @enum {string} */
33403
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33404
- };
33405
- bankAccount: {
33406
- source?: string | null;
33407
- overrides: {
33408
- [key: string]: string;
33409
- };
33410
- };
33411
- description: {
33412
- source?: string | null;
33413
- };
33414
- currency: {
33415
- source?: string | null;
33416
- };
33417
- reservation: {
33418
- source?: string | null;
33419
- overrides: {
33420
- [key: string]: string;
33421
- };
33422
- };
33423
- contact: {
33424
- source?: string | null;
33425
- overrides: {
33426
- [key: string]: string;
33427
- };
33428
- };
33429
- listing: {
33430
- source?: string | null;
33431
- overrides: {
33432
- [key: string]: string;
33433
- };
33434
- };
33435
- account: {
33436
- source?: string | null;
33437
- overrides: {
33438
- [key: string]: string;
33439
- };
33440
- };
33441
- lineDescription: {
33442
- source?: string | null;
33443
- };
33444
- appliedAmount: {
33445
- source?: string | null;
33446
- };
33447
- merchantFee: {
33448
- source?: string | null;
32824
+ /** @constant */
32825
+ version: 1;
32826
+ /** @enum {string} */
32827
+ delimiter: "," | ";" | "\t" | "|";
32828
+ headerRow: number;
32829
+ excludedRows: number[];
32830
+ fields: {
32831
+ reference: {
32832
+ source?: string | null;
32833
+ };
32834
+ date: {
32835
+ source?: string | null;
32836
+ /** @enum {string} */
32837
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
32838
+ };
32839
+ bankAccount: {
32840
+ source?: string | null;
32841
+ overrides: {
32842
+ [key: string]: string;
33449
32843
  };
33450
- channelFee: {
33451
- source?: string | null;
32844
+ };
32845
+ description: {
32846
+ source?: string | null;
32847
+ };
32848
+ currency: {
32849
+ source?: string | null;
32850
+ };
32851
+ reservation: {
32852
+ source?: string | null;
32853
+ overrides: {
32854
+ [key: string]: string;
33452
32855
  };
33453
- reserve: {
33454
- source?: string | null;
32856
+ };
32857
+ contact: {
32858
+ source?: string | null;
32859
+ overrides: {
32860
+ [key: string]: string;
33455
32861
  };
33456
- coHostPayout: {
33457
- source?: string | null;
32862
+ };
32863
+ listing: {
32864
+ source?: string | null;
32865
+ overrides: {
32866
+ [key: string]: string;
33458
32867
  };
33459
- vat: {
33460
- source?: string | null;
32868
+ };
32869
+ account: {
32870
+ source?: string | null;
32871
+ overrides: {
32872
+ [key: string]: string;
33461
32873
  };
33462
32874
  };
32875
+ lineDescription: {
32876
+ source?: string | null;
32877
+ };
32878
+ appliedAmount: {
32879
+ source?: string | null;
32880
+ };
32881
+ merchantFee: {
32882
+ source?: string | null;
32883
+ };
32884
+ channelFee: {
32885
+ source?: string | null;
32886
+ };
32887
+ reserve: {
32888
+ source?: string | null;
32889
+ };
32890
+ coHostPayout: {
32891
+ source?: string | null;
32892
+ };
32893
+ vat: {
32894
+ source?: string | null;
32895
+ };
33463
32896
  };
33464
- totals: {
33465
- rows: number;
33466
- deposits: number;
33467
- valid: number;
33468
- invalid: number;
33469
- excluded: number;
33470
- applied: number;
33471
- merchantFee: number;
33472
- channelFee: number;
33473
- reserve: number;
33474
- coHostPayout: number;
33475
- vat: number;
33476
- net: number;
33477
- byCurrency: {
33478
- [key: string]: {
33479
- applied: number;
33480
- merchantFee: number;
33481
- channelFee: number;
33482
- reserve: number;
33483
- coHostPayout: number;
33484
- vat: number;
33485
- net: number;
33486
- };
32897
+ };
32898
+ totals: {
32899
+ rows: number;
32900
+ deposits: number;
32901
+ valid: number;
32902
+ invalid: number;
32903
+ excluded: number;
32904
+ applied: number;
32905
+ merchantFee: number;
32906
+ channelFee: number;
32907
+ reserve: number;
32908
+ coHostPayout: number;
32909
+ vat: number;
32910
+ net: number;
32911
+ byCurrency: {
32912
+ [key: string]: {
32913
+ applied: number;
32914
+ merchantFee: number;
32915
+ channelFee: number;
32916
+ reserve: number;
32917
+ coHostPayout: number;
32918
+ vat: number;
32919
+ net: number;
33487
32920
  };
33488
32921
  };
33489
32922
  };
33490
32923
  };
33491
- } | {
33492
- /** @constant */
33493
- status: "failed";
33494
- /** Format: uuid */
33495
- previewId: string;
33496
- errorCode: string;
33497
32924
  };
32925
+ /** @constant */
32926
+ code?: "csvPreviewFailed";
33498
32927
  };
33499
32928
  };
33500
32929
  };
@@ -33725,12 +33154,12 @@ export interface operations {
33725
33154
  };
33726
33155
  };
33727
33156
  };
33728
- getCsvImportsPreviewsByPreviewId: {
33157
+ getCsvImportsPreviewsById: {
33729
33158
  parameters: {
33730
33159
  query?: never;
33731
33160
  header?: never;
33732
33161
  path: {
33733
- previewId: string;
33162
+ id: string;
33734
33163
  };
33735
33164
  cookie?: never;
33736
33165
  };
@@ -33743,565 +33172,549 @@ export interface operations {
33743
33172
  };
33744
33173
  content: {
33745
33174
  "application/json": {
33746
- data: {
33747
- /** @constant */
33748
- status: "queued";
33749
- /** Format: uuid */
33750
- previewId: string;
33751
- } | {
33752
- /** @constant */
33753
- status: "processing";
33754
- /** Format: uuid */
33755
- previewId: string;
33756
- } | {
33757
- /** @constant */
33758
- status: "completed";
33759
- /** Format: uuid */
33760
- previewId: string;
33761
- result: {
33175
+ /** Format: uuid */
33176
+ id: string;
33177
+ /** @enum {string} */
33178
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
33179
+ result?: {
33180
+ logicalRecordCount: number;
33181
+ stateCounts: {
33182
+ valid: number;
33183
+ invalid: number;
33184
+ unresolved: number;
33185
+ excluded: number;
33186
+ };
33187
+ issueCounts: {
33188
+ [key: string]: number;
33189
+ };
33190
+ fileHash: string;
33191
+ planHash: string;
33192
+ details?: {
33193
+ canImport: boolean;
33194
+ columns: string[];
33195
+ issues: {
33196
+ code: string;
33197
+ field?: string;
33198
+ rowNumber: number;
33199
+ message: string;
33200
+ }[];
33201
+ issueCounts: {
33202
+ [key: string]: number;
33203
+ };
33762
33204
  logicalRecordCount: number;
33763
- stateCounts: {
33205
+ resolutionCounts: {
33206
+ matched: number;
33207
+ unmatched: number;
33208
+ ambiguous: number;
33209
+ };
33210
+ fileHash: string;
33211
+ /** @constant */
33212
+ resource: "bankRecords";
33213
+ mapping: {
33214
+ /** @constant */
33215
+ resource: "bankRecords";
33216
+ /** @constant */
33217
+ version: 1;
33218
+ /** @enum {string} */
33219
+ delimiter: "," | ";" | "\t" | "|";
33220
+ headerRow: number;
33221
+ excludedRows: number[];
33222
+ date: {
33223
+ source?: string | null;
33224
+ /** @enum {string} */
33225
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33226
+ };
33227
+ description: {
33228
+ sources: string[];
33229
+ /** @constant */
33230
+ operation: "join";
33231
+ };
33232
+ amount: {
33233
+ /** @enum {string} */
33234
+ mode: "signed" | "debitCredit";
33235
+ source?: string | null;
33236
+ debit?: string | null;
33237
+ credit?: string | null;
33238
+ /** @constant */
33239
+ debitSign: -1;
33240
+ /** @constant */
33241
+ creditSign: 1;
33242
+ };
33243
+ };
33244
+ totals: {
33245
+ rows: number;
33246
+ valid: number;
33247
+ invalid: number;
33248
+ excluded: number;
33249
+ moneyIn: number;
33250
+ moneyOut: number;
33251
+ net: number;
33252
+ };
33253
+ } | {
33254
+ canImport: boolean;
33255
+ columns: string[];
33256
+ issues: {
33257
+ code: string;
33258
+ field?: string;
33259
+ rowNumber: number;
33260
+ message: string;
33261
+ }[];
33262
+ issueCounts: {
33263
+ [key: string]: number;
33264
+ };
33265
+ logicalRecordCount: number;
33266
+ resolutionCounts: {
33267
+ matched: number;
33268
+ unmatched: number;
33269
+ ambiguous: number;
33270
+ };
33271
+ fileHash: string;
33272
+ /** @constant */
33273
+ resource: "owners";
33274
+ mapping: {
33275
+ /** @constant */
33276
+ resource: "owners";
33277
+ /** @constant */
33278
+ version: 1;
33279
+ /** @enum {string} */
33280
+ delimiter: "," | ";" | "\t" | "|";
33281
+ headerRow: number;
33282
+ excludedRows: number[];
33283
+ fields: {
33284
+ listing: {
33285
+ source?: string | null;
33286
+ overrides: {
33287
+ [key: string]: string;
33288
+ };
33289
+ };
33290
+ ownerKind: {
33291
+ source?: string | null;
33292
+ /** @enum {string} */
33293
+ constant?: "individual" | "company";
33294
+ values: {
33295
+ [key: string]: "individual" | "company";
33296
+ };
33297
+ };
33298
+ firstName: {
33299
+ source?: string | null;
33300
+ };
33301
+ lastName: {
33302
+ source?: string | null;
33303
+ };
33304
+ companyName: {
33305
+ source?: string | null;
33306
+ };
33307
+ companyType: {
33308
+ source?: string | null;
33309
+ values: {
33310
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33311
+ };
33312
+ };
33313
+ ownerReference: {
33314
+ source?: string | null;
33315
+ overrides: {
33316
+ [key: string]: string;
33317
+ };
33318
+ };
33319
+ email: {
33320
+ source?: string | null;
33321
+ };
33322
+ phone: {
33323
+ source?: string | null;
33324
+ };
33325
+ taxIdentifier: {
33326
+ source?: string | null;
33327
+ };
33328
+ address: {
33329
+ source?: string | null;
33330
+ };
33331
+ unit: {
33332
+ source?: string | null;
33333
+ };
33334
+ city: {
33335
+ source?: string | null;
33336
+ };
33337
+ state: {
33338
+ source?: string | null;
33339
+ };
33340
+ postalCode: {
33341
+ source?: string | null;
33342
+ };
33343
+ country: {
33344
+ source?: string | null;
33345
+ };
33346
+ payoutAccount: {
33347
+ source?: string | null;
33348
+ overrides: {
33349
+ [key: string]: string;
33350
+ };
33351
+ };
33352
+ };
33353
+ };
33354
+ totals: {
33355
+ rows: number;
33356
+ valid: number;
33357
+ invalid: number;
33358
+ excluded: number;
33359
+ owners: number;
33360
+ listings: number;
33361
+ create: number;
33362
+ update: number;
33363
+ conflicts: number;
33364
+ };
33365
+ } | {
33366
+ canImport: boolean;
33367
+ columns: string[];
33368
+ issues: {
33369
+ code: string;
33370
+ field?: string;
33371
+ rowNumber: number;
33372
+ message: string;
33373
+ }[];
33374
+ issueCounts: {
33375
+ [key: string]: number;
33376
+ };
33377
+ logicalRecordCount: number;
33378
+ resolutionCounts: {
33379
+ matched: number;
33380
+ unmatched: number;
33381
+ ambiguous: number;
33382
+ };
33383
+ fileHash: string;
33384
+ /** @constant */
33385
+ resource: "vendors";
33386
+ mapping: {
33387
+ /** @constant */
33388
+ resource: "vendors";
33389
+ /** @constant */
33390
+ version: 1;
33391
+ /** @enum {string} */
33392
+ delimiter: "," | ";" | "\t" | "|";
33393
+ headerRow: number;
33394
+ excludedRows: number[];
33395
+ fields: {
33396
+ vendorKind: {
33397
+ source?: string | null;
33398
+ /** @enum {string} */
33399
+ constant?: "individual" | "company";
33400
+ values: {
33401
+ [key: string]: "individual" | "company";
33402
+ };
33403
+ };
33404
+ firstName: {
33405
+ source?: string | null;
33406
+ };
33407
+ lastName: {
33408
+ source?: string | null;
33409
+ };
33410
+ companyName: {
33411
+ source?: string | null;
33412
+ };
33413
+ companyType: {
33414
+ source?: string | null;
33415
+ values: {
33416
+ [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33417
+ };
33418
+ };
33419
+ vendorReference: {
33420
+ source?: string | null;
33421
+ overrides: {
33422
+ [key: string]: string;
33423
+ };
33424
+ };
33425
+ email: {
33426
+ source?: string | null;
33427
+ };
33428
+ phone: {
33429
+ source?: string | null;
33430
+ };
33431
+ taxIdentifier: {
33432
+ source?: string | null;
33433
+ };
33434
+ address: {
33435
+ source?: string | null;
33436
+ };
33437
+ unit: {
33438
+ source?: string | null;
33439
+ };
33440
+ city: {
33441
+ source?: string | null;
33442
+ };
33443
+ state: {
33444
+ source?: string | null;
33445
+ };
33446
+ postalCode: {
33447
+ source?: string | null;
33448
+ };
33449
+ country: {
33450
+ source?: string | null;
33451
+ };
33452
+ };
33453
+ };
33454
+ totals: {
33455
+ rows: number;
33764
33456
  valid: number;
33765
33457
  invalid: number;
33766
- unresolved: number;
33767
33458
  excluded: number;
33459
+ create: number;
33460
+ update: number;
33461
+ duplicate: number;
33462
+ ambiguous: number;
33768
33463
  };
33464
+ } | {
33465
+ canImport: boolean;
33466
+ columns: string[];
33467
+ issues: {
33468
+ code: string;
33469
+ field?: string;
33470
+ rowNumber: number;
33471
+ message: string;
33472
+ }[];
33769
33473
  issueCounts: {
33770
33474
  [key: string]: number;
33771
33475
  };
33772
- sourceHash: string;
33773
- planHash: string;
33774
- details?: {
33775
- canImport: boolean;
33776
- columns: string[];
33777
- issues: {
33778
- code: string;
33779
- field?: string;
33780
- rowNumber: number;
33781
- message: string;
33782
- }[];
33783
- issueCounts: {
33784
- [key: string]: number;
33785
- };
33786
- logicalRecordCount: number;
33787
- resolutionCounts: {
33788
- matched: number;
33789
- unmatched: number;
33790
- ambiguous: number;
33791
- };
33792
- sourceHash: string;
33476
+ logicalRecordCount: number;
33477
+ resolutionCounts: {
33478
+ matched: number;
33479
+ unmatched: number;
33480
+ ambiguous: number;
33481
+ };
33482
+ fileHash: string;
33483
+ /** @constant */
33484
+ resource: "expenses";
33485
+ mapping: {
33793
33486
  /** @constant */
33794
- resource: "bankRecords";
33795
- mapping: {
33796
- /** @constant */
33797
- resource: "bankRecords";
33798
- /** @constant */
33799
- version: 1;
33800
- /** @enum {string} */
33801
- delimiter: "," | ";" | "\t" | "|";
33802
- headerRow: number;
33803
- excludedRows: number[];
33804
- date: {
33487
+ resource: "expenses";
33488
+ /** @constant */
33489
+ version: 1;
33490
+ /** @enum {string} */
33491
+ delimiter: "," | ";" | "\t" | "|";
33492
+ headerRow: number;
33493
+ excludedRows: number[];
33494
+ fields: {
33495
+ billReference: {
33496
+ source?: string | null;
33497
+ };
33498
+ issueDate: {
33805
33499
  source?: string | null;
33806
33500
  /** @enum {string} */
33807
33501
  format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33808
33502
  };
33809
- description: {
33810
- sources: string[];
33811
- /** @constant */
33812
- operation: "join";
33503
+ vendor: {
33504
+ source?: string | null;
33505
+ overrides: {
33506
+ [key: string]: string;
33507
+ };
33813
33508
  };
33814
- amount: {
33509
+ status: {
33510
+ source?: string | null;
33815
33511
  /** @enum {string} */
33816
- mode: "signed" | "debitCredit";
33512
+ constant?: "paid" | "unpaid";
33513
+ values: {
33514
+ [key: string]: "paid" | "unpaid";
33515
+ };
33516
+ };
33517
+ paymentDate: {
33817
33518
  source?: string | null;
33818
- debit?: string | null;
33819
- credit?: string | null;
33820
- /** @constant */
33821
- debitSign: -1;
33822
- /** @constant */
33823
- creditSign: 1;
33519
+ /** @enum {string} */
33520
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33824
33521
  };
33825
- };
33826
- totals: {
33827
- rows: number;
33828
- valid: number;
33829
- invalid: number;
33830
- excluded: number;
33831
- moneyIn: number;
33832
- moneyOut: number;
33833
- net: number;
33834
- };
33835
- } | {
33836
- canImport: boolean;
33837
- columns: string[];
33838
- issues: {
33839
- code: string;
33840
- field?: string;
33841
- rowNumber: number;
33842
- message: string;
33843
- }[];
33844
- issueCounts: {
33845
- [key: string]: number;
33846
- };
33847
- logicalRecordCount: number;
33848
- resolutionCounts: {
33849
- matched: number;
33850
- unmatched: number;
33851
- ambiguous: number;
33852
- };
33853
- sourceHash: string;
33854
- /** @constant */
33855
- resource: "owners";
33856
- mapping: {
33857
- /** @constant */
33858
- resource: "owners";
33859
- /** @constant */
33860
- version: 1;
33861
- /** @enum {string} */
33862
- delimiter: "," | ";" | "\t" | "|";
33863
- headerRow: number;
33864
- excludedRows: number[];
33865
- fields: {
33866
- listing: {
33867
- source?: string | null;
33868
- overrides: {
33869
- [key: string]: string;
33870
- };
33871
- };
33872
- ownerKind: {
33873
- source?: string | null;
33874
- /** @enum {string} */
33875
- constant?: "individual" | "company";
33876
- values: {
33877
- [key: string]: "individual" | "company";
33878
- };
33879
- };
33880
- firstName: {
33881
- source?: string | null;
33882
- };
33883
- lastName: {
33884
- source?: string | null;
33885
- };
33886
- companyName: {
33887
- source?: string | null;
33888
- };
33889
- companyType: {
33890
- source?: string | null;
33891
- values: {
33892
- [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33893
- };
33894
- };
33895
- ownerReference: {
33896
- source?: string | null;
33897
- overrides: {
33898
- [key: string]: string;
33899
- };
33900
- };
33901
- email: {
33902
- source?: string | null;
33903
- };
33904
- phone: {
33905
- source?: string | null;
33906
- };
33907
- taxIdentifier: {
33908
- source?: string | null;
33909
- };
33910
- address: {
33911
- source?: string | null;
33912
- };
33913
- unit: {
33914
- source?: string | null;
33915
- };
33916
- city: {
33917
- source?: string | null;
33918
- };
33919
- state: {
33920
- source?: string | null;
33921
- };
33922
- postalCode: {
33923
- source?: string | null;
33924
- };
33925
- country: {
33926
- source?: string | null;
33927
- };
33928
- payoutAccount: {
33929
- source?: string | null;
33930
- overrides: {
33931
- [key: string]: string;
33932
- };
33522
+ bankAccount: {
33523
+ source?: string | null;
33524
+ overrides: {
33525
+ [key: string]: string;
33933
33526
  };
33934
33527
  };
33935
- };
33936
- totals: {
33937
- rows: number;
33938
- valid: number;
33939
- invalid: number;
33940
- excluded: number;
33941
- owners: number;
33942
- listings: number;
33943
- create: number;
33944
- update: number;
33945
- conflicts: number;
33946
- };
33947
- } | {
33948
- canImport: boolean;
33949
- columns: string[];
33950
- issues: {
33951
- code: string;
33952
- field?: string;
33953
- rowNumber: number;
33954
- message: string;
33955
- }[];
33956
- issueCounts: {
33957
- [key: string]: number;
33958
- };
33959
- logicalRecordCount: number;
33960
- resolutionCounts: {
33961
- matched: number;
33962
- unmatched: number;
33963
- ambiguous: number;
33964
- };
33965
- sourceHash: string;
33966
- /** @constant */
33967
- resource: "vendors";
33968
- mapping: {
33969
- /** @constant */
33970
- resource: "vendors";
33971
- /** @constant */
33972
- version: 1;
33973
- /** @enum {string} */
33974
- delimiter: "," | ";" | "\t" | "|";
33975
- headerRow: number;
33976
- excludedRows: number[];
33977
- fields: {
33978
- vendorKind: {
33979
- source?: string | null;
33980
- /** @enum {string} */
33981
- constant?: "individual" | "company";
33982
- values: {
33983
- [key: string]: "individual" | "company";
33984
- };
33985
- };
33986
- firstName: {
33987
- source?: string | null;
33988
- };
33989
- lastName: {
33990
- source?: string | null;
33991
- };
33992
- companyName: {
33993
- source?: string | null;
33994
- };
33995
- companyType: {
33996
- source?: string | null;
33997
- values: {
33998
- [key: string]: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
33999
- };
34000
- };
34001
- vendorReference: {
34002
- source?: string | null;
34003
- overrides: {
34004
- [key: string]: string;
34005
- };
34006
- };
34007
- email: {
34008
- source?: string | null;
34009
- };
34010
- phone: {
34011
- source?: string | null;
34012
- };
34013
- taxIdentifier: {
34014
- source?: string | null;
34015
- };
34016
- address: {
34017
- source?: string | null;
34018
- };
34019
- unit: {
34020
- source?: string | null;
34021
- };
34022
- city: {
34023
- source?: string | null;
34024
- };
34025
- state: {
34026
- source?: string | null;
34027
- };
34028
- postalCode: {
34029
- source?: string | null;
34030
- };
34031
- country: {
34032
- source?: string | null;
34033
- };
33528
+ currency: {
33529
+ source?: string | null;
34034
33530
  };
34035
- };
34036
- totals: {
34037
- rows: number;
34038
- valid: number;
34039
- invalid: number;
34040
- excluded: number;
34041
- create: number;
34042
- update: number;
34043
- duplicate: number;
34044
- ambiguous: number;
34045
- };
34046
- } | {
34047
- canImport: boolean;
34048
- columns: string[];
34049
- issues: {
34050
- code: string;
34051
- field?: string;
34052
- rowNumber: number;
34053
- message: string;
34054
- }[];
34055
- issueCounts: {
34056
- [key: string]: number;
34057
- };
34058
- logicalRecordCount: number;
34059
- resolutionCounts: {
34060
- matched: number;
34061
- unmatched: number;
34062
- ambiguous: number;
34063
- };
34064
- sourceHash: string;
34065
- /** @constant */
34066
- resource: "expenses";
34067
- mapping: {
34068
- /** @constant */
34069
- resource: "expenses";
34070
- /** @constant */
34071
- version: 1;
34072
- /** @enum {string} */
34073
- delimiter: "," | ";" | "\t" | "|";
34074
- headerRow: number;
34075
- excludedRows: number[];
34076
- fields: {
34077
- billReference: {
34078
- source?: string | null;
34079
- };
34080
- issueDate: {
34081
- source?: string | null;
34082
- /** @enum {string} */
34083
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
34084
- };
34085
- vendor: {
34086
- source?: string | null;
34087
- overrides: {
34088
- [key: string]: string;
34089
- };
34090
- };
34091
- status: {
34092
- source?: string | null;
34093
- /** @enum {string} */
34094
- constant?: "paid" | "unpaid";
34095
- values: {
34096
- [key: string]: "paid" | "unpaid";
34097
- };
34098
- };
34099
- paymentDate: {
34100
- source?: string | null;
34101
- /** @enum {string} */
34102
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
34103
- };
34104
- bankAccount: {
34105
- source?: string | null;
34106
- overrides: {
34107
- [key: string]: string;
34108
- };
34109
- };
34110
- currency: {
34111
- source?: string | null;
34112
- };
34113
- description: {
34114
- source?: string | null;
34115
- };
34116
- lineDescription: {
34117
- source?: string | null;
34118
- };
34119
- expenseAccount: {
34120
- source?: string | null;
34121
- overrides: {
34122
- [key: string]: string;
34123
- };
34124
- };
34125
- appliedAmount: {
34126
- source?: string | null;
34127
- };
34128
- reservation: {
34129
- source?: string | null;
34130
- overrides: {
34131
- [key: string]: string;
34132
- };
34133
- };
34134
- listing: {
34135
- source?: string | null;
34136
- overrides: {
34137
- [key: string]: string;
34138
- };
33531
+ description: {
33532
+ source?: string | null;
33533
+ };
33534
+ lineDescription: {
33535
+ source?: string | null;
33536
+ };
33537
+ expenseAccount: {
33538
+ source?: string | null;
33539
+ overrides: {
33540
+ [key: string]: string;
34139
33541
  };
34140
- billToOwner: {
34141
- source?: string | null;
34142
- constant?: boolean;
34143
- values: {
34144
- [key: string]: boolean;
34145
- };
33542
+ };
33543
+ appliedAmount: {
33544
+ source?: string | null;
33545
+ };
33546
+ reservation: {
33547
+ source?: string | null;
33548
+ overrides: {
33549
+ [key: string]: string;
34146
33550
  };
34147
- markup: {
34148
- source?: string | null;
33551
+ };
33552
+ listing: {
33553
+ source?: string | null;
33554
+ overrides: {
33555
+ [key: string]: string;
34149
33556
  };
34150
- markupTax: {
34151
- source?: string | null;
34152
- overrides: {
34153
- [key: string]: string;
34154
- };
33557
+ };
33558
+ billToOwner: {
33559
+ source?: string | null;
33560
+ constant?: boolean;
33561
+ values: {
33562
+ [key: string]: boolean;
34155
33563
  };
34156
33564
  };
34157
- };
34158
- totals: {
34159
- rows: number;
34160
- expenses: number;
34161
- valid: number;
34162
- invalid: number;
34163
- excluded: number;
34164
- applied: number;
34165
- markup: number;
34166
- byCurrency: {
34167
- [key: string]: {
34168
- applied: number;
34169
- markup: number;
33565
+ markup: {
33566
+ source?: string | null;
33567
+ };
33568
+ markupTax: {
33569
+ source?: string | null;
33570
+ overrides: {
33571
+ [key: string]: string;
34170
33572
  };
34171
33573
  };
34172
33574
  };
34173
- } | {
34174
- canImport: boolean;
34175
- columns: string[];
34176
- issues: {
34177
- code: string;
34178
- field?: string;
34179
- rowNumber: number;
34180
- message: string;
34181
- }[];
34182
- issueCounts: {
34183
- [key: string]: number;
34184
- };
34185
- logicalRecordCount: number;
34186
- resolutionCounts: {
34187
- matched: number;
34188
- unmatched: number;
34189
- ambiguous: number;
33575
+ };
33576
+ totals: {
33577
+ rows: number;
33578
+ expenses: number;
33579
+ valid: number;
33580
+ invalid: number;
33581
+ excluded: number;
33582
+ applied: number;
33583
+ markup: number;
33584
+ byCurrency: {
33585
+ [key: string]: {
33586
+ applied: number;
33587
+ markup: number;
33588
+ };
34190
33589
  };
34191
- sourceHash: string;
33590
+ };
33591
+ } | {
33592
+ canImport: boolean;
33593
+ columns: string[];
33594
+ issues: {
33595
+ code: string;
33596
+ field?: string;
33597
+ rowNumber: number;
33598
+ message: string;
33599
+ }[];
33600
+ issueCounts: {
33601
+ [key: string]: number;
33602
+ };
33603
+ logicalRecordCount: number;
33604
+ resolutionCounts: {
33605
+ matched: number;
33606
+ unmatched: number;
33607
+ ambiguous: number;
33608
+ };
33609
+ fileHash: string;
33610
+ /** @constant */
33611
+ resource: "deposits";
33612
+ mapping: {
34192
33613
  /** @constant */
34193
33614
  resource: "deposits";
34194
- mapping: {
34195
- /** @constant */
34196
- resource: "deposits";
34197
- /** @constant */
34198
- version: 1;
34199
- /** @enum {string} */
34200
- delimiter: "," | ";" | "\t" | "|";
34201
- headerRow: number;
34202
- excludedRows: number[];
34203
- fields: {
34204
- reference: {
34205
- source?: string | null;
34206
- };
34207
- date: {
34208
- source?: string | null;
34209
- /** @enum {string} */
34210
- format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
34211
- };
34212
- bankAccount: {
34213
- source?: string | null;
34214
- overrides: {
34215
- [key: string]: string;
34216
- };
34217
- };
34218
- description: {
34219
- source?: string | null;
34220
- };
34221
- currency: {
34222
- source?: string | null;
34223
- };
34224
- reservation: {
34225
- source?: string | null;
34226
- overrides: {
34227
- [key: string]: string;
34228
- };
34229
- };
34230
- contact: {
34231
- source?: string | null;
34232
- overrides: {
34233
- [key: string]: string;
34234
- };
34235
- };
34236
- listing: {
34237
- source?: string | null;
34238
- overrides: {
34239
- [key: string]: string;
34240
- };
34241
- };
34242
- account: {
34243
- source?: string | null;
34244
- overrides: {
34245
- [key: string]: string;
34246
- };
34247
- };
34248
- lineDescription: {
34249
- source?: string | null;
34250
- };
34251
- appliedAmount: {
34252
- source?: string | null;
34253
- };
34254
- merchantFee: {
34255
- source?: string | null;
33615
+ /** @constant */
33616
+ version: 1;
33617
+ /** @enum {string} */
33618
+ delimiter: "," | ";" | "\t" | "|";
33619
+ headerRow: number;
33620
+ excludedRows: number[];
33621
+ fields: {
33622
+ reference: {
33623
+ source?: string | null;
33624
+ };
33625
+ date: {
33626
+ source?: string | null;
33627
+ /** @enum {string} */
33628
+ format?: "yyyy-mm-dd" | "mm/dd/yyyy" | "dd/mm/yyyy" | "dd.mm.yyyy";
33629
+ };
33630
+ bankAccount: {
33631
+ source?: string | null;
33632
+ overrides: {
33633
+ [key: string]: string;
34256
33634
  };
34257
- channelFee: {
34258
- source?: string | null;
33635
+ };
33636
+ description: {
33637
+ source?: string | null;
33638
+ };
33639
+ currency: {
33640
+ source?: string | null;
33641
+ };
33642
+ reservation: {
33643
+ source?: string | null;
33644
+ overrides: {
33645
+ [key: string]: string;
34259
33646
  };
34260
- reserve: {
34261
- source?: string | null;
33647
+ };
33648
+ contact: {
33649
+ source?: string | null;
33650
+ overrides: {
33651
+ [key: string]: string;
34262
33652
  };
34263
- coHostPayout: {
34264
- source?: string | null;
33653
+ };
33654
+ listing: {
33655
+ source?: string | null;
33656
+ overrides: {
33657
+ [key: string]: string;
34265
33658
  };
34266
- vat: {
34267
- source?: string | null;
33659
+ };
33660
+ account: {
33661
+ source?: string | null;
33662
+ overrides: {
33663
+ [key: string]: string;
34268
33664
  };
34269
33665
  };
33666
+ lineDescription: {
33667
+ source?: string | null;
33668
+ };
33669
+ appliedAmount: {
33670
+ source?: string | null;
33671
+ };
33672
+ merchantFee: {
33673
+ source?: string | null;
33674
+ };
33675
+ channelFee: {
33676
+ source?: string | null;
33677
+ };
33678
+ reserve: {
33679
+ source?: string | null;
33680
+ };
33681
+ coHostPayout: {
33682
+ source?: string | null;
33683
+ };
33684
+ vat: {
33685
+ source?: string | null;
33686
+ };
34270
33687
  };
34271
- totals: {
34272
- rows: number;
34273
- deposits: number;
34274
- valid: number;
34275
- invalid: number;
34276
- excluded: number;
34277
- applied: number;
34278
- merchantFee: number;
34279
- channelFee: number;
34280
- reserve: number;
34281
- coHostPayout: number;
34282
- vat: number;
34283
- net: number;
34284
- byCurrency: {
34285
- [key: string]: {
34286
- applied: number;
34287
- merchantFee: number;
34288
- channelFee: number;
34289
- reserve: number;
34290
- coHostPayout: number;
34291
- vat: number;
34292
- net: number;
34293
- };
33688
+ };
33689
+ totals: {
33690
+ rows: number;
33691
+ deposits: number;
33692
+ valid: number;
33693
+ invalid: number;
33694
+ excluded: number;
33695
+ applied: number;
33696
+ merchantFee: number;
33697
+ channelFee: number;
33698
+ reserve: number;
33699
+ coHostPayout: number;
33700
+ vat: number;
33701
+ net: number;
33702
+ byCurrency: {
33703
+ [key: string]: {
33704
+ applied: number;
33705
+ merchantFee: number;
33706
+ channelFee: number;
33707
+ reserve: number;
33708
+ coHostPayout: number;
33709
+ vat: number;
33710
+ net: number;
34294
33711
  };
34295
33712
  };
34296
33713
  };
34297
33714
  };
34298
- } | {
34299
- /** @constant */
34300
- status: "failed";
34301
- /** Format: uuid */
34302
- previewId: string;
34303
- errorCode: string;
34304
33715
  };
33716
+ /** @constant */
33717
+ code?: "csvPreviewFailed";
34305
33718
  };
34306
33719
  };
34307
33720
  };
@@ -34532,20 +33945,16 @@ export interface operations {
34532
33945
  };
34533
33946
  };
34534
33947
  };
34535
- postCsvImportsPreviewsByPreviewIdConfirm: {
33948
+ postCsvImportsPreviewsByIdConfirm: {
34536
33949
  parameters: {
34537
33950
  query?: never;
34538
33951
  header?: never;
34539
33952
  path: {
34540
- previewId: string;
33953
+ id: string;
34541
33954
  };
34542
33955
  cookie?: never;
34543
33956
  };
34544
- requestBody?: {
34545
- content: {
34546
- "application/json": Record<string, never>;
34547
- };
34548
- };
33957
+ requestBody?: never;
34549
33958
  responses: {
34550
33959
  /** @description Successful response */
34551
33960
  200: {
@@ -34554,42 +33963,19 @@ export interface operations {
34554
33963
  };
34555
33964
  content: {
34556
33965
  "application/json": {
34557
- data: {
34558
- /** @constant */
34559
- status: "queued";
34560
- /** Format: uuid */
34561
- importId: string;
34562
- } | {
34563
- /** @constant */
34564
- status: "processing";
34565
- /** Format: uuid */
34566
- importId: string;
34567
- } | {
34568
- /** @constant */
34569
- status: "completed";
34570
- /** Format: uuid */
34571
- importId: string;
34572
- outcome: {
34573
- created: number;
34574
- updated: number;
34575
- existing: number;
34576
- failed: number;
34577
- skipped: number;
34578
- };
34579
- } | {
34580
- /** @constant */
34581
- status: "failed";
34582
- /** Format: uuid */
34583
- importId: string;
34584
- errorCode: string;
34585
- outcome?: {
34586
- created: number;
34587
- updated: number;
34588
- existing: number;
34589
- failed: number;
34590
- skipped: number;
34591
- };
33966
+ /** Format: uuid */
33967
+ id: string;
33968
+ /** @enum {string} */
33969
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
33970
+ outcome?: {
33971
+ created: number;
33972
+ updated: number;
33973
+ existing: number;
33974
+ failed: number;
33975
+ skipped: number;
34592
33976
  };
33977
+ /** @enum {string} */
33978
+ code?: "csvImportFailed" | "csvImportRecordFailed";
34593
33979
  };
34594
33980
  };
34595
33981
  };
@@ -34820,16 +34206,17 @@ export interface operations {
34820
34206
  };
34821
34207
  };
34822
34208
  };
34823
- getCsvImportsPreviewsByPreviewIdRecords: {
34209
+ getCsvImportsPreviewsByIdRecords: {
34824
34210
  parameters: {
34825
34211
  query?: {
34212
+ /** @description Opaque pagination cursor returned by a previous response. Pass it back unchanged. */
34826
34213
  cursor?: string;
34827
34214
  limit?: number;
34828
34215
  state?: "all" | "valid" | "invalid" | "unresolved" | "excluded";
34829
34216
  };
34830
34217
  header?: never;
34831
34218
  path: {
34832
- previewId: string;
34219
+ id: string;
34833
34220
  };
34834
34221
  cookie?: never;
34835
34222
  };
@@ -36095,9 +35482,282 @@ export interface operations {
36095
35482
  };
36096
35483
  getCsvImportsUploadsByUploadRef: {
36097
35484
  parameters: {
36098
- query: {
36099
- resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
35485
+ query?: never;
35486
+ header?: never;
35487
+ path: {
35488
+ uploadRef: string;
35489
+ };
35490
+ cookie?: never;
35491
+ };
35492
+ requestBody?: never;
35493
+ responses: {
35494
+ /** @description Successful response */
35495
+ 200: {
35496
+ headers: {
35497
+ [name: string]: unknown;
35498
+ };
35499
+ content: {
35500
+ "application/json": {
35501
+ inspection: {
35502
+ /** @constant */
35503
+ encoding: "utf-8";
35504
+ /** @enum {string} */
35505
+ delimiter: "," | ";" | "\t" | "|";
35506
+ headerRow: number;
35507
+ headers: string[];
35508
+ detection: {
35509
+ /** @enum {string} */
35510
+ state: "exact" | "possible" | "ambiguous" | "none";
35511
+ candidates: {
35512
+ id: string;
35513
+ version: number;
35514
+ /** @enum {string} */
35515
+ resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
35516
+ label: string;
35517
+ suggestions: {
35518
+ [key: string]: string[];
35519
+ };
35520
+ evidence: {
35521
+ forbiddenHeaders: string[];
35522
+ matchedHeaders: string[];
35523
+ missingHeaders: string[];
35524
+ };
35525
+ }[];
35526
+ };
35527
+ };
35528
+ };
35529
+ };
35530
+ };
35531
+ /** @description Bad request */
35532
+ 400: {
35533
+ headers: {
35534
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35535
+ "Retry-After"?: number;
35536
+ [name: string]: unknown;
35537
+ };
35538
+ content: {
35539
+ "application/json": {
35540
+ code: string;
35541
+ message: string;
35542
+ links?: {
35543
+ docs: string;
35544
+ schema: string;
35545
+ };
35546
+ issues?: {
35547
+ message: string;
35548
+ path?: (string | number)[];
35549
+ schema?: string;
35550
+ }[];
35551
+ retryable?: boolean;
35552
+ context?: unknown;
35553
+ };
35554
+ };
35555
+ };
35556
+ /** @description Unauthorized */
35557
+ 401: {
35558
+ headers: {
35559
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35560
+ "Retry-After"?: number;
35561
+ [name: string]: unknown;
35562
+ };
35563
+ content: {
35564
+ "application/json": {
35565
+ code: string;
35566
+ message: string;
35567
+ links?: {
35568
+ docs: string;
35569
+ schema: string;
35570
+ };
35571
+ issues?: {
35572
+ message: string;
35573
+ path?: (string | number)[];
35574
+ schema?: string;
35575
+ }[];
35576
+ retryable?: boolean;
35577
+ context?: unknown;
35578
+ };
35579
+ };
35580
+ };
35581
+ /** @description Forbidden */
35582
+ 403: {
35583
+ headers: {
35584
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35585
+ "Retry-After"?: number;
35586
+ [name: string]: unknown;
35587
+ };
35588
+ content: {
35589
+ "application/json": {
35590
+ code: string;
35591
+ message: string;
35592
+ links?: {
35593
+ docs: string;
35594
+ schema: string;
35595
+ };
35596
+ issues?: {
35597
+ message: string;
35598
+ path?: (string | number)[];
35599
+ schema?: string;
35600
+ }[];
35601
+ retryable?: boolean;
35602
+ context?: unknown;
35603
+ };
35604
+ };
36100
35605
  };
35606
+ /** @description Not found */
35607
+ 404: {
35608
+ headers: {
35609
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35610
+ "Retry-After"?: number;
35611
+ [name: string]: unknown;
35612
+ };
35613
+ content: {
35614
+ "application/json": {
35615
+ code: string;
35616
+ message: string;
35617
+ links?: {
35618
+ docs: string;
35619
+ schema: string;
35620
+ };
35621
+ issues?: {
35622
+ message: string;
35623
+ path?: (string | number)[];
35624
+ schema?: string;
35625
+ }[];
35626
+ retryable?: boolean;
35627
+ context?: unknown;
35628
+ };
35629
+ };
35630
+ };
35631
+ /** @description Conflict */
35632
+ 409: {
35633
+ headers: {
35634
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35635
+ "Retry-After"?: number;
35636
+ [name: string]: unknown;
35637
+ };
35638
+ content: {
35639
+ "application/json": {
35640
+ code: string;
35641
+ message: string;
35642
+ links?: {
35643
+ docs: string;
35644
+ schema: string;
35645
+ };
35646
+ issues?: {
35647
+ message: string;
35648
+ path?: (string | number)[];
35649
+ schema?: string;
35650
+ }[];
35651
+ retryable?: boolean;
35652
+ context?: unknown;
35653
+ };
35654
+ };
35655
+ };
35656
+ /** @description Gone */
35657
+ 410: {
35658
+ headers: {
35659
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35660
+ "Retry-After"?: number;
35661
+ [name: string]: unknown;
35662
+ };
35663
+ content: {
35664
+ "application/json": {
35665
+ code: string;
35666
+ message: string;
35667
+ links?: {
35668
+ docs: string;
35669
+ schema: string;
35670
+ };
35671
+ issues?: {
35672
+ message: string;
35673
+ path?: (string | number)[];
35674
+ schema?: string;
35675
+ }[];
35676
+ retryable?: boolean;
35677
+ context?: unknown;
35678
+ };
35679
+ };
35680
+ };
35681
+ /** @description Unprocessable content */
35682
+ 422: {
35683
+ headers: {
35684
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35685
+ "Retry-After"?: number;
35686
+ [name: string]: unknown;
35687
+ };
35688
+ content: {
35689
+ "application/json": {
35690
+ code: string;
35691
+ message: string;
35692
+ links?: {
35693
+ docs: string;
35694
+ schema: string;
35695
+ };
35696
+ issues?: {
35697
+ message: string;
35698
+ path?: (string | number)[];
35699
+ schema?: string;
35700
+ }[];
35701
+ retryable?: boolean;
35702
+ context?: unknown;
35703
+ };
35704
+ };
35705
+ };
35706
+ /** @description Internal server error */
35707
+ 500: {
35708
+ headers: {
35709
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35710
+ "Retry-After"?: number;
35711
+ [name: string]: unknown;
35712
+ };
35713
+ content: {
35714
+ "application/json": {
35715
+ code: string;
35716
+ message: string;
35717
+ links?: {
35718
+ docs: string;
35719
+ schema: string;
35720
+ };
35721
+ issues?: {
35722
+ message: string;
35723
+ path?: (string | number)[];
35724
+ schema?: string;
35725
+ }[];
35726
+ retryable?: boolean;
35727
+ context?: unknown;
35728
+ };
35729
+ };
35730
+ };
35731
+ /** @description Service unavailable */
35732
+ 503: {
35733
+ headers: {
35734
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
35735
+ "Retry-After"?: number;
35736
+ [name: string]: unknown;
35737
+ };
35738
+ content: {
35739
+ "application/json": {
35740
+ code: string;
35741
+ message: string;
35742
+ links?: {
35743
+ docs: string;
35744
+ schema: string;
35745
+ };
35746
+ issues?: {
35747
+ message: string;
35748
+ path?: (string | number)[];
35749
+ schema?: string;
35750
+ }[];
35751
+ retryable?: boolean;
35752
+ context?: unknown;
35753
+ };
35754
+ };
35755
+ };
35756
+ };
35757
+ };
35758
+ putCsvImportsUploadsByUploadRef: {
35759
+ parameters: {
35760
+ query?: never;
36101
35761
  header?: never;
36102
35762
  path: {
36103
35763
  uploadRef: string;
@@ -36113,6 +35773,8 @@ export interface operations {
36113
35773
  };
36114
35774
  content: {
36115
35775
  "application/json": {
35776
+ /** @constant */
35777
+ status: "uploaded";
36116
35778
  inspection: {
36117
35779
  /** @constant */
36118
35780
  encoding: "utf-8";
@@ -36370,14 +36032,278 @@ export interface operations {
36370
36032
  };
36371
36033
  };
36372
36034
  };
36373
- putCsvImportsUploadsByUploadRef: {
36035
+ getCsvImportsById: {
36374
36036
  parameters: {
36375
- query: {
36376
- resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
36037
+ query?: never;
36038
+ header?: never;
36039
+ path: {
36040
+ id: string;
36041
+ };
36042
+ cookie?: never;
36043
+ };
36044
+ requestBody?: never;
36045
+ responses: {
36046
+ /** @description Successful response */
36047
+ 200: {
36048
+ headers: {
36049
+ [name: string]: unknown;
36050
+ };
36051
+ content: {
36052
+ "application/json": {
36053
+ /** Format: uuid */
36054
+ id: string;
36055
+ /** @enum {string} */
36056
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
36057
+ outcome?: {
36058
+ created: number;
36059
+ updated: number;
36060
+ existing: number;
36061
+ failed: number;
36062
+ skipped: number;
36063
+ };
36064
+ /** @enum {string} */
36065
+ code?: "csvImportFailed" | "csvImportRecordFailed";
36066
+ };
36067
+ };
36068
+ };
36069
+ /** @description Bad request */
36070
+ 400: {
36071
+ headers: {
36072
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36073
+ "Retry-After"?: number;
36074
+ [name: string]: unknown;
36075
+ };
36076
+ content: {
36077
+ "application/json": {
36078
+ code: string;
36079
+ message: string;
36080
+ links?: {
36081
+ docs: string;
36082
+ schema: string;
36083
+ };
36084
+ issues?: {
36085
+ message: string;
36086
+ path?: (string | number)[];
36087
+ schema?: string;
36088
+ }[];
36089
+ retryable?: boolean;
36090
+ context?: unknown;
36091
+ };
36092
+ };
36093
+ };
36094
+ /** @description Unauthorized */
36095
+ 401: {
36096
+ headers: {
36097
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36098
+ "Retry-After"?: number;
36099
+ [name: string]: unknown;
36100
+ };
36101
+ content: {
36102
+ "application/json": {
36103
+ code: string;
36104
+ message: string;
36105
+ links?: {
36106
+ docs: string;
36107
+ schema: string;
36108
+ };
36109
+ issues?: {
36110
+ message: string;
36111
+ path?: (string | number)[];
36112
+ schema?: string;
36113
+ }[];
36114
+ retryable?: boolean;
36115
+ context?: unknown;
36116
+ };
36117
+ };
36118
+ };
36119
+ /** @description Forbidden */
36120
+ 403: {
36121
+ headers: {
36122
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36123
+ "Retry-After"?: number;
36124
+ [name: string]: unknown;
36125
+ };
36126
+ content: {
36127
+ "application/json": {
36128
+ code: string;
36129
+ message: string;
36130
+ links?: {
36131
+ docs: string;
36132
+ schema: string;
36133
+ };
36134
+ issues?: {
36135
+ message: string;
36136
+ path?: (string | number)[];
36137
+ schema?: string;
36138
+ }[];
36139
+ retryable?: boolean;
36140
+ context?: unknown;
36141
+ };
36142
+ };
36143
+ };
36144
+ /** @description Not found */
36145
+ 404: {
36146
+ headers: {
36147
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36148
+ "Retry-After"?: number;
36149
+ [name: string]: unknown;
36150
+ };
36151
+ content: {
36152
+ "application/json": {
36153
+ code: string;
36154
+ message: string;
36155
+ links?: {
36156
+ docs: string;
36157
+ schema: string;
36158
+ };
36159
+ issues?: {
36160
+ message: string;
36161
+ path?: (string | number)[];
36162
+ schema?: string;
36163
+ }[];
36164
+ retryable?: boolean;
36165
+ context?: unknown;
36166
+ };
36167
+ };
36168
+ };
36169
+ /** @description Conflict */
36170
+ 409: {
36171
+ headers: {
36172
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36173
+ "Retry-After"?: number;
36174
+ [name: string]: unknown;
36175
+ };
36176
+ content: {
36177
+ "application/json": {
36178
+ code: string;
36179
+ message: string;
36180
+ links?: {
36181
+ docs: string;
36182
+ schema: string;
36183
+ };
36184
+ issues?: {
36185
+ message: string;
36186
+ path?: (string | number)[];
36187
+ schema?: string;
36188
+ }[];
36189
+ retryable?: boolean;
36190
+ context?: unknown;
36191
+ };
36192
+ };
36193
+ };
36194
+ /** @description Gone */
36195
+ 410: {
36196
+ headers: {
36197
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36198
+ "Retry-After"?: number;
36199
+ [name: string]: unknown;
36200
+ };
36201
+ content: {
36202
+ "application/json": {
36203
+ code: string;
36204
+ message: string;
36205
+ links?: {
36206
+ docs: string;
36207
+ schema: string;
36208
+ };
36209
+ issues?: {
36210
+ message: string;
36211
+ path?: (string | number)[];
36212
+ schema?: string;
36213
+ }[];
36214
+ retryable?: boolean;
36215
+ context?: unknown;
36216
+ };
36217
+ };
36218
+ };
36219
+ /** @description Unprocessable content */
36220
+ 422: {
36221
+ headers: {
36222
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36223
+ "Retry-After"?: number;
36224
+ [name: string]: unknown;
36225
+ };
36226
+ content: {
36227
+ "application/json": {
36228
+ code: string;
36229
+ message: string;
36230
+ links?: {
36231
+ docs: string;
36232
+ schema: string;
36233
+ };
36234
+ issues?: {
36235
+ message: string;
36236
+ path?: (string | number)[];
36237
+ schema?: string;
36238
+ }[];
36239
+ retryable?: boolean;
36240
+ context?: unknown;
36241
+ };
36242
+ };
36243
+ };
36244
+ /** @description Internal server error */
36245
+ 500: {
36246
+ headers: {
36247
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36248
+ "Retry-After"?: number;
36249
+ [name: string]: unknown;
36250
+ };
36251
+ content: {
36252
+ "application/json": {
36253
+ code: string;
36254
+ message: string;
36255
+ links?: {
36256
+ docs: string;
36257
+ schema: string;
36258
+ };
36259
+ issues?: {
36260
+ message: string;
36261
+ path?: (string | number)[];
36262
+ schema?: string;
36263
+ }[];
36264
+ retryable?: boolean;
36265
+ context?: unknown;
36266
+ };
36267
+ };
36268
+ };
36269
+ /** @description Service unavailable */
36270
+ 503: {
36271
+ headers: {
36272
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
36273
+ "Retry-After"?: number;
36274
+ [name: string]: unknown;
36275
+ };
36276
+ content: {
36277
+ "application/json": {
36278
+ code: string;
36279
+ message: string;
36280
+ links?: {
36281
+ docs: string;
36282
+ schema: string;
36283
+ };
36284
+ issues?: {
36285
+ message: string;
36286
+ path?: (string | number)[];
36287
+ schema?: string;
36288
+ }[];
36289
+ retryable?: boolean;
36290
+ context?: unknown;
36291
+ };
36292
+ };
36293
+ };
36294
+ };
36295
+ };
36296
+ getCsvImportsByIdRecords: {
36297
+ parameters: {
36298
+ query?: {
36299
+ /** @description Opaque pagination cursor returned by a previous response. Pass it back unchanged. */
36300
+ cursor?: string;
36301
+ limit?: number;
36302
+ state?: "all" | ("created" | "updated" | "existing" | "skipped" | "failed");
36377
36303
  };
36378
36304
  header?: never;
36379
36305
  path: {
36380
- uploadRef: string;
36306
+ id: string;
36381
36307
  };
36382
36308
  cookie?: never;
36383
36309
  };
@@ -36390,35 +36316,23 @@ export interface operations {
36390
36316
  };
36391
36317
  content: {
36392
36318
  "application/json": {
36393
- /** @constant */
36394
- status: "uploaded";
36395
- inspection: {
36396
- /** @constant */
36397
- encoding: "utf-8";
36319
+ data: {
36320
+ recordRef: string;
36321
+ rowNumbers: number[];
36398
36322
  /** @enum {string} */
36399
- delimiter: "," | ";" | "\t" | "|";
36400
- headerRow: number;
36401
- headers: string[];
36402
- detection: {
36403
- /** @enum {string} */
36404
- state: "exact" | "possible" | "ambiguous" | "none";
36405
- candidates: {
36406
- id: string;
36407
- version: number;
36408
- /** @enum {string} */
36409
- resource: "bankRecords" | "owners" | "expenses" | "vendors" | "deposits";
36410
- label: string;
36411
- suggestions: {
36412
- [key: string]: string[];
36413
- };
36414
- evidence: {
36415
- forbiddenHeaders: string[];
36416
- matchedHeaders: string[];
36417
- missingHeaders: string[];
36418
- };
36419
- }[];
36420
- };
36421
- };
36323
+ state: "created" | "updated" | "existing" | "skipped" | "failed";
36324
+ entityIds: string[];
36325
+ issues: {
36326
+ code: string;
36327
+ field?: string;
36328
+ rowNumber: number;
36329
+ message: string;
36330
+ details?: {
36331
+ [key: string]: unknown;
36332
+ };
36333
+ }[];
36334
+ }[];
36335
+ nextCursor: string | null;
36422
36336
  };
36423
36337
  };
36424
36338
  };
@@ -52578,7 +52492,7 @@ export interface operations {
52578
52492
  bankRecordStartDate?: string;
52579
52493
  } | {
52580
52494
  /** @constant */
52581
- type: "detect";
52495
+ type: "detection";
52582
52496
  /** Format: uuid */
52583
52497
  accountId?: string;
52584
52498
  bankRecordStartDate?: string;
@@ -52603,7 +52517,7 @@ export interface operations {
52603
52517
  issueCounts: {
52604
52518
  [key: string]: number;
52605
52519
  };
52606
- sourceHash: string;
52520
+ fileHash: string;
52607
52521
  planHash: string;
52608
52522
  details?: {
52609
52523
  canImport: boolean;
@@ -52623,7 +52537,7 @@ export interface operations {
52623
52537
  unmatched: number;
52624
52538
  ambiguous: number;
52625
52539
  };
52626
- sourceHash: string;
52540
+ fileHash: string;
52627
52541
  /** @constant */
52628
52542
  resource: "bankRecords";
52629
52543
  mapping: {
@@ -52684,7 +52598,7 @@ export interface operations {
52684
52598
  unmatched: number;
52685
52599
  ambiguous: number;
52686
52600
  };
52687
- sourceHash: string;
52601
+ fileHash: string;
52688
52602
  /** @constant */
52689
52603
  resource: "owners";
52690
52604
  mapping: {
@@ -52796,7 +52710,7 @@ export interface operations {
52796
52710
  unmatched: number;
52797
52711
  ambiguous: number;
52798
52712
  };
52799
- sourceHash: string;
52713
+ fileHash: string;
52800
52714
  /** @constant */
52801
52715
  resource: "vendors";
52802
52716
  mapping: {
@@ -52895,7 +52809,7 @@ export interface operations {
52895
52809
  unmatched: number;
52896
52810
  ambiguous: number;
52897
52811
  };
52898
- sourceHash: string;
52812
+ fileHash: string;
52899
52813
  /** @constant */
52900
52814
  resource: "expenses";
52901
52815
  mapping: {
@@ -53022,7 +52936,7 @@ export interface operations {
53022
52936
  unmatched: number;
53023
52937
  ambiguous: number;
53024
52938
  };
53025
- sourceHash: string;
52939
+ fileHash: string;
53026
52940
  /** @constant */
53027
52941
  resource: "deposits";
53028
52942
  mapping: {
@@ -53136,7 +53050,8 @@ export interface operations {
53136
53050
  artifactExpiresAt?: string;
53137
53051
  /** Format: date-time */
53138
53052
  artifactsCleanedAt?: string;
53139
- errorCode?: string;
53053
+ /** @constant */
53054
+ errorCode?: "csvPreviewFailed";
53140
53055
  /** Format: uuid */
53141
53056
  confirmationSyncId?: string;
53142
53057
  };