@justonemonkey/n8n-nodes-polar-sh 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 (456) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +112 -0
  3. package/dist/credentials/PolarApi.credentials.d.ts +10 -0
  4. package/dist/credentials/PolarApi.credentials.js +50 -0
  5. package/dist/credentials/PolarApi.credentials.js.map +1 -0
  6. package/dist/icons/polar.dark.svg +10 -0
  7. package/dist/icons/polar.svg +10 -0
  8. package/dist/nodes/Polar/Polar.node.d.ts +20 -0
  9. package/dist/nodes/Polar/Polar.node.js +140 -0
  10. package/dist/nodes/Polar/Polar.node.js.map +1 -0
  11. package/dist/nodes/Polar/Polar.node.json +14 -0
  12. package/dist/nodes/Polar/listSearch/getBenefits.d.ts +2 -0
  13. package/dist/nodes/Polar/listSearch/getBenefits.js +19 -0
  14. package/dist/nodes/Polar/listSearch/getBenefits.js.map +1 -0
  15. package/dist/nodes/Polar/listSearch/getCustomers.d.ts +2 -0
  16. package/dist/nodes/Polar/listSearch/getCustomers.js +19 -0
  17. package/dist/nodes/Polar/listSearch/getCustomers.js.map +1 -0
  18. package/dist/nodes/Polar/listSearch/getProducts.d.ts +2 -0
  19. package/dist/nodes/Polar/listSearch/getProducts.js +19 -0
  20. package/dist/nodes/Polar/listSearch/getProducts.js.map +1 -0
  21. package/dist/nodes/Polar/loadOptions/getBenefitOptions.d.ts +2 -0
  22. package/dist/nodes/Polar/loadOptions/getBenefitOptions.js +11 -0
  23. package/dist/nodes/Polar/loadOptions/getBenefitOptions.js.map +1 -0
  24. package/dist/nodes/Polar/loadOptions/getProductOptions.d.ts +2 -0
  25. package/dist/nodes/Polar/loadOptions/getProductOptions.js +12 -0
  26. package/dist/nodes/Polar/loadOptions/getProductOptions.js.map +1 -0
  27. package/dist/nodes/Polar/resources/benefit/create.d.ts +2 -0
  28. package/dist/nodes/Polar/resources/benefit/create.js +347 -0
  29. package/dist/nodes/Polar/resources/benefit/create.js.map +1 -0
  30. package/dist/nodes/Polar/resources/benefit/delete.d.ts +2 -0
  31. package/dist/nodes/Polar/resources/benefit/delete.js +15 -0
  32. package/dist/nodes/Polar/resources/benefit/delete.js.map +1 -0
  33. package/dist/nodes/Polar/resources/benefit/get.d.ts +2 -0
  34. package/dist/nodes/Polar/resources/benefit/get.js +15 -0
  35. package/dist/nodes/Polar/resources/benefit/get.js.map +1 -0
  36. package/dist/nodes/Polar/resources/benefit/getAll.d.ts +2 -0
  37. package/dist/nodes/Polar/resources/benefit/getAll.js +44 -0
  38. package/dist/nodes/Polar/resources/benefit/getAll.js.map +1 -0
  39. package/dist/nodes/Polar/resources/benefit/getGrants.d.ts +2 -0
  40. package/dist/nodes/Polar/resources/benefit/getGrants.js +49 -0
  41. package/dist/nodes/Polar/resources/benefit/getGrants.js.map +1 -0
  42. package/dist/nodes/Polar/resources/benefit/index.d.ts +2 -0
  43. package/dist/nodes/Polar/resources/benefit/index.js +71 -0
  44. package/dist/nodes/Polar/resources/benefit/index.js.map +1 -0
  45. package/dist/nodes/Polar/resources/benefit/update.d.ts +2 -0
  46. package/dist/nodes/Polar/resources/benefit/update.js +321 -0
  47. package/dist/nodes/Polar/resources/benefit/update.js.map +1 -0
  48. package/dist/nodes/Polar/resources/benefitGrant/getAll.d.ts +2 -0
  49. package/dist/nodes/Polar/resources/benefitGrant/getAll.js +41 -0
  50. package/dist/nodes/Polar/resources/benefitGrant/getAll.js.map +1 -0
  51. package/dist/nodes/Polar/resources/benefitGrant/index.d.ts +2 -0
  52. package/dist/nodes/Polar/resources/benefitGrant/index.js +26 -0
  53. package/dist/nodes/Polar/resources/benefitGrant/index.js.map +1 -0
  54. package/dist/nodes/Polar/resources/checkout/create.d.ts +2 -0
  55. package/dist/nodes/Polar/resources/checkout/create.js +211 -0
  56. package/dist/nodes/Polar/resources/checkout/create.js.map +1 -0
  57. package/dist/nodes/Polar/resources/checkout/get.d.ts +2 -0
  58. package/dist/nodes/Polar/resources/checkout/get.js +16 -0
  59. package/dist/nodes/Polar/resources/checkout/get.js.map +1 -0
  60. package/dist/nodes/Polar/resources/checkout/getAll.d.ts +2 -0
  61. package/dist/nodes/Polar/resources/checkout/getAll.js +62 -0
  62. package/dist/nodes/Polar/resources/checkout/getAll.js.map +1 -0
  63. package/dist/nodes/Polar/resources/checkout/index.d.ts +2 -0
  64. package/dist/nodes/Polar/resources/checkout/index.js +53 -0
  65. package/dist/nodes/Polar/resources/checkout/index.js.map +1 -0
  66. package/dist/nodes/Polar/resources/checkout/update.d.ts +2 -0
  67. package/dist/nodes/Polar/resources/checkout/update.js +185 -0
  68. package/dist/nodes/Polar/resources/checkout/update.js.map +1 -0
  69. package/dist/nodes/Polar/resources/checkoutLink/create.d.ts +2 -0
  70. package/dist/nodes/Polar/resources/checkoutLink/create.js +139 -0
  71. package/dist/nodes/Polar/resources/checkoutLink/create.js.map +1 -0
  72. package/dist/nodes/Polar/resources/checkoutLink/delete.d.ts +2 -0
  73. package/dist/nodes/Polar/resources/checkoutLink/delete.js +15 -0
  74. package/dist/nodes/Polar/resources/checkoutLink/delete.js.map +1 -0
  75. package/dist/nodes/Polar/resources/checkoutLink/get.d.ts +2 -0
  76. package/dist/nodes/Polar/resources/checkoutLink/get.js +15 -0
  77. package/dist/nodes/Polar/resources/checkoutLink/get.js.map +1 -0
  78. package/dist/nodes/Polar/resources/checkoutLink/getAll.d.ts +2 -0
  79. package/dist/nodes/Polar/resources/checkoutLink/getAll.js +33 -0
  80. package/dist/nodes/Polar/resources/checkoutLink/getAll.js.map +1 -0
  81. package/dist/nodes/Polar/resources/checkoutLink/index.d.ts +2 -0
  82. package/dist/nodes/Polar/resources/checkoutLink/index.js +62 -0
  83. package/dist/nodes/Polar/resources/checkoutLink/index.js.map +1 -0
  84. package/dist/nodes/Polar/resources/checkoutLink/update.d.ts +2 -0
  85. package/dist/nodes/Polar/resources/checkoutLink/update.js +112 -0
  86. package/dist/nodes/Polar/resources/checkoutLink/update.js.map +1 -0
  87. package/dist/nodes/Polar/resources/customField/create.d.ts +2 -0
  88. package/dist/nodes/Polar/resources/customField/create.js +160 -0
  89. package/dist/nodes/Polar/resources/customField/create.js.map +1 -0
  90. package/dist/nodes/Polar/resources/customField/delete.d.ts +2 -0
  91. package/dist/nodes/Polar/resources/customField/delete.js +15 -0
  92. package/dist/nodes/Polar/resources/customField/delete.js.map +1 -0
  93. package/dist/nodes/Polar/resources/customField/get.d.ts +2 -0
  94. package/dist/nodes/Polar/resources/customField/get.js +15 -0
  95. package/dist/nodes/Polar/resources/customField/get.js.map +1 -0
  96. package/dist/nodes/Polar/resources/customField/getAll.d.ts +2 -0
  97. package/dist/nodes/Polar/resources/customField/getAll.js +42 -0
  98. package/dist/nodes/Polar/resources/customField/getAll.js.map +1 -0
  99. package/dist/nodes/Polar/resources/customField/index.d.ts +2 -0
  100. package/dist/nodes/Polar/resources/customField/index.js +62 -0
  101. package/dist/nodes/Polar/resources/customField/index.js.map +1 -0
  102. package/dist/nodes/Polar/resources/customField/update.d.ts +2 -0
  103. package/dist/nodes/Polar/resources/customField/update.js +182 -0
  104. package/dist/nodes/Polar/resources/customField/update.js.map +1 -0
  105. package/dist/nodes/Polar/resources/customer/create.d.ts +2 -0
  106. package/dist/nodes/Polar/resources/customer/create.js +127 -0
  107. package/dist/nodes/Polar/resources/customer/create.js.map +1 -0
  108. package/dist/nodes/Polar/resources/customer/delete.d.ts +2 -0
  109. package/dist/nodes/Polar/resources/customer/delete.js +33 -0
  110. package/dist/nodes/Polar/resources/customer/delete.js.map +1 -0
  111. package/dist/nodes/Polar/resources/customer/get.d.ts +2 -0
  112. package/dist/nodes/Polar/resources/customer/get.js +25 -0
  113. package/dist/nodes/Polar/resources/customer/get.js.map +1 -0
  114. package/dist/nodes/Polar/resources/customer/getAll.d.ts +2 -0
  115. package/dist/nodes/Polar/resources/customer/getAll.js +43 -0
  116. package/dist/nodes/Polar/resources/customer/getAll.js.map +1 -0
  117. package/dist/nodes/Polar/resources/customer/getPaymentMethods.d.ts +2 -0
  118. package/dist/nodes/Polar/resources/customer/getPaymentMethods.js +17 -0
  119. package/dist/nodes/Polar/resources/customer/getPaymentMethods.js.map +1 -0
  120. package/dist/nodes/Polar/resources/customer/getState.d.ts +2 -0
  121. package/dist/nodes/Polar/resources/customer/getState.js +25 -0
  122. package/dist/nodes/Polar/resources/customer/getState.js.map +1 -0
  123. package/dist/nodes/Polar/resources/customer/index.d.ts +2 -0
  124. package/dist/nodes/Polar/resources/customer/index.js +108 -0
  125. package/dist/nodes/Polar/resources/customer/index.js.map +1 -0
  126. package/dist/nodes/Polar/resources/customer/update.d.ts +2 -0
  127. package/dist/nodes/Polar/resources/customer/update.js +85 -0
  128. package/dist/nodes/Polar/resources/customer/update.js.map +1 -0
  129. package/dist/nodes/Polar/resources/customerMeter/get.d.ts +2 -0
  130. package/dist/nodes/Polar/resources/customerMeter/get.js +15 -0
  131. package/dist/nodes/Polar/resources/customerMeter/get.js.map +1 -0
  132. package/dist/nodes/Polar/resources/customerMeter/getAll.d.ts +2 -0
  133. package/dist/nodes/Polar/resources/customerMeter/getAll.js +40 -0
  134. package/dist/nodes/Polar/resources/customerMeter/getAll.js.map +1 -0
  135. package/dist/nodes/Polar/resources/customerMeter/index.d.ts +2 -0
  136. package/dist/nodes/Polar/resources/customerMeter/index.js +35 -0
  137. package/dist/nodes/Polar/resources/customerMeter/index.js.map +1 -0
  138. package/dist/nodes/Polar/resources/customerSeat/assign.d.ts +2 -0
  139. package/dist/nodes/Polar/resources/customerSeat/assign.js +90 -0
  140. package/dist/nodes/Polar/resources/customerSeat/assign.js.map +1 -0
  141. package/dist/nodes/Polar/resources/customerSeat/claim.d.ts +2 -0
  142. package/dist/nodes/Polar/resources/customerSeat/claim.js +18 -0
  143. package/dist/nodes/Polar/resources/customerSeat/claim.js.map +1 -0
  144. package/dist/nodes/Polar/resources/customerSeat/getAll.d.ts +2 -0
  145. package/dist/nodes/Polar/resources/customerSeat/getAll.js +34 -0
  146. package/dist/nodes/Polar/resources/customerSeat/getAll.js.map +1 -0
  147. package/dist/nodes/Polar/resources/customerSeat/getClaimInfo.d.ts +2 -0
  148. package/dist/nodes/Polar/resources/customerSeat/getClaimInfo.js +17 -0
  149. package/dist/nodes/Polar/resources/customerSeat/getClaimInfo.js.map +1 -0
  150. package/dist/nodes/Polar/resources/customerSeat/index.d.ts +2 -0
  151. package/dist/nodes/Polar/resources/customerSeat/index.js +71 -0
  152. package/dist/nodes/Polar/resources/customerSeat/index.js.map +1 -0
  153. package/dist/nodes/Polar/resources/customerSeat/resendInvitation.d.ts +2 -0
  154. package/dist/nodes/Polar/resources/customerSeat/resendInvitation.js +15 -0
  155. package/dist/nodes/Polar/resources/customerSeat/resendInvitation.js.map +1 -0
  156. package/dist/nodes/Polar/resources/customerSeat/revoke.d.ts +2 -0
  157. package/dist/nodes/Polar/resources/customerSeat/revoke.js +15 -0
  158. package/dist/nodes/Polar/resources/customerSeat/revoke.js.map +1 -0
  159. package/dist/nodes/Polar/resources/customerSession/create.d.ts +2 -0
  160. package/dist/nodes/Polar/resources/customerSession/create.js +52 -0
  161. package/dist/nodes/Polar/resources/customerSession/create.js.map +1 -0
  162. package/dist/nodes/Polar/resources/customerSession/index.d.ts +2 -0
  163. package/dist/nodes/Polar/resources/customerSession/index.js +26 -0
  164. package/dist/nodes/Polar/resources/customerSession/index.js.map +1 -0
  165. package/dist/nodes/Polar/resources/discount/create.d.ts +2 -0
  166. package/dist/nodes/Polar/resources/discount/create.js +136 -0
  167. package/dist/nodes/Polar/resources/discount/create.js.map +1 -0
  168. package/dist/nodes/Polar/resources/discount/delete.d.ts +2 -0
  169. package/dist/nodes/Polar/resources/discount/delete.js +15 -0
  170. package/dist/nodes/Polar/resources/discount/delete.js.map +1 -0
  171. package/dist/nodes/Polar/resources/discount/get.d.ts +2 -0
  172. package/dist/nodes/Polar/resources/discount/get.js +15 -0
  173. package/dist/nodes/Polar/resources/discount/get.js.map +1 -0
  174. package/dist/nodes/Polar/resources/discount/getAll.d.ts +2 -0
  175. package/dist/nodes/Polar/resources/discount/getAll.js +18 -0
  176. package/dist/nodes/Polar/resources/discount/getAll.js.map +1 -0
  177. package/dist/nodes/Polar/resources/discount/index.d.ts +2 -0
  178. package/dist/nodes/Polar/resources/discount/index.js +62 -0
  179. package/dist/nodes/Polar/resources/discount/index.js.map +1 -0
  180. package/dist/nodes/Polar/resources/discount/update.d.ts +2 -0
  181. package/dist/nodes/Polar/resources/discount/update.js +124 -0
  182. package/dist/nodes/Polar/resources/discount/update.js.map +1 -0
  183. package/dist/nodes/Polar/resources/dispute/get.d.ts +2 -0
  184. package/dist/nodes/Polar/resources/dispute/get.js +15 -0
  185. package/dist/nodes/Polar/resources/dispute/get.js.map +1 -0
  186. package/dist/nodes/Polar/resources/dispute/getAll.d.ts +2 -0
  187. package/dist/nodes/Polar/resources/dispute/getAll.js +43 -0
  188. package/dist/nodes/Polar/resources/dispute/getAll.js.map +1 -0
  189. package/dist/nodes/Polar/resources/dispute/index.d.ts +2 -0
  190. package/dist/nodes/Polar/resources/dispute/index.js +35 -0
  191. package/dist/nodes/Polar/resources/dispute/index.js.map +1 -0
  192. package/dist/nodes/Polar/resources/event/get.d.ts +2 -0
  193. package/dist/nodes/Polar/resources/event/get.js +15 -0
  194. package/dist/nodes/Polar/resources/event/get.js.map +1 -0
  195. package/dist/nodes/Polar/resources/event/getAll.d.ts +2 -0
  196. package/dist/nodes/Polar/resources/event/getAll.js +98 -0
  197. package/dist/nodes/Polar/resources/event/getAll.js.map +1 -0
  198. package/dist/nodes/Polar/resources/event/index.d.ts +2 -0
  199. package/dist/nodes/Polar/resources/event/index.js +53 -0
  200. package/dist/nodes/Polar/resources/event/index.js.map +1 -0
  201. package/dist/nodes/Polar/resources/event/ingest.d.ts +2 -0
  202. package/dist/nodes/Polar/resources/event/ingest.js +112 -0
  203. package/dist/nodes/Polar/resources/event/ingest.js.map +1 -0
  204. package/dist/nodes/Polar/resources/event/listNames.d.ts +2 -0
  205. package/dist/nodes/Polar/resources/event/listNames.js +52 -0
  206. package/dist/nodes/Polar/resources/event/listNames.js.map +1 -0
  207. package/dist/nodes/Polar/resources/eventType/getAll.d.ts +2 -0
  208. package/dist/nodes/Polar/resources/eventType/getAll.js +68 -0
  209. package/dist/nodes/Polar/resources/eventType/getAll.js.map +1 -0
  210. package/dist/nodes/Polar/resources/eventType/index.d.ts +2 -0
  211. package/dist/nodes/Polar/resources/eventType/index.js +35 -0
  212. package/dist/nodes/Polar/resources/eventType/index.js.map +1 -0
  213. package/dist/nodes/Polar/resources/eventType/update.d.ts +2 -0
  214. package/dist/nodes/Polar/resources/eventType/update.js +34 -0
  215. package/dist/nodes/Polar/resources/eventType/update.js.map +1 -0
  216. package/dist/nodes/Polar/resources/file/completeUpload.d.ts +2 -0
  217. package/dist/nodes/Polar/resources/file/completeUpload.js +72 -0
  218. package/dist/nodes/Polar/resources/file/completeUpload.js.map +1 -0
  219. package/dist/nodes/Polar/resources/file/create.d.ts +2 -0
  220. package/dist/nodes/Polar/resources/file/create.js +118 -0
  221. package/dist/nodes/Polar/resources/file/create.js.map +1 -0
  222. package/dist/nodes/Polar/resources/file/delete.d.ts +2 -0
  223. package/dist/nodes/Polar/resources/file/delete.js +15 -0
  224. package/dist/nodes/Polar/resources/file/delete.js.map +1 -0
  225. package/dist/nodes/Polar/resources/file/getAll.d.ts +2 -0
  226. package/dist/nodes/Polar/resources/file/getAll.js +34 -0
  227. package/dist/nodes/Polar/resources/file/getAll.js.map +1 -0
  228. package/dist/nodes/Polar/resources/file/index.d.ts +2 -0
  229. package/dist/nodes/Polar/resources/file/index.js +62 -0
  230. package/dist/nodes/Polar/resources/file/index.js.map +1 -0
  231. package/dist/nodes/Polar/resources/file/update.d.ts +2 -0
  232. package/dist/nodes/Polar/resources/file/update.js +39 -0
  233. package/dist/nodes/Polar/resources/file/update.js.map +1 -0
  234. package/dist/nodes/Polar/resources/licenseKey/activate.d.ts +2 -0
  235. package/dist/nodes/Polar/resources/licenseKey/activate.js +39 -0
  236. package/dist/nodes/Polar/resources/licenseKey/activate.js.map +1 -0
  237. package/dist/nodes/Polar/resources/licenseKey/deactivate.d.ts +2 -0
  238. package/dist/nodes/Polar/resources/licenseKey/deactivate.js +35 -0
  239. package/dist/nodes/Polar/resources/licenseKey/deactivate.js.map +1 -0
  240. package/dist/nodes/Polar/resources/licenseKey/get.d.ts +2 -0
  241. package/dist/nodes/Polar/resources/licenseKey/get.js +16 -0
  242. package/dist/nodes/Polar/resources/licenseKey/get.js.map +1 -0
  243. package/dist/nodes/Polar/resources/licenseKey/getActivation.d.ts +2 -0
  244. package/dist/nodes/Polar/resources/licenseKey/getActivation.js +23 -0
  245. package/dist/nodes/Polar/resources/licenseKey/getActivation.js.map +1 -0
  246. package/dist/nodes/Polar/resources/licenseKey/getAll.d.ts +2 -0
  247. package/dist/nodes/Polar/resources/licenseKey/getAll.js +38 -0
  248. package/dist/nodes/Polar/resources/licenseKey/getAll.js.map +1 -0
  249. package/dist/nodes/Polar/resources/licenseKey/index.d.ts +2 -0
  250. package/dist/nodes/Polar/resources/licenseKey/index.js +85 -0
  251. package/dist/nodes/Polar/resources/licenseKey/index.js.map +1 -0
  252. package/dist/nodes/Polar/resources/licenseKey/update.d.ts +2 -0
  253. package/dist/nodes/Polar/resources/licenseKey/update.js +70 -0
  254. package/dist/nodes/Polar/resources/licenseKey/update.js.map +1 -0
  255. package/dist/nodes/Polar/resources/licenseKey/validate.d.ts +2 -0
  256. package/dist/nodes/Polar/resources/licenseKey/validate.js +69 -0
  257. package/dist/nodes/Polar/resources/licenseKey/validate.js.map +1 -0
  258. package/dist/nodes/Polar/resources/member/create.d.ts +2 -0
  259. package/dist/nodes/Polar/resources/member/create.js +64 -0
  260. package/dist/nodes/Polar/resources/member/create.js.map +1 -0
  261. package/dist/nodes/Polar/resources/member/delete.d.ts +2 -0
  262. package/dist/nodes/Polar/resources/member/delete.js +15 -0
  263. package/dist/nodes/Polar/resources/member/delete.js.map +1 -0
  264. package/dist/nodes/Polar/resources/member/get.d.ts +2 -0
  265. package/dist/nodes/Polar/resources/member/get.js +15 -0
  266. package/dist/nodes/Polar/resources/member/get.js.map +1 -0
  267. package/dist/nodes/Polar/resources/member/getAll.d.ts +2 -0
  268. package/dist/nodes/Polar/resources/member/getAll.js +45 -0
  269. package/dist/nodes/Polar/resources/member/getAll.js.map +1 -0
  270. package/dist/nodes/Polar/resources/member/getByExternalId.d.ts +2 -0
  271. package/dist/nodes/Polar/resources/member/getByExternalId.js +41 -0
  272. package/dist/nodes/Polar/resources/member/getByExternalId.js.map +1 -0
  273. package/dist/nodes/Polar/resources/member/index.d.ts +2 -0
  274. package/dist/nodes/Polar/resources/member/index.js +71 -0
  275. package/dist/nodes/Polar/resources/member/index.js.map +1 -0
  276. package/dist/nodes/Polar/resources/member/update.d.ts +2 -0
  277. package/dist/nodes/Polar/resources/member/update.js +45 -0
  278. package/dist/nodes/Polar/resources/member/update.js.map +1 -0
  279. package/dist/nodes/Polar/resources/meter/create.d.ts +2 -0
  280. package/dist/nodes/Polar/resources/meter/create.js +177 -0
  281. package/dist/nodes/Polar/resources/meter/create.js.map +1 -0
  282. package/dist/nodes/Polar/resources/meter/get.d.ts +2 -0
  283. package/dist/nodes/Polar/resources/meter/get.js +15 -0
  284. package/dist/nodes/Polar/resources/meter/get.js.map +1 -0
  285. package/dist/nodes/Polar/resources/meter/getAll.d.ts +2 -0
  286. package/dist/nodes/Polar/resources/meter/getAll.js +35 -0
  287. package/dist/nodes/Polar/resources/meter/getAll.js.map +1 -0
  288. package/dist/nodes/Polar/resources/meter/getQuantities.d.ts +2 -0
  289. package/dist/nodes/Polar/resources/meter/getQuantities.js +97 -0
  290. package/dist/nodes/Polar/resources/meter/getQuantities.js.map +1 -0
  291. package/dist/nodes/Polar/resources/meter/index.d.ts +2 -0
  292. package/dist/nodes/Polar/resources/meter/index.js +62 -0
  293. package/dist/nodes/Polar/resources/meter/index.js.map +1 -0
  294. package/dist/nodes/Polar/resources/meter/update.d.ts +2 -0
  295. package/dist/nodes/Polar/resources/meter/update.js +190 -0
  296. package/dist/nodes/Polar/resources/meter/update.js.map +1 -0
  297. package/dist/nodes/Polar/resources/order/create.d.ts +2 -0
  298. package/dist/nodes/Polar/resources/order/create.js +51 -0
  299. package/dist/nodes/Polar/resources/order/create.js.map +1 -0
  300. package/dist/nodes/Polar/resources/order/finalize.d.ts +2 -0
  301. package/dist/nodes/Polar/resources/order/finalize.js +31 -0
  302. package/dist/nodes/Polar/resources/order/finalize.js.map +1 -0
  303. package/dist/nodes/Polar/resources/order/generateInvoice.d.ts +2 -0
  304. package/dist/nodes/Polar/resources/order/generateInvoice.js +16 -0
  305. package/dist/nodes/Polar/resources/order/generateInvoice.js.map +1 -0
  306. package/dist/nodes/Polar/resources/order/get.d.ts +2 -0
  307. package/dist/nodes/Polar/resources/order/get.js +15 -0
  308. package/dist/nodes/Polar/resources/order/get.js.map +1 -0
  309. package/dist/nodes/Polar/resources/order/getAll.d.ts +2 -0
  310. package/dist/nodes/Polar/resources/order/getAll.js +101 -0
  311. package/dist/nodes/Polar/resources/order/getAll.js.map +1 -0
  312. package/dist/nodes/Polar/resources/order/getInvoice.d.ts +2 -0
  313. package/dist/nodes/Polar/resources/order/getInvoice.js +15 -0
  314. package/dist/nodes/Polar/resources/order/getInvoice.js.map +1 -0
  315. package/dist/nodes/Polar/resources/order/getReceipt.d.ts +2 -0
  316. package/dist/nodes/Polar/resources/order/getReceipt.js +15 -0
  317. package/dist/nodes/Polar/resources/order/getReceipt.js.map +1 -0
  318. package/dist/nodes/Polar/resources/order/index.d.ts +2 -0
  319. package/dist/nodes/Polar/resources/order/index.js +89 -0
  320. package/dist/nodes/Polar/resources/order/index.js.map +1 -0
  321. package/dist/nodes/Polar/resources/order/update.d.ts +2 -0
  322. package/dist/nodes/Polar/resources/order/update.js +31 -0
  323. package/dist/nodes/Polar/resources/order/update.js.map +1 -0
  324. package/dist/nodes/Polar/resources/organizationAccessToken/create.d.ts +2 -0
  325. package/dist/nodes/Polar/resources/organizationAccessToken/create.js +46 -0
  326. package/dist/nodes/Polar/resources/organizationAccessToken/create.js.map +1 -0
  327. package/dist/nodes/Polar/resources/organizationAccessToken/delete.d.ts +2 -0
  328. package/dist/nodes/Polar/resources/organizationAccessToken/delete.js +16 -0
  329. package/dist/nodes/Polar/resources/organizationAccessToken/delete.js.map +1 -0
  330. package/dist/nodes/Polar/resources/organizationAccessToken/getAll.d.ts +2 -0
  331. package/dist/nodes/Polar/resources/organizationAccessToken/getAll.js +7 -0
  332. package/dist/nodes/Polar/resources/organizationAccessToken/getAll.js.map +1 -0
  333. package/dist/nodes/Polar/resources/organizationAccessToken/index.d.ts +2 -0
  334. package/dist/nodes/Polar/resources/organizationAccessToken/index.js +63 -0
  335. package/dist/nodes/Polar/resources/organizationAccessToken/index.js.map +1 -0
  336. package/dist/nodes/Polar/resources/organizationAccessToken/update.d.ts +2 -0
  337. package/dist/nodes/Polar/resources/organizationAccessToken/update.js +43 -0
  338. package/dist/nodes/Polar/resources/organizationAccessToken/update.js.map +1 -0
  339. package/dist/nodes/Polar/resources/payment/get.d.ts +2 -0
  340. package/dist/nodes/Polar/resources/payment/get.js +15 -0
  341. package/dist/nodes/Polar/resources/payment/get.js.map +1 -0
  342. package/dist/nodes/Polar/resources/payment/getAll.d.ts +2 -0
  343. package/dist/nodes/Polar/resources/payment/getAll.js +72 -0
  344. package/dist/nodes/Polar/resources/payment/getAll.js.map +1 -0
  345. package/dist/nodes/Polar/resources/payment/index.d.ts +2 -0
  346. package/dist/nodes/Polar/resources/payment/index.js +35 -0
  347. package/dist/nodes/Polar/resources/payment/index.js.map +1 -0
  348. package/dist/nodes/Polar/resources/product/create.d.ts +2 -0
  349. package/dist/nodes/Polar/resources/product/create.js +259 -0
  350. package/dist/nodes/Polar/resources/product/create.js.map +1 -0
  351. package/dist/nodes/Polar/resources/product/get.d.ts +2 -0
  352. package/dist/nodes/Polar/resources/product/get.js +15 -0
  353. package/dist/nodes/Polar/resources/product/get.js.map +1 -0
  354. package/dist/nodes/Polar/resources/product/getAll.d.ts +2 -0
  355. package/dist/nodes/Polar/resources/product/getAll.js +68 -0
  356. package/dist/nodes/Polar/resources/product/getAll.js.map +1 -0
  357. package/dist/nodes/Polar/resources/product/index.d.ts +2 -0
  358. package/dist/nodes/Polar/resources/product/index.js +62 -0
  359. package/dist/nodes/Polar/resources/product/index.js.map +1 -0
  360. package/dist/nodes/Polar/resources/product/update.d.ts +2 -0
  361. package/dist/nodes/Polar/resources/product/update.js +102 -0
  362. package/dist/nodes/Polar/resources/product/update.js.map +1 -0
  363. package/dist/nodes/Polar/resources/product/updateBenefits.d.ts +2 -0
  364. package/dist/nodes/Polar/resources/product/updateBenefits.js +26 -0
  365. package/dist/nodes/Polar/resources/product/updateBenefits.js.map +1 -0
  366. package/dist/nodes/Polar/resources/refund/create.d.ts +2 -0
  367. package/dist/nodes/Polar/resources/refund/create.js +71 -0
  368. package/dist/nodes/Polar/resources/refund/create.js.map +1 -0
  369. package/dist/nodes/Polar/resources/refund/getAll.d.ts +2 -0
  370. package/dist/nodes/Polar/resources/refund/getAll.js +55 -0
  371. package/dist/nodes/Polar/resources/refund/getAll.js.map +1 -0
  372. package/dist/nodes/Polar/resources/refund/index.d.ts +2 -0
  373. package/dist/nodes/Polar/resources/refund/index.js +35 -0
  374. package/dist/nodes/Polar/resources/refund/index.js.map +1 -0
  375. package/dist/nodes/Polar/resources/subscription/cancel.d.ts +2 -0
  376. package/dist/nodes/Polar/resources/subscription/cancel.js +63 -0
  377. package/dist/nodes/Polar/resources/subscription/cancel.js.map +1 -0
  378. package/dist/nodes/Polar/resources/subscription/clearPendingUpdate.d.ts +2 -0
  379. package/dist/nodes/Polar/resources/subscription/clearPendingUpdate.js +17 -0
  380. package/dist/nodes/Polar/resources/subscription/clearPendingUpdate.js.map +1 -0
  381. package/dist/nodes/Polar/resources/subscription/create.d.ts +2 -0
  382. package/dist/nodes/Polar/resources/subscription/create.js +41 -0
  383. package/dist/nodes/Polar/resources/subscription/create.js.map +1 -0
  384. package/dist/nodes/Polar/resources/subscription/get.d.ts +2 -0
  385. package/dist/nodes/Polar/resources/subscription/get.js +15 -0
  386. package/dist/nodes/Polar/resources/subscription/get.js.map +1 -0
  387. package/dist/nodes/Polar/resources/subscription/getAll.d.ts +2 -0
  388. package/dist/nodes/Polar/resources/subscription/getAll.js +106 -0
  389. package/dist/nodes/Polar/resources/subscription/getAll.js.map +1 -0
  390. package/dist/nodes/Polar/resources/subscription/index.d.ts +2 -0
  391. package/dist/nodes/Polar/resources/subscription/index.js +116 -0
  392. package/dist/nodes/Polar/resources/subscription/index.js.map +1 -0
  393. package/dist/nodes/Polar/resources/subscription/pause.d.ts +2 -0
  394. package/dist/nodes/Polar/resources/subscription/pause.js +40 -0
  395. package/dist/nodes/Polar/resources/subscription/pause.js.map +1 -0
  396. package/dist/nodes/Polar/resources/subscription/resume.d.ts +2 -0
  397. package/dist/nodes/Polar/resources/subscription/resume.js +17 -0
  398. package/dist/nodes/Polar/resources/subscription/resume.js.map +1 -0
  399. package/dist/nodes/Polar/resources/subscription/revoke.d.ts +2 -0
  400. package/dist/nodes/Polar/resources/subscription/revoke.js +16 -0
  401. package/dist/nodes/Polar/resources/subscription/revoke.js.map +1 -0
  402. package/dist/nodes/Polar/resources/subscription/update.d.ts +2 -0
  403. package/dist/nodes/Polar/resources/subscription/update.js +62 -0
  404. package/dist/nodes/Polar/resources/subscription/update.js.map +1 -0
  405. package/dist/nodes/Polar/resources/subscription/updateBillingPeriod.d.ts +2 -0
  406. package/dist/nodes/Polar/resources/subscription/updateBillingPeriod.js +25 -0
  407. package/dist/nodes/Polar/resources/subscription/updateBillingPeriod.js.map +1 -0
  408. package/dist/nodes/Polar/resources/subscription/updateSeats.d.ts +2 -0
  409. package/dist/nodes/Polar/resources/subscription/updateSeats.js +38 -0
  410. package/dist/nodes/Polar/resources/subscription/updateSeats.js.map +1 -0
  411. package/dist/nodes/Polar/resources/webhookDelivery/getAll.d.ts +2 -0
  412. package/dist/nodes/Polar/resources/webhookDelivery/getAll.js +82 -0
  413. package/dist/nodes/Polar/resources/webhookDelivery/getAll.js.map +1 -0
  414. package/dist/nodes/Polar/resources/webhookDelivery/index.d.ts +2 -0
  415. package/dist/nodes/Polar/resources/webhookDelivery/index.js +40 -0
  416. package/dist/nodes/Polar/resources/webhookDelivery/index.js.map +1 -0
  417. package/dist/nodes/Polar/resources/webhookDelivery/redeliver.d.ts +2 -0
  418. package/dist/nodes/Polar/resources/webhookDelivery/redeliver.js +16 -0
  419. package/dist/nodes/Polar/resources/webhookDelivery/redeliver.js.map +1 -0
  420. package/dist/nodes/Polar/resources/webhookEndpoint/create.d.ts +2 -0
  421. package/dist/nodes/Polar/resources/webhookEndpoint/create.js +62 -0
  422. package/dist/nodes/Polar/resources/webhookEndpoint/create.js.map +1 -0
  423. package/dist/nodes/Polar/resources/webhookEndpoint/delete.d.ts +2 -0
  424. package/dist/nodes/Polar/resources/webhookEndpoint/delete.js +15 -0
  425. package/dist/nodes/Polar/resources/webhookEndpoint/delete.js.map +1 -0
  426. package/dist/nodes/Polar/resources/webhookEndpoint/get.d.ts +2 -0
  427. package/dist/nodes/Polar/resources/webhookEndpoint/get.js +15 -0
  428. package/dist/nodes/Polar/resources/webhookEndpoint/get.js.map +1 -0
  429. package/dist/nodes/Polar/resources/webhookEndpoint/getAll.d.ts +2 -0
  430. package/dist/nodes/Polar/resources/webhookEndpoint/getAll.js +7 -0
  431. package/dist/nodes/Polar/resources/webhookEndpoint/getAll.js.map +1 -0
  432. package/dist/nodes/Polar/resources/webhookEndpoint/index.d.ts +2 -0
  433. package/dist/nodes/Polar/resources/webhookEndpoint/index.js +91 -0
  434. package/dist/nodes/Polar/resources/webhookEndpoint/index.js.map +1 -0
  435. package/dist/nodes/Polar/resources/webhookEndpoint/resetSecret.d.ts +2 -0
  436. package/dist/nodes/Polar/resources/webhookEndpoint/resetSecret.js +16 -0
  437. package/dist/nodes/Polar/resources/webhookEndpoint/resetSecret.js.map +1 -0
  438. package/dist/nodes/Polar/resources/webhookEndpoint/update.d.ts +2 -0
  439. package/dist/nodes/Polar/resources/webhookEndpoint/update.js +72 -0
  440. package/dist/nodes/Polar/resources/webhookEndpoint/update.js.map +1 -0
  441. package/dist/nodes/Polar/shared/descriptions.d.ts +13 -0
  442. package/dist/nodes/Polar/shared/descriptions.js +346 -0
  443. package/dist/nodes/Polar/shared/descriptions.js.map +1 -0
  444. package/dist/nodes/Polar/shared/transport.d.ts +2 -0
  445. package/dist/nodes/Polar/shared/transport.js +16 -0
  446. package/dist/nodes/Polar/shared/transport.js.map +1 -0
  447. package/dist/nodes/Polar/shared/utils.d.ts +3 -0
  448. package/dist/nodes/Polar/shared/utils.js +13 -0
  449. package/dist/nodes/Polar/shared/utils.js.map +1 -0
  450. package/dist/nodes/PolarTrigger/PolarTrigger.node.d.ts +12 -0
  451. package/dist/nodes/PolarTrigger/PolarTrigger.node.js +182 -0
  452. package/dist/nodes/PolarTrigger/PolarTrigger.node.js.map +1 -0
  453. package/dist/nodes/PolarTrigger/PolarTrigger.node.json +11 -0
  454. package/dist/package.json +58 -0
  455. package/dist/tsconfig.tsbuildinfo +1 -0
  456. package/package.json +58 -0
