@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.
Files changed (211) hide show
  1. package/README.md +8 -1
  2. package/funcs/accountingAttachmentsList.d.ts.map +1 -1
  3. package/funcs/accountingAttachmentsList.js +4 -2
  4. package/funcs/accountingAttachmentsList.js.map +1 -1
  5. package/funcs/accountingCategoriesList.js +1 -0
  6. package/funcs/accountingCategoriesList.js.map +1 -1
  7. package/funcs/accountingCompaniesList.d.ts.map +1 -1
  8. package/funcs/accountingCompaniesList.js +4 -2
  9. package/funcs/accountingCompaniesList.js.map +1 -1
  10. package/funcs/accountingDepartmentsList.js +1 -0
  11. package/funcs/accountingDepartmentsList.js.map +1 -1
  12. package/funcs/accountingEmployeesList.js +1 -0
  13. package/funcs/accountingEmployeesList.js.map +1 -1
  14. package/funcs/accountingExpenseCategoriesList.js +1 -0
  15. package/funcs/accountingExpenseCategoriesList.js.map +1 -1
  16. package/funcs/accountingExpenseReportsList.js +1 -0
  17. package/funcs/accountingExpenseReportsList.js.map +1 -1
  18. package/funcs/accountingExpensesList.js +1 -0
  19. package/funcs/accountingExpensesList.js.map +1 -1
  20. package/funcs/accountingLocationsList.js +1 -0
  21. package/funcs/accountingLocationsList.js.map +1 -1
  22. package/funcs/accountingQuotesList.js +1 -0
  23. package/funcs/accountingQuotesList.js.map +1 -1
  24. package/funcs/accountingSubsidiariesList.d.ts.map +1 -1
  25. package/funcs/accountingSubsidiariesList.js +4 -2
  26. package/funcs/accountingSubsidiariesList.js.map +1 -1
  27. package/funcs/crmListsGet.d.ts +18 -0
  28. package/funcs/crmListsGet.d.ts.map +1 -0
  29. package/funcs/crmListsGet.js +146 -0
  30. package/funcs/crmListsGet.js.map +1 -0
  31. package/funcs/crmListsList.d.ts +21 -0
  32. package/funcs/crmListsList.d.ts.map +1 -0
  33. package/funcs/crmListsList.js +168 -0
  34. package/funcs/crmListsList.js.map +1 -0
  35. package/jsr.json +1 -1
  36. package/lib/config.d.ts +4 -4
  37. package/lib/config.js +4 -4
  38. package/lib/config.js.map +1 -1
  39. package/lib/http.d.ts +1 -1
  40. package/lib/http.d.ts.map +1 -1
  41. package/lib/http.js +1 -1
  42. package/lib/http.js.map +1 -1
  43. package/lib/security.d.ts +5 -4
  44. package/lib/security.d.ts.map +1 -1
  45. package/lib/security.js +6 -7
  46. package/lib/security.js.map +1 -1
  47. package/models/components/billsfilter.d.ts +10 -0
  48. package/models/components/billsfilter.d.ts.map +1 -1
  49. package/models/components/billsfilter.js +4 -0
  50. package/models/components/billsfilter.js.map +1 -1
  51. package/models/components/connection.d.ts +33 -9
  52. package/models/components/connection.d.ts.map +1 -1
  53. package/models/components/connection.js +32 -3
  54. package/models/components/connection.js.map +1 -1
  55. package/models/components/connector.d.ts +5 -0
  56. package/models/components/connector.d.ts.map +1 -1
  57. package/models/components/connector.js +2 -0
  58. package/models/components/connector.js.map +1 -1
  59. package/models/components/connectoroverview.d.ts +188 -0
  60. package/models/components/connectoroverview.d.ts.map +1 -0
  61. package/models/components/connectoroverview.js +148 -0
  62. package/models/components/connectoroverview.js.map +1 -0
  63. package/models/components/consumerconnection.d.ts +16 -3
  64. package/models/components/consumerconnection.d.ts.map +1 -1
  65. package/models/components/consumerconnection.js +14 -2
  66. package/models/components/consumerconnection.js.map +1 -1
  67. package/models/components/expensereport.d.ts +9 -0
  68. package/models/components/expensereport.d.ts.map +1 -1
  69. package/models/components/expensereport.js +2 -0
  70. package/models/components/expensereport.js.map +1 -1
  71. package/models/components/getlistresponse.d.ts +45 -0
  72. package/models/components/getlistresponse.d.ts.map +1 -0
  73. package/models/components/getlistresponse.js +66 -0
  74. package/models/components/getlistresponse.js.map +1 -0
  75. package/models/components/getlistsresponse.d.ts +50 -0
  76. package/models/components/getlistsresponse.d.ts.map +1 -0
  77. package/models/components/getlistsresponse.js +68 -0
  78. package/models/components/getlistsresponse.js.map +1 -0
  79. package/models/components/index.d.ts +4 -0
  80. package/models/components/index.d.ts.map +1 -1
  81. package/models/components/index.js +4 -0
  82. package/models/components/index.js.map +1 -1
  83. package/models/components/list.d.ts +114 -0
  84. package/models/components/list.d.ts.map +1 -0
  85. package/models/components/list.js +110 -0
  86. package/models/components/list.js.map +1 -0
  87. package/models/components/webhookeventlogsfilter.d.ts +35 -0
  88. package/models/components/webhookeventlogsfilter.d.ts.map +1 -1
  89. package/models/components/webhookeventlogsfilter.js +13 -0
  90. package/models/components/webhookeventlogsfilter.js.map +1 -1
  91. package/models/components/webhookeventtype.d.ts +3 -0
  92. package/models/components/webhookeventtype.d.ts.map +1 -1
  93. package/models/components/webhookeventtype.js +3 -0
  94. package/models/components/webhookeventtype.js.map +1 -1
  95. package/models/operations/accountingattachmentsall.d.ts +9 -0
  96. package/models/operations/accountingattachmentsall.d.ts.map +1 -1
  97. package/models/operations/accountingattachmentsall.js +2 -0
  98. package/models/operations/accountingattachmentsall.js.map +1 -1
  99. package/models/operations/accountingcategoriesall.d.ts +9 -0
  100. package/models/operations/accountingcategoriesall.d.ts.map +1 -1
  101. package/models/operations/accountingcategoriesall.js +5 -0
  102. package/models/operations/accountingcategoriesall.js.map +1 -1
  103. package/models/operations/accountingcompaniesall.d.ts +9 -0
  104. package/models/operations/accountingcompaniesall.d.ts.map +1 -1
  105. package/models/operations/accountingcompaniesall.js +5 -0
  106. package/models/operations/accountingcompaniesall.js.map +1 -1
  107. package/models/operations/accountingdepartmentsall.d.ts +9 -0
  108. package/models/operations/accountingdepartmentsall.d.ts.map +1 -1
  109. package/models/operations/accountingdepartmentsall.js +5 -0
  110. package/models/operations/accountingdepartmentsall.js.map +1 -1
  111. package/models/operations/accountingemployeesall.d.ts +9 -0
  112. package/models/operations/accountingemployeesall.d.ts.map +1 -1
  113. package/models/operations/accountingemployeesall.js +5 -0
  114. package/models/operations/accountingemployeesall.js.map +1 -1
  115. package/models/operations/accountingexpensecategoriesall.d.ts +9 -0
  116. package/models/operations/accountingexpensecategoriesall.d.ts.map +1 -1
  117. package/models/operations/accountingexpensecategoriesall.js +5 -0
  118. package/models/operations/accountingexpensecategoriesall.js.map +1 -1
  119. package/models/operations/accountingexpensereportsall.d.ts +9 -0
  120. package/models/operations/accountingexpensereportsall.d.ts.map +1 -1
  121. package/models/operations/accountingexpensereportsall.js +5 -0
  122. package/models/operations/accountingexpensereportsall.js.map +1 -1
  123. package/models/operations/accountingexpensesall.d.ts +9 -0
  124. package/models/operations/accountingexpensesall.d.ts.map +1 -1
  125. package/models/operations/accountingexpensesall.js +5 -0
  126. package/models/operations/accountingexpensesall.js.map +1 -1
  127. package/models/operations/accountinglocationsall.d.ts +9 -0
  128. package/models/operations/accountinglocationsall.d.ts.map +1 -1
  129. package/models/operations/accountinglocationsall.js +5 -0
  130. package/models/operations/accountinglocationsall.js.map +1 -1
  131. package/models/operations/accountingquotesall.d.ts +9 -0
  132. package/models/operations/accountingquotesall.d.ts.map +1 -1
  133. package/models/operations/accountingquotesall.js +5 -0
  134. package/models/operations/accountingquotesall.js.map +1 -1
  135. package/models/operations/accountingsubsidiariesall.d.ts +9 -0
  136. package/models/operations/accountingsubsidiariesall.d.ts.map +1 -1
  137. package/models/operations/accountingsubsidiariesall.js +5 -0
  138. package/models/operations/accountingsubsidiariesall.js.map +1 -1
  139. package/models/operations/crmlistsall.d.ts +81 -0
  140. package/models/operations/crmlistsall.d.ts.map +1 -0
  141. package/models/operations/crmlistsall.js +80 -0
  142. package/models/operations/crmlistsall.js.map +1 -0
  143. package/models/operations/crmlistsone.d.ts +67 -0
  144. package/models/operations/crmlistsone.d.ts.map +1 -0
  145. package/models/operations/crmlistsone.js +74 -0
  146. package/models/operations/crmlistsone.js.map +1 -0
  147. package/models/operations/index.d.ts +2 -0
  148. package/models/operations/index.d.ts.map +1 -1
  149. package/models/operations/index.js +2 -0
  150. package/models/operations/index.js.map +1 -1
  151. package/package.json +1 -1
  152. package/sdk/crm.d.ts +3 -0
  153. package/sdk/crm.d.ts.map +1 -1
  154. package/sdk/crm.js +4 -0
  155. package/sdk/crm.js.map +1 -1
  156. package/sdk/lists.d.ts +22 -0
  157. package/sdk/lists.d.ts.map +1 -0
  158. package/sdk/lists.js +33 -0
  159. package/sdk/lists.js.map +1 -0
  160. package/src/__tests__/companies.test.ts +3 -0
  161. package/src/__tests__/connections.test.ts +48 -32
  162. package/src/__tests__/connectionsettings.test.ts +18 -12
  163. package/src/__tests__/consumers.test.ts +48 -32
  164. package/src/__tests__/employees.test.ts +3 -0
  165. package/src/__tests__/expensecategories.test.ts +3 -0
  166. package/src/__tests__/expensereports.test.ts +6 -0
  167. package/src/__tests__/quotes.test.ts +3 -0
  168. package/src/funcs/accountingAttachmentsList.ts +17 -7
  169. package/src/funcs/accountingCategoriesList.ts +1 -0
  170. package/src/funcs/accountingCompaniesList.ts +17 -7
  171. package/src/funcs/accountingDepartmentsList.ts +1 -0
  172. package/src/funcs/accountingEmployeesList.ts +1 -0
  173. package/src/funcs/accountingExpenseCategoriesList.ts +1 -0
  174. package/src/funcs/accountingExpenseReportsList.ts +1 -0
  175. package/src/funcs/accountingExpensesList.ts +1 -0
  176. package/src/funcs/accountingLocationsList.ts +1 -0
  177. package/src/funcs/accountingQuotesList.ts +1 -0
  178. package/src/funcs/accountingSubsidiariesList.ts +17 -7
  179. package/src/funcs/crmListsGet.ts +228 -0
  180. package/src/funcs/crmListsList.ts +303 -0
  181. package/src/lib/config.ts +4 -4
  182. package/src/lib/http.ts +3 -1
  183. package/src/lib/security.ts +10 -5
  184. package/src/models/components/billsfilter.ts +18 -0
  185. package/src/models/components/connection.ts +85 -6
  186. package/src/models/components/connector.ts +9 -0
  187. package/src/models/components/connectoroverview.ts +346 -0
  188. package/src/models/components/consumerconnection.ts +44 -3
  189. package/src/models/components/expensereport.ts +11 -0
  190. package/src/models/components/getlistresponse.ts +78 -0
  191. package/src/models/components/getlistsresponse.ts +84 -0
  192. package/src/models/components/index.ts +4 -0
  193. package/src/models/components/list.ts +181 -0
  194. package/src/models/components/webhookeventlogsfilter.ts +48 -0
  195. package/src/models/components/webhookeventtype.ts +3 -0
  196. package/src/models/operations/accountingattachmentsall.ts +7 -0
  197. package/src/models/operations/accountingcategoriesall.ts +10 -0
  198. package/src/models/operations/accountingcompaniesall.ts +10 -0
  199. package/src/models/operations/accountingdepartmentsall.ts +10 -0
  200. package/src/models/operations/accountingemployeesall.ts +10 -0
  201. package/src/models/operations/accountingexpensecategoriesall.ts +10 -0
  202. package/src/models/operations/accountingexpensereportsall.ts +10 -0
  203. package/src/models/operations/accountingexpensesall.ts +10 -0
  204. package/src/models/operations/accountinglocationsall.ts +10 -0
  205. package/src/models/operations/accountingquotesall.ts +10 -0
  206. package/src/models/operations/accountingsubsidiariesall.ts +10 -0
  207. package/src/models/operations/crmlistsall.ts +138 -0
  208. package/src/models/operations/crmlistsone.ts +122 -0
  209. package/src/models/operations/index.ts +2 -0
  210. package/src/sdk/crm.ts +6 -0
  211. 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
