@mackenly/planningcenterkit 0.4.42 → 1.0.0

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 (422) hide show
  1. package/README.md +472 -31
  2. package/dist/cjs/client.d.ts +145 -0
  3. package/dist/cjs/client.d.ts.map +1 -0
  4. package/dist/cjs/client.js +176 -0
  5. package/dist/cjs/client.js.map +1 -0
  6. package/dist/cjs/core/auth.d.ts +105 -0
  7. package/dist/cjs/core/auth.d.ts.map +1 -0
  8. package/dist/cjs/core/auth.js +219 -0
  9. package/dist/cjs/core/auth.js.map +1 -0
  10. package/dist/cjs/core/errors.d.ts +145 -0
  11. package/dist/cjs/core/errors.d.ts.map +1 -0
  12. package/dist/cjs/core/errors.js +202 -0
  13. package/dist/cjs/core/errors.js.map +1 -0
  14. package/dist/cjs/core/graph.d.ts +110 -0
  15. package/dist/cjs/core/graph.d.ts.map +1 -0
  16. package/dist/cjs/core/graph.js +14 -0
  17. package/dist/cjs/core/graph.js.map +1 -0
  18. package/dist/cjs/core/http.d.ts +147 -0
  19. package/dist/cjs/core/http.d.ts.map +1 -0
  20. package/dist/cjs/core/http.js +478 -0
  21. package/dist/cjs/core/http.js.map +1 -0
  22. package/dist/cjs/core/jsonapi.d.ts +65 -0
  23. package/dist/cjs/core/jsonapi.d.ts.map +1 -0
  24. package/dist/{types.js → cjs/core/jsonapi.js} +1 -2
  25. package/dist/cjs/core/jsonapi.js.map +1 -0
  26. package/dist/cjs/core/oauth.d.ts +202 -0
  27. package/dist/cjs/core/oauth.d.ts.map +1 -0
  28. package/dist/cjs/core/oauth.js +290 -0
  29. package/dist/cjs/core/oauth.js.map +1 -0
  30. package/dist/cjs/core/product.d.ts +78 -0
  31. package/dist/cjs/core/product.d.ts.map +1 -0
  32. package/dist/cjs/core/product.js +57 -0
  33. package/dist/cjs/core/product.js.map +1 -0
  34. package/dist/cjs/core/query.d.ts +489 -0
  35. package/dist/cjs/core/query.d.ts.map +1 -0
  36. package/dist/cjs/core/query.js +435 -0
  37. package/dist/cjs/core/query.js.map +1 -0
  38. package/dist/cjs/core/transport.d.ts +57 -0
  39. package/dist/cjs/core/transport.d.ts.map +1 -0
  40. package/dist/cjs/core/transport.js +7 -0
  41. package/dist/cjs/core/transport.js.map +1 -0
  42. package/dist/cjs/entries/api.d.ts +26 -0
  43. package/dist/cjs/entries/api.d.ts.map +1 -0
  44. package/dist/cjs/entries/api.js +40 -0
  45. package/dist/cjs/entries/api.js.map +1 -0
  46. package/dist/cjs/entries/calendar.d.ts +26 -0
  47. package/dist/cjs/entries/calendar.d.ts.map +1 -0
  48. package/dist/cjs/entries/calendar.js +40 -0
  49. package/dist/cjs/entries/calendar.js.map +1 -0
  50. package/dist/cjs/entries/check-ins.d.ts +26 -0
  51. package/dist/cjs/entries/check-ins.d.ts.map +1 -0
  52. package/dist/cjs/entries/check-ins.js +40 -0
  53. package/dist/cjs/entries/check-ins.js.map +1 -0
  54. package/dist/cjs/entries/current.d.ts +26 -0
  55. package/dist/cjs/entries/current.d.ts.map +1 -0
  56. package/dist/cjs/entries/current.js +40 -0
  57. package/dist/cjs/entries/current.js.map +1 -0
  58. package/dist/cjs/entries/giving.d.ts +26 -0
  59. package/dist/cjs/entries/giving.d.ts.map +1 -0
  60. package/dist/cjs/entries/giving.js +40 -0
  61. package/dist/cjs/entries/giving.js.map +1 -0
  62. package/dist/cjs/entries/groups.d.ts +26 -0
  63. package/dist/cjs/entries/groups.d.ts.map +1 -0
  64. package/dist/cjs/entries/groups.js +40 -0
  65. package/dist/cjs/entries/groups.js.map +1 -0
  66. package/dist/cjs/entries/oauth.d.ts +8 -0
  67. package/dist/cjs/entries/oauth.d.ts.map +1 -0
  68. package/dist/cjs/entries/oauth.js +27 -0
  69. package/dist/cjs/entries/oauth.js.map +1 -0
  70. package/dist/cjs/entries/people.d.ts +26 -0
  71. package/dist/cjs/entries/people.d.ts.map +1 -0
  72. package/dist/cjs/entries/people.js +40 -0
  73. package/dist/cjs/entries/people.js.map +1 -0
  74. package/dist/cjs/entries/publishing.d.ts +26 -0
  75. package/dist/cjs/entries/publishing.d.ts.map +1 -0
  76. package/dist/cjs/entries/publishing.js +40 -0
  77. package/dist/cjs/entries/publishing.js.map +1 -0
  78. package/dist/cjs/entries/registrations.d.ts +26 -0
  79. package/dist/cjs/entries/registrations.d.ts.map +1 -0
  80. package/dist/cjs/entries/registrations.js +40 -0
  81. package/dist/cjs/entries/registrations.js.map +1 -0
  82. package/dist/cjs/entries/services.d.ts +26 -0
  83. package/dist/cjs/entries/services.d.ts.map +1 -0
  84. package/dist/cjs/entries/services.js +40 -0
  85. package/dist/cjs/entries/services.js.map +1 -0
  86. package/dist/cjs/entries/webhooks-api.d.ts +26 -0
  87. package/dist/cjs/entries/webhooks-api.d.ts.map +1 -0
  88. package/dist/cjs/entries/webhooks-api.js +40 -0
  89. package/dist/cjs/entries/webhooks-api.js.map +1 -0
  90. package/dist/cjs/entries/webhooks.d.ts +6 -0
  91. package/dist/cjs/entries/webhooks.d.ts.map +1 -0
  92. package/dist/cjs/entries/webhooks.js +22 -0
  93. package/dist/cjs/entries/webhooks.js.map +1 -0
  94. package/dist/cjs/generated/api.d.ts +426 -0
  95. package/dist/cjs/generated/api.d.ts.map +1 -0
  96. package/dist/cjs/generated/api.js +77 -0
  97. package/dist/cjs/generated/api.js.map +1 -0
  98. package/dist/cjs/generated/calendar.d.ts +2849 -0
  99. package/dist/cjs/generated/calendar.d.ts.map +1 -0
  100. package/dist/cjs/generated/calendar.js +299 -0
  101. package/dist/cjs/generated/calendar.js.map +1 -0
  102. package/dist/cjs/generated/check-ins.d.ts +2383 -0
  103. package/dist/cjs/generated/check-ins.d.ts.map +1 -0
  104. package/dist/cjs/generated/check-ins.js +298 -0
  105. package/dist/cjs/generated/check-ins.js.map +1 -0
  106. package/dist/cjs/generated/current.d.ts +135 -0
  107. package/dist/cjs/generated/current.d.ts.map +1 -0
  108. package/dist/cjs/generated/current.js +34 -0
  109. package/dist/cjs/generated/current.js.map +1 -0
  110. package/dist/cjs/generated/giving.d.ts +2309 -0
  111. package/dist/cjs/generated/giving.d.ts.map +1 -0
  112. package/dist/cjs/generated/giving.js +228 -0
  113. package/dist/cjs/generated/giving.js.map +1 -0
  114. package/dist/cjs/generated/groups.d.ts +1789 -0
  115. package/dist/cjs/generated/groups.d.ts.map +1 -0
  116. package/dist/cjs/generated/groups.js +200 -0
  117. package/dist/cjs/generated/groups.js.map +1 -0
  118. package/dist/cjs/generated/index.d.ts +5067 -0
  119. package/dist/cjs/generated/index.d.ts.map +1 -0
  120. package/dist/cjs/generated/index.js +73 -0
  121. package/dist/cjs/generated/index.js.map +1 -0
  122. package/dist/cjs/generated/people.d.ts +6001 -0
  123. package/dist/cjs/generated/people.d.ts.map +1 -0
  124. package/dist/cjs/generated/people.js +694 -0
  125. package/dist/cjs/generated/people.js.map +1 -0
  126. package/dist/cjs/generated/publishing.d.ts +1468 -0
  127. package/dist/cjs/generated/publishing.d.ts.map +1 -0
  128. package/dist/cjs/generated/publishing.js +180 -0
  129. package/dist/cjs/generated/publishing.js.map +1 -0
  130. package/dist/cjs/generated/registrations.d.ts +936 -0
  131. package/dist/cjs/generated/registrations.d.ts.map +1 -0
  132. package/dist/cjs/generated/registrations.js +122 -0
  133. package/dist/cjs/generated/registrations.js.map +1 -0
  134. package/dist/cjs/generated/services.d.ts +6301 -0
  135. package/dist/cjs/generated/services.d.ts.map +1 -0
  136. package/dist/cjs/generated/services.js +634 -0
  137. package/dist/cjs/generated/services.js.map +1 -0
  138. package/dist/cjs/generated/webhooks.d.ts +325 -0
  139. package/dist/cjs/generated/webhooks.d.ts.map +1 -0
  140. package/dist/cjs/generated/webhooks.js +58 -0
  141. package/dist/cjs/generated/webhooks.js.map +1 -0
  142. package/dist/cjs/index.d.ts +29 -0
  143. package/dist/cjs/index.d.ts.map +1 -0
  144. package/dist/cjs/index.js +51 -0
  145. package/dist/cjs/index.js.map +1 -0
  146. package/dist/cjs/package.json +1 -0
  147. package/dist/cjs/webhooks/errors.d.ts +51 -0
  148. package/dist/cjs/webhooks/errors.d.ts.map +1 -0
  149. package/dist/cjs/webhooks/errors.js +56 -0
  150. package/dist/cjs/webhooks/errors.js.map +1 -0
  151. package/dist/cjs/webhooks/events.d.ts +144 -0
  152. package/dist/cjs/webhooks/events.d.ts.map +1 -0
  153. package/dist/cjs/webhooks/events.js +160 -0
  154. package/dist/cjs/webhooks/events.js.map +1 -0
  155. package/dist/cjs/webhooks/handle.d.ts +103 -0
  156. package/dist/cjs/webhooks/handle.d.ts.map +1 -0
  157. package/dist/cjs/webhooks/handle.js +140 -0
  158. package/dist/cjs/webhooks/handle.js.map +1 -0
  159. package/dist/cjs/webhooks/index.d.ts +33 -0
  160. package/dist/cjs/webhooks/index.d.ts.map +1 -0
  161. package/dist/cjs/webhooks/index.js +46 -0
  162. package/dist/cjs/webhooks/index.js.map +1 -0
  163. package/dist/cjs/webhooks/signature.d.ts +84 -0
  164. package/dist/cjs/webhooks/signature.d.ts.map +1 -0
  165. package/dist/cjs/webhooks/signature.js +126 -0
  166. package/dist/cjs/webhooks/signature.js.map +1 -0
  167. package/dist/esm/client.d.ts +145 -0
  168. package/dist/esm/client.d.ts.map +1 -0
  169. package/dist/esm/client.js +172 -0
  170. package/dist/esm/client.js.map +1 -0
  171. package/dist/esm/core/auth.d.ts +105 -0
  172. package/dist/esm/core/auth.d.ts.map +1 -0
  173. package/dist/esm/core/auth.js +215 -0
  174. package/dist/esm/core/auth.js.map +1 -0
  175. package/dist/esm/core/errors.d.ts +145 -0
  176. package/dist/esm/core/errors.d.ts.map +1 -0
  177. package/dist/esm/core/errors.js +185 -0
  178. package/dist/esm/core/errors.js.map +1 -0
  179. package/dist/esm/core/graph.d.ts +110 -0
  180. package/dist/esm/core/graph.d.ts.map +1 -0
  181. package/dist/esm/core/graph.js +13 -0
  182. package/dist/esm/core/graph.js.map +1 -0
  183. package/dist/esm/core/http.d.ts +147 -0
  184. package/dist/esm/core/http.d.ts.map +1 -0
  185. package/dist/esm/core/http.js +473 -0
  186. package/dist/esm/core/http.js.map +1 -0
  187. package/dist/esm/core/jsonapi.d.ts +65 -0
  188. package/dist/esm/core/jsonapi.d.ts.map +1 -0
  189. package/dist/esm/core/jsonapi.js +2 -0
  190. package/dist/esm/core/jsonapi.js.map +1 -0
  191. package/dist/esm/core/oauth.d.ts +202 -0
  192. package/dist/esm/core/oauth.d.ts.map +1 -0
  193. package/dist/esm/core/oauth.js +280 -0
  194. package/dist/esm/core/oauth.js.map +1 -0
  195. package/dist/esm/core/product.d.ts +78 -0
  196. package/dist/esm/core/product.d.ts.map +1 -0
  197. package/dist/esm/core/product.js +54 -0
  198. package/dist/esm/core/product.js.map +1 -0
  199. package/dist/esm/core/query.d.ts +489 -0
  200. package/dist/esm/core/query.d.ts.map +1 -0
  201. package/dist/esm/core/query.js +431 -0
  202. package/dist/esm/core/query.js.map +1 -0
  203. package/dist/esm/core/transport.d.ts +57 -0
  204. package/dist/esm/core/transport.d.ts.map +1 -0
  205. package/dist/esm/core/transport.js +6 -0
  206. package/dist/esm/core/transport.js.map +1 -0
  207. package/dist/esm/entries/api.d.ts +26 -0
  208. package/dist/esm/entries/api.d.ts.map +1 -0
  209. package/dist/esm/entries/api.js +23 -0
  210. package/dist/esm/entries/api.js.map +1 -0
  211. package/dist/esm/entries/calendar.d.ts +26 -0
  212. package/dist/esm/entries/calendar.d.ts.map +1 -0
  213. package/dist/esm/entries/calendar.js +23 -0
  214. package/dist/esm/entries/calendar.js.map +1 -0
  215. package/dist/esm/entries/check-ins.d.ts +26 -0
  216. package/dist/esm/entries/check-ins.d.ts.map +1 -0
  217. package/dist/esm/entries/check-ins.js +23 -0
  218. package/dist/esm/entries/check-ins.js.map +1 -0
  219. package/dist/esm/entries/current.d.ts +26 -0
  220. package/dist/esm/entries/current.d.ts.map +1 -0
  221. package/dist/esm/entries/current.js +23 -0
  222. package/dist/esm/entries/current.js.map +1 -0
  223. package/dist/esm/entries/giving.d.ts +26 -0
  224. package/dist/esm/entries/giving.d.ts.map +1 -0
  225. package/dist/esm/entries/giving.js +23 -0
  226. package/dist/esm/entries/giving.js.map +1 -0
  227. package/dist/esm/entries/groups.d.ts +26 -0
  228. package/dist/esm/entries/groups.d.ts.map +1 -0
  229. package/dist/esm/entries/groups.js +23 -0
  230. package/dist/esm/entries/groups.js.map +1 -0
  231. package/dist/esm/entries/oauth.d.ts +8 -0
  232. package/dist/esm/entries/oauth.d.ts.map +1 -0
  233. package/dist/esm/entries/oauth.js +7 -0
  234. package/dist/esm/entries/oauth.js.map +1 -0
  235. package/dist/esm/entries/people.d.ts +26 -0
  236. package/dist/esm/entries/people.d.ts.map +1 -0
  237. package/dist/esm/entries/people.js +23 -0
  238. package/dist/esm/entries/people.js.map +1 -0
  239. package/dist/esm/entries/publishing.d.ts +26 -0
  240. package/dist/esm/entries/publishing.d.ts.map +1 -0
  241. package/dist/esm/entries/publishing.js +23 -0
  242. package/dist/esm/entries/publishing.js.map +1 -0
  243. package/dist/esm/entries/registrations.d.ts +26 -0
  244. package/dist/esm/entries/registrations.d.ts.map +1 -0
  245. package/dist/esm/entries/registrations.js +23 -0
  246. package/dist/esm/entries/registrations.js.map +1 -0
  247. package/dist/esm/entries/services.d.ts +26 -0
  248. package/dist/esm/entries/services.d.ts.map +1 -0
  249. package/dist/esm/entries/services.js +23 -0
  250. package/dist/esm/entries/services.js.map +1 -0
  251. package/dist/esm/entries/webhooks-api.d.ts +26 -0
  252. package/dist/esm/entries/webhooks-api.d.ts.map +1 -0
  253. package/dist/esm/entries/webhooks-api.js +23 -0
  254. package/dist/esm/entries/webhooks-api.js.map +1 -0
  255. package/dist/esm/entries/webhooks.d.ts +6 -0
  256. package/dist/esm/entries/webhooks.d.ts.map +1 -0
  257. package/dist/esm/entries/webhooks.js +6 -0
  258. package/dist/esm/entries/webhooks.js.map +1 -0
  259. package/dist/esm/generated/api.d.ts +426 -0
  260. package/dist/esm/generated/api.d.ts.map +1 -0
  261. package/dist/esm/generated/api.js +74 -0
  262. package/dist/esm/generated/api.js.map +1 -0
  263. package/dist/esm/generated/calendar.d.ts +2849 -0
  264. package/dist/esm/generated/calendar.d.ts.map +1 -0
  265. package/dist/esm/generated/calendar.js +296 -0
  266. package/dist/esm/generated/calendar.js.map +1 -0
  267. package/dist/esm/generated/check-ins.d.ts +2383 -0
  268. package/dist/esm/generated/check-ins.d.ts.map +1 -0
  269. package/dist/esm/generated/check-ins.js +295 -0
  270. package/dist/esm/generated/check-ins.js.map +1 -0
  271. package/dist/esm/generated/current.d.ts +135 -0
  272. package/dist/esm/generated/current.d.ts.map +1 -0
  273. package/dist/esm/generated/current.js +31 -0
  274. package/dist/esm/generated/current.js.map +1 -0
  275. package/dist/esm/generated/giving.d.ts +2309 -0
  276. package/dist/esm/generated/giving.d.ts.map +1 -0
  277. package/dist/esm/generated/giving.js +225 -0
  278. package/dist/esm/generated/giving.js.map +1 -0
  279. package/dist/esm/generated/groups.d.ts +1789 -0
  280. package/dist/esm/generated/groups.d.ts.map +1 -0
  281. package/dist/esm/generated/groups.js +197 -0
  282. package/dist/esm/generated/groups.js.map +1 -0
  283. package/dist/esm/generated/index.d.ts +5067 -0
  284. package/dist/esm/generated/index.d.ts.map +1 -0
  285. package/dist/esm/generated/index.js +37 -0
  286. package/dist/esm/generated/index.js.map +1 -0
  287. package/dist/esm/generated/people.d.ts +6001 -0
  288. package/dist/esm/generated/people.d.ts.map +1 -0
  289. package/dist/esm/generated/people.js +691 -0
  290. package/dist/esm/generated/people.js.map +1 -0
  291. package/dist/esm/generated/publishing.d.ts +1468 -0
  292. package/dist/esm/generated/publishing.d.ts.map +1 -0
  293. package/dist/esm/generated/publishing.js +177 -0
  294. package/dist/esm/generated/publishing.js.map +1 -0
  295. package/dist/esm/generated/registrations.d.ts +936 -0
  296. package/dist/esm/generated/registrations.d.ts.map +1 -0
  297. package/dist/esm/generated/registrations.js +119 -0
  298. package/dist/esm/generated/registrations.js.map +1 -0
  299. package/dist/esm/generated/services.d.ts +6301 -0
  300. package/dist/esm/generated/services.d.ts.map +1 -0
  301. package/dist/esm/generated/services.js +631 -0
  302. package/dist/esm/generated/services.js.map +1 -0
  303. package/dist/esm/generated/webhooks.d.ts +325 -0
  304. package/dist/esm/generated/webhooks.d.ts.map +1 -0
  305. package/dist/esm/generated/webhooks.js +55 -0
  306. package/dist/esm/generated/webhooks.js.map +1 -0
  307. package/dist/esm/index.d.ts +29 -0
  308. package/dist/esm/index.d.ts.map +1 -0
  309. package/dist/esm/index.js +26 -0
  310. package/dist/esm/index.js.map +1 -0
  311. package/dist/esm/webhooks/errors.d.ts +51 -0
  312. package/dist/esm/webhooks/errors.d.ts.map +1 -0
  313. package/dist/esm/webhooks/errors.js +51 -0
  314. package/dist/esm/webhooks/errors.js.map +1 -0
  315. package/dist/esm/webhooks/events.d.ts +144 -0
  316. package/dist/esm/webhooks/events.d.ts.map +1 -0
  317. package/dist/esm/webhooks/events.js +155 -0
  318. package/dist/esm/webhooks/events.js.map +1 -0
  319. package/dist/esm/webhooks/handle.d.ts +103 -0
  320. package/dist/esm/webhooks/handle.d.ts.map +1 -0
  321. package/dist/esm/webhooks/handle.js +137 -0
  322. package/dist/esm/webhooks/handle.js.map +1 -0
  323. package/dist/esm/webhooks/index.d.ts +33 -0
  324. package/dist/esm/webhooks/index.d.ts.map +1 -0
  325. package/dist/esm/webhooks/index.js +33 -0
  326. package/dist/esm/webhooks/index.js.map +1 -0
  327. package/dist/esm/webhooks/signature.d.ts +84 -0
  328. package/dist/esm/webhooks/signature.d.ts.map +1 -0
  329. package/dist/esm/webhooks/signature.js +120 -0
  330. package/dist/esm/webhooks/signature.js.map +1 -0
  331. package/llms.txt +119 -0
  332. package/package.json +79 -14
  333. package/src/client.ts +169 -282
  334. package/src/core/auth.ts +317 -0
  335. package/src/core/errors.ts +219 -0
  336. package/src/core/graph.ts +137 -0
  337. package/src/core/http.ts +594 -0
  338. package/src/core/jsonapi.ts +64 -0
  339. package/src/core/oauth.ts +403 -0
  340. package/src/core/product.ts +137 -0
  341. package/src/core/query.ts +1011 -0
  342. package/src/core/transport.ts +62 -0
  343. package/src/entries/api.ts +28 -0
  344. package/src/entries/calendar.ts +28 -0
  345. package/src/entries/check-ins.ts +28 -0
  346. package/src/entries/current.ts +28 -0
  347. package/src/entries/giving.ts +28 -0
  348. package/src/entries/groups.ts +28 -0
  349. package/src/entries/oauth.ts +7 -0
  350. package/src/entries/people.ts +28 -0
  351. package/src/entries/publishing.ts +28 -0
  352. package/src/entries/registrations.ts +28 -0
  353. package/src/entries/services.ts +28 -0
  354. package/src/entries/webhooks-api.ts +28 -0
  355. package/src/entries/webhooks.ts +5 -0
  356. package/src/generated/api.ts +401 -0
  357. package/src/generated/calendar.ts +2380 -0
  358. package/src/generated/check-ins.ts +1783 -0
  359. package/src/generated/current.ts +136 -0
  360. package/src/generated/giving.ts +1956 -0
  361. package/src/generated/groups.ts +1474 -0
  362. package/src/generated/index.ts +59 -0
  363. package/src/generated/people.ts +5103 -0
  364. package/src/generated/publishing.ts +1321 -0
  365. package/src/generated/registrations.ts +799 -0
  366. package/src/generated/services.ts +5427 -0
  367. package/src/generated/webhooks.ts +314 -0
  368. package/src/index.ts +74 -4
  369. package/src/webhooks/errors.ts +52 -0
  370. package/src/webhooks/events.ts +272 -0
  371. package/src/webhooks/handle.ts +163 -0
  372. package/src/webhooks/index.ts +54 -0
  373. package/src/webhooks/signature.ts +140 -0
  374. package/.gitattributes +0 -2
  375. package/.github/FUNDING.yml +0 -3
  376. package/.github/dependabot.yml +0 -21
  377. package/.github/workflows/ci-publish.yml +0 -84
  378. package/SECURITY.md +0 -13
  379. package/TODO.md +0 -6
  380. package/dist/client.d.ts +0 -216
  381. package/dist/client.js +0 -265
  382. package/dist/client.js.map +0 -1
  383. package/dist/index.d.ts +0 -4
  384. package/dist/index.js +0 -6
  385. package/dist/index.js.map +0 -1
  386. package/dist/modules/calendar.d.ts +0 -5
  387. package/dist/modules/calendar.js +0 -11
  388. package/dist/modules/calendar.js.map +0 -1
  389. package/dist/modules/checkins.d.ts +0 -0
  390. package/dist/modules/checkins.js +0 -2
  391. package/dist/modules/checkins.js.map +0 -1
  392. package/dist/modules/giving.d.ts +0 -0
  393. package/dist/modules/giving.js +0 -2
  394. package/dist/modules/giving.js.map +0 -1
  395. package/dist/modules/groups.d.ts +0 -4
  396. package/dist/modules/groups.js +0 -22
  397. package/dist/modules/groups.js.map +0 -1
  398. package/dist/modules/people.d.ts +0 -66
  399. package/dist/modules/people.js +0 -40
  400. package/dist/modules/people.js.map +0 -1
  401. package/dist/modules/publishing.d.ts +0 -0
  402. package/dist/modules/publishing.js +0 -2
  403. package/dist/modules/publishing.js.map +0 -1
  404. package/dist/modules/services.d.ts +0 -0
  405. package/dist/modules/services.js +0 -2
  406. package/dist/modules/services.js.map +0 -1
  407. package/dist/modules/webhooks.d.ts +0 -0
  408. package/dist/modules/webhooks.js +0 -2
  409. package/dist/modules/webhooks.js.map +0 -1
  410. package/dist/types.d.ts +0 -6
  411. package/dist/types.js.map +0 -1
  412. package/src/index.test.ts +0 -7
  413. package/src/modules/calendar.ts +0 -11
  414. package/src/modules/checkins.ts +0 -0
  415. package/src/modules/giving.ts +0 -0
  416. package/src/modules/groups.ts +0 -7
  417. package/src/modules/people.ts +0 -92
  418. package/src/modules/publishing.ts +0 -0
  419. package/src/modules/services.ts +0 -0
  420. package/src/modules/webhooks.ts +0 -0
  421. package/src/types.ts +0 -8
  422. package/tsconfig.json +0 -111
