@apideck/unify 0.28.0 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/categories/README.md +12 -0
- package/examples/package-lock.json +2 -2
- package/funcs/accountingCategoriesGet.d.ts.map +1 -1
- package/funcs/accountingCategoriesGet.js +4 -2
- package/funcs/accountingCategoriesGet.js.map +1 -1
- package/funcs/accountingCategoriesList.d.ts.map +1 -1
- package/funcs/accountingCategoriesList.js +4 -2
- package/funcs/accountingCategoriesList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/balancesheetfilter.d.ts +5 -0
- package/models/components/balancesheetfilter.d.ts.map +1 -1
- package/models/components/balancesheetfilter.js +4 -0
- package/models/components/balancesheetfilter.js.map +1 -1
- package/models/components/categoriesfilter.d.ts +67 -0
- package/models/components/categoriesfilter.d.ts.map +1 -0
- package/models/components/categoriesfilter.js +82 -0
- package/models/components/categoriesfilter.js.map +1 -0
- package/models/components/category.d.ts +39 -0
- package/models/components/category.d.ts.map +1 -1
- package/models/components/category.js +26 -1
- package/models/components/category.js.map +1 -1
- package/models/components/connection.d.ts +13 -13
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +16 -17
- package/models/components/connection.js.map +1 -1
- package/models/components/customfield.d.ts +37 -38
- package/models/components/customfield.d.ts.map +1 -1
- package/models/components/customfield.js +25 -54
- package/models/components/customfield.js.map +1 -1
- package/models/components/expense.d.ts +10 -0
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +8 -0
- package/models/components/expense.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoicelineitem.d.ts +10 -0
- package/models/components/invoicelineitem.d.ts.map +1 -1
- package/models/components/invoicelineitem.js +8 -0
- package/models/components/invoicelineitem.js.map +1 -1
- package/models/components/profitandlossfilter.d.ts +5 -0
- package/models/components/profitandlossfilter.d.ts.map +1 -1
- package/models/components/profitandlossfilter.js +4 -0
- package/models/components/profitandlossfilter.js.map +1 -1
- package/models/components/simpleformfieldoption.d.ts +13 -13
- package/models/components/simpleformfieldoption.d.ts.map +1 -1
- package/models/components/simpleformfieldoption.js +16 -16
- package/models/components/simpleformfieldoption.js.map +1 -1
- package/models/operations/accountingcategoriesall.d.ts +5 -0
- package/models/operations/accountingcategoriesall.d.ts.map +1 -1
- package/models/operations/accountingcategoriesall.js +2 -0
- package/models/operations/accountingcategoriesall.js.map +1 -1
- package/models/operations/accountingcategoriesone.d.ts +5 -0
- package/models/operations/accountingcategoriesone.d.ts.map +1 -1
- package/models/operations/accountingcategoriesone.js +2 -0
- package/models/operations/accountingcategoriesone.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/activities.test.ts +8 -8
- package/src/__tests__/applicants.test.ts +4 -4
- package/src/__tests__/bankfeedaccounts.test.ts +4 -4
- package/src/__tests__/billpayments.test.ts +15 -15
- package/src/__tests__/bills.test.ts +8 -8
- package/src/__tests__/companies.test.ts +7 -7
- package/src/__tests__/contacts.test.ts +7 -7
- package/src/__tests__/creditnotes.test.ts +38 -38
- package/src/__tests__/customers.test.ts +7 -7
- package/src/__tests__/employees.test.ts +5 -5
- package/src/__tests__/expenses.test.ts +6 -6
- package/src/__tests__/invoices.test.ts +33 -33
- package/src/__tests__/journalentries.test.ts +8 -8
- package/src/__tests__/leads.test.ts +7 -7
- package/src/__tests__/ledgeraccounts.test.ts +15 -15
- package/src/__tests__/opportunities.test.ts +4 -4
- package/src/__tests__/payments.test.ts +15 -15
- package/src/__tests__/purchaseorders.test.ts +29 -29
- package/src/__tests__/suppliers.test.ts +7 -7
- package/src/__tests__/taxrates.test.ts +8 -8
- package/src/funcs/accountingCategoriesGet.ts +15 -5
- package/src/funcs/accountingCategoriesList.ts +17 -7
- package/src/lib/config.ts +4 -4
- package/src/models/components/balancesheetfilter.ts +9 -0
- package/src/models/components/categoriesfilter.ts +104 -0
- package/src/models/components/category.ts +39 -0
- package/src/models/components/connection.ts +27 -20
- package/src/models/components/customfield.ts +51 -83
- package/src/models/components/expense.ts +18 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoicelineitem.ts +18 -0
- package/src/models/components/profitandlossfilter.ts +9 -0
- package/src/models/components/simpleformfieldoption.ts +21 -18
- package/src/models/operations/accountingcategoriesall.ts +7 -0
- package/src/models/operations/accountingcategoriesone.ts +7 -0
|
@@ -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: [
|
|
@@ -223,10 +223,10 @@ test("Ledgeraccounts Accounting Ledger Accounts All", async () => {
|
|
|
223
223
|
id: "2389328923893298",
|
|
224
224
|
name: "employee_level",
|
|
225
225
|
description: "Employee Level",
|
|
226
|
-
value:
|
|
227
|
-
"<value>",
|
|
228
|
-
"<value>",
|
|
229
|
-
|
|
226
|
+
value: {
|
|
227
|
+
"0": "<value>",
|
|
228
|
+
"1": "<value>",
|
|
229
|
+
},
|
|
230
230
|
},
|
|
231
231
|
],
|
|
232
232
|
rowVersion: "1-12345",
|
|
@@ -332,10 +332,10 @@ test("Ledgeraccounts Accounting Ledger Accounts All", async () => {
|
|
|
332
332
|
id: "2389328923893298",
|
|
333
333
|
name: "employee_level",
|
|
334
334
|
description: "Employee Level",
|
|
335
|
-
value:
|
|
336
|
-
{},
|
|
337
|
-
{},
|
|
338
|
-
|
|
335
|
+
value: {
|
|
336
|
+
"0": {},
|
|
337
|
+
"1": {},
|
|
338
|
+
},
|
|
339
339
|
},
|
|
340
340
|
],
|
|
341
341
|
rowVersion: "1-12345",
|
|
@@ -615,9 +615,9 @@ test("Ledgeraccounts Accounting Ledger Accounts One", async () => {
|
|
|
615
615
|
id: "2389328923893298",
|
|
616
616
|
name: "employee_level",
|
|
617
617
|
description: "Employee Level",
|
|
618
|
-
value:
|
|
619
|
-
{},
|
|
620
|
-
|
|
618
|
+
value: {
|
|
619
|
+
"0": {},
|
|
620
|
+
},
|
|
621
621
|
},
|
|
622
622
|
],
|
|
623
623
|
rowVersion: "1-12345",
|
|
@@ -731,10 +731,10 @@ test("Ledgeraccounts Accounting Ledger Accounts Update", async () => {
|
|
|
731
731
|
id: "2389328923893298",
|
|
732
732
|
name: "employee_level",
|
|
733
733
|
description: "Employee Level",
|
|
734
|
-
value:
|
|
735
|
-
{},
|
|
736
|
-
{},
|
|
737
|
-
|
|
734
|
+
value: {
|
|
735
|
+
"0": {},
|
|
736
|
+
"1": {},
|
|
737
|
+
},
|
|
738
738
|
},
|
|
739
739
|
],
|
|
740
740
|
rowVersion: "1-12345",
|
|
@@ -622,10 +622,10 @@ test("Opportunities Crm Opportunities Update", async () => {
|
|
|
622
622
|
id: "2389328923893298",
|
|
623
623
|
name: "employee_level",
|
|
624
624
|
description: "Employee Level",
|
|
625
|
-
value:
|
|
626
|
-
{},
|
|
627
|
-
{},
|
|
628
|
-
|
|
625
|
+
value: {
|
|
626
|
+
"0": {},
|
|
627
|
+
"1": {},
|
|
628
|
+
},
|
|
629
629
|
},
|
|
630
630
|
],
|
|
631
631
|
stageLastChangedAt: new Date("2020-09-30T07:43:32.000Z"),
|
|
@@ -203,10 +203,10 @@ test("Payments Accounting Payments All", async () => {
|
|
|
203
203
|
id: "2389328923893298",
|
|
204
204
|
name: "employee_level",
|
|
205
205
|
description: "Employee Level",
|
|
206
|
-
value:
|
|
207
|
-
"<value>",
|
|
208
|
-
"<value>",
|
|
209
|
-
|
|
206
|
+
value: {
|
|
207
|
+
"0": "<value>",
|
|
208
|
+
"1": "<value>",
|
|
209
|
+
},
|
|
210
210
|
},
|
|
211
211
|
],
|
|
212
212
|
rowVersion: "1-12345",
|
|
@@ -303,10 +303,10 @@ test("Payments Accounting Payments All", async () => {
|
|
|
303
303
|
id: "2389328923893298",
|
|
304
304
|
name: "employee_level",
|
|
305
305
|
description: "Employee Level",
|
|
306
|
-
value:
|
|
307
|
-
{},
|
|
308
|
-
{},
|
|
309
|
-
|
|
306
|
+
value: {
|
|
307
|
+
"0": {},
|
|
308
|
+
"1": {},
|
|
309
|
+
},
|
|
310
310
|
},
|
|
311
311
|
],
|
|
312
312
|
rowVersion: "1-12345",
|
|
@@ -628,9 +628,9 @@ test("Payments Accounting Payments One", async () => {
|
|
|
628
628
|
id: "2389328923893298",
|
|
629
629
|
name: "employee_level",
|
|
630
630
|
description: "Employee Level",
|
|
631
|
-
value:
|
|
632
|
-
{},
|
|
633
|
-
|
|
631
|
+
value: {
|
|
632
|
+
"0": {},
|
|
633
|
+
},
|
|
634
634
|
},
|
|
635
635
|
],
|
|
636
636
|
rowVersion: "1-12345",
|
|
@@ -742,10 +742,10 @@ test("Payments Accounting Payments Update", async () => {
|
|
|
742
742
|
id: "2389328923893298",
|
|
743
743
|
name: "employee_level",
|
|
744
744
|
description: "Employee Level",
|
|
745
|
-
value:
|
|
746
|
-
{},
|
|
747
|
-
{},
|
|
748
|
-
|
|
745
|
+
value: {
|
|
746
|
+
"0": {},
|
|
747
|
+
"1": {},
|
|
748
|
+
},
|
|
749
749
|
},
|
|
750
750
|
{
|
|
751
751
|
id: "2389328923893298",
|
|
@@ -455,10 +455,10 @@ test("Purchaseorders Accounting Purchase Orders All", async () => {
|
|
|
455
455
|
id: "2389328923893298",
|
|
456
456
|
name: "employee_level",
|
|
457
457
|
description: "Employee Level",
|
|
458
|
-
value:
|
|
459
|
-
{},
|
|
460
|
-
{},
|
|
461
|
-
|
|
458
|
+
value: {
|
|
459
|
+
"0": {},
|
|
460
|
+
"1": {},
|
|
461
|
+
},
|
|
462
462
|
},
|
|
463
463
|
],
|
|
464
464
|
rowVersion: "1-12345",
|
|
@@ -832,17 +832,17 @@ test("Purchaseorders Accounting Purchase Orders All", async () => {
|
|
|
832
832
|
id: "2389328923893298",
|
|
833
833
|
name: "employee_level",
|
|
834
834
|
description: "Employee Level",
|
|
835
|
-
value:
|
|
836
|
-
{},
|
|
837
|
-
|
|
835
|
+
value: {
|
|
836
|
+
"0": {},
|
|
837
|
+
},
|
|
838
838
|
},
|
|
839
839
|
{
|
|
840
840
|
id: "2389328923893298",
|
|
841
841
|
name: "employee_level",
|
|
842
842
|
description: "Employee Level",
|
|
843
|
-
value:
|
|
844
|
-
{},
|
|
845
|
-
|
|
843
|
+
value: {
|
|
844
|
+
"0": {},
|
|
845
|
+
},
|
|
846
846
|
},
|
|
847
847
|
],
|
|
848
848
|
rowVersion: "1-12345",
|
|
@@ -1273,11 +1273,11 @@ test("Purchaseorders Accounting Purchase Orders Add", async () => {
|
|
|
1273
1273
|
id: "2389328923893298",
|
|
1274
1274
|
name: "employee_level",
|
|
1275
1275
|
description: "Employee Level",
|
|
1276
|
-
value:
|
|
1277
|
-
"<value>",
|
|
1278
|
-
"<value>",
|
|
1279
|
-
"<value>",
|
|
1280
|
-
|
|
1276
|
+
value: {
|
|
1277
|
+
"0": "<value>",
|
|
1278
|
+
"1": "<value>",
|
|
1279
|
+
"2": "<value>",
|
|
1280
|
+
},
|
|
1281
1281
|
},
|
|
1282
1282
|
{
|
|
1283
1283
|
id: "2389328923893298",
|
|
@@ -1445,9 +1445,9 @@ test("Purchaseorders Accounting Purchase Orders One", async () => {
|
|
|
1445
1445
|
id: "2389328923893298",
|
|
1446
1446
|
name: "employee_level",
|
|
1447
1447
|
description: "Employee Level",
|
|
1448
|
-
value:
|
|
1449
|
-
{},
|
|
1450
|
-
|
|
1448
|
+
value: {
|
|
1449
|
+
"0": {},
|
|
1450
|
+
},
|
|
1451
1451
|
},
|
|
1452
1452
|
],
|
|
1453
1453
|
rowVersion: "1-12345",
|
|
@@ -1839,10 +1839,10 @@ test("Purchaseorders Accounting Purchase Orders Update", async () => {
|
|
|
1839
1839
|
id: "2389328923893298",
|
|
1840
1840
|
name: "employee_level",
|
|
1841
1841
|
description: "Employee Level",
|
|
1842
|
-
value:
|
|
1843
|
-
{},
|
|
1844
|
-
{},
|
|
1845
|
-
|
|
1842
|
+
value: {
|
|
1843
|
+
"0": {},
|
|
1844
|
+
"1": {},
|
|
1845
|
+
},
|
|
1846
1846
|
},
|
|
1847
1847
|
{
|
|
1848
1848
|
id: "2389328923893298",
|
|
@@ -1903,9 +1903,9 @@ test("Purchaseorders Accounting Purchase Orders Update", async () => {
|
|
|
1903
1903
|
id: "2389328923893298",
|
|
1904
1904
|
name: "employee_level",
|
|
1905
1905
|
description: "Employee Level",
|
|
1906
|
-
value:
|
|
1907
|
-
{},
|
|
1908
|
-
|
|
1906
|
+
value: {
|
|
1907
|
+
"0": {},
|
|
1908
|
+
},
|
|
1909
1909
|
},
|
|
1910
1910
|
],
|
|
1911
1911
|
rowVersion: "1-12345",
|
|
@@ -2041,10 +2041,10 @@ test("Purchaseorders Accounting Purchase Orders Update", async () => {
|
|
|
2041
2041
|
id: "2389328923893298",
|
|
2042
2042
|
name: "employee_level",
|
|
2043
2043
|
description: "Employee Level",
|
|
2044
|
-
value:
|
|
2045
|
-
"<value>",
|
|
2046
|
-
"<value>",
|
|
2047
|
-
|
|
2044
|
+
value: {
|
|
2045
|
+
"0": "<value>",
|
|
2046
|
+
"1": "<value>",
|
|
2047
|
+
},
|
|
2048
2048
|
},
|
|
2049
2049
|
],
|
|
2050
2050
|
rowVersion: "1-12345",
|
|
@@ -419,10 +419,10 @@ test("Suppliers Accounting Suppliers All", async () => {
|
|
|
419
419
|
id: "2389328923893298",
|
|
420
420
|
name: "employee_level",
|
|
421
421
|
description: "Employee Level",
|
|
422
|
-
value:
|
|
423
|
-
{},
|
|
424
|
-
{},
|
|
425
|
-
|
|
422
|
+
value: {
|
|
423
|
+
"0": {},
|
|
424
|
+
"1": {},
|
|
425
|
+
},
|
|
426
426
|
},
|
|
427
427
|
],
|
|
428
428
|
updatedBy: "12345",
|
|
@@ -1506,9 +1506,9 @@ test("Suppliers Accounting Suppliers Update", async () => {
|
|
|
1506
1506
|
id: "2389328923893298",
|
|
1507
1507
|
name: "employee_level",
|
|
1508
1508
|
description: "Employee Level",
|
|
1509
|
-
value:
|
|
1510
|
-
{},
|
|
1511
|
-
|
|
1509
|
+
value: {
|
|
1510
|
+
"0": {},
|
|
1511
|
+
},
|
|
1512
1512
|
},
|
|
1513
1513
|
],
|
|
1514
1514
|
rowVersion: "1-12345",
|
|
@@ -275,9 +275,9 @@ test("Taxrates Accounting Tax Rates All", async () => {
|
|
|
275
275
|
id: "2389328923893298",
|
|
276
276
|
name: "employee_level",
|
|
277
277
|
description: "Employee Level",
|
|
278
|
-
value:
|
|
279
|
-
{},
|
|
280
|
-
|
|
278
|
+
value: {
|
|
279
|
+
"0": {},
|
|
280
|
+
},
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
id: "2389328923893298",
|
|
@@ -388,11 +388,11 @@ test("Taxrates Accounting Tax Rates Add", async () => {
|
|
|
388
388
|
id: "2389328923893298",
|
|
389
389
|
name: "employee_level",
|
|
390
390
|
description: "Employee Level",
|
|
391
|
-
value:
|
|
392
|
-
"<value>",
|
|
393
|
-
"<value>",
|
|
394
|
-
"<value>",
|
|
395
|
-
|
|
391
|
+
value: {
|
|
392
|
+
"0": "<value>",
|
|
393
|
+
"1": "<value>",
|
|
394
|
+
"2": "<value>",
|
|
395
|
+
},
|
|
396
396
|
},
|
|
397
397
|
],
|
|
398
398
|
},
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ApideckCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
encodeDeepObjectQuery,
|
|
8
|
+
encodeFormQuery,
|
|
9
|
+
encodeSimple,
|
|
10
|
+
queryJoin,
|
|
11
|
+
} from "../lib/encodings.js";
|
|
7
12
|
import * as M from "../lib/matchers.js";
|
|
8
13
|
import { compactMap } from "../lib/primitives.js";
|
|
9
14
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -106,10 +111,15 @@ async function $do(
|
|
|
106
111
|
|
|
107
112
|
const path = pathToFunc("/accounting/categories/{id}")(pathParams);
|
|
108
113
|
|
|
109
|
-
const query =
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
const query = queryJoin(
|
|
115
|
+
encodeDeepObjectQuery({
|
|
116
|
+
"filter": payload.filter,
|
|
117
|
+
}),
|
|
118
|
+
encodeFormQuery({
|
|
119
|
+
"fields": payload.fields,
|
|
120
|
+
"raw": payload.raw,
|
|
121
|
+
}),
|
|
122
|
+
);
|
|
113
123
|
|
|
114
124
|
const headers = new Headers(compactMap({
|
|
115
125
|
Accept: "application/json",
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { ApideckCore } from "../core.js";
|
|
6
6
|
import { dlv } from "../lib/dlv.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
encodeDeepObjectQuery,
|
|
9
|
+
encodeFormQuery,
|
|
10
|
+
encodeSimple,
|
|
11
|
+
queryJoin,
|
|
12
|
+
} from "../lib/encodings.js";
|
|
8
13
|
import * as M from "../lib/matchers.js";
|
|
9
14
|
import { compactMap } from "../lib/primitives.js";
|
|
10
15
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -112,12 +117,17 @@ async function $do(
|
|
|
112
117
|
|
|
113
118
|
const path = pathToFunc("/accounting/categories")();
|
|
114
119
|
|
|
115
|
-
const query =
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
const query = queryJoin(
|
|
121
|
+
encodeDeepObjectQuery({
|
|
122
|
+
"filter": payload.filter,
|
|
123
|
+
}),
|
|
124
|
+
encodeFormQuery({
|
|
125
|
+
"cursor": payload.cursor,
|
|
126
|
+
"fields": payload.fields,
|
|
127
|
+
"limit": payload.limit,
|
|
128
|
+
"raw": payload.raw,
|
|
129
|
+
}),
|
|
130
|
+
);
|
|
121
131
|
|
|
122
132
|
const headers = new Headers(compactMap({
|
|
123
133
|
Accept: "application/json",
|
package/src/lib/config.ts
CHANGED
|
@@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
67
67
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
|
-
openapiDocVersion: "10.18.
|
|
71
|
-
sdkVersion: "0.28.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 0.28.
|
|
70
|
+
openapiDocVersion: "10.18.2",
|
|
71
|
+
sdkVersion: "0.28.2",
|
|
72
|
+
genVersion: "2.656.5",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 0.28.2 2.656.5 10.18.2 @apideck/unify",
|
|
74
74
|
} as const;
|
|
@@ -41,6 +41,10 @@ export type BalanceSheetFilter = {
|
|
|
41
41
|
* The type of period to include in the resource: month, quarter, year.
|
|
42
42
|
*/
|
|
43
43
|
periodType?: PeriodType | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the location to include in the resource.
|
|
46
|
+
*/
|
|
47
|
+
locationId?: string | undefined;
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
/** @internal */
|
|
@@ -72,12 +76,14 @@ export const BalanceSheetFilter$inboundSchema: z.ZodType<
|
|
|
72
76
|
end_date: z.string().optional(),
|
|
73
77
|
period_count: z.number().int().optional(),
|
|
74
78
|
period_type: PeriodType$inboundSchema.optional(),
|
|
79
|
+
location_id: z.string().optional(),
|
|
75
80
|
}).transform((v) => {
|
|
76
81
|
return remap$(v, {
|
|
77
82
|
"start_date": "startDate",
|
|
78
83
|
"end_date": "endDate",
|
|
79
84
|
"period_count": "periodCount",
|
|
80
85
|
"period_type": "periodType",
|
|
86
|
+
"location_id": "locationId",
|
|
81
87
|
});
|
|
82
88
|
});
|
|
83
89
|
|
|
@@ -87,6 +93,7 @@ export type BalanceSheetFilter$Outbound = {
|
|
|
87
93
|
end_date?: string | undefined;
|
|
88
94
|
period_count?: number | undefined;
|
|
89
95
|
period_type?: string | undefined;
|
|
96
|
+
location_id?: string | undefined;
|
|
90
97
|
};
|
|
91
98
|
|
|
92
99
|
/** @internal */
|
|
@@ -99,12 +106,14 @@ export const BalanceSheetFilter$outboundSchema: z.ZodType<
|
|
|
99
106
|
endDate: z.string().optional(),
|
|
100
107
|
periodCount: z.number().int().optional(),
|
|
101
108
|
periodType: PeriodType$outboundSchema.optional(),
|
|
109
|
+
locationId: z.string().optional(),
|
|
102
110
|
}).transform((v) => {
|
|
103
111
|
return remap$(v, {
|
|
104
112
|
startDate: "start_date",
|
|
105
113
|
endDate: "end_date",
|
|
106
114
|
periodCount: "period_count",
|
|
107
115
|
periodType: "period_type",
|
|
116
|
+
locationId: "location_id",
|
|
108
117
|
});
|
|
109
118
|
});
|
|
110
119
|
|