@@ -0,0 +1,347 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benefitCreateDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const show = { resource: ['benefit'], operation: ['create'] };
6
+ const showCustom = { ...show, benefitType: ['custom'] };
7
+ const showDiscord = { ...show, benefitType: ['discord'] };
8
+ const showGitHub = { ...show, benefitType: ['github_repository'] };
9
+ const showDownloadables = { ...show, benefitType: ['downloadables'] };
10
+ const showLicenseKeys = { ...show, benefitType: ['license_keys'] };
11
+ const showMeterCredit = { ...show, benefitType: ['meter_credit'] };
12
+ const showSlack = { ...show, benefitType: ['slack_shared_channel'] };
13
+ const showFeatureFlag = { ...show, benefitType: ['feature_flag'] };
14
+ exports.benefitCreateDescription = [
15
+ {
16
+ displayName: 'Benefit Type',
17
+ name: 'benefitType',
18
+ type: 'options',
19
+ noDataExpression: true,
20
+ displayOptions: { show },
21
+ options: [
22
+ { name: 'Custom', value: 'custom', description: 'A generic benefit with a private note for the customer' },
23
+ { name: 'Discord', value: 'discord', description: 'Grants a role in a Discord server' },
24
+ { name: 'Downloadables', value: 'downloadables', description: 'Grants access to downloadable files' },
25
+ { name: 'Feature Flag', value: 'feature_flag', description: 'A simple on/off entitlement flag' },
26
+ { name: 'GitHub Repository', value: 'github_repository', description: 'Grants access to a GitHub repository' },
27
+ { name: 'License Keys', value: 'license_keys', description: 'Issues a license key' },
28
+ { name: 'Meter Credit', value: 'meter_credit', description: 'Credits usage-based meter units' },
29
+ { name: 'Slack Shared Channel', value: 'slack_shared_channel', description: 'Grants access to a Slack Connect shared channel' },
30
+ ],
31
+ default: 'custom',
32
+ routing: { send: { type: 'body', property: 'type' } },
33
+ },
34
+ {
35
+ displayName: 'Description',
36
+ name: 'description',
37
+ type: 'string',
38
+ default: '',
39
+ required: true,
40
+ displayOptions: { show },
41
+ description: 'Displayed on products having this benefit',
42
+ routing: { send: { type: 'body', property: 'description' } },
43
+ },
44
+ {
45
+ displayName: 'Visibility',
46
+ name: 'visibility',
47
+ type: 'options',
48
+ options: [
49
+ { name: 'Draft', value: 'draft' },
50
+ { name: 'Private', value: 'private' },
51
+ { name: 'Public', value: 'public' },
52
+ ],
53
+ default: 'public',
54
+ displayOptions: { show },
55
+ routing: { send: { type: 'body', property: 'visibility' } },
56
+ },
57
+ (0, descriptions_1.metadataField)('metadata', 'metadata', 'Metadata', show),
58
+ {
59
+ displayName: 'Note',
60
+ name: 'note',
61
+ type: 'string',
62
+ typeOptions: { rows: 3 },
63
+ default: '',
64
+ displayOptions: { show: showCustom },
65
+ description: 'Private note shared with customers who have this benefit granted',
66
+ routing: {
67
+ send: { type: 'body', property: 'properties', value: '={{ { note: $value || null } }}' },
68
+ },
69
+ },
70
+ {
71
+ displayName: 'Discord Guild Token',
72
+ name: 'guildToken',
73
+ type: 'string',
74
+ typeOptions: { password: true },
75
+ default: '',
76
+ required: true,
77
+ displayOptions: { show: showDiscord },
78
+ description: "The Discord server's bot/integration token used to manage role grants",
79
+ },
80
+ {
81
+ displayName: 'Discord Role ID',
82
+ name: 'roleId',
83
+ type: 'string',
84
+ default: '',
85
+ required: true,
86
+ displayOptions: { show: showDiscord },
87
+ description: 'The ID of the Discord role to grant',
88
+ },
89
+ {
90
+ displayName: 'Kick Member on Revocation',
91
+ name: 'kickMember',
92
+ type: 'boolean',
93
+ default: false,
94
+ required: true,
95
+ displayOptions: { show: showDiscord },
96
+ description: 'Whether to kick the member from the Discord server when this benefit is revoked',
97
+ routing: {
98
+ send: {
99
+ type: 'body',
100
+ property: 'properties',
101
+ value: '={{ { guild_token: $parameter["guildToken"], role_id: $parameter["roleId"], kick_member: $value } }}',
102
+ },
103
+ },
104
+ },
105
+ {
106
+ displayName: 'Repository Owner',
107
+ name: 'repositoryOwner',
108
+ type: 'string',
109
+ default: '',
110
+ required: true,
111
+ displayOptions: { show: showGitHub },
112
+ },
113
+ {
114
+ displayName: 'Repository Name',
115
+ name: 'repositoryName',
116
+ type: 'string',
117
+ default: '',
118
+ required: true,
119
+ displayOptions: { show: showGitHub },
120
+ },
121
+ {
122
+ displayName: 'Permission',
123
+ name: 'permission',
124
+ type: 'options',
125
+ options: [
126
+ { name: 'Admin', value: 'admin' },
127
+ { name: 'Maintain', value: 'maintain' },
128
+ { name: 'Pull', value: 'pull' },
129
+ { name: 'Push', value: 'push' },
130
+ { name: 'Triage', value: 'triage' },
131
+ ],
132
+ default: 'pull',
133
+ required: true,
134
+ displayOptions: { show: showGitHub },
135
+ routing: {
136
+ send: {
137
+ type: 'body',
138
+ property: 'properties',
139
+ value: '={{ { repository_owner: $parameter["repositoryOwner"], repository_name: $parameter["repositoryName"], permission: $value } }}',
140
+ },
141
+ },
142
+ },
143
+ {
144
+ displayName: 'File IDs',
145
+ name: 'fileIds',
146
+ type: 'fixedCollection',
147
+ typeOptions: { multipleValues: true, multipleValueButtonText: 'Add File ID' },
148
+ default: {},
149
+ displayOptions: { show: showDownloadables },
150
+ description: 'IDs of previously-uploaded Polar files to grant access to (at least one required)',
151
+ options: [
152
+ {
153
+ displayName: 'File',
154
+ name: 'file',
155
+ values: [{ displayName: 'File ID', name: 'id', type: 'string', default: '' }],
156
+ },
157
+ ],
158
+ routing: {
159
+ send: {
160
+ type: 'body',
161
+ property: 'properties',
162
+ value: '={{ { files: ($value.file || []).map((f) => f.id) } }}',
163
+ },
164
+ },
165
+ },
166
+ {
167
+ displayName: 'License Key Fields',
168
+ name: 'licenseKeyFields',
169
+ type: 'collection',
170
+ placeholder: 'Add Field',
171
+ default: {},
172
+ displayOptions: { show: showLicenseKeys },
173
+ options: [
174
+ {
175
+ displayName: 'Activation Limit',
176
+ name: 'activations_limit',
177
+ type: 'number',
178
+ default: 1,
179
+ },
180
+ {
181
+ displayName: 'Customer Can Manage Activations',
182
+ name: 'activations_enable_customer_admin',
183
+ type: 'boolean',
184
+ default: false,
185
+ description: 'Whether the customer can view/deactivate their own activations from the customer portal',
186
+ },
187
+ {
188
+ displayName: 'Expiration Timeframe',
189
+ name: 'expires_timeframe',
190
+ type: 'options',
191
+ options: [
192
+ { name: 'Day', value: 'day' },
193
+ { name: 'Month', value: 'month' },
194
+ { name: 'Year', value: 'year' },
195
+ ],
196
+ default: 'year',
197
+ },
198
+ {
199
+ displayName: 'Expires After (TTL)',
200
+ name: 'expires_ttl',
201
+ type: 'number',
202
+ default: 1,
203
+ },
204
+ { displayName: 'Key Prefix', name: 'prefix', type: 'string', default: '' },
205
+ {
206
+ displayName: 'Usage Limit',
207
+ name: 'limit_usage',
208
+ type: 'number',
209
+ default: 1,
210
+ },
211
+ ],
212
+ routing: {
213
+ send: {
214
+ type: 'body',
215
+ property: 'properties',
216
+ value: `={{ (() => {
217
+ const v = $value;
218
+ const properties = {};
219
+ if (v.prefix) properties.prefix = v.prefix;
220
+ if (v.expires_ttl && v.expires_timeframe) {
221
+ properties.expires = { ttl: v.expires_ttl, timeframe: v.expires_timeframe };
222
+ }
223
+ if (v.activations_limit) {
224
+ properties.activations = {
225
+ limit: v.activations_limit,
226
+ enable_customer_admin: !!v.activations_enable_customer_admin,
227
+ };
228
+ }
229
+ if (v.limit_usage) properties.limit_usage = v.limit_usage;
230
+ return properties;
231
+ })() }}`,
232
+ },
233
+ },
234
+ },
235
+ {
236
+ displayName: 'Units',
237
+ name: 'meterUnits',
238
+ type: 'number',
239
+ default: 0,
240
+ required: true,
241
+ displayOptions: { show: showMeterCredit },
242
+ description: 'Number of meter units to credit',
243
+ },
244
+ {
245
+ displayName: 'Rollover',
246
+ name: 'meterRollover',
247
+ type: 'boolean',
248
+ default: false,
249
+ required: true,
250
+ displayOptions: { show: showMeterCredit },
251
+ description: "Whether unused credited units roll over to the customer's next billing period",
252
+ },
253
+ {
254
+ displayName: 'Meter ID',
255
+ name: 'meterId',
256
+ type: 'string',
257
+ default: '',
258
+ required: true,
259
+ displayOptions: { show: showMeterCredit },
260
+ routing: {
261
+ send: {
262
+ type: 'body',
263
+ property: 'properties',
264
+ value: '={{ { units: $parameter["meterUnits"], rollover: $parameter["meterRollover"], meter_id: $value } }}',
265
+ },
266
+ },
267
+ },
268
+ {
269
+ displayName: 'Slack Integration ID',
270
+ name: 'slackIntegrationId',
271
+ type: 'string',
272
+ default: '',
273
+ required: true,
274
+ displayOptions: { show: showSlack },
275
+ description: 'The Polar Slack integration to use for this benefit',
276
+ },
277
+ {
278
+ displayName: 'Channel Name Template',
279
+ name: 'channelNameTemplate',
280
+ type: 'string',
281
+ default: '',
282
+ required: true,
283
+ displayOptions: { show: showSlack },
284
+ },
285
+ {
286
+ displayName: 'Slack Channel Additional Fields',
287
+ name: 'slackAdditionalFields',
288
+ type: 'collection',
289
+ placeholder: 'Add Field',
290
+ default: {},
291
+ displayOptions: { show: showSlack },
292
+ options: [
293
+ { displayName: 'Private Channel', name: 'private', type: 'boolean', default: true },
294
+ { displayName: 'Welcome Message', name: 'welcome_message', type: 'string', default: '' },
295
+ { displayName: 'Archive Channel on Revoke', name: 'archive_on_revoke', type: 'boolean', default: true },
296
+ {
297
+ displayName: 'Team Invitees',
298
+ name: 'team_invitees',
299
+ type: 'fixedCollection',
300
+ typeOptions: { multipleValues: true, multipleValueButtonText: 'Add Invitee' },
301
+ default: {},
302
+ options: [
303
+ {
304
+ displayName: 'Invitee',
305
+ name: 'invitee',
306
+ values: [{ displayName: 'Team Member Email or ID', name: 'value', type: 'string', default: '' }],
307
+ },
308
+ ],
309
+ },
310
+ ],
311
+ routing: {
312
+ send: {
313
+ type: 'body',
314
+ property: 'properties',
315
+ value: `={{ (() => {
316
+ const v = $value;
317
+ const properties = {
318
+ slack_integration_id: $parameter["slackIntegrationId"],
319
+ channel_name_template: $parameter["channelNameTemplate"],
320
+ };
321
+ if (v.private !== undefined) properties.private = v.private;
322
+ if (v.welcome_message) properties.welcome_message = v.welcome_message;
323
+ if (v.archive_on_revoke !== undefined) properties.archive_on_revoke = v.archive_on_revoke;
324
+ if (v.team_invitees && v.team_invitees.invitee && v.team_invitees.invitee.length) {
325
+ properties.team_invitees = v.team_invitees.invitee.map((i) => i.value);
326
+ }
327
+ return properties;
328
+ })() }}`,
329
+ },
330
+ },
331
+ },
332
+ {
333
+ displayName: 'Feature Flag Properties',
334
+ name: 'featureFlagProperties',
335
+ type: 'hidden',
336
+ default: {},
337
+ displayOptions: { show: showFeatureFlag },
338
+ routing: {
339
+ send: {
340
+ type: 'body',
341
+ property: 'properties',
342
+ value: '={{ ({}) }}',
343
+ },
344
+ },
345
+ },
346
+ ];
347
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/benefit/create.ts"],"names":[],"mappings":";;;AACA,4DAA0D;AAE1D,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE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BAChG;iBACD;aACD;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,YAAY;gBACtB,KAAK,EAAE;;;;;;;;;;;;;YAaC;aACR;SACD;KACD;IACD;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;QACzC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,YAAY;gBACtB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const benefitDeleteDescription: INodeProperties[];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benefitDeleteDescription = void 0;
4
+ const show = { resource: ['benefit'], operation: ['delete'] };
5
+ exports.benefitDeleteDescription = [
6
+ {
7
+ displayName: 'Benefit ID',
8
+ name: 'benefitId',
9
+ type: 'string',
10
+ default: '',
11
+ required: true,
12
+ displayOptions: { show },
13
+ },
14
+ ];
15
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/benefit/delete.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEjD,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const benefitGetDescription: INodeProperties[];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benefitGetDescription = void 0;
4
+ const show = { resource: ['benefit'], operation: ['get'] };
5
+ exports.benefitGetDescription = [
6
+ {
7
+ displayName: 'Benefit ID',
8
+ name: 'benefitId',
9
+ type: 'string',
10
+ default: '',
11
+ required: true,
12
+ displayOptions: { show },
13
+ },
14
+ ];
15
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/benefit/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;AAE9C,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const benefitGetAllDescription: INodeProperties[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benefitGetAllDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const show = { resource: ['benefit'], operation: ['getAll'] };
6
+ exports.benefitGetAllDescription = [
7
+ ...(0, descriptions_1.paginationProperties)(show),
8
+ {
9
+ displayName: 'Filters',
10
+ name: 'filters',
11
+ type: 'collection',
12
+ placeholder: 'Add Filter',
13
+ default: {},
14
+ displayOptions: { show },
15
+ options: [
16
+ {
17
+ displayName: 'Query',
18
+ name: 'query',
19
+ type: 'string',
20
+ default: '',
21
+ description: 'Search by benefit description',
22
+ routing: { request: { qs: { query: '={{$value}}' } } },
23
+ },
24
+ {
25
+ displayName: 'Type',
26
+ name: 'type',
27
+ type: 'options',
28
+ options: [
29
+ { name: 'Custom', value: 'custom' },
30
+ { name: 'Discord', value: 'discord' },
31
+ { name: 'Downloadables', value: 'downloadables' },
32
+ { name: 'Feature Flag', value: 'feature_flag' },
33
+ { name: 'GitHub Repository', value: 'github_repository' },
34
+ { name: 'License Keys', value: 'license_keys' },
35
+ { name: 'Meter Credit', value: 'meter_credit' },
36
+ { name: 'Slack Shared Channel', value: 'slack_shared_channel' },
37
+ ],
38
+ default: 'custom',
39
+ routing: { request: { qs: { type: '={{$value}}' } } },
40
+ },
41
+ ],
42
+ },
43
+ ];
44
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/benefit/getAll.ts"],"names":[],"mappings":";;;AACA,4DAAiE;AAEjE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEjD,QAAA,wBAAwB,GAAsB;IAC1D,GAAG,IAAA,mCAAoB,EAAC,IAAI,CAAC;IAC7B;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE;aACtD;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;oBACjD,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBACzD,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;iBAC/D;gBACD,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE;aACrD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const benefitGetGrantsDescription: INodeProperties[];
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benefitGetGrantsDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const show = { resource: ['benefit'], operation: ['getGrants'] };
6
+ exports.benefitGetGrantsDescription = [
7
+ {
8
+ displayName: 'Benefit ID',
9
+ name: 'benefitId',
10
+ type: 'string',
11
+ default: '',
12
+ required: true,
13
+ displayOptions: { show },
14
+ },
15
+ ...(0, descriptions_1.paginationProperties)(show),
16
+ {
17
+ displayName: 'Filters',
18
+ name: 'filters',
19
+ type: 'collection',
20
+ placeholder: 'Add Filter',
21
+ default: {},
22
+ displayOptions: { show },
23
+ options: [
24
+ {
25
+ displayName: 'Only Granted',
26
+ name: 'is_granted',
27
+ type: 'boolean',
28
+ default: true,
29
+ description: 'Whether to only return grants that are still active (not revoked)',
30
+ routing: { request: { qs: { is_granted: '={{$value}}' } } },
31
+ },
32
+ {
33
+ displayName: 'Customer ID',
34
+ name: 'customer_id',
35
+ type: 'string',
36
+ default: '',
37
+ routing: { request: { qs: { customer_id: '={{$value}}' } } },
38
+ },
39
+ {
40
+ displayName: 'Member ID',
41
+ name: 'member_id',
42
+ type: 'string',
43
+ default: '',
44
+ routing: { request: { qs: { member_id: '={{$value}}' } } },
45
+ },
46
+ ],
47
+ },
48
+ ];
49
+ //# sourceMappingURL=getGrants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGrants.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/benefit/getGrants.ts"],"names":[],"mappings":";;;AACA,4DAAiE;AAEjE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAEpD,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE;KACxB;IACD,GAAG,IAAA,mCAAoB,EAAC,IAAI,CAAC;IAC7B;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,mEAAmE;gBAChF,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE;aAC3D;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;aAC5D;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,EAAE;aAC1D;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const benefitDescription: INodeProperties[];
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.benefitDescription = void 0;
4
+ const getAll_1 = require("./getAll");
5
+ const get_1 = require("./get");
6
+ const create_1 = require("./create");
7
+ const update_1 = require("./update");
8
+ const delete_1 = require("./delete");
9
+ const getGrants_1 = require("./getGrants");
10
+ const showOnlyForBenefit = { resource: ['benefit'] };
11
+ exports.benefitDescription = [
12
+ {
13
+ displayName: 'Operation',
14
+ name: 'operation',
15
+ type: 'options',
16
+ noDataExpression: true,
17
+ displayOptions: { show: showOnlyForBenefit },
18
+ options: [
19
+ {
20
+ name: 'Create',
21
+ value: 'create',
22
+ action: 'Create a benefit',
23
+ description: 'Create a new benefit',
24
+ routing: { request: { method: 'POST', url: '=/benefits/' } },
25
+ },
26
+ {
27
+ name: 'Delete',
28
+ value: 'delete',
29
+ action: 'Delete a benefit',
30
+ description: 'Delete a benefit',
31
+ routing: { request: { method: 'DELETE', url: '=/benefits/{{$parameter["benefitId"]}}' } },
32
+ },
33
+ {
34
+ name: 'Get',
35
+ value: 'get',
36
+ action: 'Get a benefit',
37
+ description: 'Get a single benefit by ID',
38
+ routing: { request: { method: 'GET', url: '=/benefits/{{$parameter["benefitId"]}}' } },
39
+ },
40
+ {
41
+ name: 'Get Grants',
42
+ value: 'getGrants',
43
+ action: 'Get benefit grants',
44
+ description: 'List the grants of a benefit across customers',
45
+ routing: { request: { method: 'GET', url: '=/benefits/{{$parameter["benefitId"]}}/grants' } },
46
+ },
47
+ {
48
+ name: 'Get Many',
49
+ value: 'getAll',
50
+ action: 'Get many benefits',
51
+ description: 'Get many benefits',
52
+ routing: { request: { method: 'GET', url: '=/benefits/' } },
53
+ },
54
+ {
55
+ name: 'Update',
56
+ value: 'update',
57
+ action: 'Update a benefit',
58
+ description: 'Update an existing benefit',
59
+ routing: { request: { method: 'PATCH', url: '=/benefits/{{$parameter["benefitId"]}}' } },
60
+ },
61
+ ],
62
+ default: 'getAll',
63
+ },
64
+ ...getAll_1.benefitGetAllDescription,
65
+ ...get_1.benefitGetDescription,
66
+ ...create_1.benefitCreateDescription,
67
+ ...update_1.benefitUpdateDescription,
68
+ ...delete_1.benefitDeleteDescription,
69
+ ...getGrants_1.benefitGetGrantsDescription,
70
+ ];
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Polar/resources/benefit/index.ts"],"names":[],"mappings":";;;AACA,qCAAoD;AACpD,+BAA8C;AAC9C,qCAAoD;AACpD,qCAAoD;AACpD,qCAAoD;AACpD,2CAA0D;AAE1D,MAAM,kBAAkB,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;AAExC,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAA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