@@ -0,0 +1,1956 @@
1
+ /**
2
+ * Planning Center Giving API (`/giving/v2`).
3
+ *
4
+ * Generated from the Planning Center API documentation, version 2019-10-18, by
5
+ * scripts/generate.ts. Do not edit: run `npm run spec:fetch && npm run generate`.
6
+ *
7
+ * @module
8
+ */
9
+ import type { ProductGraph, ProductSchema, RootSchema } from '../core/graph.js';
10
+ import type { PcoResource } from '../core/jsonapi.js';
11
+
12
+ /** Runtime metadata for Planning Center Giving: paths and capabilities only. */
13
+ export const givingGraph = {
14
+ product: 'giving',
15
+ slug: 'giving',
16
+ basePath: '/giving/v2',
17
+ version: '2019-10-18',
18
+ rootVertex: 'organization',
19
+ root: {
20
+ batch_groups: { vertex: 'batch_group', many: true, canCreate: true },
21
+ batches: { vertex: 'batch', many: true, canCreate: true },
22
+ campuses: { vertex: 'campus', many: true, canCreate: false },
23
+ donations: { vertex: 'donation', many: true, canCreate: false },
24
+ donor_summaries: { vertex: 'donor_summary', many: true, canCreate: false },
25
+ funds: { vertex: 'fund', many: true, canCreate: true },
26
+ in_kind_donations: { vertex: 'in_kind_donation', many: true, canCreate: true },
27
+ labels: { vertex: 'label', many: true, canCreate: true },
28
+ payment_sources: { vertex: 'payment_source', many: true, canCreate: true },
29
+ people: { vertex: 'person', many: true, canCreate: false },
30
+ pledge_campaigns: { vertex: 'pledge_campaign', many: true, canCreate: true },
31
+ recurring_donations: { vertex: 'recurring_donation', many: true, canCreate: false },
32
+ },
33
+ vertices: {
34
+ batch: {
35
+ type: 'Batch',
36
+ edges: {
37
+ batch_group: { vertex: 'batch_group', many: true, canCreate: false },
38
+ donations: { vertex: 'donation', many: true, canCreate: true },
39
+ owner: { vertex: 'person', many: true, canCreate: false },
40
+ },
41
+ actions: ['commit'],
42
+ canUpdate: true,
43
+ canDelete: true,
44
+ canonicalPath: '/giving/v2/batches',
45
+ },
46
+ batch_group: {
47
+ type: 'BatchGroup',
48
+ edges: {
49
+ batches: { vertex: 'batch', many: true, canCreate: true },
50
+ owner: { vertex: 'person', many: true, canCreate: false },
51
+ },
52
+ actions: ['commit'],
53
+ canUpdate: true,
54
+ canDelete: true,
55
+ canonicalPath: '/giving/v2/batch_groups',
56
+ },
57
+ campus: {
58
+ type: 'Campus',
59
+ edges: {
60
+ donations: { vertex: 'donation', many: true, canCreate: false },
61
+ },
62
+ actions: [],
63
+ canUpdate: false,
64
+ canDelete: false,
65
+ canonicalPath: '/giving/v2/campuses',
66
+ },
67
+ designation: {
68
+ type: 'Designation',
69
+ edges: {
70
+ fund: { vertex: 'fund', many: true, canCreate: false },
71
+ },
72
+ actions: [],
73
+ canUpdate: false,
74
+ canDelete: false,
75
+ },
76
+ designation_refund: {
77
+ type: 'DesignationRefund',
78
+ edges: {
79
+ designation: { vertex: 'designation', many: true, canCreate: false },
80
+ },
81
+ actions: [],
82
+ canUpdate: false,
83
+ canDelete: false,
84
+ },
85
+ donation: {
86
+ type: 'Donation',
87
+ edges: {
88
+ campus: { vertex: 'campus', many: true, canCreate: false },
89
+ designations: { vertex: 'designation', many: true, canCreate: false },
90
+ labels: { vertex: 'label', many: true, canCreate: false },
91
+ note: { vertex: 'note', many: false, canCreate: true },
92
+ refund: { vertex: 'refund', many: false, canCreate: false },
93
+ },
94
+ actions: ['issue_refund', 'mark_failed'],
95
+ canUpdate: true,
96
+ canDelete: true,
97
+ canonicalPath: '/giving/v2/donations',
98
+ },
99
+ donor_summary: {
100
+ type: 'DonorSummary',
101
+ edges: {
102
+ joint_giver: { vertex: 'person', many: true, canCreate: false },
103
+ },
104
+ actions: [],
105
+ canUpdate: false,
106
+ canDelete: false,
107
+ },
108
+ fund: {
109
+ type: 'Fund',
110
+ edges: {},
111
+ actions: [],
112
+ canUpdate: true,
113
+ canDelete: true,
114
+ canonicalPath: '/giving/v2/funds',
115
+ },
116
+ in_kind_donation: {
117
+ type: 'InKindDonation',
118
+ edges: {
119
+ campus: { vertex: 'campus', many: true, canCreate: false },
120
+ fund: { vertex: 'fund', many: true, canCreate: false },
121
+ person: { vertex: 'person', many: true, canCreate: false },
122
+ },
123
+ actions: [],
124
+ canUpdate: true,
125
+ canDelete: true,
126
+ canonicalPath: '/giving/v2/in_kind_donations',
127
+ },
128
+ label: {
129
+ type: 'Label',
130
+ edges: {},
131
+ actions: [],
132
+ canUpdate: true,
133
+ canDelete: true,
134
+ canonicalPath: '/giving/v2/labels',
135
+ },
136
+ note: {
137
+ type: 'Note',
138
+ edges: {},
139
+ actions: [],
140
+ canUpdate: false,
141
+ canDelete: false,
142
+ },
143
+ organization: {
144
+ type: 'Organization',
145
+ edges: {},
146
+ actions: [],
147
+ canUpdate: false,
148
+ canDelete: false,
149
+ },
150
+ payment_method: {
151
+ type: 'PaymentMethod',
152
+ edges: {
153
+ recurring_donations: { vertex: 'recurring_donation', many: true, canCreate: false },
154
+ },
155
+ actions: [],
156
+ canUpdate: false,
157
+ canDelete: false,
158
+ },
159
+ payment_source: {
160
+ type: 'PaymentSource',
161
+ edges: {
162
+ donations: { vertex: 'donation', many: true, canCreate: false },
163
+ },
164
+ actions: [],
165
+ canUpdate: true,
166
+ canDelete: true,
167
+ canonicalPath: '/giving/v2/payment_sources',
168
+ },
169
+ person: {
170
+ type: 'Person',
171
+ edges: {
172
+ batch_groups: { vertex: 'batch_group', many: true, canCreate: false },
173
+ batches: { vertex: 'batch', many: true, canCreate: false },
174
+ donations: { vertex: 'donation', many: true, canCreate: false },
175
+ in_kind_donations: { vertex: 'in_kind_donation', many: true, canCreate: false },
176
+ payment_methods: { vertex: 'payment_method', many: true, canCreate: false },
177
+ pledges: { vertex: 'pledge', many: true, canCreate: true },
178
+ primary_campus: { vertex: 'campus', many: true, canCreate: false },
179
+ recurring_donations: { vertex: 'recurring_donation', many: true, canCreate: false },
180
+ },
181
+ actions: [],
182
+ canUpdate: true,
183
+ canDelete: false,
184
+ canonicalPath: '/giving/v2/people',
185
+ },
186
+ pledge: {
187
+ type: 'Pledge',
188
+ edges: {
189
+ joint_giver: { vertex: 'person', many: true, canCreate: false },
190
+ pledge_campaign: { vertex: 'pledge_campaign', many: true, canCreate: false },
191
+ },
192
+ actions: [],
193
+ canUpdate: true,
194
+ canDelete: true,
195
+ },
196
+ pledge_campaign: {
197
+ type: 'PledgeCampaign',
198
+ edges: {
199
+ fund: { vertex: 'fund', many: true, canCreate: false },
200
+ pledges: { vertex: 'pledge', many: true, canCreate: false },
201
+ },
202
+ actions: [],
203
+ canUpdate: true,
204
+ canDelete: true,
205
+ canonicalPath: '/giving/v2/pledge_campaigns',
206
+ },
207
+ recurring_donation: {
208
+ type: 'RecurringDonation',
209
+ edges: {
210
+ designations: { vertex: 'recurring_donation_designation', many: true, canCreate: false },
211
+ payment_method: { vertex: 'payment_method', many: true, canCreate: false },
212
+ },
213
+ actions: [],
214
+ canUpdate: false,
215
+ canDelete: false,
216
+ canonicalPath: '/giving/v2/recurring_donations',
217
+ },
218
+ recurring_donation_designation: {
219
+ type: 'RecurringDonationDesignation',
220
+ edges: {
221
+ fund: { vertex: 'fund', many: true, canCreate: false },
222
+ },
223
+ actions: [],
224
+ canUpdate: false,
225
+ canDelete: false,
226
+ },
227
+ refund: {
228
+ type: 'Refund',
229
+ edges: {},
230
+ actions: [],
231
+ canUpdate: false,
232
+ canDelete: false,
233
+ },
234
+ },
235
+ } as const satisfies ProductGraph;
236
+
237
+ /**
238
+ * Type-level schema of {@link Batch}: attributes, query options, writable fields, and edges.
239
+ *
240
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/batch
241
+ */
242
+ export interface BatchSchema {
243
+ type: 'Batch';
244
+ attributes: {
245
+ /**
246
+ * The date and time that a batch was committed at. If it's `null`, the batch is still in progress or updating. Example: `2000-01-01T12:00:00Z`
247
+ */
248
+ committed_at: string | null;
249
+ /**
250
+ * The date and time at which a batch was created. Example: `2000-01-01T12:00:00Z`
251
+ */
252
+ created_at: string | null;
253
+ /**
254
+ * A brief description of what a batch is for. This is displayed in Giving to help differentiate different batches from one another. If no description is provided for a batch, it will be referred to as `Untitled batch` within Giving.
255
+ */
256
+ description: string | null;
257
+ /** Only available when requested with the `?fields` param */
258
+ donations_count: number | null;
259
+ /**
260
+ * One of `in_progress`, `updating`, or `committed`. The `updating` state is temporary and describes a Batch that is currently being changed in some way (e.g. moving from `in_progress` to `committed`). Certain changes to Batches in this state (or their Donations) will be restricted until the Batch has finished updating.
261
+ */
262
+ status: string | null;
263
+ /** The gross total of cents donated within the batch. */
264
+ total_cents: number | null;
265
+ /** The currency used to calculate `total_cents`. */
266
+ total_currency: string | null;
267
+ /**
268
+ * The date and time at which a batch was last updated. Example: `2000-01-01T12:00:00Z`
269
+ */
270
+ updated_at: string | null;
271
+ };
272
+ relationships: 'batch_group';
273
+ includes: 'batch_group' | 'owner';
274
+ related: {
275
+ batch_group: 'batch_group';
276
+ owner: 'person';
277
+ };
278
+ where: {
279
+ committed_at: string | Date;
280
+ updated_at: string | Date;
281
+ };
282
+ whereOps: {
283
+ committed_at: 'gt' | 'gte' | 'lt' | 'lte';
284
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
285
+ };
286
+ order: 'committed_at' | 'updated_at';
287
+ create: {
288
+ batch_group_id?: string;
289
+ /**
290
+ * A brief description of what a batch is for. This is displayed in Giving to help differentiate different batches from one another. If no description is provided for a batch, it will be referred to as `Untitled batch` within Giving.
291
+ */
292
+ description?: string | null;
293
+ };
294
+ update: {
295
+ batch_group_id?: string;
296
+ /**
297
+ * A brief description of what a batch is for. This is displayed in Giving to help differentiate different batches from one another. If no description is provided for a batch, it will be referred to as `Untitled batch` within Giving.
298
+ */
299
+ description?: string | null;
300
+ };
301
+ delete: true;
302
+ actions: 'commit';
303
+ edges: {
304
+ batch_group: { vertex: 'batch_group'; many: true; filters: never; create: false };
305
+ donations: { vertex: 'donation'; many: true; filters: never; create: true };
306
+ owner: { vertex: 'person'; many: true; filters: never; create: false };
307
+ };
308
+ }
309
+
310
+ /**
311
+ * Type-level schema of {@link BatchGroup}: attributes, query options, writable fields, and edges.
312
+ *
313
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/batch_group
314
+ */
315
+ export interface BatchGroupSchema {
316
+ type: 'BatchGroup';
317
+ attributes: {
318
+ /** Returns `true` if a batch group has been committed, and `false` if it hasn't. */
319
+ committed: boolean | null;
320
+ /**
321
+ * The date and time at which a batch group was created. Example: `2000-01-01T12:00:00Z`
322
+ */
323
+ created_at: string | null;
324
+ /**
325
+ * A brief description of what a batch group is for. This is displayed in Giving to help differentiate different batch groups from one another. If no description is provided for a batch group, it will be referred to as `Untitled group` within Giving.
326
+ */
327
+ description: string | null;
328
+ /**
329
+ * One of `uncommitted`, `updating`, or `committed`. The `updating` state is temporary and describes a BatchGroup that is currently being changed in some way (e.g. moving from `uncommitted` to `committed`). Certain changes to BatchGroups in this state (or their Batches or Donations) will be restricted until the BatchGroup has finished updating.
330
+ */
331
+ status: string | null;
332
+ /**
333
+ * The gross total of cents donated within the batch group. Factors in all donations made to each batch within the group.
334
+ */
335
+ total_cents: number | null;
336
+ /** The currency used to calculate `total_cents`. */
337
+ total_currency: string | null;
338
+ /**
339
+ * The date and time at which a batch group was last updated. Example: `2000-01-01T12:00:00Z`
340
+ */
341
+ updated_at: string | null;
342
+ };
343
+ relationships: never;
344
+ includes: 'owner';
345
+ related: {
346
+ owner: 'person';
347
+ };
348
+ where: {
349
+ description: string;
350
+ updated_at: string | Date;
351
+ };
352
+ whereOps: {
353
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
354
+ };
355
+ order: 'updated_at';
356
+ create: {
357
+ /**
358
+ * A brief description of what a batch group is for. This is displayed in Giving to help differentiate different batch groups from one another. If no description is provided for a batch group, it will be referred to as `Untitled group` within Giving.
359
+ */
360
+ description?: string | null;
361
+ };
362
+ update: {
363
+ /**
364
+ * A brief description of what a batch group is for. This is displayed in Giving to help differentiate different batch groups from one another. If no description is provided for a batch group, it will be referred to as `Untitled group` within Giving.
365
+ */
366
+ description?: string | null;
367
+ };
368
+ delete: true;
369
+ actions: 'commit';
370
+ edges: {
371
+ batches: { vertex: 'batch'; many: true; filters: 'committed' | 'in_progress'; create: true };
372
+ owner: { vertex: 'person'; many: true; filters: never; create: false };
373
+ };
374
+ }
375
+
376
+ /**
377
+ * Type-level schema of {@link Campus}: attributes, query options, writable fields, and edges.
378
+ *
379
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/campus
380
+ */
381
+ export interface CampusSchema {
382
+ type: 'Campus';
383
+ attributes: {
384
+ /**
385
+ * The address for a campus. Campus descriptions can be set via Accounts or the People API.
386
+ */
387
+ address: Record<string, unknown> | null;
388
+ /**
389
+ * The name for a campus. Campus names can be set via Accounts or the People API.
390
+ */
391
+ name: string | null;
392
+ };
393
+ relationships: never;
394
+ includes: never;
395
+ related: {};
396
+ where: {};
397
+ whereOps: {};
398
+ order: never;
399
+ create: {};
400
+ update: {};
401
+ delete: false;
402
+ actions: never;
403
+ edges: {
404
+ donations: { vertex: 'donation'; many: true; filters: never; create: false };
405
+ };
406
+ }
407
+
408
+ /**
409
+ * Type-level schema of {@link Designation}: attributes, query options, writable fields, and edges.
410
+ *
411
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/designation
412
+ */
413
+ export interface DesignationSchema {
414
+ type: 'Designation';
415
+ attributes: {
416
+ /**
417
+ * Required. The number of cents being donated to a designation's associated fund.
418
+ */
419
+ amount_cents: number | null;
420
+ /**
421
+ * The currency of `amount_cents`. Set to the currency of the associated organization.
422
+ */
423
+ amount_currency: string | null;
424
+ /**
425
+ * The fee amount distributed to a donation's designation in proportion to the amount of the designation. This should either be 0 or a negative integer.
426
+ */
427
+ fee_cents: number | null;
428
+ };
429
+ relationships: 'fund';
430
+ includes: 'fund';
431
+ related: {
432
+ fund: 'fund';
433
+ };
434
+ where: {};
435
+ whereOps: {};
436
+ order: never;
437
+ create: {};
438
+ update: {};
439
+ delete: false;
440
+ actions: never;
441
+ edges: {
442
+ fund: { vertex: 'fund'; many: true; filters: never; create: false };
443
+ };
444
+ }
445
+
446
+ /**
447
+ * Type-level schema of {@link DesignationRefund}: attributes, query options, writable fields, and edges.
448
+ *
449
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/designation_refund
450
+ */
451
+ export interface DesignationRefundSchema {
452
+ type: 'DesignationRefund';
453
+ attributes: {
454
+ /** The number of cents being refunded. */
455
+ amount_cents: number | null;
456
+ /** The currency of `amount_cents`. */
457
+ amount_currency: string | null;
458
+ fee_cents: number | null;
459
+ };
460
+ relationships: 'designation' | 'fund';
461
+ includes: 'designation';
462
+ related: {
463
+ designation: 'designation';
464
+ fund: 'fund';
465
+ };
466
+ where: {};
467
+ whereOps: {};
468
+ order: never;
469
+ create: {};
470
+ update: {};
471
+ delete: false;
472
+ actions: never;
473
+ edges: {
474
+ designation: { vertex: 'designation'; many: true; filters: never; create: false };
475
+ };
476
+ }
477
+
478
+ /**
479
+ * Type-level schema of {@link Donation}: attributes, query options, writable fields, and edges.
480
+ *
481
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/donation
482
+ */
483
+ export interface DonationSchema {
484
+ type: 'Donation';
485
+ attributes: {
486
+ /**
487
+ * The number of cents being donated. Derived from the total of all of a donation's associated designation's `amount_cents` values.
488
+ */
489
+ amount_cents: number | null;
490
+ /** The currency of `amount_cents`. Based on the organization's currency. */
491
+ amount_currency: string | null;
492
+ /**
493
+ * The date and time at which a donation was completely processed. For card and ACH donations processed by Stripe, this is the moment when the donation was marked as fully processed by Stripe. For committed batch donations, this is the moment that the batch was committed. For uncommitted batch donations, this should return `null`. Example: `2000-01-01T12:00:00Z`
494
+ */
495
+ completed_at: string | null;
496
+ /**
497
+ * The date and time at which a donation was created. Example: `2000-01-01T12:00:00Z`
498
+ */
499
+ created_at: string | null;
500
+ /**
501
+ * The fee to process a donation. This should either be 0 or a negative integer. For a donation processed by Giving via Stripe, this is the amount the associated organization paid Stripe to process it. For donations not processed by Stripe, this can be used to record fees from other systems. Note: while `amount_cents` is assigned via a donation's designations, `fee_cents` is set here, and used by Giving to distribute fees across all designations in proportion to the amount of each designation.
502
+ */
503
+ fee_cents: number | null;
504
+ /**
505
+ * A boolean indicating whether the donor chose to cover the Stripe processing fee for this donation.Note that `fee_covered` can only be true for donations processed through Stripe.
506
+ */
507
+ fee_covered: boolean | null;
508
+ /** The currency of `fee_cents`. Based on the organization's currency. */
509
+ fee_currency: string | null;
510
+ /**
511
+ * An optional short note donors can add to specify their gift intention (e.g. "In memory of..."). Only available when enabled by the church for specific funds. Can be set on batch donations when the [memo line feature](https://help.planningcenter.com/en/143011-manage-your-online-donation-form.html#UUID-0949cfc8-d262-e23a-0635-fa100ae331ba_section-id235309330415896-how-do-memo-lines-work-) allows it.
512
+ */
513
+ memo: string | null;
514
+ /**
515
+ * For cards, this is the card brand (eg Visa, Mastercard, etc). For checks and bank accounts, this is the bank name. For cash donations, this should be `null`.
516
+ */
517
+ payment_brand: string | null;
518
+ /**
519
+ * The channel through which the donation was created.
520
+ *
521
+ * Possible values: `api`, `sms`, `mobile_app`, `web`, `admin`, or `other`
522
+ */
523
+ payment_channel: string | null;
524
+ /** The check date for donations made by check. Example: `2000-01-01` */
525
+ payment_check_dated_at: string | null;
526
+ /** The check number for donations made by check. */
527
+ payment_check_number: number | null;
528
+ /**
529
+ * The last 4 digits of a donation's payment method number. For cards, this is the last 4 digits of the card number. For bank accounts, this is the last 4 digits of the bank account number. For cash and check donations, this should be `null`. Note: In cases where we don't have all 4 digits on file, a `*` will be used to pad the number. For example: `*321`
530
+ */
531
+ payment_last4: string | null;
532
+ /**
533
+ * Required. The payment method used to make a donation.
534
+ *
535
+ * Possible values: `ach`, `cash`, `check`, or `card`
536
+ */
537
+ payment_method: string | null;
538
+ /**
539
+ * For cards, this will be the card subtype. Will be `null` for other payment method types.
540
+ *
541
+ * Possible values: `credit`, `debit`, `prepaid`, or `unknown`
542
+ */
543
+ payment_method_sub: string | null;
544
+ /**
545
+ * For Stripe donations, this is the payment status. For batch donations, `pending` means that the donation has not yet been committed, whereas `succeeded` refers to a committed donation.
546
+ *
547
+ * Possible values: `pending`, `succeeded`, or `failed`
548
+ */
549
+ payment_status: string | null;
550
+ /**
551
+ * The date and time at which a donation was received. For card and ACH donations processed by Stripe, this is the moment when the donation was created in Giving. For batch donations, this is a customizable value that can be set via the Giving UI or API to any date. This allows for batch donations recieved on a previous day to be dated in the past, as well as for postdated checks to have a date in the future. It is important to ensure that this attribute is set accurately, as this is the date used to filter donations in the Giving admin UI. When creating new donations via the API, this attribute will default to the current date and time. Example: `2000-01-01T12:00:00Z`
552
+ */
553
+ received_at: string | null;
554
+ /**
555
+ * A boolean indicating whether this donation can be refunded via the API. Note that for some donations, this may be false, even though the donation _can_ be refunded in the UI.
556
+ */
557
+ refundable: boolean | null;
558
+ /** Returns `true` if a donation has been refunded, or `false` if it hasn't. */
559
+ refunded: boolean | null;
560
+ /**
561
+ * The date and time at which a donation was last updated. Example: `2000-01-01T12:00:00Z`
562
+ */
563
+ updated_at: string | null;
564
+ };
565
+ relationships:
566
+ | 'batch'
567
+ | 'campus'
568
+ | 'labels'
569
+ | 'payment_source'
570
+ | 'person'
571
+ | 'recurring_donation';
572
+ includes: 'designations' | 'labels' | 'note' | 'refund';
573
+ related: {
574
+ batch: 'batch';
575
+ campus: 'campus';
576
+ designations: 'designation';
577
+ labels: 'label';
578
+ note: 'note';
579
+ payment_source: 'payment_source';
580
+ person: 'person';
581
+ recurring_donation: 'recurring_donation';
582
+ refund: 'refund';
583
+ };
584
+ where: {
585
+ completed_at: string | Date;
586
+ created_at: string | Date;
587
+ payment_method: string;
588
+ received_at: string | Date;
589
+ updated_at: string | Date;
590
+ };
591
+ whereOps: {
592
+ completed_at: 'gt' | 'gte' | 'lt' | 'lte';
593
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
594
+ received_at: 'gt' | 'gte' | 'lt' | 'lte';
595
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
596
+ };
597
+ order: 'completed_at' | 'created_at' | 'received_at' | 'updated_at';
598
+ create: {
599
+ batch_id?: string;
600
+ campus_id?: string;
601
+ /**
602
+ * The fee to process a donation. This should either be 0 or a negative integer. For a donation processed by Giving via Stripe, this is the amount the associated organization paid Stripe to process it. For donations not processed by Stripe, this can be used to record fees from other systems. Note: while `amount_cents` is assigned via a donation's designations, `fee_cents` is set here, and used by Giving to distribute fees across all designations in proportion to the amount of each designation.
603
+ */
604
+ fee_cents?: number | null;
605
+ labels_ids?: string[];
606
+ /**
607
+ * An optional short note donors can add to specify their gift intention (e.g. "In memory of..."). Only available when enabled by the church for specific funds. Can be set on batch donations when the [memo line feature](https://help.planningcenter.com/en/143011-manage-your-online-donation-form.html#UUID-0949cfc8-d262-e23a-0635-fa100ae331ba_section-id235309330415896-how-do-memo-lines-work-) allows it.
608
+ */
609
+ memo?: string | null;
610
+ /**
611
+ * For cards, this is the card brand (eg Visa, Mastercard, etc). For checks and bank accounts, this is the bank name. For cash donations, this should be `null`.
612
+ */
613
+ payment_brand?: string | null;
614
+ /** The check date for donations made by check. Example: `2000-01-01` */
615
+ payment_check_dated_at?: string | null;
616
+ /** The check number for donations made by check. */
617
+ payment_check_number?: number | null;
618
+ /**
619
+ * The last 4 digits of a donation's payment method number. For cards, this is the last 4 digits of the card number. For bank accounts, this is the last 4 digits of the bank account number. For cash and check donations, this should be `null`. Note: In cases where we don't have all 4 digits on file, a `*` will be used to pad the number. For example: `*321`
620
+ */
621
+ payment_last4?: string | null;
622
+ /**
623
+ * Required. The payment method used to make a donation.
624
+ *
625
+ * Possible values: `ach`, `cash`, `check`, or `card`
626
+ */
627
+ payment_method?: string | null;
628
+ /**
629
+ * For cards, this will be the card subtype. Will be `null` for other payment method types.
630
+ *
631
+ * Possible values: `credit`, `debit`, `prepaid`, or `unknown`
632
+ */
633
+ payment_method_sub?: string | null;
634
+ payment_source_id?: string;
635
+ person_id?: string;
636
+ /**
637
+ * The date and time at which a donation was received. For card and ACH donations processed by Stripe, this is the moment when the donation was created in Giving. For batch donations, this is a customizable value that can be set via the Giving UI or API to any date. This allows for batch donations recieved on a previous day to be dated in the past, as well as for postdated checks to have a date in the future. It is important to ensure that this attribute is set accurately, as this is the date used to filter donations in the Giving admin UI. When creating new donations via the API, this attribute will default to the current date and time. Example: `2000-01-01T12:00:00Z`
638
+ */
639
+ received_at?: string | null;
640
+ };
641
+ update: {
642
+ batch_id?: string;
643
+ campus_id?: string;
644
+ /**
645
+ * The fee to process a donation. This should either be 0 or a negative integer. For a donation processed by Giving via Stripe, this is the amount the associated organization paid Stripe to process it. For donations not processed by Stripe, this can be used to record fees from other systems. Note: while `amount_cents` is assigned via a donation's designations, `fee_cents` is set here, and used by Giving to distribute fees across all designations in proportion to the amount of each designation.
646
+ */
647
+ fee_cents?: number | null;
648
+ labels_ids?: string[];
649
+ /**
650
+ * An optional short note donors can add to specify their gift intention (e.g. "In memory of..."). Only available when enabled by the church for specific funds. Can be set on batch donations when the [memo line feature](https://help.planningcenter.com/en/143011-manage-your-online-donation-form.html#UUID-0949cfc8-d262-e23a-0635-fa100ae331ba_section-id235309330415896-how-do-memo-lines-work-) allows it.
651
+ */
652
+ memo?: string | null;
653
+ /**
654
+ * For cards, this is the card brand (eg Visa, Mastercard, etc). For checks and bank accounts, this is the bank name. For cash donations, this should be `null`.
655
+ */
656
+ payment_brand?: string | null;
657
+ /** The check date for donations made by check. Example: `2000-01-01` */
658
+ payment_check_dated_at?: string | null;
659
+ /** The check number for donations made by check. */
660
+ payment_check_number?: number | null;
661
+ /**
662
+ * The last 4 digits of a donation's payment method number. For cards, this is the last 4 digits of the card number. For bank accounts, this is the last 4 digits of the bank account number. For cash and check donations, this should be `null`. Note: In cases where we don't have all 4 digits on file, a `*` will be used to pad the number. For example: `*321`
663
+ */
664
+ payment_last4?: string | null;
665
+ /**
666
+ * Required. The payment method used to make a donation.
667
+ *
668
+ * Possible values: `ach`, `cash`, `check`, or `card`
669
+ */
670
+ payment_method?: string | null;
671
+ /**
672
+ * For cards, this will be the card subtype. Will be `null` for other payment method types.
673
+ *
674
+ * Possible values: `credit`, `debit`, `prepaid`, or `unknown`
675
+ */
676
+ payment_method_sub?: string | null;
677
+ payment_source_id?: string;
678
+ person_id?: string;
679
+ /**
680
+ * The date and time at which a donation was received. For card and ACH donations processed by Stripe, this is the moment when the donation was created in Giving. For batch donations, this is a customizable value that can be set via the Giving UI or API to any date. This allows for batch donations recieved on a previous day to be dated in the past, as well as for postdated checks to have a date in the future. It is important to ensure that this attribute is set accurately, as this is the date used to filter donations in the Giving admin UI. When creating new donations via the API, this attribute will default to the current date and time. Example: `2000-01-01T12:00:00Z`
681
+ */
682
+ received_at?: string | null;
683
+ };
684
+ delete: true;
685
+ actions: 'issue_refund' | 'mark_failed';
686
+ edges: {
687
+ campus: { vertex: 'campus'; many: true; filters: never; create: false };
688
+ designations: { vertex: 'designation'; many: true; filters: never; create: false };
689
+ labels: { vertex: 'label'; many: true; filters: never; create: false };
690
+ note: { vertex: 'note'; many: false; filters: never; create: true };
691
+ refund: { vertex: 'refund'; many: false; filters: never; create: false };
692
+ };
693
+ }
694
+
695
+ /**
696
+ * Type-level schema of {@link DonorSummary}: attributes, query options, writable fields, and edges.
697
+ *
698
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/donor_summary
699
+ */
700
+ export interface DonorSummarySchema {
701
+ type: 'DonorSummary';
702
+ attributes: {
703
+ /**
704
+ * The number of donations this donor made over the requested date range, including refunded and failed donations.
705
+ */
706
+ donation_count: number | null;
707
+ /**
708
+ * The donor number for the person, if donor numbers are visible for this organization.
709
+ */
710
+ donor_number: string | null;
711
+ /**
712
+ * Timestamp of the donor's first donation ever (lifetime, not scoped to the requested date range).
713
+ */
714
+ first_donated: string | null;
715
+ /** The donor's full name. */
716
+ name: string | null;
717
+ /**
718
+ * The total received donation amount (in the currency's smallest unit) for this donor over the requested date range.
719
+ */
720
+ total_received_donation_amount_cents: number | null;
721
+ /** The ISO currency code for the total (the organization's currency). */
722
+ total_received_donation_amount_currency: string | null;
723
+ };
724
+ relationships: never;
725
+ includes: 'joint_giver';
726
+ related: {
727
+ joint_giver: 'person';
728
+ };
729
+ where: {
730
+ campus_id: string;
731
+ person_id: string;
732
+ received_at: string | Date;
733
+ };
734
+ whereOps: {
735
+ received_at: 'gt' | 'gte' | 'lt' | 'lte';
736
+ };
737
+ order: 'donation_count' | 'first_donated' | 'name' | 'total_received_donation_amount_cents';
738
+ create: {};
739
+ update: {};
740
+ delete: false;
741
+ actions: never;
742
+ edges: {
743
+ joint_giver: { vertex: 'person'; many: true; filters: never; create: false };
744
+ };
745
+ }
746
+
747
+ /**
748
+ * Type-level schema of {@link Fund}: attributes, query options, writable fields, and edges.
749
+ *
750
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/fund
751
+ */
752
+ export interface FundSchema {
753
+ type: 'Fund';
754
+ attributes: {
755
+ /**
756
+ * The hex color code that is used to help differentiate the fund from others in Giving, as determined by `color_identifier`.
757
+ */
758
+ color: string | null;
759
+ /**
760
+ * The date and time at which a fund was created. Example: `2000-01-01T12:00:00Z`
761
+ */
762
+ created_at: string | null;
763
+ /**
764
+ * This attribute is set to `true` if a fund is the associated organization's default fund, or `false` if it isn't. More information on default funds can be found in our product documentation: https://help.planningcenter.com/en/138385-create-and-manage-funds.html
765
+ */
766
+ default: boolean | null;
767
+ /**
768
+ * Boolean that tells if you if the fund can be deleted or not. Read more in our product documentation: https://help.planningcenter.com/en/138385-create-and-manage-funds.html
769
+ */
770
+ deletable: boolean | null;
771
+ /**
772
+ * A short description that describes how the money given to the fund will be used. 255 characters maximum.
773
+ */
774
+ description: string | null;
775
+ /**
776
+ * If an organization's general ledger software tracks funds by code, this attribute can be used to store the fund's code for reference.
777
+ */
778
+ ledger_code: string | null;
779
+ /**
780
+ * Required. The name for a fund. Must be unique within the associated organization.
781
+ */
782
+ name: string | null;
783
+ /** A URL-friendly identifier for a fund, derived from the fund name. */
784
+ slug: string | null;
785
+ /**
786
+ * The date and time at which a fund was last updated. Example: `2000-01-01T12:00:00Z`
787
+ */
788
+ updated_at: string | null;
789
+ /**
790
+ * Required. Controls how a fund is visible on Church Center. `everywhere` will allow anyone to donate to the fund on Church Center. `admin_only` will hide the fund on Church Center, allowing only permitted Giving Users to designate donations to it. `nowhere` will prevent donations from being designated to the fund altogether, while still displaying fund data in historical reports. `hidden` will hide the fund from the list of funds in the default Church Center donation form, but allow donors to give to it via direct link, or through Text-to-Give.
791
+ *
792
+ * Possible values: `everywhere`, `admin_only`, `nowhere`, or `hidden`
793
+ */
794
+ visibility: string | null;
795
+ };
796
+ relationships: never;
797
+ includes: never;
798
+ related: {};
799
+ where: {
800
+ default: boolean;
801
+ id: string;
802
+ name: string;
803
+ visibility: string;
804
+ };
805
+ whereOps: {};
806
+ order: never;
807
+ create: {
808
+ color_identifier?: unknown;
809
+ /**
810
+ * A short description that describes how the money given to the fund will be used. 255 characters maximum.
811
+ */
812
+ description?: string | null;
813
+ /**
814
+ * If an organization's general ledger software tracks funds by code, this attribute can be used to store the fund's code for reference.
815
+ */
816
+ ledger_code?: string | null;
817
+ /**
818
+ * Required. The name for a fund. Must be unique within the associated organization.
819
+ */
820
+ name?: string | null;
821
+ /**
822
+ * Required. Controls how a fund is visible on Church Center. `everywhere` will allow anyone to donate to the fund on Church Center. `admin_only` will hide the fund on Church Center, allowing only permitted Giving Users to designate donations to it. `nowhere` will prevent donations from being designated to the fund altogether, while still displaying fund data in historical reports. `hidden` will hide the fund from the list of funds in the default Church Center donation form, but allow donors to give to it via direct link, or through Text-to-Give.
823
+ *
824
+ * Possible values: `everywhere`, `admin_only`, `nowhere`, or `hidden`
825
+ */
826
+ visibility?: string | null;
827
+ };
828
+ update: {
829
+ color_identifier?: unknown;
830
+ /**
831
+ * A short description that describes how the money given to the fund will be used. 255 characters maximum.
832
+ */
833
+ description?: string | null;
834
+ /**
835
+ * If an organization's general ledger software tracks funds by code, this attribute can be used to store the fund's code for reference.
836
+ */
837
+ ledger_code?: string | null;
838
+ /**
839
+ * Required. The name for a fund. Must be unique within the associated organization.
840
+ */
841
+ name?: string | null;
842
+ /**
843
+ * Required. Controls how a fund is visible on Church Center. `everywhere` will allow anyone to donate to the fund on Church Center. `admin_only` will hide the fund on Church Center, allowing only permitted Giving Users to designate donations to it. `nowhere` will prevent donations from being designated to the fund altogether, while still displaying fund data in historical reports. `hidden` will hide the fund from the list of funds in the default Church Center donation form, but allow donors to give to it via direct link, or through Text-to-Give.
844
+ *
845
+ * Possible values: `everywhere`, `admin_only`, `nowhere`, or `hidden`
846
+ */
847
+ visibility?: string | null;
848
+ };
849
+ delete: true;
850
+ actions: never;
851
+ edges: {};
852
+ }
853
+
854
+ /**
855
+ * Type-level schema of {@link InKindDonation}: attributes, query options, writable fields, and edges.
856
+ *
857
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/in_kind_donation
858
+ */
859
+ export interface InKindDonationSchema {
860
+ type: 'InKindDonation';
861
+ attributes: {
862
+ /**
863
+ * The timestamp of when the acknowledgment letter was last sent for this in-kind donation. This value is set automatically and cannot be manually changed.
864
+ */
865
+ acknowledgment_last_sent_at: string | null;
866
+ /**
867
+ * The date and time at which an in-kind donation was created.
868
+ *
869
+ * Example: `2000-01-01T12:00:00Z`
870
+ */
871
+ created_at: string | null;
872
+ /**
873
+ * Required. Brief description of an in-kind donation gift.
874
+ *
875
+ * Example: `2019 Toyota Corolla (used)`
876
+ */
877
+ description: string | null;
878
+ /**
879
+ * Optional. Records whether any goods or services were exchanged for an in-kind donation.
880
+ *
881
+ * Example: `In exchange, a charity event ticket for $100 was provided.`
882
+ */
883
+ exchange_details: string | null;
884
+ /**
885
+ * Optional. The fair market value of an in-kind donation in cents. Must be greater than $0 and less than or equal to $21,000,000.
886
+ */
887
+ fair_market_value_cents: number | null;
888
+ fair_market_value_currency: string | null;
889
+ /**
890
+ * Required. The date an in-kind donation was received.
891
+ *
892
+ * Format: `YYYY-MM-DD` (e.g. `2025-04-09`).
893
+ */
894
+ received_on: string | null;
895
+ /**
896
+ * The date and time at which an in-kind donation was last updated.
897
+ *
898
+ * Example: `2000-01-01T12:00:00Z`
899
+ */
900
+ updated_at: string | null;
901
+ /**
902
+ * Optional. The fair market for an in-kind donation which should be determined by donors and appraisers. Maximum 255 characters. Example: `Appraised by Bob Johnson CPA (123 Easy Street, Carlsbad CA 92008)`
903
+ */
904
+ valuation_details: string | null;
905
+ };
906
+ relationships: 'campus' | 'fund' | 'person';
907
+ includes: 'campus' | 'fund' | 'person';
908
+ related: {
909
+ campus: 'campus';
910
+ fund: 'fund';
911
+ person: 'person';
912
+ };
913
+ where: {
914
+ campus_id: string | number;
915
+ created_at: string | Date;
916
+ fund_id: string | number;
917
+ received_on: string | Date;
918
+ updated_at: string | Date;
919
+ };
920
+ whereOps: {
921
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
922
+ received_on: 'gt' | 'gte' | 'lt' | 'lte';
923
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
924
+ };
925
+ order: 'created_at' | 'received_on' | 'updated_at';
926
+ create: {
927
+ campus_id?: string;
928
+ /**
929
+ * Required. Brief description of an in-kind donation gift.
930
+ *
931
+ * Example: `2019 Toyota Corolla (used)`
932
+ */
933
+ description?: string | null;
934
+ /**
935
+ * Optional. Records whether any goods or services were exchanged for an in-kind donation.
936
+ *
937
+ * Example: `In exchange, a charity event ticket for $100 was provided.`
938
+ */
939
+ exchange_details?: string | null;
940
+ /**
941
+ * Optional. The fair market value of an in-kind donation in cents. Must be greater than $0 and less than or equal to $21,000,000.
942
+ */
943
+ fair_market_value_cents?: number | null;
944
+ fair_market_value_currency?: string | null;
945
+ fund_id?: string;
946
+ internal_notes?: unknown;
947
+ person_id?: string;
948
+ /**
949
+ * Required. The date an in-kind donation was received.
950
+ *
951
+ * Format: `YYYY-MM-DD` (e.g. `2025-04-09`).
952
+ */
953
+ received_on?: string | null;
954
+ /**
955
+ * Optional. The fair market for an in-kind donation which should be determined by donors and appraisers. Maximum 255 characters. Example: `Appraised by Bob Johnson CPA (123 Easy Street, Carlsbad CA 92008)`
956
+ */
957
+ valuation_details?: string | null;
958
+ };
959
+ update: {
960
+ campus_id?: string;
961
+ /**
962
+ * Required. Brief description of an in-kind donation gift.
963
+ *
964
+ * Example: `2019 Toyota Corolla (used)`
965
+ */
966
+ description?: string | null;
967
+ /**
968
+ * Optional. Records whether any goods or services were exchanged for an in-kind donation.
969
+ *
970
+ * Example: `In exchange, a charity event ticket for $100 was provided.`
971
+ */
972
+ exchange_details?: string | null;
973
+ /**
974
+ * Optional. The fair market value of an in-kind donation in cents. Must be greater than $0 and less than or equal to $21,000,000.
975
+ */
976
+ fair_market_value_cents?: number | null;
977
+ fair_market_value_currency?: string | null;
978
+ fund_id?: string;
979
+ internal_notes?: unknown;
980
+ person_id?: string;
981
+ /**
982
+ * Required. The date an in-kind donation was received.
983
+ *
984
+ * Format: `YYYY-MM-DD` (e.g. `2025-04-09`).
985
+ */
986
+ received_on?: string | null;
987
+ /**
988
+ * Optional. The fair market for an in-kind donation which should be determined by donors and appraisers. Maximum 255 characters. Example: `Appraised by Bob Johnson CPA (123 Easy Street, Carlsbad CA 92008)`
989
+ */
990
+ valuation_details?: string | null;
991
+ };
992
+ delete: true;
993
+ actions: never;
994
+ edges: {
995
+ campus: { vertex: 'campus'; many: true; filters: never; create: false };
996
+ fund: { vertex: 'fund'; many: true; filters: never; create: false };
997
+ person: { vertex: 'person'; many: true; filters: never; create: false };
998
+ };
999
+ }
1000
+
1001
+ /**
1002
+ * Type-level schema of {@link Label}: attributes, query options, writable fields, and edges.
1003
+ *
1004
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/label
1005
+ */
1006
+ export interface LabelSchema {
1007
+ type: 'Label';
1008
+ attributes: {
1009
+ /**
1010
+ * The label text itself. Made up solely of lowercase letters, numbers, and dashes. When creating or updating a label, the string you provide will be formatted automatically. For example: `My awesome label!` will be saved as `my-awesome-label`
1011
+ */
1012
+ slug: string | null;
1013
+ };
1014
+ relationships: never;
1015
+ includes: never;
1016
+ related: {};
1017
+ where: {
1018
+ slug: string;
1019
+ };
1020
+ whereOps: {};
1021
+ order: never;
1022
+ create: {
1023
+ /**
1024
+ * The label text itself. Made up solely of lowercase letters, numbers, and dashes. When creating or updating a label, the string you provide will be formatted automatically. For example: `My awesome label!` will be saved as `my-awesome-label`
1025
+ */
1026
+ slug?: string | null;
1027
+ };
1028
+ update: {
1029
+ /**
1030
+ * The label text itself. Made up solely of lowercase letters, numbers, and dashes. When creating or updating a label, the string you provide will be formatted automatically. For example: `My awesome label!` will be saved as `my-awesome-label`
1031
+ */
1032
+ slug?: string | null;
1033
+ };
1034
+ delete: true;
1035
+ actions: never;
1036
+ edges: {};
1037
+ }
1038
+
1039
+ /**
1040
+ * Type-level schema of {@link Note}: attributes, query options, writable fields, and edges.
1041
+ *
1042
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/note
1043
+ */
1044
+ export interface NoteSchema {
1045
+ type: 'Note';
1046
+ attributes: {
1047
+ body: string | null;
1048
+ };
1049
+ relationships: never;
1050
+ includes: never;
1051
+ related: {};
1052
+ where: {};
1053
+ whereOps: {};
1054
+ order: never;
1055
+ create: {
1056
+ body?: string | null;
1057
+ };
1058
+ update: {};
1059
+ delete: false;
1060
+ actions: never;
1061
+ edges: {};
1062
+ }
1063
+
1064
+ /**
1065
+ * Type-level schema of {@link Organization}: attributes, query options, writable fields, and edges.
1066
+ *
1067
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/organization
1068
+ */
1069
+ export interface OrganizationSchema {
1070
+ type: 'Organization';
1071
+ attributes: {
1072
+ /** The name for an organization. */
1073
+ name: string | null;
1074
+ /**
1075
+ * `true` if this organization is accepting Text2Give donations, `false` otherwise.
1076
+ */
1077
+ text2give_enabled: boolean | null;
1078
+ /** The time zone for an organization. */
1079
+ time_zone: string | null;
1080
+ };
1081
+ relationships: never;
1082
+ includes: never;
1083
+ related: {};
1084
+ where: {};
1085
+ whereOps: {};
1086
+ order: never;
1087
+ create: {};
1088
+ update: {};
1089
+ delete: false;
1090
+ actions: never;
1091
+ edges: {};
1092
+ }
1093
+
1094
+ /**
1095
+ * Type-level schema of {@link PaymentMethod}: attributes, query options, writable fields, and edges.
1096
+ *
1097
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/payment_method
1098
+ */
1099
+ export interface PaymentMethodSchema {
1100
+ type: 'PaymentMethod';
1101
+ attributes: {
1102
+ /**
1103
+ * For cards, this is the card brand (eg Visa, Mastercard, etc). For bank accounts, this is the bank name.
1104
+ */
1105
+ brand: string | null;
1106
+ /**
1107
+ * The date and time at which a payment method was created. Example: `2000-01-01T12:00:00Z`
1108
+ */
1109
+ created_at: string | null;
1110
+ /**
1111
+ * For cards only. String representation of the expiration date in the `MM/YYYY` form (without leading zeros). Will be `null` for bank accounts.
1112
+ */
1113
+ expiration: string | null;
1114
+ /**
1115
+ * The last 4 digits of the payment method's number. For cards, this is the last 4 digits of the card number. For bank accounts, this is the last 4 digits of the bank account number. Note: In cases where we don't have all 4 digits on file, a `*` will be used to pad the number. For example: `*321`
1116
+ */
1117
+ last4: string | null;
1118
+ /**
1119
+ * For cards, either `credit`, `debit`, `prepaid`, or `unknown`. For bank accounts, either `checking` or `savings`.
1120
+ */
1121
+ method_subtype: string | null;
1122
+ /**
1123
+ * Determines whether or not the payment method is a card or bank account.
1124
+ *
1125
+ * Possible values: `card`, `us_bank_account`, or `au_becs_debit`
1126
+ */
1127
+ method_type: string | null;
1128
+ /**
1129
+ * The date and time at which a payment method was last updated. Example: `2000-01-01T12:00:00Z`
1130
+ */
1131
+ updated_at: string | null;
1132
+ /** For bank accounts only. Will be `null` for cards. */
1133
+ verified: boolean | null;
1134
+ };
1135
+ relationships: never;
1136
+ includes: never;
1137
+ related: {};
1138
+ where: {};
1139
+ whereOps: {};
1140
+ order: never;
1141
+ create: {};
1142
+ update: {};
1143
+ delete: false;
1144
+ actions: never;
1145
+ edges: {
1146
+ recurring_donations: { vertex: 'recurring_donation'; many: true; filters: never; create: false };
1147
+ };
1148
+ }
1149
+
1150
+ /**
1151
+ * Type-level schema of {@link PaymentSource}: attributes, query options, writable fields, and edges.
1152
+ *
1153
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/payment_source
1154
+ */
1155
+ export interface PaymentSourceSchema {
1156
+ type: 'PaymentSource';
1157
+ attributes: {
1158
+ /**
1159
+ * The date and time at which a payment source was created. Example: `2000-01-01T12:00:00Z`
1160
+ */
1161
+ created_at: string | null;
1162
+ /**
1163
+ * Required. The name of a payment source. Must be unique within the associated organization.
1164
+ */
1165
+ name: string | null;
1166
+ /**
1167
+ * The status of the payment source. Can be either `active` or `archived`. `active` payment sources can be assigned to donations, while `archived` payment sources cannot. Payment sources are `active` by default upon creation. Archiving a payment source will keep all historical records intact and can be undone.
1168
+ *
1169
+ * Possible values: `active` or `archived`
1170
+ */
1171
+ status: string | null;
1172
+ /**
1173
+ * The date and time at which a payment source was last updated. Example: `2000-01-01T12:00:00Z`
1174
+ */
1175
+ updated_at: string | null;
1176
+ };
1177
+ relationships: never;
1178
+ includes: never;
1179
+ related: {};
1180
+ where: {};
1181
+ whereOps: {};
1182
+ order: never;
1183
+ create: {
1184
+ /**
1185
+ * Required. The name of a payment source. Must be unique within the associated organization.
1186
+ */
1187
+ name?: string | null;
1188
+ payment_source_type?: unknown;
1189
+ /**
1190
+ * The status of the payment source. Can be either `active` or `archived`. `active` payment sources can be assigned to donations, while `archived` payment sources cannot. Payment sources are `active` by default upon creation. Archiving a payment source will keep all historical records intact and can be undone.
1191
+ *
1192
+ * Possible values: `active` or `archived`
1193
+ */
1194
+ status?: string | null;
1195
+ };
1196
+ update: {
1197
+ /**
1198
+ * Required. The name of a payment source. Must be unique within the associated organization.
1199
+ */
1200
+ name?: string | null;
1201
+ payment_source_type?: unknown;
1202
+ /**
1203
+ * The status of the payment source. Can be either `active` or `archived`. `active` payment sources can be assigned to donations, while `archived` payment sources cannot. Payment sources are `active` by default upon creation. Archiving a payment source will keep all historical records intact and can be undone.
1204
+ *
1205
+ * Possible values: `active` or `archived`
1206
+ */
1207
+ status?: string | null;
1208
+ };
1209
+ delete: true;
1210
+ actions: never;
1211
+ edges: {
1212
+ donations: { vertex: 'donation'; many: true; filters: never; create: false };
1213
+ };
1214
+ }
1215
+
1216
+ /**
1217
+ * Type-level schema of {@link Person}: attributes, query options, writable fields, and edges.
1218
+ *
1219
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/person
1220
+ */
1221
+ export interface PersonSchema {
1222
+ type: 'Person';
1223
+ attributes: {
1224
+ /**
1225
+ * An array of addresses for a person. Can be managed via People. Example:
1226
+ * ```
1227
+ * [
1228
+ * {
1229
+ * "street_line_1": "2790 Gateway Rd",
1230
+ * "street_line_2": "",
1231
+ * "city": "Carlsbad",
1232
+ * "state": "CA",
1233
+ * "zip": "92009",
1234
+ * "location": "Home",
1235
+ * "primary": true,
1236
+ * "street": "2790 Gateway Rd",
1237
+ * "line_1": "2790 Gateway Rd",
1238
+ * "line_2": "Carlsbad, CA 92009"
1239
+ * }
1240
+ * ]
1241
+ * ```
1242
+ */
1243
+ addresses: unknown[] | null;
1244
+ /**
1245
+ * The donor number for a person, if applicable. See our product documentation for more information on [donor numbers](https://help.planningcenter.com/en/138370-donor-numbers.html#138370-donor-numbers).
1246
+ */
1247
+ donor_number: number | null;
1248
+ /**
1249
+ * An array of email addresses for a person. Can be managed via People. Example:
1250
+ * ```
1251
+ * [
1252
+ * {
1253
+ * "address": "support@planningcenter.com",
1254
+ * "location": "Home",
1255
+ * "blocked": false,
1256
+ * "primary": true
1257
+ * }
1258
+ * ]
1259
+ * ```
1260
+ */
1261
+ email_addresses: unknown[] | null;
1262
+ /** Timestamp of a person's first donation or `null` if they have never donated. */
1263
+ first_donated_at: string | null;
1264
+ /** A person's first name. */
1265
+ first_name: string | null;
1266
+ /** A person's last name. */
1267
+ last_name: string | null;
1268
+ /**
1269
+ * The level of Giving access granted to a person. See our product documentation for more information on [permissions in Giving](https://help.planningcenter.com/en/140716-permissions-in-giving.html).
1270
+ *
1271
+ * Possible values: `administrator`, `reviewer`, `counter`, or `bookkeeper`
1272
+ */
1273
+ permissions: string | null;
1274
+ /**
1275
+ * An array of phone numbers for a person. Can be managed via People. Example:
1276
+ * ```
1277
+ * [
1278
+ * {
1279
+ * "number": "(123) 456-7890",
1280
+ * "carrier": "PC Mobile",
1281
+ * "location": "Mobile",
1282
+ * "primary": true
1283
+ * }
1284
+ * ]
1285
+ * ```
1286
+ */
1287
+ phone_numbers: unknown[] | null;
1288
+ };
1289
+ relationships: 'primary_campus';
1290
+ includes: never;
1291
+ related: {
1292
+ primary_campus: 'campus';
1293
+ };
1294
+ where: {
1295
+ first_name: string;
1296
+ last_name: string;
1297
+ };
1298
+ whereOps: {};
1299
+ order: never;
1300
+ create: {};
1301
+ update: {
1302
+ /**
1303
+ * The donor number for a person, if applicable. See our product documentation for more information on [donor numbers](https://help.planningcenter.com/en/138370-donor-numbers.html#138370-donor-numbers).
1304
+ */
1305
+ donor_number?: number | null;
1306
+ };
1307
+ delete: false;
1308
+ actions: never;
1309
+ edges: {
1310
+ batch_groups: { vertex: 'batch_group'; many: true; filters: 'committed' | 'in_progress'; create: false };
1311
+ batches: { vertex: 'batch'; many: true; filters: 'committed' | 'in_progress'; create: false };
1312
+ donations: { vertex: 'donation'; many: true; filters: never; create: false };
1313
+ in_kind_donations: { vertex: 'in_kind_donation'; many: true; filters: never; create: false };
1314
+ payment_methods: { vertex: 'payment_method'; many: true; filters: never; create: false };
1315
+ pledges: { vertex: 'pledge'; many: true; filters: never; create: true };
1316
+ primary_campus: { vertex: 'campus'; many: true; filters: never; create: false };
1317
+ recurring_donations: { vertex: 'recurring_donation'; many: true; filters: never; create: false };
1318
+ };
1319
+ }
1320
+
1321
+ /**
1322
+ * Type-level schema of {@link Pledge}: attributes, query options, writable fields, and edges.
1323
+ *
1324
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/pledge
1325
+ */
1326
+ export interface PledgeSchema {
1327
+ type: 'Pledge';
1328
+ attributes: {
1329
+ /** The amount pledged */
1330
+ amount_cents: number | null;
1331
+ amount_currency: string | null;
1332
+ created_at: string | null;
1333
+ /** The amount donated */
1334
+ donated_total_cents: number | null;
1335
+ /** The amount pledged by the joint giver, if in a joint giving unit */
1336
+ joint_giver_amount_cents: number | null;
1337
+ /** The amount donated by the joint giver, if in a joint giving unit */
1338
+ joint_giver_donated_total_cents: number | null;
1339
+ updated_at: string | null;
1340
+ };
1341
+ relationships: 'person' | 'pledge_campaign';
1342
+ includes: 'joint_giver' | 'pledge_campaign';
1343
+ related: {
1344
+ joint_giver: 'person';
1345
+ person: 'person';
1346
+ pledge_campaign: 'pledge_campaign';
1347
+ };
1348
+ where: {
1349
+ created_at: string | Date;
1350
+ updated_at: string | Date;
1351
+ };
1352
+ whereOps: {
1353
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1354
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1355
+ };
1356
+ order: 'created_at' | 'updated_at';
1357
+ create: {
1358
+ /** The amount pledged */
1359
+ amount_cents?: number | null;
1360
+ person_id?: string;
1361
+ pledge_campaign_id?: string;
1362
+ };
1363
+ update: {
1364
+ /** The amount pledged */
1365
+ amount_cents?: number | null;
1366
+ };
1367
+ delete: true;
1368
+ actions: never;
1369
+ edges: {
1370
+ joint_giver: { vertex: 'person'; many: true; filters: never; create: false };
1371
+ pledge_campaign: { vertex: 'pledge_campaign'; many: true; filters: never; create: false };
1372
+ };
1373
+ }
1374
+
1375
+ /**
1376
+ * Type-level schema of {@link PledgeCampaign}: attributes, query options, writable fields, and edges.
1377
+ *
1378
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/pledge_campaign
1379
+ */
1380
+ export interface PledgeCampaignSchema {
1381
+ type: 'PledgeCampaign';
1382
+ attributes: {
1383
+ created_at: string | null;
1384
+ description: string | null;
1385
+ ends_at: string | null;
1386
+ /**
1387
+ * Optional. During the donation period of this campaign, the running total of donations will be tracked against this number
1388
+ */
1389
+ goal_cents: number | null;
1390
+ goal_currency: string | null;
1391
+ name: string | null;
1392
+ received_total_from_pledges_cents: number | null;
1393
+ received_total_outside_of_pledges_cents: number | null;
1394
+ /**
1395
+ * In addition to seeing their personal pledge progress within their donor profile, this option allows donors to see the the collective progress towards the campaign’s overall goal (if set).
1396
+ */
1397
+ show_goal_in_church_center: boolean | null;
1398
+ starts_at: string | null;
1399
+ updated_at: string | null;
1400
+ };
1401
+ relationships: 'fund';
1402
+ includes: 'fund';
1403
+ related: {
1404
+ fund: 'fund';
1405
+ };
1406
+ where: {
1407
+ ends_at: string | Date;
1408
+ fund_id: string | number;
1409
+ starts_at: string | Date;
1410
+ };
1411
+ whereOps: {
1412
+ ends_at: 'gt' | 'gte' | 'lt' | 'lte';
1413
+ starts_at: 'gt' | 'gte' | 'lt' | 'lte';
1414
+ };
1415
+ order: 'ends_at' | 'starts_at';
1416
+ create: {
1417
+ description?: string | null;
1418
+ ends_at?: string | null;
1419
+ fund_id?: string;
1420
+ /**
1421
+ * Optional. During the donation period of this campaign, the running total of donations will be tracked against this number
1422
+ */
1423
+ goal_cents?: number | null;
1424
+ name?: string | null;
1425
+ /**
1426
+ * In addition to seeing their personal pledge progress within their donor profile, this option allows donors to see the the collective progress towards the campaign’s overall goal (if set).
1427
+ */
1428
+ show_goal_in_church_center?: boolean | null;
1429
+ starts_at?: string | null;
1430
+ };
1431
+ update: {
1432
+ description?: string | null;
1433
+ ends_at?: string | null;
1434
+ fund_id?: string;
1435
+ /**
1436
+ * Optional. During the donation period of this campaign, the running total of donations will be tracked against this number
1437
+ */
1438
+ goal_cents?: number | null;
1439
+ name?: string | null;
1440
+ /**
1441
+ * In addition to seeing their personal pledge progress within their donor profile, this option allows donors to see the the collective progress towards the campaign’s overall goal (if set).
1442
+ */
1443
+ show_goal_in_church_center?: boolean | null;
1444
+ starts_at?: string | null;
1445
+ };
1446
+ delete: true;
1447
+ actions: never;
1448
+ edges: {
1449
+ fund: { vertex: 'fund'; many: true; filters: never; create: false };
1450
+ pledges: { vertex: 'pledge'; many: true; filters: never; create: false };
1451
+ };
1452
+ }
1453
+
1454
+ /**
1455
+ * Type-level schema of {@link RecurringDonation}: attributes, query options, writable fields, and edges.
1456
+ *
1457
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/recurring_donation
1458
+ */
1459
+ export interface RecurringDonationSchema {
1460
+ type: 'RecurringDonation';
1461
+ attributes: {
1462
+ /** The number of cents scheduled to be donated. */
1463
+ amount_cents: number | null;
1464
+ /** The currency of `amount_cents`. */
1465
+ amount_currency: string | null;
1466
+ /**
1467
+ * The date and time at which a recurring donation was created. Example: `2000-01-01T12:00:00Z`
1468
+ */
1469
+ created_at: string | null;
1470
+ /**
1471
+ * The date and time that the last donation was made for a recurring donation. Example: `2000-01-01T12:00:00Z`
1472
+ */
1473
+ last_donation_received_at: string | null;
1474
+ /**
1475
+ * The date that the next donation will be made for a recurring donation. Example: `2000-01-01T12:00:00Z`
1476
+ */
1477
+ next_occurrence: string | null;
1478
+ /**
1479
+ * The date when the hold on a recurring donation with a status of `temporary_hold` will be released.
1480
+ */
1481
+ release_hold_at: string | null;
1482
+ /**
1483
+ * JSON representation of the billing schedule. See the repeatable Ruby gem for more details on the structure and meaning: https://github.com/molawson/repeatable#time-expressions
1484
+ */
1485
+ schedule: Record<string, unknown> | null;
1486
+ /**
1487
+ * Determines if a recurring donation is active or on hold, and if on hold, the kind of hold that has been placed on it.
1488
+ *
1489
+ * Possible values: `active`, `indefinite_hold` or `temporary_hold`.
1490
+ */
1491
+ status: string | null;
1492
+ /**
1493
+ * The date and time at which a recurring donation was last updated. Example: `2000-01-01T12:00:00Z`
1494
+ */
1495
+ updated_at: string | null;
1496
+ };
1497
+ relationships: 'person';
1498
+ includes: 'designations' | 'payment_method';
1499
+ related: {
1500
+ designations: 'recurring_donation_designation';
1501
+ payment_method: 'payment_method';
1502
+ person: 'person';
1503
+ };
1504
+ where: {
1505
+ fund_id: string;
1506
+ status: string;
1507
+ };
1508
+ whereOps: {};
1509
+ order: never;
1510
+ create: {};
1511
+ update: {};
1512
+ delete: false;
1513
+ actions: never;
1514
+ edges: {
1515
+ designations: { vertex: 'recurring_donation_designation'; many: true; filters: never; create: false };
1516
+ payment_method: { vertex: 'payment_method'; many: true; filters: never; create: false };
1517
+ };
1518
+ }
1519
+
1520
+ /**
1521
+ * Type-level schema of {@link RecurringDonationDesignation}: attributes, query options, writable fields, and edges.
1522
+ *
1523
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/recurring_donation_designation
1524
+ */
1525
+ export interface RecurringDonationDesignationSchema {
1526
+ type: 'RecurringDonationDesignation';
1527
+ attributes: {
1528
+ /**
1529
+ * Required. The number of cents that will be donated to a recurring donation designation's associated fund.
1530
+ */
1531
+ amount_cents: number | null;
1532
+ /**
1533
+ * The currency of `amount_cents`. Set to the currency of the associated organization.
1534
+ */
1535
+ amount_currency: string | null;
1536
+ };
1537
+ relationships: 'fund';
1538
+ includes: 'fund';
1539
+ related: {
1540
+ fund: 'fund';
1541
+ };
1542
+ where: {};
1543
+ whereOps: {};
1544
+ order: never;
1545
+ create: {};
1546
+ update: {};
1547
+ delete: false;
1548
+ actions: never;
1549
+ edges: {
1550
+ fund: { vertex: 'fund'; many: true; filters: never; create: false };
1551
+ };
1552
+ }
1553
+
1554
+ /**
1555
+ * Type-level schema of {@link Refund}: attributes, query options, writable fields, and edges.
1556
+ *
1557
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/refund
1558
+ */
1559
+ export interface RefundSchema {
1560
+ type: 'Refund';
1561
+ attributes: {
1562
+ /** The number of cents being refunded. */
1563
+ amount_cents: number | null;
1564
+ /** The currency of `amount_cents`. */
1565
+ amount_currency: string | null;
1566
+ /**
1567
+ * The date and time at which a refund was created. Example: `2000-01-01T12:00:00Z`
1568
+ */
1569
+ created_at: string | null;
1570
+ /** The payment processing fee returned by Stripe, if any. */
1571
+ fee_cents: number | null;
1572
+ /** The currency of `fee_cents`. */
1573
+ fee_currency: string | null;
1574
+ /**
1575
+ * The date and time at which a refund was processed. Example: `2000-01-01T12:00:00Z`
1576
+ */
1577
+ refunded_at: string | null;
1578
+ /**
1579
+ * The date and time at which a refund was last updated. Example: `2000-01-01T12:00:00Z`
1580
+ */
1581
+ updated_at: string | null;
1582
+ };
1583
+ relationships: never;
1584
+ includes: 'designation_refunds';
1585
+ related: {
1586
+ designation_refunds: 'designation_refund';
1587
+ };
1588
+ where: {};
1589
+ whereOps: {};
1590
+ order: never;
1591
+ create: {};
1592
+ update: {};
1593
+ delete: false;
1594
+ actions: never;
1595
+ edges: {};
1596
+ }
1597
+
1598
+ /** Type-level schema of every Planning Center Giving resource, keyed by vertex id. */
1599
+ export type GivingSchema = {
1600
+ batch: BatchSchema;
1601
+ batch_group: BatchGroupSchema;
1602
+ campus: CampusSchema;
1603
+ designation: DesignationSchema;
1604
+ designation_refund: DesignationRefundSchema;
1605
+ donation: DonationSchema;
1606
+ donor_summary: DonorSummarySchema;
1607
+ fund: FundSchema;
1608
+ in_kind_donation: InKindDonationSchema;
1609
+ label: LabelSchema;
1610
+ note: NoteSchema;
1611
+ organization: OrganizationSchema;
1612
+ payment_method: PaymentMethodSchema;
1613
+ payment_source: PaymentSourceSchema;
1614
+ person: PersonSchema;
1615
+ pledge: PledgeSchema;
1616
+ pledge_campaign: PledgeCampaignSchema;
1617
+ recurring_donation: RecurringDonationSchema;
1618
+ recurring_donation_designation: RecurringDonationDesignationSchema;
1619
+ refund: RefundSchema;
1620
+ };
1621
+
1622
+ /** Edges available from the product root (`/giving/v2`). */
1623
+ export type GivingRoot = {
1624
+ batch_groups: { vertex: 'batch_group'; many: true; filters: 'committed' | 'in_progress'; create: true };
1625
+ batches: { vertex: 'batch'; many: true; filters: 'committed' | 'in_progress'; create: true };
1626
+ campuses: { vertex: 'campus'; many: true; filters: never; create: false };
1627
+ donations: { vertex: 'donation'; many: true; filters: 'succeeded'; create: false };
1628
+ donor_summaries: { vertex: 'donor_summary'; many: true; filters: 'has_joint_giver'; create: false };
1629
+ funds: { vertex: 'fund'; many: true; filters: never; create: true };
1630
+ in_kind_donations: { vertex: 'in_kind_donation'; many: true; filters: never; create: true };
1631
+ labels: { vertex: 'label'; many: true; filters: never; create: true };
1632
+ payment_sources: { vertex: 'payment_source'; many: true; filters: never; create: true };
1633
+ people: { vertex: 'person'; many: true; filters: 'has_donated'; create: false };
1634
+ pledge_campaigns: { vertex: 'pledge_campaign'; many: true; filters: never; create: true };
1635
+ recurring_donations: { vertex: 'recurring_donation'; many: true; filters: never; create: false };
1636
+ };
1637
+
1638
+ type AssertSchema<T extends ProductSchema> = T;
1639
+ type AssertRoot<T extends RootSchema> = T;
1640
+ type SchemaCheck = [AssertSchema<GivingSchema>, AssertRoot<GivingRoot>];
1641
+
1642
+ /**
1643
+ * A `Batch` is a collection of `Donation`s. When creating `Donation`'s via the API, you're required to put them in a `Batch`.
1644
+ *
1645
+ * When a `Batch` is first created, it's in the `in_progress` or "uncommitted" state. You can freely add/remove/modify `Donation`s in this `Batch` and they won't show up in a donor's donation history online, they won't appear in any donor statements issued by the Giving admin, and changes to these donations are not flagged in the system log. Think of it as a staging area for donations.
1646
+ *
1647
+ * When a `Batch` is committed (see more in the Actions section), all of the `Donation`s within it are also marked as "committed". At that point, they're visible to donors in their online history, and any further edits made to those `Donation`s are logged and visible to Giving admins.
1648
+ *
1649
+ * With all of that in mind, you can use `Batch`es in one of two ways:
1650
+ *
1651
+ * 1. Create an uncommitted `Batch`, add `Donation`s to it, then commit the `Batch`.
1652
+ * 2. Create a `Batch` with a least one donation, commit it, then add more `Donation`s to it.
1653
+ *
1654
+ * In both cases, the end result is the same. The main difference is that option #2 does not provide you/other admins the opportunity to fix any mistakes before changes are logged and `Donation`s are made visible to donors. Any `Donation`s added to a committed `Batch` will automatically be committed as well. Note, batches can't be committed until they have at least one donation.
1655
+ *
1656
+ * Whichever route you decide to take, it's helpful to make use of the `Batch`'s description to help differentiate these groupings from each other and from other `Batch`es that the Giving admins might be creating on their own.
1657
+ *
1658
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/batch
1659
+ */
1660
+ export type Batch = PcoResource<BatchSchema>;
1661
+ /**
1662
+ * Attributes of {@link Batch}.
1663
+ *
1664
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/batch
1665
+ */
1666
+ export type BatchAttributes = BatchSchema['attributes'];
1667
+
1668
+ /**
1669
+ * A `BatchGroup` is a collection of `Batch`es.
1670
+ *
1671
+ * `BatchGroup`s are an optional way of organizing your `Batch`es into groups that share common characteristics. These are completely customizable and can be used in whatever way makes sense to your organization's workflow.
1672
+ *
1673
+ * Similarly to `Batch`es, you can `commit` (see more in the Actions section) a `BatchGroup`, and by doing so, all `Batches` and `Donations` contained in the `BatchGroup` will also be committed.
1674
+ *
1675
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/batch_group
1676
+ */
1677
+ export type BatchGroup = PcoResource<BatchGroupSchema>;
1678
+ /**
1679
+ * Attributes of {@link BatchGroup}.
1680
+ *
1681
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/batch_group
1682
+ */
1683
+ export type BatchGroupAttributes = BatchGroupSchema['attributes'];
1684
+
1685
+ /**
1686
+ * A `Campus` that has been added to your `Organization`.
1687
+ *
1688
+ * `Campus`es can be especially useful in filtering `Donation`s across the various locations of your `Organization`.
1689
+ *
1690
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/campus
1691
+ */
1692
+ export type Campus = PcoResource<CampusSchema>;
1693
+ /**
1694
+ * Attributes of {@link Campus}.
1695
+ *
1696
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/campus
1697
+ */
1698
+ export type CampusAttributes = CampusSchema['attributes'];
1699
+
1700
+ /**
1701
+ * A `Designation` conveys how much of a `Donation` goes to a particular `Fund`.
1702
+ *
1703
+ * `Designation` details are required when creating a `Donation`. If all of a `Donation` is going to a single `Fund`, it will only have one `Designation`. Similarly, to split a `Donation` between multiple `Fund`s, you can use multiple `Designation`s.
1704
+ *
1705
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/designation
1706
+ */
1707
+ export type Designation = PcoResource<DesignationSchema>;
1708
+ /**
1709
+ * Attributes of {@link Designation}.
1710
+ *
1711
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/designation
1712
+ */
1713
+ export type DesignationAttributes = DesignationSchema['attributes'];
1714
+
1715
+ /**
1716
+ * A record that links a `Refund` with a `Designation`
1717
+ *
1718
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/designation_refund
1719
+ */
1720
+ export type DesignationRefund = PcoResource<DesignationRefundSchema>;
1721
+ /**
1722
+ * Attributes of {@link DesignationRefund}.
1723
+ *
1724
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/designation_refund
1725
+ */
1726
+ export type DesignationRefundAttributes = DesignationRefundSchema['attributes'];
1727
+
1728
+ /**
1729
+ * A `Donation` record corresponds to a gift given to an `Organization` at a particular point in time.
1730
+ *
1731
+ * `Donation`s are added by first associating them to a `Batch` of donations, and then committing the `Batch`. When adding a `Donation` to an already-committed `Batch`, the `Donation` will automatically be committed as well, and immediately added to the donor's online history.
1732
+ *
1733
+ * #### Totals
1734
+ *
1735
+ * On donation collection endpoints, pass `?with_totals=true` to add the received total to the response `meta`. It respects any `where[...]` filters and is unaffected by pagination. Totals are not available when filtering by `fund_id`.
1736
+ *
1737
+ * - `received_total_amount_cents`: the total received, excluding refunded and failed donations.
1738
+ * - `currency`: the currency of the totals above, based on the organization's currency.
1739
+ *
1740
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/donation
1741
+ */
1742
+ export type Donation = PcoResource<DonationSchema>;
1743
+ /**
1744
+ * Attributes of {@link Donation}.
1745
+ *
1746
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/donation
1747
+ */
1748
+ export type DonationAttributes = DonationSchema['attributes'];
1749
+
1750
+ /**
1751
+ * A donor and their aggregate giving to an `Organization` (name, donor number, total received, donation count, and first gift date), summed over a requested date range, defaulting to the last 30 days.
1752
+ *
1753
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/donor_summary
1754
+ */
1755
+ export type DonorSummary = PcoResource<DonorSummarySchema>;
1756
+ /**
1757
+ * Attributes of {@link DonorSummary}.
1758
+ *
1759
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/donor_summary
1760
+ */
1761
+ export type DonorSummaryAttributes = DonorSummarySchema['attributes'];
1762
+
1763
+ /**
1764
+ * A `Fund` is a way of tracking the intent of `Donation`.
1765
+ *
1766
+ * All `Organization`s have a default `Fund` (usually named "General"), and creating additional `Fund`s allows donors to allocate their gift to a particular cause/effort.
1767
+ *
1768
+ * You can query for the default `Fund` using the `default` param:
1769
+ * ```
1770
+ * GET https://api.planningcenteronline.com/giving/v2/funds?where[default]=true
1771
+ * ```
1772
+ *
1773
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/fund
1774
+ */
1775
+ export type Fund = PcoResource<FundSchema>;
1776
+ /**
1777
+ * Attributes of {@link Fund}.
1778
+ *
1779
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/fund
1780
+ */
1781
+ export type FundAttributes = FundSchema['attributes'];
1782
+
1783
+ /**
1784
+ * An `InKindDonation` record represents a non-cash gift given to an `Organization` at a specific time.
1785
+ *
1786
+ * These include items like furniture, vehicles, services, or stocks. `InKindDonations` do not trigger
1787
+ * acknowledgment letter emails via the API — these must be sent from the Giving Admin UI.
1788
+ *
1789
+ * [More info](https://help.planningcenter.com/en/138390-in-kind-donations.html)
1790
+ *
1791
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/in_kind_donation
1792
+ */
1793
+ export type InKindDonation = PcoResource<InKindDonationSchema>;
1794
+ /**
1795
+ * Attributes of {@link InKindDonation}.
1796
+ *
1797
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/in_kind_donation
1798
+ */
1799
+ export type InKindDonationAttributes = InKindDonationSchema['attributes'];
1800
+
1801
+ /**
1802
+ * A `Label` is a way for Admins to manage and categorize `Donation`s.
1803
+ *
1804
+ * Multiple `Label`s can be added for each `Donation`, and these will only be displayed in the Giving admin interface, so donors never see them.
1805
+ *
1806
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/label
1807
+ */
1808
+ export type Label = PcoResource<LabelSchema>;
1809
+ /**
1810
+ * Attributes of {@link Label}.
1811
+ *
1812
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/label
1813
+ */
1814
+ export type LabelAttributes = LabelSchema['attributes'];
1815
+
1816
+ /**
1817
+ * A `Note` is a way for Giving Admins and Bookkeepers to communicate internally about a donation.
1818
+ * Notes are only visible in the Giving admin interface, not shown to donors. Each `Donation` can only
1819
+ * have a single note associated with it.
1820
+ *
1821
+ * To record notes from donors, consider using the [memo line feature](https://help.planningcenter.com/en/143011-manage-your-online-donation-form.html#UUID-0949cfc8-d262-e23a-0635-fa100ae331ba_section-id235309330415896-how-do-memo-lines-work-) instead.
1822
+ *
1823
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/note
1824
+ */
1825
+ export type Note = PcoResource<NoteSchema>;
1826
+ /**
1827
+ * Attributes of {@link Note}.
1828
+ *
1829
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/note
1830
+ */
1831
+ export type NoteAttributes = NoteSchema['attributes'];
1832
+
1833
+ /**
1834
+ * The root level `Organization` record which serves as a link to `Donation`s, `People`, `Fund`s, etc.
1835
+ *
1836
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/organization
1837
+ */
1838
+ export type Organization = PcoResource<OrganizationSchema>;
1839
+ /**
1840
+ * Attributes of {@link Organization}.
1841
+ *
1842
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/organization
1843
+ */
1844
+ export type OrganizationAttributes = OrganizationSchema['attributes'];
1845
+
1846
+ /**
1847
+ * Stored `PaymentMethod` information (`card` or `bank_account`) used by donors to make online `Donation`s.
1848
+ *
1849
+ * `PaymentMethod` data is for informational purposes only and cannot be used to create charges through the API.
1850
+ *
1851
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/payment_method
1852
+ */
1853
+ export type PaymentMethod = PcoResource<PaymentMethodSchema>;
1854
+ /**
1855
+ * Attributes of {@link PaymentMethod}.
1856
+ *
1857
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/payment_method
1858
+ */
1859
+ export type PaymentMethodAttributes = PaymentMethodSchema['attributes'];
1860
+
1861
+ /**
1862
+ * A donation's `PaymentSource` refers to the platform it originated from.
1863
+ *
1864
+ * `Donation`s made through Giving will be assigned the built-in `PaymentSource` "Planning Center". `Donation`s made through external platforms (Square, Pushpay, ect.) can be assigned a `PaymentSource` identifying them as such.
1865
+ *
1866
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/payment_source
1867
+ */
1868
+ export type PaymentSource = PcoResource<PaymentSourceSchema>;
1869
+ /**
1870
+ * Attributes of {@link PaymentSource}.
1871
+ *
1872
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/payment_source
1873
+ */
1874
+ export type PaymentSourceAttributes = PaymentSourceSchema['attributes'];
1875
+
1876
+ /**
1877
+ * A Planning Center `Person` record that has been added to Giving.
1878
+ *
1879
+ * The `Person` object in Planning Center is so crucial that we have an entire product dedicated to managing, keeping track of, editing, and creating these records and metadata around them. For additional info, take a look at the [Planning Center People API Docs](https://developer.planning.center/docs/#/apps/people).
1880
+ *
1881
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/person
1882
+ */
1883
+ export type Person = PcoResource<PersonSchema>;
1884
+ /**
1885
+ * Attributes of {@link Person}.
1886
+ *
1887
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/person
1888
+ */
1889
+ export type PersonAttributes = PersonSchema['attributes'];
1890
+
1891
+ /**
1892
+ * A `Pledge` made by a `Person` toward a particular `PledgeCampaign`.
1893
+ *
1894
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/pledge
1895
+ */
1896
+ export type Pledge = PcoResource<PledgeSchema>;
1897
+ /**
1898
+ * Attributes of {@link Pledge}.
1899
+ *
1900
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/pledge
1901
+ */
1902
+ export type PledgeAttributes = PledgeSchema['attributes'];
1903
+
1904
+ /**
1905
+ * A `PledgeCampaign` is a way to request and track long-terms commitments to a particular goal or project.
1906
+ *
1907
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/pledge_campaign
1908
+ */
1909
+ export type PledgeCampaign = PcoResource<PledgeCampaignSchema>;
1910
+ /**
1911
+ * Attributes of {@link PledgeCampaign}.
1912
+ *
1913
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/pledge_campaign
1914
+ */
1915
+ export type PledgeCampaignAttributes = PledgeCampaignSchema['attributes'];
1916
+
1917
+ /**
1918
+ * A `RecurringDonation` is represents a `Donation` that repeats on a set schedule (weekly, monthly, etc.)
1919
+ *
1920
+ * Data for `RecurringDonation`s is read-only; they can not be created or edited through the API.
1921
+ *
1922
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/recurring_donation
1923
+ */
1924
+ export type RecurringDonation = PcoResource<RecurringDonationSchema>;
1925
+ /**
1926
+ * Attributes of {@link RecurringDonation}.
1927
+ *
1928
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/recurring_donation
1929
+ */
1930
+ export type RecurringDonationAttributes = RecurringDonationSchema['attributes'];
1931
+
1932
+ /**
1933
+ * Much like a `Designation`, A `RecurringDonationDesignation` conveys how much of a `RecurringDonation` goes to a particular `Fund`.
1934
+ *
1935
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/recurring_donation_designation
1936
+ */
1937
+ export type RecurringDonationDesignation = PcoResource<RecurringDonationDesignationSchema>;
1938
+ /**
1939
+ * Attributes of {@link RecurringDonationDesignation}.
1940
+ *
1941
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/recurring_donation_designation
1942
+ */
1943
+ export type RecurringDonationDesignationAttributes = RecurringDonationDesignationSchema['attributes'];
1944
+
1945
+ /**
1946
+ * A `Refund` record holds information pertaining to a refunded `Donation`.
1947
+ *
1948
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/refund
1949
+ */
1950
+ export type Refund = PcoResource<RefundSchema>;
1951
+ /**
1952
+ * Attributes of {@link Refund}.
1953
+ *
1954
+ * @see https://api.planningcenteronline.com/docs/apps/giving/versions/2019-10-18/vertices/refund
1955
+ */
1956
+ export type RefundAttributes = RefundSchema['attributes'];