@apideck/unify 0.43.11 → 0.44.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.
- package/README.md +8 -1
- package/funcs/accountingAttachmentsList.d.ts.map +1 -1
- package/funcs/accountingAttachmentsList.js +4 -2
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingCategoriesList.js +1 -0
- package/funcs/accountingCategoriesList.js.map +1 -1
- package/funcs/accountingCompaniesList.d.ts.map +1 -1
- package/funcs/accountingCompaniesList.js +4 -2
- package/funcs/accountingCompaniesList.js.map +1 -1
- package/funcs/accountingDepartmentsList.js +1 -0
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingEmployeesList.js +1 -0
- package/funcs/accountingEmployeesList.js.map +1 -1
- package/funcs/accountingExpenseCategoriesList.js +1 -0
- package/funcs/accountingExpenseCategoriesList.js.map +1 -1
- package/funcs/accountingExpenseReportsList.js +1 -0
- package/funcs/accountingExpenseReportsList.js.map +1 -1
- package/funcs/accountingExpensesList.js +1 -0
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingLocationsList.js +1 -0
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingQuotesList.js +1 -0
- package/funcs/accountingQuotesList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.d.ts.map +1 -1
- package/funcs/accountingSubsidiariesList.js +4 -2
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/crmListsGet.d.ts +18 -0
- package/funcs/crmListsGet.d.ts.map +1 -0
- package/funcs/crmListsGet.js +146 -0
- package/funcs/crmListsGet.js.map +1 -0
- package/funcs/crmListsList.d.ts +21 -0
- package/funcs/crmListsList.d.ts.map +1 -0
- package/funcs/crmListsList.js +168 -0
- package/funcs/crmListsList.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/http.d.ts +1 -1
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +1 -1
- package/lib/http.js.map +1 -1
- package/lib/security.d.ts +5 -4
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -7
- package/lib/security.js.map +1 -1
- package/models/components/billsfilter.d.ts +10 -0
- package/models/components/billsfilter.d.ts.map +1 -1
- package/models/components/billsfilter.js +4 -0
- package/models/components/billsfilter.js.map +1 -1
- package/models/components/connection.d.ts +33 -9
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +32 -3
- package/models/components/connection.js.map +1 -1
- package/models/components/connector.d.ts +5 -0
- package/models/components/connector.d.ts.map +1 -1
- package/models/components/connector.js +2 -0
- package/models/components/connector.js.map +1 -1
- package/models/components/connectoroverview.d.ts +188 -0
- package/models/components/connectoroverview.d.ts.map +1 -0
- package/models/components/connectoroverview.js +148 -0
- package/models/components/connectoroverview.js.map +1 -0
- package/models/components/consumerconnection.d.ts +16 -3
- package/models/components/consumerconnection.d.ts.map +1 -1
- package/models/components/consumerconnection.js +14 -2
- package/models/components/consumerconnection.js.map +1 -1
- package/models/components/expensereport.d.ts +9 -0
- package/models/components/expensereport.d.ts.map +1 -1
- package/models/components/expensereport.js +2 -0
- package/models/components/expensereport.js.map +1 -1
- package/models/components/getlistresponse.d.ts +45 -0
- package/models/components/getlistresponse.d.ts.map +1 -0
- package/models/components/getlistresponse.js +66 -0
- package/models/components/getlistresponse.js.map +1 -0
- package/models/components/getlistsresponse.d.ts +50 -0
- package/models/components/getlistsresponse.d.ts.map +1 -0
- package/models/components/getlistsresponse.js +68 -0
- package/models/components/getlistsresponse.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/list.d.ts +114 -0
- package/models/components/list.d.ts.map +1 -0
- package/models/components/list.js +110 -0
- package/models/components/list.js.map +1 -0
- package/models/components/webhookeventlogsfilter.d.ts +35 -0
- package/models/components/webhookeventlogsfilter.d.ts.map +1 -1
- package/models/components/webhookeventlogsfilter.js +13 -0
- package/models/components/webhookeventlogsfilter.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +3 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +3 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/operations/accountingattachmentsall.d.ts +9 -0
- package/models/operations/accountingattachmentsall.d.ts.map +1 -1
- package/models/operations/accountingattachmentsall.js +2 -0
- package/models/operations/accountingattachmentsall.js.map +1 -1
- package/models/operations/accountingcategoriesall.d.ts +9 -0
- package/models/operations/accountingcategoriesall.d.ts.map +1 -1
- package/models/operations/accountingcategoriesall.js +5 -0
- package/models/operations/accountingcategoriesall.js.map +1 -1
- package/models/operations/accountingcompaniesall.d.ts +9 -0
- package/models/operations/accountingcompaniesall.d.ts.map +1 -1
- package/models/operations/accountingcompaniesall.js +5 -0
- package/models/operations/accountingcompaniesall.js.map +1 -1
- package/models/operations/accountingdepartmentsall.d.ts +9 -0
- package/models/operations/accountingdepartmentsall.d.ts.map +1 -1
- package/models/operations/accountingdepartmentsall.js +5 -0
- package/models/operations/accountingdepartmentsall.js.map +1 -1
- package/models/operations/accountingemployeesall.d.ts +9 -0
- package/models/operations/accountingemployeesall.d.ts.map +1 -1
- package/models/operations/accountingemployeesall.js +5 -0
- package/models/operations/accountingemployeesall.js.map +1 -1
- package/models/operations/accountingexpensecategoriesall.d.ts +9 -0
- package/models/operations/accountingexpensecategoriesall.d.ts.map +1 -1
- package/models/operations/accountingexpensecategoriesall.js +5 -0
- package/models/operations/accountingexpensecategoriesall.js.map +1 -1
- package/models/operations/accountingexpensereportsall.d.ts +9 -0
- package/models/operations/accountingexpensereportsall.d.ts.map +1 -1
- package/models/operations/accountingexpensereportsall.js +5 -0
- package/models/operations/accountingexpensereportsall.js.map +1 -1
- package/models/operations/accountingexpensesall.d.ts +9 -0
- package/models/operations/accountingexpensesall.d.ts.map +1 -1
- package/models/operations/accountingexpensesall.js +5 -0
- package/models/operations/accountingexpensesall.js.map +1 -1
- package/models/operations/accountinglocationsall.d.ts +9 -0
- package/models/operations/accountinglocationsall.d.ts.map +1 -1
- package/models/operations/accountinglocationsall.js +5 -0
- package/models/operations/accountinglocationsall.js.map +1 -1
- package/models/operations/accountingquotesall.d.ts +9 -0
- package/models/operations/accountingquotesall.d.ts.map +1 -1
- package/models/operations/accountingquotesall.js +5 -0
- package/models/operations/accountingquotesall.js.map +1 -1
- package/models/operations/accountingsubsidiariesall.d.ts +9 -0
- package/models/operations/accountingsubsidiariesall.d.ts.map +1 -1
- package/models/operations/accountingsubsidiariesall.js +5 -0
- package/models/operations/accountingsubsidiariesall.js.map +1 -1
- package/models/operations/crmlistsall.d.ts +81 -0
- package/models/operations/crmlistsall.d.ts.map +1 -0
- package/models/operations/crmlistsall.js +80 -0
- package/models/operations/crmlistsall.js.map +1 -0
- package/models/operations/crmlistsone.d.ts +67 -0
- package/models/operations/crmlistsone.d.ts.map +1 -0
- package/models/operations/crmlistsone.js +74 -0
- package/models/operations/crmlistsone.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/crm.d.ts +3 -0
- package/sdk/crm.d.ts.map +1 -1
- package/sdk/crm.js +4 -0
- package/sdk/crm.js.map +1 -1
- package/sdk/lists.d.ts +22 -0
- package/sdk/lists.d.ts.map +1 -0
- package/sdk/lists.js +33 -0
- package/sdk/lists.js.map +1 -0
- package/src/__tests__/companies.test.ts +3 -0
- package/src/__tests__/connections.test.ts +48 -32
- package/src/__tests__/connectionsettings.test.ts +18 -12
- package/src/__tests__/consumers.test.ts +48 -32
- package/src/__tests__/employees.test.ts +3 -0
- package/src/__tests__/expensecategories.test.ts +3 -0
- package/src/__tests__/expensereports.test.ts +6 -0
- package/src/__tests__/quotes.test.ts +3 -0
- package/src/funcs/accountingAttachmentsList.ts +17 -7
- package/src/funcs/accountingCategoriesList.ts +1 -0
- package/src/funcs/accountingCompaniesList.ts +17 -7
- package/src/funcs/accountingDepartmentsList.ts +1 -0
- package/src/funcs/accountingEmployeesList.ts +1 -0
- package/src/funcs/accountingExpenseCategoriesList.ts +1 -0
- package/src/funcs/accountingExpenseReportsList.ts +1 -0
- package/src/funcs/accountingExpensesList.ts +1 -0
- package/src/funcs/accountingLocationsList.ts +1 -0
- package/src/funcs/accountingQuotesList.ts +1 -0
- package/src/funcs/accountingSubsidiariesList.ts +17 -7
- package/src/funcs/crmListsGet.ts +228 -0
- package/src/funcs/crmListsList.ts +303 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/models/components/billsfilter.ts +18 -0
- package/src/models/components/connection.ts +85 -6
- package/src/models/components/connector.ts +9 -0
- package/src/models/components/connectoroverview.ts +346 -0
- package/src/models/components/consumerconnection.ts +44 -3
- package/src/models/components/expensereport.ts +11 -0
- package/src/models/components/getlistresponse.ts +78 -0
- package/src/models/components/getlistsresponse.ts +84 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/list.ts +181 -0
- package/src/models/components/webhookeventlogsfilter.ts +48 -0
- package/src/models/components/webhookeventtype.ts +3 -0
- package/src/models/operations/accountingattachmentsall.ts +7 -0
- package/src/models/operations/accountingcategoriesall.ts +10 -0
- package/src/models/operations/accountingcompaniesall.ts +10 -0
- package/src/models/operations/accountingdepartmentsall.ts +10 -0
- package/src/models/operations/accountingemployeesall.ts +10 -0
- package/src/models/operations/accountingexpensecategoriesall.ts +10 -0
- package/src/models/operations/accountingexpensereportsall.ts +10 -0
- package/src/models/operations/accountingexpensesall.ts +10 -0
- package/src/models/operations/accountinglocationsall.ts +10 -0
- package/src/models/operations/accountingquotesall.ts +10 -0
- package/src/models/operations/accountingsubsidiariesall.ts +10 -0
- package/src/models/operations/crmlistsall.ts +138 -0
- package/src/models/operations/crmlistsone.ts +122 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/crm.ts +6 -0
- package/src/sdk/lists.ts +46 -0
|
@@ -1608,6 +1608,9 @@ test("Companies Accounting Companies All", async () => {
|
|
|
1608
1608
|
serviceId: "salesforce",
|
|
1609
1609
|
companyId: "12345",
|
|
1610
1610
|
fields: "id,updated_at",
|
|
1611
|
+
passThrough: {
|
|
1612
|
+
"search": "San Francisco",
|
|
1613
|
+
},
|
|
1611
1614
|
});
|
|
1612
1615
|
expect(result.httpMeta.response.status).toBe(200);
|
|
1613
1616
|
expect(result.getCompaniesResponse).toBeDefined();
|
|
@@ -53,11 +53,13 @@ test("Connections Vault Connections All", async () => {
|
|
|
53
53
|
"api_key": "12345xxxxxx",
|
|
54
54
|
},
|
|
55
55
|
metadata: {
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
56
|
+
additionalProperties: {
|
|
57
|
+
"account": {
|
|
58
|
+
"name": "My Company",
|
|
59
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
60
|
+
},
|
|
61
|
+
"plan": "enterprise",
|
|
59
62
|
},
|
|
60
|
-
"plan": "enterprise",
|
|
61
63
|
},
|
|
62
64
|
formFields: [
|
|
63
65
|
{
|
|
@@ -287,11 +289,13 @@ test("Connections Vault Connections All", async () => {
|
|
|
287
289
|
"api_key": "12345xxxxxx",
|
|
288
290
|
},
|
|
289
291
|
metadata: {
|
|
290
|
-
|
|
291
|
-
"
|
|
292
|
-
|
|
292
|
+
additionalProperties: {
|
|
293
|
+
"account": {
|
|
294
|
+
"name": "My Company",
|
|
295
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
296
|
+
},
|
|
297
|
+
"plan": "enterprise",
|
|
293
298
|
},
|
|
294
|
-
"plan": "enterprise",
|
|
295
299
|
},
|
|
296
300
|
formFields: [
|
|
297
301
|
{
|
|
@@ -452,11 +456,13 @@ test("Connections Vault Connections All", async () => {
|
|
|
452
456
|
"api_key": "12345xxxxxx",
|
|
453
457
|
},
|
|
454
458
|
metadata: {
|
|
455
|
-
|
|
456
|
-
"
|
|
457
|
-
|
|
459
|
+
additionalProperties: {
|
|
460
|
+
"account": {
|
|
461
|
+
"name": "My Company",
|
|
462
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
463
|
+
},
|
|
464
|
+
"plan": "enterprise",
|
|
458
465
|
},
|
|
459
|
-
"plan": "enterprise",
|
|
460
466
|
},
|
|
461
467
|
formFields: [
|
|
462
468
|
{
|
|
@@ -864,11 +870,13 @@ test("Connections Vault Connections One", async () => {
|
|
|
864
870
|
"api_key": "12345xxxxxx",
|
|
865
871
|
},
|
|
866
872
|
metadata: {
|
|
867
|
-
|
|
868
|
-
"
|
|
869
|
-
|
|
873
|
+
additionalProperties: {
|
|
874
|
+
"account": {
|
|
875
|
+
"name": "My Company",
|
|
876
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
877
|
+
},
|
|
878
|
+
"plan": "enterprise",
|
|
870
879
|
},
|
|
871
|
-
"plan": "enterprise",
|
|
872
880
|
},
|
|
873
881
|
formFields: [
|
|
874
882
|
{
|
|
@@ -1121,11 +1129,13 @@ test("Connections Vault Connections Update", async () => {
|
|
|
1121
1129
|
"instance_url": "https://eu28.salesforce.com",
|
|
1122
1130
|
},
|
|
1123
1131
|
metadata: {
|
|
1124
|
-
|
|
1125
|
-
"
|
|
1126
|
-
|
|
1132
|
+
additionalProperties: {
|
|
1133
|
+
"account": {
|
|
1134
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
1135
|
+
"name": "My Company",
|
|
1136
|
+
},
|
|
1137
|
+
"plan": "enterprise",
|
|
1127
1138
|
},
|
|
1128
|
-
"plan": "enterprise",
|
|
1129
1139
|
},
|
|
1130
1140
|
configuration: [
|
|
1131
1141
|
{
|
|
@@ -1327,11 +1337,13 @@ test("Connections Vault Connections Update", async () => {
|
|
|
1327
1337
|
"api_key": "12345xxxxxx",
|
|
1328
1338
|
},
|
|
1329
1339
|
metadata: {
|
|
1330
|
-
|
|
1331
|
-
"
|
|
1332
|
-
|
|
1340
|
+
additionalProperties: {
|
|
1341
|
+
"account": {
|
|
1342
|
+
"name": "My Company",
|
|
1343
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
1344
|
+
},
|
|
1345
|
+
"plan": "enterprise",
|
|
1333
1346
|
},
|
|
1334
|
-
"plan": "enterprise",
|
|
1335
1347
|
},
|
|
1336
1348
|
formFields: [
|
|
1337
1349
|
{
|
|
@@ -1651,11 +1663,13 @@ test("Connections Vault Connections Import", async () => {
|
|
|
1651
1663
|
"api_key": "12345xxxxxx",
|
|
1652
1664
|
},
|
|
1653
1665
|
metadata: {
|
|
1654
|
-
|
|
1655
|
-
"
|
|
1656
|
-
|
|
1666
|
+
additionalProperties: {
|
|
1667
|
+
"account": {
|
|
1668
|
+
"name": "My Company",
|
|
1669
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
1670
|
+
},
|
|
1671
|
+
"plan": "enterprise",
|
|
1657
1672
|
},
|
|
1658
|
-
"plan": "enterprise",
|
|
1659
1673
|
},
|
|
1660
1674
|
formFields: [
|
|
1661
1675
|
{
|
|
@@ -1999,11 +2013,13 @@ test("Connections Vault Connections Token", async () => {
|
|
|
1999
2013
|
"api_key": "12345xxxxxx",
|
|
2000
2014
|
},
|
|
2001
2015
|
metadata: {
|
|
2002
|
-
|
|
2003
|
-
"
|
|
2004
|
-
|
|
2016
|
+
additionalProperties: {
|
|
2017
|
+
"account": {
|
|
2018
|
+
"name": "My Company",
|
|
2019
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
2020
|
+
},
|
|
2021
|
+
"plan": "enterprise",
|
|
2005
2022
|
},
|
|
2006
|
-
"plan": "enterprise",
|
|
2007
2023
|
},
|
|
2008
2024
|
formFields: [
|
|
2009
2025
|
{
|
|
@@ -53,11 +53,13 @@ test("Connectionsettings Vault Connection Settings All", async () => {
|
|
|
53
53
|
"api_key": "12345xxxxxx",
|
|
54
54
|
},
|
|
55
55
|
metadata: {
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
56
|
+
additionalProperties: {
|
|
57
|
+
"account": {
|
|
58
|
+
"name": "My Company",
|
|
59
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
60
|
+
},
|
|
61
|
+
"plan": "enterprise",
|
|
59
62
|
},
|
|
60
|
-
"plan": "enterprise",
|
|
61
63
|
},
|
|
62
64
|
formFields: [
|
|
63
65
|
{
|
|
@@ -297,11 +299,13 @@ test("Connectionsettings Vault Connection Settings Update", async () => {
|
|
|
297
299
|
"instance_url": "https://eu28.salesforce.com",
|
|
298
300
|
},
|
|
299
301
|
metadata: {
|
|
300
|
-
|
|
301
|
-
"
|
|
302
|
-
|
|
302
|
+
additionalProperties: {
|
|
303
|
+
"account": {
|
|
304
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
305
|
+
"name": "My Company",
|
|
306
|
+
},
|
|
307
|
+
"plan": "enterprise",
|
|
303
308
|
},
|
|
304
|
-
"plan": "enterprise",
|
|
305
309
|
},
|
|
306
310
|
configuration: [
|
|
307
311
|
{
|
|
@@ -503,11 +507,13 @@ test("Connectionsettings Vault Connection Settings Update", async () => {
|
|
|
503
507
|
"api_key": "12345xxxxxx",
|
|
504
508
|
},
|
|
505
509
|
metadata: {
|
|
506
|
-
|
|
507
|
-
"
|
|
508
|
-
|
|
510
|
+
additionalProperties: {
|
|
511
|
+
"account": {
|
|
512
|
+
"name": "My Company",
|
|
513
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
514
|
+
},
|
|
515
|
+
"plan": "enterprise",
|
|
509
516
|
},
|
|
510
|
-
"plan": "enterprise",
|
|
511
517
|
},
|
|
512
518
|
formFields: [
|
|
513
519
|
{
|
|
@@ -61,11 +61,13 @@ test("Consumers Vault Consumers Add", async () => {
|
|
|
61
61
|
"instance_url": "https://eu28.salesforce.com",
|
|
62
62
|
},
|
|
63
63
|
metadata: {
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
64
|
+
additionalProperties: {
|
|
65
|
+
"account": {
|
|
66
|
+
"name": "My Company",
|
|
67
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
68
|
+
},
|
|
69
|
+
"plan": "enterprise",
|
|
67
70
|
},
|
|
68
|
-
"plan": "enterprise",
|
|
69
71
|
},
|
|
70
72
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
71
73
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -90,11 +92,13 @@ test("Consumers Vault Consumers Add", async () => {
|
|
|
90
92
|
"instance_url": "https://eu28.salesforce.com",
|
|
91
93
|
},
|
|
92
94
|
metadata: {
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
95
|
+
additionalProperties: {
|
|
96
|
+
"account": {
|
|
97
|
+
"name": "My Company",
|
|
98
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
99
|
+
},
|
|
100
|
+
"plan": "enterprise",
|
|
96
101
|
},
|
|
97
|
-
"plan": "enterprise",
|
|
98
102
|
},
|
|
99
103
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
100
104
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -271,11 +275,13 @@ test("Consumers Vault Consumers One", async () => {
|
|
|
271
275
|
"instance_url": "https://eu28.salesforce.com",
|
|
272
276
|
},
|
|
273
277
|
metadata: {
|
|
274
|
-
|
|
275
|
-
"
|
|
276
|
-
|
|
278
|
+
additionalProperties: {
|
|
279
|
+
"account": {
|
|
280
|
+
"name": "My Company",
|
|
281
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
282
|
+
},
|
|
283
|
+
"plan": "enterprise",
|
|
277
284
|
},
|
|
278
|
-
"plan": "enterprise",
|
|
279
285
|
},
|
|
280
286
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
281
287
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -300,11 +306,13 @@ test("Consumers Vault Consumers One", async () => {
|
|
|
300
306
|
"instance_url": "https://eu28.salesforce.com",
|
|
301
307
|
},
|
|
302
308
|
metadata: {
|
|
303
|
-
|
|
304
|
-
"
|
|
305
|
-
|
|
309
|
+
additionalProperties: {
|
|
310
|
+
"account": {
|
|
311
|
+
"name": "My Company",
|
|
312
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
313
|
+
},
|
|
314
|
+
"plan": "enterprise",
|
|
306
315
|
},
|
|
307
|
-
"plan": "enterprise",
|
|
308
316
|
},
|
|
309
317
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
310
318
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -329,11 +337,13 @@ test("Consumers Vault Consumers One", async () => {
|
|
|
329
337
|
"instance_url": "https://eu28.salesforce.com",
|
|
330
338
|
},
|
|
331
339
|
metadata: {
|
|
332
|
-
|
|
333
|
-
"
|
|
334
|
-
|
|
340
|
+
additionalProperties: {
|
|
341
|
+
"account": {
|
|
342
|
+
"name": "My Company",
|
|
343
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
344
|
+
},
|
|
345
|
+
"plan": "enterprise",
|
|
335
346
|
},
|
|
336
|
-
"plan": "enterprise",
|
|
337
347
|
},
|
|
338
348
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
339
349
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -412,11 +422,13 @@ test("Consumers Vault Consumers Update", async () => {
|
|
|
412
422
|
"instance_url": "https://eu28.salesforce.com",
|
|
413
423
|
},
|
|
414
424
|
metadata: {
|
|
415
|
-
|
|
416
|
-
"
|
|
417
|
-
|
|
425
|
+
additionalProperties: {
|
|
426
|
+
"account": {
|
|
427
|
+
"name": "My Company",
|
|
428
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
429
|
+
},
|
|
430
|
+
"plan": "enterprise",
|
|
418
431
|
},
|
|
419
|
-
"plan": "enterprise",
|
|
420
432
|
},
|
|
421
433
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
422
434
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -441,11 +453,13 @@ test("Consumers Vault Consumers Update", async () => {
|
|
|
441
453
|
"instance_url": "https://eu28.salesforce.com",
|
|
442
454
|
},
|
|
443
455
|
metadata: {
|
|
444
|
-
|
|
445
|
-
"
|
|
446
|
-
|
|
456
|
+
additionalProperties: {
|
|
457
|
+
"account": {
|
|
458
|
+
"name": "My Company",
|
|
459
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
460
|
+
},
|
|
461
|
+
"plan": "enterprise",
|
|
447
462
|
},
|
|
448
|
-
"plan": "enterprise",
|
|
449
463
|
},
|
|
450
464
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
451
465
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -470,11 +484,13 @@ test("Consumers Vault Consumers Update", async () => {
|
|
|
470
484
|
"instance_url": "https://eu28.salesforce.com",
|
|
471
485
|
},
|
|
472
486
|
metadata: {
|
|
473
|
-
|
|
474
|
-
"
|
|
475
|
-
|
|
487
|
+
additionalProperties: {
|
|
488
|
+
"account": {
|
|
489
|
+
"name": "My Company",
|
|
490
|
+
"id": "c01458a5-7276-41ce-bc19-639906b0450a",
|
|
491
|
+
},
|
|
492
|
+
"plan": "enterprise",
|
|
476
493
|
},
|
|
477
|
-
"plan": "enterprise",
|
|
478
494
|
},
|
|
479
495
|
createdAt: "2020-09-19T12:18:37.071Z",
|
|
480
496
|
updatedAt: "2020-09-19T12:18:37.071Z",
|
|
@@ -2440,6 +2440,9 @@ test("Employees Accounting Employees All", async () => {
|
|
|
2440
2440
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
2441
2441
|
status: "active",
|
|
2442
2442
|
},
|
|
2443
|
+
passThrough: {
|
|
2444
|
+
"search": "San Francisco",
|
|
2445
|
+
},
|
|
2443
2446
|
});
|
|
2444
2447
|
expect(result.httpMeta.response.status).toBe(200);
|
|
2445
2448
|
expect(result.getAccountingEmployeesResponse).toBeDefined();
|
|
@@ -26,6 +26,9 @@ test("Expensecategories Accounting Expense Categories All", async () => {
|
|
|
26
26
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
27
27
|
status: "active",
|
|
28
28
|
},
|
|
29
|
+
passThrough: {
|
|
30
|
+
"search": "San Francisco",
|
|
31
|
+
},
|
|
29
32
|
});
|
|
30
33
|
expect(result.httpMeta.response.status).toBe(200);
|
|
31
34
|
expect(result.getExpenseCategoriesResponse).toBeDefined();
|
|
@@ -24,6 +24,9 @@ test("Expensereports Accounting Expense Reports All", async () => {
|
|
|
24
24
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
25
25
|
status: "submitted",
|
|
26
26
|
},
|
|
27
|
+
passThrough: {
|
|
28
|
+
"search": "San Francisco",
|
|
29
|
+
},
|
|
27
30
|
});
|
|
28
31
|
expect(result.httpMeta.response.status).toBe(200);
|
|
29
32
|
expect(result.getExpenseReportsResponse).toBeDefined();
|
|
@@ -262,6 +265,7 @@ test("Expensereports Accounting Expense Reports Add", async () => {
|
|
|
262
265
|
name: "Q1 2024",
|
|
263
266
|
},
|
|
264
267
|
lineItems: [],
|
|
268
|
+
reference: "INV-2024-001",
|
|
265
269
|
subsidiary: {
|
|
266
270
|
displayId: "123456",
|
|
267
271
|
name: "Acme Inc.",
|
|
@@ -452,6 +456,7 @@ test("Expensereports Accounting Expense Reports One", async () => {
|
|
|
452
456
|
createdAt: new Date("2020-09-30T07:43:32.000Z"),
|
|
453
457
|
},
|
|
454
458
|
],
|
|
459
|
+
reference: "INV-2024-001",
|
|
455
460
|
subsidiary: {
|
|
456
461
|
id: "12345",
|
|
457
462
|
displayId: "123456",
|
|
@@ -576,6 +581,7 @@ test("Expensereports Accounting Expense Reports Update", async () => {
|
|
|
576
581
|
name: "Q1 2024",
|
|
577
582
|
},
|
|
578
583
|
lineItems: [],
|
|
584
|
+
reference: "INV-2024-001",
|
|
579
585
|
subsidiary: {
|
|
580
586
|
displayId: "123456",
|
|
581
587
|
name: "Acme Inc.",
|
|
@@ -25,6 +25,9 @@ test("Quotes Accounting Quotes All", async () => {
|
|
|
25
25
|
createdSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
26
26
|
number: "OIT00546",
|
|
27
27
|
},
|
|
28
|
+
passThrough: {
|
|
29
|
+
"search": "San Francisco",
|
|
30
|
+
},
|
|
28
31
|
});
|
|
29
32
|
expect(result.httpMeta.response.status).toBe(200);
|
|
30
33
|
expect(result.getQuotesResponse).toBeDefined();
|
|
@@ -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 { matchStatusCode } from "../lib/http.js";
|
|
8
13
|
import * as M from "../lib/matchers.js";
|
|
9
14
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -124,12 +129,17 @@ async function $do(
|
|
|
124
129
|
"/accounting/attachments/{reference_type}/{reference_id}",
|
|
125
130
|
)(pathParams);
|
|
126
131
|
|
|
127
|
-
const query =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
const query = queryJoin(
|
|
133
|
+
encodeDeepObjectQuery({
|
|
134
|
+
"pass_through": payload.pass_through,
|
|
135
|
+
}),
|
|
136
|
+
encodeFormQuery({
|
|
137
|
+
"cursor": payload.cursor,
|
|
138
|
+
"fields": payload.fields,
|
|
139
|
+
"limit": payload.limit,
|
|
140
|
+
"raw": payload.raw,
|
|
141
|
+
}),
|
|
142
|
+
);
|
|
133
143
|
|
|
134
144
|
const headers = new Headers(compactMap({
|
|
135
145
|
Accept: "application/json",
|
|
@@ -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 { matchStatusCode } from "../lib/http.js";
|
|
8
13
|
import * as M from "../lib/matchers.js";
|
|
9
14
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -112,12 +117,17 @@ async function $do(
|
|
|
112
117
|
|
|
113
118
|
const path = pathToFunc("/accounting/companies")();
|
|
114
119
|
|
|
115
|
-
const query =
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
const query = queryJoin(
|
|
121
|
+
encodeDeepObjectQuery({
|
|
122
|
+
"pass_through": payload.pass_through,
|
|
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",
|
|
@@ -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 { matchStatusCode } from "../lib/http.js";
|
|
8
13
|
import * as M from "../lib/matchers.js";
|
|
9
14
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -112,12 +117,17 @@ async function $do(
|
|
|
112
117
|
|
|
113
118
|
const path = pathToFunc("/accounting/subsidiaries")();
|
|
114
119
|
|
|
115
|
-
const query =
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
const query = queryJoin(
|
|
121
|
+
encodeDeepObjectQuery({
|
|
122
|
+
"pass_through": payload.pass_through,
|
|
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",
|