@apideck/unify 0.28.0 → 0.28.1

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.
Files changed (90) hide show
  1. package/docs/sdks/categories/README.md +12 -0
  2. package/examples/package-lock.json +2 -2
  3. package/funcs/accountingCategoriesGet.d.ts.map +1 -1
  4. package/funcs/accountingCategoriesGet.js +4 -2
  5. package/funcs/accountingCategoriesGet.js.map +1 -1
  6. package/funcs/accountingCategoriesList.d.ts.map +1 -1
  7. package/funcs/accountingCategoriesList.js +4 -2
  8. package/funcs/accountingCategoriesList.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +4 -4
  11. package/lib/config.js +4 -4
  12. package/models/components/balancesheetfilter.d.ts +5 -0
  13. package/models/components/balancesheetfilter.d.ts.map +1 -1
  14. package/models/components/balancesheetfilter.js +4 -0
  15. package/models/components/balancesheetfilter.js.map +1 -1
  16. package/models/components/categoriesfilter.d.ts +67 -0
  17. package/models/components/categoriesfilter.d.ts.map +1 -0
  18. package/models/components/categoriesfilter.js +82 -0
  19. package/models/components/categoriesfilter.js.map +1 -0
  20. package/models/components/category.d.ts +39 -0
  21. package/models/components/category.d.ts.map +1 -1
  22. package/models/components/category.js +26 -1
  23. package/models/components/category.js.map +1 -1
  24. package/models/components/connection.d.ts +13 -13
  25. package/models/components/connection.d.ts.map +1 -1
  26. package/models/components/connection.js +16 -17
  27. package/models/components/connection.js.map +1 -1
  28. package/models/components/customfield.d.ts +37 -38
  29. package/models/components/customfield.d.ts.map +1 -1
  30. package/models/components/customfield.js +25 -54
  31. package/models/components/customfield.js.map +1 -1
  32. package/models/components/index.d.ts +1 -0
  33. package/models/components/index.d.ts.map +1 -1
  34. package/models/components/index.js +1 -0
  35. package/models/components/index.js.map +1 -1
  36. package/models/components/invoicelineitem.d.ts +10 -0
  37. package/models/components/invoicelineitem.d.ts.map +1 -1
  38. package/models/components/invoicelineitem.js +8 -0
  39. package/models/components/invoicelineitem.js.map +1 -1
  40. package/models/components/profitandlossfilter.d.ts +5 -0
  41. package/models/components/profitandlossfilter.d.ts.map +1 -1
  42. package/models/components/profitandlossfilter.js +4 -0
  43. package/models/components/profitandlossfilter.js.map +1 -1
  44. package/models/components/simpleformfieldoption.d.ts +13 -13
  45. package/models/components/simpleformfieldoption.d.ts.map +1 -1
  46. package/models/components/simpleformfieldoption.js +16 -16
  47. package/models/components/simpleformfieldoption.js.map +1 -1
  48. package/models/operations/accountingcategoriesall.d.ts +5 -0
  49. package/models/operations/accountingcategoriesall.d.ts.map +1 -1
  50. package/models/operations/accountingcategoriesall.js +2 -0
  51. package/models/operations/accountingcategoriesall.js.map +1 -1
  52. package/models/operations/accountingcategoriesone.d.ts +5 -0
  53. package/models/operations/accountingcategoriesone.d.ts.map +1 -1
  54. package/models/operations/accountingcategoriesone.js +2 -0
  55. package/models/operations/accountingcategoriesone.js.map +1 -1
  56. package/package.json +2 -2
  57. package/src/__tests__/activities.test.ts +8 -8
  58. package/src/__tests__/applicants.test.ts +4 -4
  59. package/src/__tests__/bankfeedaccounts.test.ts +4 -4
  60. package/src/__tests__/billpayments.test.ts +15 -15
  61. package/src/__tests__/bills.test.ts +8 -8
  62. package/src/__tests__/companies.test.ts +7 -7
  63. package/src/__tests__/contacts.test.ts +7 -7
  64. package/src/__tests__/creditnotes.test.ts +38 -38
  65. package/src/__tests__/customers.test.ts +7 -7
  66. package/src/__tests__/employees.test.ts +5 -5
  67. package/src/__tests__/expenses.test.ts +6 -6
  68. package/src/__tests__/invoices.test.ts +33 -33
  69. package/src/__tests__/journalentries.test.ts +8 -8
  70. package/src/__tests__/leads.test.ts +7 -7
  71. package/src/__tests__/ledgeraccounts.test.ts +15 -15
  72. package/src/__tests__/opportunities.test.ts +4 -4
  73. package/src/__tests__/payments.test.ts +15 -15
  74. package/src/__tests__/purchaseorders.test.ts +29 -29
  75. package/src/__tests__/suppliers.test.ts +7 -7
  76. package/src/__tests__/taxrates.test.ts +8 -8
  77. package/src/funcs/accountingCategoriesGet.ts +15 -5
  78. package/src/funcs/accountingCategoriesList.ts +17 -7
  79. package/src/lib/config.ts +4 -4
  80. package/src/models/components/balancesheetfilter.ts +9 -0
  81. package/src/models/components/categoriesfilter.ts +104 -0
  82. package/src/models/components/category.ts +39 -0
  83. package/src/models/components/connection.ts +27 -20
  84. package/src/models/components/customfield.ts +51 -83
  85. package/src/models/components/index.ts +1 -0
  86. package/src/models/components/invoicelineitem.ts +18 -0
  87. package/src/models/components/profitandlossfilter.ts +9 -0
  88. package/src/models/components/simpleformfieldoption.ts +21 -18
  89. package/src/models/operations/accountingcategoriesall.ts +7 -0
  90. package/src/models/operations/accountingcategoriesone.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apideck/unify",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -16,7 +16,7 @@
