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

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