- "account": {
57
- "name": "My Company",
58
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
291
- "name": "My Company",
292
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
456
- "name": "My Company",
457
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
868
- "name": "My Company",
869
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
1125
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
1126
- "name": "My Company",
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
- "account": {
1331
- "name": "My Company",
1332
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
1655
- "name": "My Company",
1656
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
2003
- "name": "My Company",
2004
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
57
- "name": "My Company",
58
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
301
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
302
- "name": "My Company",
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
- "account": {
507
- "name": "My Company",
508
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
65
- "name": "My Company",
66
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
94
- "name": "My Company",
95
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
275
- "name": "My Company",
276
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
304
- "name": "My Company",
305
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
333
- "name": "My Company",
334
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
416
- "name": "My Company",
417
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
445
- "name": "My Company",
446
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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
- "account": {
474
- "name": "My Company",
475
- "id": "c01458a5-7276-41ce-bc19-639906b0450a",
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 { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
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 = encodeFormQuery({
128
- "cursor": payload.cursor,
129
- "fields": payload.fields,
130
- "limit": payload.limit,
131
- "raw": payload.raw,
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",
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -3,7 +3,12 @@
3
3
  */
4
4
 
5
5
  import { ApideckCore } from "../core.js";
6
- import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
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 = encodeFormQuery({
116
- "cursor": payload.cursor,
117
- "fields": payload.fields,
118
- "limit": payload.limit,
119
- "raw": payload.raw,
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",
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -122,6 +122,7 @@ async function $do(
122
122
  const query = queryJoin(
123
123
  encodeDeepObjectQuery({
124
124
  "filter": payload.filter,
125
+ "pass_through": payload.pass_through,
125
126
  }),
126
127
  encodeFormQuery({
127
128
  "cursor": payload.cursor,
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -120,6 +120,7 @@ async function $do(
120
120
  const query = queryJoin(
121
121
  encodeDeepObjectQuery({
122
122
  "filter": payload.filter,
123
+ "pass_through": payload.pass_through,
123
124
  }),
124
125
  encodeFormQuery({
125
126
  "cursor": payload.cursor,
@@ -3,7 +3,12 @@
3
3
  */
4
4
 
5
5
  import { ApideckCore } from "../core.js";
6
- import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
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 = encodeFormQuery({
116
- "cursor": payload.cursor,
117
- "fields": payload.fields,
118
- "limit": payload.limit,
119
- "raw": payload.raw,
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",