@bisondesk/core-sdk 1.0.317 → 1.0.319

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 (425) hide show
  1. package/lib/{types/apis → apis}/crm.d.ts +3 -3
  2. package/lib/apis/crm.d.ts.map +1 -0
  3. package/lib/{esm/apis → apis}/crm.js +3 -2
  4. package/lib/apis/crm.js.map +1 -0
  5. package/lib/{types/apis → apis}/internet-vehicles.d.ts +1 -1
  6. package/lib/{types/apis → apis}/internet-vehicles.d.ts.map +1 -1
  7. package/lib/apis/internet-vehicles.js.map +1 -0
  8. package/lib/{types/apis → apis}/leasing-administration.d.ts +1 -1
  9. package/lib/{types/apis → apis}/leasing-administration.d.ts.map +1 -1
  10. package/lib/apis/leasing-administration.js.map +1 -0
  11. package/lib/{types/apis → apis}/leasing.d.ts +2 -2
  12. package/lib/{types/apis → apis}/leasing.d.ts.map +1 -1
  13. package/lib/apis/leasing.js.map +1 -0
  14. package/lib/{types/apis → apis}/opportunities.d.ts +3 -3
  15. package/lib/{types/apis → apis}/opportunities.d.ts.map +1 -1
  16. package/lib/{esm/apis → apis}/opportunities.js +1 -2
  17. package/lib/{esm/apis → apis}/opportunities.js.map +1 -1
  18. package/lib/{types/apis → apis}/picklists.d.ts +1 -1
  19. package/lib/{types/apis → apis}/picklists.d.ts.map +1 -1
  20. package/lib/apis/picklists.js.map +1 -0
  21. package/lib/{types/apis → apis}/tenants.d.ts +1 -1
  22. package/lib/{types/apis → apis}/tenants.d.ts.map +1 -1
  23. package/lib/apis/tenants.js.map +1 -0
  24. package/lib/{types/apis → apis}/users.d.ts +1 -1
  25. package/lib/{types/apis → apis}/users.d.ts.map +1 -1
  26. package/lib/apis/users.js.map +1 -0
  27. package/lib/{types/apis → apis}/vehicles.d.ts +2 -2
  28. package/lib/{types/apis → apis}/vehicles.d.ts.map +1 -1
  29. package/lib/apis/vehicles.js.map +1 -0
  30. package/lib/{types/constants.d.ts → constants.d.ts} +1 -1
  31. package/lib/{types/constants.d.ts.map → constants.d.ts.map} +1 -1
  32. package/lib/{esm/constants.js → constants.js} +4 -4
  33. package/lib/{esm/constants.js.map → constants.js.map} +1 -1
  34. package/lib/types/{types/crm.d.ts → crm.d.ts} +3 -3
  35. package/lib/types/crm.d.ts.map +1 -0
  36. package/lib/types/crm.js.map +1 -0
  37. package/lib/types/{types/definitions.d.ts → definitions.d.ts} +2 -2
  38. package/lib/types/{types/definitions.d.ts.map → definitions.d.ts.map} +1 -1
  39. package/lib/types/definitions.js.map +1 -0
  40. package/lib/types/{types/delivery-settings.d.ts → delivery-settings.d.ts} +2 -2
  41. package/lib/types/delivery-settings.d.ts.map +1 -0
  42. package/lib/types/delivery-settings.js.map +1 -0
  43. package/lib/types/{types/insights.d.ts → insights.d.ts} +2 -2
  44. package/lib/types/insights.d.ts.map +1 -0
  45. package/lib/types/insights.js.map +1 -0
  46. package/lib/types/{types/interests.d.ts → interests.d.ts} +2 -2
  47. package/lib/types/interests.d.ts.map +1 -0
  48. package/lib/types/interests.js.map +1 -0
  49. package/lib/types/internet-opportunities.d.ts +31 -0
  50. package/lib/types/internet-opportunities.d.ts.map +1 -0
  51. package/lib/types/internet-opportunities.js +2 -0
  52. package/lib/types/internet-opportunities.js.map +1 -0
  53. package/lib/types/{types/internet-vehicles.d.ts → internet-vehicles.d.ts} +3 -3
  54. package/lib/types/internet-vehicles.d.ts.map +1 -0
  55. package/lib/types/internet-vehicles.js.map +1 -0
  56. package/lib/types/{types/leasing-administration.d.ts → leasing-administration.d.ts} +1 -1
  57. package/lib/types/leasing-administration.d.ts.map +1 -0
  58. package/lib/types/leasing-administration.js.map +1 -0
  59. package/lib/types/{types/leasing-debtors.d.ts → leasing-debtors.d.ts} +1 -1
  60. package/lib/types/{types/leasing-debtors.d.ts.map → leasing-debtors.d.ts.map} +1 -1
  61. package/lib/types/leasing-debtors.js.map +1 -0
  62. package/lib/types/{types/leasing-search.d.ts → leasing-search.d.ts} +4 -4
  63. package/lib/types/leasing-search.d.ts.map +1 -0
  64. package/lib/types/leasing-search.js.map +1 -0
  65. package/lib/types/{types/leasing-settings.d.ts → leasing-settings.d.ts} +2 -2
  66. package/lib/types/leasing-settings.d.ts.map +1 -0
  67. package/lib/{cjs/types → types}/leasing-settings.js.map +1 -1
  68. package/lib/types/{types/leasing.d.ts → leasing.d.ts} +17 -2
  69. package/lib/types/{types/leasing.d.ts.map → leasing.d.ts.map} +1 -1
  70. package/lib/types/leasing.js.map +1 -0
  71. package/lib/types/{types/opportunities.d.ts → opportunities.d.ts} +13 -10
  72. package/lib/types/opportunities.d.ts.map +1 -0
  73. package/lib/types/opportunities.js.map +1 -0
  74. package/lib/types/{types/quote-settings.d.ts → quote-settings.d.ts} +1 -1
  75. package/lib/types/{types/quote-settings.d.ts.map → quote-settings.d.ts.map} +1 -1
  76. package/lib/types/quote-settings.js.map +1 -0
  77. package/lib/types/{types/quotes.d.ts → quotes.d.ts} +4 -4
  78. package/lib/types/quotes.d.ts.map +1 -0
  79. package/lib/types/quotes.js.map +1 -0
  80. package/lib/types/{types/recently-viewed.d.ts → recently-viewed.d.ts} +1 -1
  81. package/lib/types/recently-viewed.d.ts.map +1 -0
  82. package/lib/types/recently-viewed.js.map +1 -0
  83. package/lib/types/{types/roi-ratings.d.ts → roi-ratings.d.ts} +3 -3
  84. package/lib/types/roi-ratings.d.ts.map +1 -0
  85. package/lib/types/roi-ratings.js.map +1 -0
  86. package/lib/types/{types/saved-filters.d.ts → saved-filters.d.ts} +2 -2
  87. package/lib/types/saved-filters.d.ts.map +1 -0
  88. package/lib/{cjs/types → types}/saved-filters.js.map +1 -1
  89. package/lib/types/{types/search.d.ts → search.d.ts} +8 -2
  90. package/lib/types/search.d.ts.map +1 -0
  91. package/lib/types/search.js.map +1 -0
  92. package/lib/types/{types/tenants.d.ts → tenants.d.ts} +2 -1
  93. package/lib/types/tenants.d.ts.map +1 -0
  94. package/lib/types/tenants.js.map +1 -0
  95. package/lib/types/{types/utils.d.ts → utils.d.ts} +1 -1
  96. package/lib/types/utils.d.ts.map +1 -0
  97. package/lib/types/utils.js.map +1 -0
  98. package/lib/types/{types/vehicles.d.ts → vehicles.d.ts} +1 -1
  99. package/lib/types/{types/vehicles.d.ts.map → vehicles.d.ts.map} +1 -1
  100. package/lib/types/vehicles.js.map +1 -0
  101. package/lib/{types/utils → utils}/forms.d.ts +1 -1
  102. package/lib/{types/utils → utils}/forms.d.ts.map +1 -1
  103. package/lib/{esm/utils → utils}/forms.js +2 -2
  104. package/lib/utils/forms.js.map +1 -0
  105. package/lib/{types/utils → utils}/leasing.d.ts +1 -1
  106. package/lib/utils/leasing.d.ts.map +1 -0
  107. package/lib/utils/leasing.js +5 -0
  108. package/lib/utils/leasing.js.map +1 -0
  109. package/lib/{types/utils → utils}/opportunities.d.ts +1 -1
  110. package/lib/{types/utils → utils}/opportunities.d.ts.map +1 -1
  111. package/lib/{esm/utils → utils}/opportunities.js +1 -1
  112. package/lib/utils/opportunities.js.map +1 -0
  113. package/lib/utils/slug.d.ts +3 -0
  114. package/lib/{types/utils → utils}/slug.d.ts.map +1 -1
  115. package/lib/{esm/utils → utils}/slug.js +1 -1
  116. package/lib/utils/slug.js.map +1 -0
  117. package/lib/{types/utils → utils}/tenants.d.ts +1 -1
  118. package/lib/{types/utils → utils}/tenants.d.ts.map +1 -1
  119. package/lib/{esm/utils → utils}/tenants.js +1 -1
  120. package/lib/utils/tenants.js.map +1 -0
  121. package/lib/{types/utils → utils}/vehicles.d.ts +1 -1
  122. package/lib/{types/utils → utils}/vehicles.d.ts.map +1 -1
  123. package/lib/{esm/utils → utils}/vehicles.js +1 -1
  124. package/lib/utils/vehicles.js.map +1 -0
  125. package/package.json +15 -24
  126. package/src/apis/crm.ts +16 -11
  127. package/src/apis/internet-vehicles.ts +1 -1
  128. package/src/apis/leasing-administration.ts +3 -3
  129. package/src/apis/leasing.ts +12 -12
  130. package/src/apis/opportunities.ts +4 -6
  131. package/src/apis/picklists.ts +3 -3
  132. package/src/apis/tenants.ts +6 -6
  133. package/src/apis/users.ts +2 -2
  134. package/src/apis/vehicles.ts +11 -11
  135. package/src/constants.ts +1 -1
  136. package/src/types/crm.ts +3 -3
  137. package/src/types/definitions.ts +2 -2
  138. package/src/types/delivery-settings.ts +2 -2
  139. package/src/types/insights.ts +2 -2
  140. package/src/types/interests.ts +2 -2
  141. package/src/types/internet-opportunities.ts +37 -0
  142. package/src/types/internet-vehicles.ts +3 -3
  143. package/src/types/leasing-administration.ts +1 -1
  144. package/src/types/leasing-debtors.ts +1 -1
  145. package/src/types/leasing-search.ts +4 -4
  146. package/src/types/leasing-settings.ts +2 -2
  147. package/src/types/leasing.ts +18 -2
  148. package/src/types/opportunities.ts +14 -10
  149. package/src/types/quote-settings.ts +1 -1
  150. package/src/types/quotes.ts +4 -4
  151. package/src/types/recently-viewed.ts +1 -1
  152. package/src/types/roi-ratings.ts +3 -3
  153. package/src/types/saved-filters.ts +2 -2
  154. package/src/types/search.ts +10 -2
  155. package/src/types/tenants.ts +2 -1
  156. package/src/types/utils.ts +1 -1
  157. package/src/types/vehicles.ts +1 -1
  158. package/src/utils/forms.ts +2 -2
  159. package/src/utils/leasing.ts +5 -4
  160. package/src/utils/opportunities.ts +1 -1
  161. package/src/utils/slug.ts +2 -2
  162. package/src/utils/tenants.ts +2 -2
  163. package/src/utils/vehicles.ts +2 -2
  164. package/tsconfig.deploy.json +5 -0
  165. package/tsconfig.deploy.tsbuildinfo +1 -0
  166. package/tsconfig.json +1 -2
  167. package/tsconfig.tsbuildinfo +1 -0
  168. package/lib/cjs/apis/crm.js +0 -199
  169. package/lib/cjs/apis/crm.js.map +0 -1
  170. package/lib/cjs/apis/documents.js +0 -55
  171. package/lib/cjs/apis/documents.js.map +0 -1
  172. package/lib/cjs/apis/internet-vehicles.js +0 -25
  173. package/lib/cjs/apis/internet-vehicles.js.map +0 -1
  174. package/lib/cjs/apis/leasing-administration.js +0 -47
  175. package/lib/cjs/apis/leasing-administration.js.map +0 -1
  176. package/lib/cjs/apis/leasing.js +0 -167
  177. package/lib/cjs/apis/leasing.js.map +0 -1
  178. package/lib/cjs/apis/opportunities.js +0 -66
  179. package/lib/cjs/apis/opportunities.js.map +0 -1
  180. package/lib/cjs/apis/picklists.js +0 -42
  181. package/lib/cjs/apis/picklists.js.map +0 -1
  182. package/lib/cjs/apis/tenants.js +0 -78
  183. package/lib/cjs/apis/tenants.js.map +0 -1
  184. package/lib/cjs/apis/users.js +0 -24
  185. package/lib/cjs/apis/users.js.map +0 -1
  186. package/lib/cjs/apis/vehicles.js +0 -183
  187. package/lib/cjs/apis/vehicles.js.map +0 -1
  188. package/lib/cjs/constants.js +0 -940
  189. package/lib/cjs/constants.js.map +0 -1
  190. package/lib/cjs/ddb-entities.js +0 -5
  191. package/lib/cjs/ddb-entities.js.map +0 -1
  192. package/lib/cjs/types/activities.js +0 -16
  193. package/lib/cjs/types/activities.js.map +0 -1
  194. package/lib/cjs/types/comparables.js +0 -3
  195. package/lib/cjs/types/crm.js +0 -19
  196. package/lib/cjs/types/crm.js.map +0 -1
  197. package/lib/cjs/types/definitions.js +0 -3
  198. package/lib/cjs/types/definitions.js.map +0 -1
  199. package/lib/cjs/types/delivery-settings.js +0 -9
  200. package/lib/cjs/types/delivery-settings.js.map +0 -1
  201. package/lib/cjs/types/documents.js +0 -9
  202. package/lib/cjs/types/documents.js.map +0 -1
  203. package/lib/cjs/types/events.js +0 -10
  204. package/lib/cjs/types/events.js.map +0 -1
  205. package/lib/cjs/types/fields.js +0 -29
  206. package/lib/cjs/types/fields.js.map +0 -1
  207. package/lib/cjs/types/insights.js +0 -3
  208. package/lib/cjs/types/insights.js.map +0 -1
  209. package/lib/cjs/types/interests.js +0 -10
  210. package/lib/cjs/types/interests.js.map +0 -1
  211. package/lib/cjs/types/internet-vehicles.js +0 -3
  212. package/lib/cjs/types/internet-vehicles.js.map +0 -1
  213. package/lib/cjs/types/leasing-administration.js +0 -3
  214. package/lib/cjs/types/leasing-administration.js.map +0 -1
  215. package/lib/cjs/types/leasing-debtors.js +0 -3
  216. package/lib/cjs/types/leasing-debtors.js.map +0 -1
  217. package/lib/cjs/types/leasing-search.js +0 -3
  218. package/lib/cjs/types/leasing-search.js.map +0 -1
  219. package/lib/cjs/types/leasing-settings.js +0 -10
  220. package/lib/cjs/types/leasing.js +0 -33
  221. package/lib/cjs/types/leasing.js.map +0 -1
  222. package/lib/cjs/types/machines.js +0 -3
  223. package/lib/cjs/types/opportunities.js +0 -95
  224. package/lib/cjs/types/opportunities.js.map +0 -1
  225. package/lib/cjs/types/payments.js +0 -10
  226. package/lib/cjs/types/payments.js.map +0 -1
  227. package/lib/cjs/types/picklists.js +0 -3
  228. package/lib/cjs/types/quote-settings.js +0 -3
  229. package/lib/cjs/types/quote-settings.js.map +0 -1
  230. package/lib/cjs/types/quotes.js +0 -45
  231. package/lib/cjs/types/quotes.js.map +0 -1
  232. package/lib/cjs/types/recently-viewed.js +0 -3
  233. package/lib/cjs/types/recently-viewed.js.map +0 -1
  234. package/lib/cjs/types/reservations.js +0 -8
  235. package/lib/cjs/types/reservations.js.map +0 -1
  236. package/lib/cjs/types/roi-ratings.js +0 -8
  237. package/lib/cjs/types/roi-ratings.js.map +0 -1
  238. package/lib/cjs/types/saved-filters.js +0 -12
  239. package/lib/cjs/types/search.js +0 -36
  240. package/lib/cjs/types/search.js.map +0 -1
  241. package/lib/cjs/types/settings.js +0 -3
  242. package/lib/cjs/types/storage.js +0 -5
  243. package/lib/cjs/types/storage.js.map +0 -1
  244. package/lib/cjs/types/templates.js +0 -3
  245. package/lib/cjs/types/tenants.js +0 -19
  246. package/lib/cjs/types/tenants.js.map +0 -1
  247. package/lib/cjs/types/users.js +0 -3
  248. package/lib/cjs/types/utils.js +0 -9
  249. package/lib/cjs/types/utils.js.map +0 -1
  250. package/lib/cjs/types/vehicles.js +0 -63
  251. package/lib/cjs/types/vehicles.js.map +0 -1
  252. package/lib/cjs/types/website.js +0 -3
  253. package/lib/cjs/utils/forms.js +0 -31
  254. package/lib/cjs/utils/forms.js.map +0 -1
  255. package/lib/cjs/utils/leasing.js +0 -8
  256. package/lib/cjs/utils/leasing.js.map +0 -1
  257. package/lib/cjs/utils/opportunities.js +0 -60
  258. package/lib/cjs/utils/opportunities.js.map +0 -1
  259. package/lib/cjs/utils/slug.js +0 -21
  260. package/lib/cjs/utils/slug.js.map +0 -1
  261. package/lib/cjs/utils/tenants.js +0 -21
  262. package/lib/cjs/utils/tenants.js.map +0 -1
  263. package/lib/cjs/utils/vehicles.js +0 -60
  264. package/lib/cjs/utils/vehicles.js.map +0 -1
  265. package/lib/esm/apis/crm.js.map +0 -1
  266. package/lib/esm/apis/documents.js +0 -49
  267. package/lib/esm/apis/documents.js.map +0 -1
  268. package/lib/esm/apis/internet-vehicles.js.map +0 -1
  269. package/lib/esm/apis/leasing-administration.js.map +0 -1
  270. package/lib/esm/apis/leasing.js.map +0 -1
  271. package/lib/esm/apis/picklists.js.map +0 -1
  272. package/lib/esm/apis/tenants.js.map +0 -1
  273. package/lib/esm/apis/users.js.map +0 -1
  274. package/lib/esm/apis/vehicles.js.map +0 -1
  275. package/lib/esm/types/comparables.js.map +0 -1
  276. package/lib/esm/types/crm.js.map +0 -1
  277. package/lib/esm/types/definitions.js.map +0 -1
  278. package/lib/esm/types/delivery-settings.js.map +0 -1
  279. package/lib/esm/types/documents.js +0 -6
  280. package/lib/esm/types/documents.js.map +0 -1
  281. package/lib/esm/types/insights.js.map +0 -1
  282. package/lib/esm/types/interests.js.map +0 -1
  283. package/lib/esm/types/internet-vehicles.js.map +0 -1
  284. package/lib/esm/types/leasing-administration.js.map +0 -1
  285. package/lib/esm/types/leasing-debtors.js.map +0 -1
  286. package/lib/esm/types/leasing-search.js.map +0 -1
  287. package/lib/esm/types/leasing-settings.js.map +0 -1
  288. package/lib/esm/types/leasing.js.map +0 -1
  289. package/lib/esm/types/machines.js.map +0 -1
  290. package/lib/esm/types/opportunities.js.map +0 -1
  291. package/lib/esm/types/picklists.js.map +0 -1
  292. package/lib/esm/types/quote-settings.js.map +0 -1
  293. package/lib/esm/types/quotes.js.map +0 -1
  294. package/lib/esm/types/recently-viewed.js.map +0 -1
  295. package/lib/esm/types/roi-ratings.js.map +0 -1
  296. package/lib/esm/types/saved-filters.js.map +0 -1
  297. package/lib/esm/types/search.js.map +0 -1
  298. package/lib/esm/types/settings.js.map +0 -1
  299. package/lib/esm/types/storage.js +0 -2
  300. package/lib/esm/types/storage.js.map +0 -1
  301. package/lib/esm/types/templates.js.map +0 -1
  302. package/lib/esm/types/tenants.js.map +0 -1
  303. package/lib/esm/types/users.js.map +0 -1
  304. package/lib/esm/types/utils.js.map +0 -1
  305. package/lib/esm/types/vehicles.js.map +0 -1
  306. package/lib/esm/types/website.js.map +0 -1
  307. package/lib/esm/utils/forms.js.map +0 -1
  308. package/lib/esm/utils/leasing.js +0 -4
  309. package/lib/esm/utils/leasing.js.map +0 -1
  310. package/lib/esm/utils/opportunities.js.map +0 -1
  311. package/lib/esm/utils/slug.js.map +0 -1
  312. package/lib/esm/utils/tenants.js.map +0 -1
  313. package/lib/esm/utils/vehicles.js.map +0 -1
  314. package/lib/tsconfig.cjs.tsbuildinfo +0 -1
  315. package/lib/tsconfig.esm.tsbuildinfo +0 -1
  316. package/lib/types/apis/crm.d.ts.map +0 -1
  317. package/lib/types/apis/documents.d.ts +0 -4
  318. package/lib/types/apis/documents.d.ts.map +0 -1
  319. package/lib/types/types/crm.d.ts.map +0 -1
  320. package/lib/types/types/delivery-settings.d.ts.map +0 -1
  321. package/lib/types/types/documents.d.ts +0 -140
  322. package/lib/types/types/documents.d.ts.map +0 -1
  323. package/lib/types/types/insights.d.ts.map +0 -1
  324. package/lib/types/types/interests.d.ts.map +0 -1
  325. package/lib/types/types/internet-vehicles.d.ts.map +0 -1
  326. package/lib/types/types/leasing-administration.d.ts.map +0 -1
  327. package/lib/types/types/leasing-search.d.ts.map +0 -1
  328. package/lib/types/types/leasing-settings.d.ts.map +0 -1
  329. package/lib/types/types/opportunities.d.ts.map +0 -1
  330. package/lib/types/types/quotes.d.ts.map +0 -1
  331. package/lib/types/types/recently-viewed.d.ts.map +0 -1
  332. package/lib/types/types/roi-ratings.d.ts.map +0 -1
  333. package/lib/types/types/saved-filters.d.ts.map +0 -1
  334. package/lib/types/types/search.d.ts.map +0 -1
  335. package/lib/types/types/storage.d.ts +0 -2
  336. package/lib/types/types/storage.d.ts.map +0 -1
  337. package/lib/types/types/tenants.d.ts.map +0 -1
  338. package/lib/types/types/utils.d.ts.map +0 -1
  339. package/lib/types/utils/leasing.d.ts.map +0 -1
  340. package/lib/types/utils/slug.d.ts +0 -3
  341. package/src/apis/documents.ts +0 -64
  342. package/src/types/documents.ts +0 -141
  343. package/src/types/storage.ts +0 -1
  344. package/tsconfig.cjs.json +0 -9
  345. package/tsconfig.esm.json +0 -9
  346. /package/lib/{esm/apis → apis}/internet-vehicles.js +0 -0
  347. /package/lib/{esm/apis → apis}/leasing-administration.js +0 -0
  348. /package/lib/{esm/apis → apis}/leasing.js +0 -0
  349. /package/lib/{esm/apis → apis}/picklists.js +0 -0
  350. /package/lib/{esm/apis → apis}/tenants.js +0 -0
  351. /package/lib/{esm/apis → apis}/users.js +0 -0
  352. /package/lib/{esm/apis → apis}/vehicles.js +0 -0
  353. /package/lib/{types/ddb-entities.d.ts → ddb-entities.d.ts} +0 -0
  354. /package/lib/{types/ddb-entities.d.ts.map → ddb-entities.d.ts.map} +0 -0
  355. /package/lib/{esm/ddb-entities.js → ddb-entities.js} +0 -0
  356. /package/lib/{esm/ddb-entities.js.map → ddb-entities.js.map} +0 -0
  357. /package/lib/types/{types/activities.d.ts → activities.d.ts} +0 -0
  358. /package/lib/types/{types/activities.d.ts.map → activities.d.ts.map} +0 -0
  359. /package/lib/{esm/types → types}/activities.js +0 -0
  360. /package/lib/{esm/types → types}/activities.js.map +0 -0
  361. /package/lib/types/{types/comparables.d.ts → comparables.d.ts} +0 -0
  362. /package/lib/types/{types/comparables.d.ts.map → comparables.d.ts.map} +0 -0
  363. /package/lib/{esm/types → types}/comparables.js +0 -0
  364. /package/lib/{cjs/types → types}/comparables.js.map +0 -0
  365. /package/lib/{esm/types → types}/crm.js +0 -0
  366. /package/lib/{esm/types → types}/definitions.js +0 -0
  367. /package/lib/{esm/types → types}/delivery-settings.js +0 -0
  368. /package/lib/types/{types/events.d.ts → events.d.ts} +0 -0
  369. /package/lib/types/{types/events.d.ts.map → events.d.ts.map} +0 -0
  370. /package/lib/{esm/types → types}/events.js +0 -0
  371. /package/lib/{esm/types → types}/events.js.map +0 -0
  372. /package/lib/types/{types/fields.d.ts → fields.d.ts} +0 -0
  373. /package/lib/types/{types/fields.d.ts.map → fields.d.ts.map} +0 -0
  374. /package/lib/{esm/types → types}/fields.js +0 -0
  375. /package/lib/{esm/types → types}/fields.js.map +0 -0
  376. /package/lib/{esm/types → types}/insights.js +0 -0
  377. /package/lib/{esm/types → types}/interests.js +0 -0
  378. /package/lib/{esm/types → types}/internet-vehicles.js +0 -0
  379. /package/lib/{esm/types → types}/leasing-administration.js +0 -0
  380. /package/lib/{esm/types → types}/leasing-debtors.js +0 -0
  381. /package/lib/{esm/types → types}/leasing-search.js +0 -0
  382. /package/lib/{esm/types → types}/leasing-settings.js +0 -0
  383. /package/lib/{esm/types → types}/leasing.js +0 -0
  384. /package/lib/types/{types/machines.d.ts → machines.d.ts} +0 -0
  385. /package/lib/types/{types/machines.d.ts.map → machines.d.ts.map} +0 -0
  386. /package/lib/{esm/types → types}/machines.js +0 -0
  387. /package/lib/{cjs/types → types}/machines.js.map +0 -0
  388. /package/lib/{esm/types → types}/opportunities.js +0 -0
  389. /package/lib/types/{types/payments.d.ts → payments.d.ts} +0 -0
  390. /package/lib/types/{types/payments.d.ts.map → payments.d.ts.map} +0 -0
  391. /package/lib/{esm/types → types}/payments.js +0 -0
  392. /package/lib/{esm/types → types}/payments.js.map +0 -0
  393. /package/lib/types/{types/picklists.d.ts → picklists.d.ts} +0 -0
  394. /package/lib/types/{types/picklists.d.ts.map → picklists.d.ts.map} +0 -0
  395. /package/lib/{esm/types → types}/picklists.js +0 -0
  396. /package/lib/{cjs/types → types}/picklists.js.map +0 -0
  397. /package/lib/{esm/types → types}/quote-settings.js +0 -0
  398. /package/lib/{esm/types → types}/quotes.js +0 -0
  399. /package/lib/{esm/types → types}/recently-viewed.js +0 -0
  400. /package/lib/types/{types/reservations.d.ts → reservations.d.ts} +0 -0
  401. /package/lib/types/{types/reservations.d.ts.map → reservations.d.ts.map} +0 -0
  402. /package/lib/{esm/types → types}/reservations.js +0 -0
  403. /package/lib/{esm/types → types}/reservations.js.map +0 -0
  404. /package/lib/{esm/types → types}/roi-ratings.js +0 -0
  405. /package/lib/{esm/types → types}/saved-filters.js +0 -0
  406. /package/lib/{esm/types → types}/search.js +0 -0
  407. /package/lib/types/{types/settings.d.ts → settings.d.ts} +0 -0
  408. /package/lib/types/{types/settings.d.ts.map → settings.d.ts.map} +0 -0
  409. /package/lib/{esm/types → types}/settings.js +0 -0
  410. /package/lib/{cjs/types → types}/settings.js.map +0 -0
  411. /package/lib/types/{types/templates.d.ts → templates.d.ts} +0 -0
  412. /package/lib/types/{types/templates.d.ts.map → templates.d.ts.map} +0 -0
  413. /package/lib/{esm/types → types}/templates.js +0 -0
  414. /package/lib/{cjs/types → types}/templates.js.map +0 -0
  415. /package/lib/{esm/types → types}/tenants.js +0 -0
  416. /package/lib/types/{types/users.d.ts → users.d.ts} +0 -0
  417. /package/lib/types/{types/users.d.ts.map → users.d.ts.map} +0 -0
  418. /package/lib/{esm/types → types}/users.js +0 -0
  419. /package/lib/{cjs/types → types}/users.js.map +0 -0
  420. /package/lib/{esm/types → types}/utils.js +0 -0
  421. /package/lib/{esm/types → types}/vehicles.js +0 -0
  422. /package/lib/types/{types/website.d.ts → website.d.ts} +0 -0
  423. /package/lib/types/{types/website.d.ts.map → website.d.ts.map} +0 -0
  424. /package/lib/{esm/types → types}/website.js +0 -0
  425. /package/lib/{cjs/types → types}/website.js.map +0 -0