16
16
  "prepublishOnly": "npm run build"
17
17
  },
18
18
  "peerDependencies": {
19
- "zod": ">= 3"
19
+ "zod": "^3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@eslint/js": "^9.19.0",
@@ -270,10 +270,10 @@ test("Activities Crm Activities All", async () => {
270
270
  id: "2389328923893298",
271
271
  name: "employee_level",
272
272
  description: "Employee Level",
273
- value: [
274
- "<value>",
275
- "<value>",
276
- ],
273
+ value: {
274
+ "0": "<value>",
275
+ "1": "<value>",
276
+ },
277
277
  },
278
278
  ],
279
279
  attendees: [
@@ -1000,10 +1000,10 @@ test("Activities Crm Activities Update", async () => {
1000
1000
  id: "2389328923893298",
1001
1001
  name: "employee_level",
1002
1002
  description: "Employee Level",
1003
- value: [
1004
- {},
1005
- {},
1006
- ],
1003
+ value: {
1004
+ "0": {},
1005
+ "1": {},
1006
+ },
1007
1007
  },
1008
1008
  ],
1009
1009
  attendees: [
@@ -1217,10 +1217,10 @@ test("Applicants Ats Applicants Update", async () => {
1217
1217
  id: "2389328923893298",
1218
1218
  name: "employee_level",
1219
1219
  description: "Employee Level",
1220
- value: [
1221
- {},
1222
- {},
1223
- ],
1220
+ value: {
1221
+ "0": {},
1222
+ "1": {},
1223
+ },
1224
1224
  },
1225
1225
  ],
1226
1226
  phoneNumbers: [
@@ -289,10 +289,10 @@ test("Bankfeedaccounts Accounting Bank Feed Accounts Update", async () => {
289
289
  id: "2389328923893298",
290
290
  name: "employee_level",
291
291
  description: "Employee Level",
292
- value: [
293
- {},
294
- {},
295
- ],
292
+ value: {
293
+ "0": {},
294
+ "1": {},
295
+ },
296
296
  },
297
297
  ],
298
298
  },
@@ -257,10 +257,10 @@ test("Billpayments Accounting Bill Payments All", async () => {
257
257
  id: "2389328923893298",
258
258
  name: "employee_level",
259
259
  description: "Employee Level",
260
- value: [
261
- "<value>",
262
- "<value>",
263
- ],
260
+ value: {
261
+ "0": "<value>",
262
+ "1": "<value>",
263
+ },
264
264
  },
265
265
  ],
266
266
  rowVersion: "1-12345",
@@ -384,10 +384,10 @@ test("Billpayments Accounting Bill Payments All", async () => {
384
384
  id: "2389328923893298",
385
385
  name: "employee_level",
386
386
  description: "Employee Level",
387
- value: [
388
- {},
389
- {},
390
- ],
387
+ value: {
388
+ "0": {},
389
+ "1": {},
390
+ },
391
391
  },
392
392
  ],
393
393
  rowVersion: "1-12345",
@@ -764,9 +764,9 @@ test("Billpayments Accounting Bill Payments One", async () => {
764
764
  id: "2389328923893298",
765
765
  name: "employee_level",
766
766
  description: "Employee Level",
767
- value: [
768
- {},
769
- ],
767
+ value: {
768
+ "0": {},
769
+ },
770
770
  },
771
771
  ],
772
772
  rowVersion: "1-12345",
@@ -906,10 +906,10 @@ test("Billpayments Accounting Bill Payments Update", async () => {
906
906
  id: "2389328923893298",
907
907
  name: "employee_level",
908
908
  description: "Employee Level",
909
- value: [
910
- {},
911
- {},
912
- ],
909
+ value: {
910
+ "0": {},
911
+ "1": {},
912
+ },
913
913
  },
914
914
  {
915
915
  id: "2389328923893298",
@@ -959,11 +959,11 @@ test("Bills Accounting Bills Add", async () => {
959
959
  id: "2389328923893298",
960
960
  name: "employee_level",
961
961
  description: "Employee Level",
962
- value: [
963
- "<value>",
964
- "<value>",
965
- "<value>",
966
- ],
962
+ value: {
963
+ "0": "<value>",
964
+ "1": "<value>",
965
+ "2": "<value>",
966
+ },
967
967
  },
968
968
  ],
969
969
  passThrough: [
@@ -1564,9 +1564,9 @@ test("Bills Accounting Bills Update", async () => {
1564
1564
  id: "2389328923893298",
1565
1565
  name: "employee_level",
1566
1566
  description: "Employee Level",
1567
- value: [
1568
- {},
1569
- ],
1567
+ value: {
1568
+ "0": {},
1569
+ },
1570
1570
  },
1571
1571
  ],
1572
1572
  passThrough: [
@@ -367,10 +367,10 @@ test("Companies Crm Companies All", async () => {
367
367
  id: "2389328923893298",
368
368
  name: "employee_level",
369
369
  description: "Employee Level",
370
- value: [
371
- {},
372
- {},
373
- ],
370
+ value: {
371
+ "0": {},
372
+ "1": {},
373
+ },
374
374
  },
375
375
  ],
376
376
  tags: [
@@ -1517,9 +1517,9 @@ test("Companies Crm Companies Update", async () => {
1517
1517
  id: "2389328923893298",
1518
1518
  name: "employee_level",
1519
1519
  description: "Employee Level",
1520
- value: [
1521
- {},
1522
- ],
1520
+ value: {
1521
+ "0": {},
1522
+ },
1523
1523
  },
1524
1524
  {
1525
1525
  id: "2389328923893298",
@@ -401,10 +401,10 @@ test("Contacts Crm Contacts All", async () => {
401
401
  id: "2389328923893298",
402
402
  name: "employee_level",
403
403
  description: "Employee Level",
404
- value: [
405
- {},
406
- {},
407
- ],
404
+ value: {
405
+ "0": {},
406
+ "1": {},
407
+ },
408
408
  },
409
409
  ],
410
410
  tags: [
@@ -1349,9 +1349,9 @@ test("Contacts Crm Contacts Update", async () => {
1349
1349
  id: "2389328923893298",
1350
1350
  name: "employee_level",
1351
1351
  description: "Employee Level",
1352
- value: [
1353
- {},
1354
- ],
1352
+ value: {
1353
+ "0": {},
1354
+ },
1355
1355
  },
1356
1356
  ],
1357
1357
  tags: [
@@ -280,10 +280,10 @@ test("Creditnotes Accounting Credit Notes All", async () => {
280
280
  id: "2389328923893298",
281
281
  name: "employee_level",
282
282
  description: "Employee Level",
283
- value: [
284
- "<value>",
285
- "<value>",
286
- ],
283
+ value: {
284
+ "0": "<value>",
285
+ "1": "<value>",
286
+ },
287
287
  },
288
288
  ],
289
289
  rowVersion: "1-12345",
@@ -401,10 +401,10 @@ test("Creditnotes Accounting Credit Notes All", async () => {
401
401
  id: "2389328923893298",
402
402
  name: "employee_level",
403
403
  description: "Employee Level",
404
- value: [
405
- {},
406
- {},
407
- ],
404
+ value: {
405
+ "0": {},
406
+ "1": {},
407
+ },
408
408
  },
409
409
  ],
410
410
  rowVersion: "1-12345",
@@ -788,9 +788,9 @@ test("Creditnotes Accounting Credit Notes All", async () => {
788
788
  id: "2389328923893298",
789
789
  name: "employee_level",
790
790
  description: "Employee Level",
791
- value: [
792
- {},
793
- ],
791
+ value: {
792
+ "0": {},
793
+ },
794
794
  },
795
795
  {
796
796
  id: "2389328923893298",
@@ -891,11 +891,11 @@ test("Creditnotes Accounting Credit Notes All", async () => {
891
891
  id: "2389328923893298",
892
892
  name: "employee_level",
893
893
  description: "Employee Level",
894
- value: [
895
- {},
896
- {},
897
- {},
898
- ],
894
+ value: {
895
+ "0": {},
896
+ "1": {},
897
+ "2": {},
898
+ },
899
899
  },
900
900
  ],
901
901
  rowVersion: "1-12345",
@@ -1210,11 +1210,11 @@ test("Creditnotes Accounting Credit Notes Add", async () => {
1210
1210
  id: "2389328923893298",
1211
1211
  name: "employee_level",
1212
1212
  description: "Employee Level",
1213
- value: [
1214
- "<value>",
1215
- "<value>",
1216
- "<value>",
1217
- ],
1213
+ value: {
1214
+ "0": "<value>",
1215
+ "1": "<value>",
1216
+ "2": "<value>",
1217
+ },
1218
1218
  },
1219
1219
  {
1220
1220
  id: "2389328923893298",
@@ -1366,9 +1366,9 @@ test("Creditnotes Accounting Credit Notes One", async () => {
1366
1366
  id: "2389328923893298",
1367
1367
  name: "employee_level",
1368
1368
  description: "Employee Level",
1369
- value: [
1370
- {},
1371
- ],
1369
+ value: {
1370
+ "0": {},
1371
+ },
1372
1372
  },
1373
1373
  ],
1374
1374
  rowVersion: "1-12345",
@@ -1577,18 +1577,18 @@ test("Creditnotes Accounting Credit Notes One", async () => {
1577
1577
  id: "2389328923893298",
1578
1578
  name: "employee_level",
1579
1579
  description: "Employee Level",
1580
- value: [
1581
- "<value>",
1582
- ],
1580
+ value: {
1581
+ "0": "<value>",
1582
+ },
1583
1583
  },
1584
1584
  {
1585
1585
  id: "2389328923893298",
1586
1586
  name: "employee_level",
1587
1587
  description: "Employee Level",
1588
- value: [
1589
- "<value>",
1590
- "<value>",
1591
- ],
1588
+ value: {
1589
+ "0": "<value>",
1590
+ "1": "<value>",
1591
+ },
1592
1592
  },
1593
1593
  ],
1594
1594
  rowVersion: "1-12345",
@@ -1716,10 +1716,10 @@ test("Creditnotes Accounting Credit Notes Update", async () => {
1716
1716
  id: "2389328923893298",
1717
1717
  name: "employee_level",
1718
1718
  description: "Employee Level",
1719
- value: [
1720
- {},
1721
- {},
1722
- ],
1719
+ value: {
1720
+ "0": {},
1721
+ "1": {},
1722
+ },
1723
1723
  },
1724
1724
  {
1725
1725
  id: "2389328923893298",
@@ -1780,9 +1780,9 @@ test("Creditnotes Accounting Credit Notes Update", async () => {
1780
1780
  id: "2389328923893298",
1781
1781
  name: "employee_level",
1782
1782
  description: "Employee Level",
1783
- value: [
1784
- {},
1785
- ],
1783
+ value: {
1784
+ "0": {},
1785
+ },
1786
1786
  },
1787
1787
  ],
1788
1788
  rowVersion: "1-12345",
@@ -430,10 +430,10 @@ test("Customers Accounting Customers All", async () => {
430
430
  id: "2389328923893298",
431
431
  name: "employee_level",
432
432
  description: "Employee Level",
433
- value: [
434
- {},
435
- {},
436
- ],
433
+ value: {
434
+ "0": {},
435
+ "1": {},
436
+ },
437
437
  },
438
438
  ],
439
439
  updatedBy: "12345",
@@ -1533,9 +1533,9 @@ test("Customers Accounting Customers Update", async () => {
1533
1533
  id: "2389328923893298",
1534
1534
  name: "employee_level",
1535
1535
  description: "Employee Level",
1536
- value: [
1537
- {},
1538
- ],
1536
+ value: {
1537
+ "0": {},
1538
+ },
1539
1539
  },
1540
1540
  ],
1541
1541
  rowVersion: "1-12345",
@@ -1446,11 +1446,11 @@ test("Employees Hris Employees Add", async () => {
1446
1446
  id: "2389328923893298",
1447
1447
  name: "employee_level",
1448
1448
  description: "Employee Level",
1449
- value: [
1450
- "<value>",
1451
- "<value>",
1452
- "<value>",
1453
- ],
1449
+ value: {
1450
+ "0": "<value>",
1451
+ "1": "<value>",
1452
+ "2": "<value>",
1453
+ },
1454
1454
  },
1455
1455
  ],
1456
1456
  socialLinks: [
@@ -327,9 +327,9 @@ test("Expenses Accounting Expenses All", async () => {
327
327
  id: "2389328923893298",
328
328
  name: "employee_level",
329
329
  description: "Employee Level",
330
- value: [
331
- {},
332
- ],
330
+ value: {
331
+ "0": {},
332
+ },
333
333
  },
334
334
  {
335
335
  id: "2389328923893298",
@@ -642,9 +642,9 @@ test("Expenses Accounting Expenses One", async () => {
642
642
  id: "2389328923893298",
643
643
  name: "employee_level",
644
644
  description: "Employee Level",
645
- value: [
646
- {},
647
- ],
645
+ value: {
646
+ "0": {},
647
+ },
648
648
  },
649
649
  {
650
650
  id: "2389328923893298",
@@ -560,9 +560,9 @@ test("Invoices Accounting Invoices All", async () => {
560
560
  id: "2389328923893298",
561
561
  name: "employee_level",
562
562
  description: "Employee Level",
563
- value: [
564
- {},
565
- ],
563
+ value: {
564
+ "0": {},
565
+ },
566
566
  },
567
567
  ],
568
568
  rowVersion: "1-12345",
@@ -943,11 +943,11 @@ test("Invoices Accounting Invoices All", async () => {
943
943
  id: "2389328923893298",
944
944
  name: "employee_level",
945
945
  description: "Employee Level",
946
- value: [
947
- {},
948
- {},
949
- {},
950
- ],
946
+ value: {
947
+ "0": {},
948
+ "1": {},
949
+ "2": {},
950
+ },
951
951
  },
952
952
  ],
953
953
  rowVersion: "1-12345",
@@ -1007,11 +1007,11 @@ test("Invoices Accounting Invoices All", async () => {
1007
1007
  id: "2389328923893298",
1008
1008
  name: "employee_level",
1009
1009
  description: "Employee Level",
1010
- value: [
1011
- {},
1012
- {},
1013
- {},
1014
- ],
1010
+ value: {
1011
+ "0": {},
1012
+ "1": {},
1013
+ "2": {},
1014
+ },
1015
1015
  },
1016
1016
  {
1017
1017
  id: "2389328923893298",
@@ -1454,20 +1454,20 @@ test("Invoices Accounting Invoices Add", async () => {
1454
1454
  id: "2389328923893298",
1455
1455
  name: "employee_level",
1456
1456
  description: "Employee Level",
1457
- value: [
1458
- "<value>",
1459
- "<value>",
1460
- ],
1457
+ value: {
1458
+ "0": "<value>",
1459
+ "1": "<value>",
1460
+ },
1461
1461
  },
1462
1462
  {
1463
1463
  id: "2389328923893298",
1464
1464
  name: "employee_level",
1465
1465
  description: "Employee Level",
1466
- value: [
1467
- "<value>",
1468
- "<value>",
1469
- "<value>",
1470
- ],
1466
+ value: {
1467
+ "0": "<value>",
1468
+ "1": "<value>",
1469
+ "2": "<value>",
1470
+ },
1471
1471
  },
1472
1472
  {
1473
1473
  id: "2389328923893298",
@@ -1629,9 +1629,9 @@ test("Invoices Accounting Invoices One", async () => {
1629
1629
  id: "2389328923893298",
1630
1630
  name: "employee_level",
1631
1631
  description: "Employee Level",
1632
- value: [
1633
- {},
1634
- ],
1632
+ value: {
1633
+ "0": {},
1634
+ },
1635
1635
  },
1636
1636
  {
1637
1637
  id: "2389328923893298",
@@ -1691,9 +1691,9 @@ test("Invoices Accounting Invoices One", async () => {
1691
1691
  id: "2389328923893298",
1692
1692
  name: "employee_level",
1693
1693
  description: "Employee Level",
1694
- value: [
1695
- {},
1696
- ],
1694
+ value: {
1695
+ "0": {},
1696
+ },
1697
1697
  },
1698
1698
  ],
1699
1699
  rowVersion: "1-12345",
@@ -2095,11 +2095,11 @@ test("Invoices Accounting Invoices Update", async () => {
2095
2095
  id: "2389328923893298",
2096
2096
  name: "employee_level",
2097
2097
  description: "Employee Level",
2098
- value: [
2099
- "<value>",
2100
- "<value>",
2101
- "<value>",
2102
- ],
2098
+ value: {
2099
+ "0": "<value>",
2100
+ "1": "<value>",
2101
+ "2": "<value>",
2102
+ },
2103
2103
  },
2104
2104
  ],
2105
2105
  rowVersion: "1-12345",
@@ -859,11 +859,11 @@ test("Journalentries Accounting Journal Entries Add", async () => {
859
859
  id: "2389328923893298",
860
860
  name: "employee_level",
861
861
  description: "Employee Level",
862
- value: [
863
- "<value>",
864
- "<value>",
865
- "<value>",
866
- ],
862
+ value: {
863
+ "0": "<value>",
864
+ "1": "<value>",
865
+ "2": "<value>",
866
+ },
867
867
  },
868
868
  ],
869
869
  passThrough: [
@@ -1474,9 +1474,9 @@ test("Journalentries Accounting Journal Entries Update", async () => {
1474
1474
  id: "2389328923893298",
1475
1475
  name: "employee_level",
1476
1476
  description: "Employee Level",
1477
- value: [
1478
- {},
1479
- ],
1477
+ value: {
1478
+ "0": {},
1479
+ },
1480
1480
  },
1481
1481
  ],
1482
1482
  passThrough: [
@@ -380,10 +380,10 @@ test("Leads Crm Leads All", async () => {
380
380
  id: "2389328923893298",
381
381
  name: "employee_level",
382
382
  description: "Employee Level",
383
- value: [
384
- {},
385
- {},
386
- ],
383
+ value: {
384
+ "0": {},
385
+ "1": {},
386
+ },
387
387
  },
388
388
  ],
389
389
  tags: [
@@ -1272,9 +1272,9 @@ test("Leads Crm Leads Update", async () => {
1272
1272
  id: "2389328923893298",
1273
1273
  name: "employee_level",
1274
1274
  description: "Employee Level",
1275
- value: [
1276
- {},
1277
- ],
1275
+ value: {
1276
+ "0": {},
1277
+ },
1278
1278
  },
1279
1279
  ],
1280
1280
  tags: [