@@ -1,64 +0,0 @@
1
- import { TENANT_ID_ADMIN_HEADER } from '@bisondesk/commons-sdk/constants';
2
- import { XError } from '@bisondesk/commons-sdk/errors';
3
- import { getAdminAuth } from '@bisondesk/commons-sdk/fetch';
4
- import fetch, { Response } from 'node-fetch';
5
- import { FinanceBooking, FinanceDocument } from '../types/documents';
6
-
7
- export const upsertFinanceDoc = async (
8
- tenantId: string,
9
- doc: FinanceDocument
10
- ): Promise<FinanceDocument> => {
11
- const auth = await getAdminAuth();
12
- const response: Response = await fetch(`${process.env.CORE_API_ORIGIN}/api/documents/finance`, {
13
- method: 'POST',
14
- headers: {
15
- 'Content-Type': 'application/json',
16
- Authorization: auth,
17
- [TENANT_ID_ADMIN_HEADER]: tenantId,
18
- },
19
- body: JSON.stringify(doc),
20
- });
21
-
22
- if (response.status === 200) {
23
- return response.json();
24
- }
25
-
26
- const body = await response.text();
27
- throw new XError('core-sdk.documents.upsert-finance-doc-fail', {
28
- tenantId,
29
- doc,
30
- response: body,
31
- status: response.status,
32
- });
33
- };
34
-
35
- export const upsertFinanceBooking = async (
36
- tenantId: string,
37
- booking: FinanceBooking
38
- ): Promise<FinanceBooking> => {
39
- const auth = await getAdminAuth();
40
- const response: Response = await fetch(
41
- `${process.env.CORE_API_ORIGIN}/api/documents/finance/booking`,
42
- {
43
- method: 'POST',
44
- headers: {
45
- 'Content-Type': 'application/json',
46
- Authorization: auth,
47
- [TENANT_ID_ADMIN_HEADER]: tenantId,
48
- },
49
- body: JSON.stringify(booking),
50
- }
51
- );
52
-
53
- if (response.status === 200) {
54
- return response.json();
55
- }
56
-
57
- const body = await response.text();
58
- throw new XError('core-sdk.documents.upsert-finance-booking-fail', {
59
- tenantId,
60
- booking,
61
- response: body,
62
- status: response.status,
63
- });
64
- };
@@ -1,141 +0,0 @@
1
- import { AttachmentValue, SearchPermissions } from '@bisondesk/commons-sdk/types';
2
- import { Organization } from './crm';
3
- import { PublicSearchDefinition } from './definitions';
4
-
5
- export enum FinanceDocumentActions {
6
- PAY_FINANCE_DOCUMENT = 'pay_finance_document',
7
- DELETE_FINANCE_DOCUMENT = 'delete_finance_document',
8
- }
9
-
10
- export type FinanceLine = {
11
- associations: {
12
- others: { vehicleId: string; label: string }[];
13
- sales: { id: string; vehicleId: string; label: string }[];
14
- purchases: { id: string; vehicleId: string; label: string }[];
15
- };
16
- description: string;
17
- id: string;
18
- lineCode: string;
19
- quantity: string;
20
- unitPriceExclusive: string;
21
- vatCode: string;
22
- vatCoefficient: string;
23
- };
24
-
25
- export type NewExistingLeasingFinanceDocument = {
26
- id?: undefined;
27
- type: 'Sale Finance';
28
- subtype: 'Invoice' | 'Credit Note';
29
- issueDate: string;
30
- contractId: string;
31
- amount: string;
32
- paidAt?: string;
33
- dueDate?: string;
34
- attachment: AttachmentValue;
35
- invoiceNumber: string;
36
- vatPercentage: string;
37
- period: string;
38
- description: string;
39
- };
40
-
41
- export type FinanceDocument = {
42
- id: string;
43
- branchId: string;
44
-
45
- type: 'Sale Finance' | 'Purchase Finance';
46
- subtype: 'Invoice' | 'Credit Note' | 'Proforma' | 'Purchase Order';
47
- reference: string;
48
-
49
- attachment: AttachmentValue;
50
- lines: FinanceLine[];
51
- notes?: string;
52
-
53
- createdAt: string;
54
- createdBy: string;
55
- issueDate: string;
56
- paidAt?: string;
57
- paymentNotes?: string;
58
- amount?: string;
59
- dueDate?: string;
60
-
61
- organizationSummary?: {
62
- id: string;
63
- code: string;
64
- name: string;
65
- country: string;
66
- vatNumber?: string;
67
-
68
- addressLine1?: string;
69
- addressLine2?: string;
70
- addressLine3?: string;
71
- postcode?: string;
72
- city?: string;
73
-
74
- email?: string;
75
- phone?: string;
76
- fax?: string;
77
- };
78
- };
79
-
80
- export type FinanceDocumentEvent = {
81
- id: string;
82
- actionAt: string;
83
- action: 'upsert' | 'delete';
84
- userId: string;
85
- tenantId: string;
86
- type: 'Sale Finance' | 'Purchase Finance';
87
- subtype: string; // Invoice, Credit Note, etc.
88
- };
89
-
90
- export type FinanceBookingEvent = {
91
- id: string;
92
- branchId: string;
93
- actionAt: string;
94
- userId: string;
95
- tenantId: string;
96
- type: 'Sale Finance' | 'Purchase Finance';
97
- };
98
-
99
- export type FinanceBooking = {
100
- branchId: string; // same tenantId can have different companies
101
- bookingNumber: string; // same booking number can and will exist across different "branches", unique => BranchId / Journal / Booking Number
102
- documentId: string;
103
-
104
- booked: true;
105
- journal?: string;
106
- amount?: string;
107
- reportingPeriod?: number;
108
- reportingYear?: number;
109
- paid: boolean;
110
-
111
- createdAt: string;
112
- createdBy: string;
113
- modifiedAt: string;
114
- modifiedBy: string;
115
- };
116
-
117
- export type SearchDocumentVehicleRef = {
118
- id: string;
119
- stockNumber: string;
120
- administrativeNumber?: string;
121
- };
122
-
123
- export type SearchFinanceDocument = {
124
- org?: Organization;
125
- doc: FinanceDocument;
126
- booking?: FinanceBooking;
127
- vehicle?: SearchDocumentVehicleRef[];
128
- };
129
-
130
- export type InputSearchFinanceDocument = SearchFinanceDocument & {
131
- permissions: SearchPermissions;
132
- };
133
-
134
- export type DocsSearchDefinitions = {
135
- searchFinanceDoc: PublicSearchDefinition;
136
- };
137
-
138
- export type FinanceDocumentPayment = { documentId: string } & (
139
- | { paid: true; paidAt: string; comment?: string }
140
- | { paid: false; paidAt?: undefined; comment?: undefined }
141
- );
@@ -1 +0,0 @@
1
- export * from '@bisondesk/commons-sdk/storage';
package/tsconfig.cjs.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "CommonJS",
5
- "target": "ES2020",
6
- "outDir": "lib/cjs"
7
- },
8
- "references": [{ "path": "../commons-sdk" }]
9
- }
package/tsconfig.esm.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "ES2020",
5
- "target": "ES2020",
6
- "outDir": "lib/esm"
7
- },
8
- "references": [{ "path": "../commons-sdk" }]
9
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes