@delopay/sdk 0.428.0 → 0.437.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 (364) hide show
  1. package/README.md +5 -5
  2. package/dist/airwallexCard.cjs.map +1 -1
  3. package/dist/branding.cjs.map +1 -1
  4. package/dist/cardFormStyles.cjs.map +1 -1
  5. package/dist/checkoutSession.cjs +2 -2
  6. package/dist/checkoutSession.cjs.map +1 -1
  7. package/dist/checkoutSession.js +1 -1
  8. package/dist/chunk-244VZFFO.cjs.map +1 -1
  9. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  10. package/dist/{chunk-5JJ65Z7J.cjs → chunk-2QULWFRR.cjs} +33 -25
  11. package/dist/chunk-2QULWFRR.cjs.map +1 -0
  12. package/dist/chunk-34PC72O7.cjs.map +1 -1
  13. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  14. package/dist/chunk-3MS2HPSJ.js +25 -0
  15. package/dist/chunk-3MS2HPSJ.js.map +1 -0
  16. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  17. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  18. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  19. package/dist/chunk-4FOFD2A3.js +63 -0
  20. package/dist/chunk-4FOFD2A3.js.map +1 -0
  21. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  22. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  23. package/dist/{chunk-MFZ5FBS7.cjs → chunk-4XURI7WM.cjs} +3 -3
  24. package/dist/chunk-4XURI7WM.cjs.map +1 -0
  25. package/dist/{chunk-BEND2MZX.js → chunk-4Y3NBXOF.js} +11 -3
  26. package/dist/chunk-4Y3NBXOF.js.map +1 -0
  27. package/dist/chunk-5CITBN33.cjs.map +1 -1
  28. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  29. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  30. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  31. package/dist/{chunk-7ITPMVDB.cjs → chunk-6LFOM6HV.cjs} +11 -3
  32. package/dist/chunk-6LFOM6HV.cjs.map +1 -0
  33. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  34. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  35. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  36. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  37. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  38. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  39. package/dist/{chunk-UZ5V4N7M.js → chunk-7M32LYPT.js} +38 -30
  40. package/dist/chunk-7M32LYPT.js.map +1 -0
  41. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  42. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  43. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  44. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  45. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  46. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  47. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  48. package/dist/chunk-CAMALM35.cjs.map +1 -1
  49. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  50. package/dist/chunk-CKKNFFKP.cjs.map +1 -1
  51. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  52. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  53. package/dist/chunk-EEB2HDYL.cjs.map +1 -1
  54. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  55. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  56. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  57. package/dist/chunk-F3I5DOWV.cjs.map +1 -1
  58. package/dist/chunk-F46K5H3U.cjs +63 -0
  59. package/dist/chunk-F46K5H3U.cjs.map +1 -0
  60. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  61. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  62. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  63. package/dist/chunk-GA3KXPIF.cjs.map +1 -1
  64. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  65. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  66. package/dist/{chunk-FELTF5FF.js → chunk-GQYWT7BY.js} +2 -2
  67. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  68. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  69. package/dist/chunk-GWJ33GOK.cjs +63 -0
  70. package/dist/chunk-GWJ33GOK.cjs.map +1 -0
  71. package/dist/chunk-HBBEQWDU.cjs +1 -0
  72. package/dist/chunk-HBBEQWDU.cjs.map +1 -0
  73. package/dist/chunk-HLHML5ES.cjs.map +1 -1
  74. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  75. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  76. package/dist/{chunk-GU3VNMQ5.js → chunk-I23IC3T4.js} +20 -2
  77. package/dist/chunk-I23IC3T4.js.map +1 -0
  78. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  79. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  80. package/dist/chunk-I65QS3YQ.cjs.map +1 -1
  81. package/dist/{chunk-QMLU5DST.cjs → chunk-IH4OVCKM.cjs} +2 -2
  82. package/dist/chunk-IH4OVCKM.cjs.map +1 -0
  83. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  84. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  85. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  86. package/dist/{chunk-424542L2.cjs → chunk-K36XUB3A.cjs} +31 -5
  87. package/dist/chunk-K36XUB3A.cjs.map +1 -0
  88. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  89. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  90. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  91. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  92. package/dist/chunk-KOB6MOAV.cjs.map +1 -1
  93. package/dist/chunk-KSJ7JLR3.cjs.map +1 -1
  94. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  95. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  96. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  97. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  98. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  99. package/dist/chunk-MCNDMK7F.cjs.map +1 -1
  100. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  101. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  102. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  103. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  104. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  105. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  106. package/dist/chunk-OWP7XBY2.cjs.map +1 -1
  107. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  108. package/dist/chunk-P6JLNQ6L.cjs.map +1 -1
  109. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  110. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  111. package/dist/chunk-PWDY5D5S.cjs.map +1 -1
  112. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  113. package/dist/chunk-QKJZY32F.js +63 -0
  114. package/dist/chunk-QKJZY32F.js.map +1 -0
  115. package/dist/chunk-QKUWFMZP.cjs +69 -0
  116. package/dist/chunk-QKUWFMZP.cjs.map +1 -0
  117. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  118. package/dist/{chunk-WR6Z4I52.cjs → chunk-QXVMSF3D.cjs} +21 -3
  119. package/dist/chunk-QXVMSF3D.cjs.map +1 -0
  120. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  121. package/dist/chunk-R4FE6K43.cjs.map +1 -1
  122. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  123. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  124. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  125. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  126. package/dist/chunk-RSVLVW4L.cjs.map +1 -1
  127. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  128. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  129. package/dist/chunk-SQELICSX.cjs.map +1 -1
  130. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  131. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  132. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  133. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  134. package/dist/{chunk-K74UMEU4.js → chunk-UQDXXLLT.js} +27 -1
  135. package/dist/chunk-UQDXXLLT.js.map +1 -0
  136. package/dist/{chunk-H2NGR5JG.js → chunk-UUZ5TSEX.js} +2 -2
  137. package/dist/chunk-UUZ5TSEX.js.map +1 -0
  138. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  139. package/dist/chunk-VFPQUIEP.js +69 -0
  140. package/dist/chunk-VFPQUIEP.js.map +1 -0
  141. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  142. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  143. package/dist/chunk-W457XUA6.cjs.map +1 -1
  144. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  145. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  146. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  147. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  148. package/dist/chunk-XW7LMBMD.js +1 -0
  149. package/dist/chunk-YJQPKT6W.cjs.map +1 -1
  150. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  151. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  152. package/dist/chunk-ZUULK36E.cjs +25 -0
  153. package/dist/chunk-ZUULK36E.cjs.map +1 -0
  154. package/dist/client.cjs +3 -3
  155. package/dist/client.cjs.map +1 -1
  156. package/dist/client.d.cts +9 -0
  157. package/dist/client.d.ts +9 -0
  158. package/dist/client.js +2 -2
  159. package/dist/core.cjs +2 -2
  160. package/dist/core.cjs.map +1 -1
  161. package/dist/core.d.cts +5 -1
  162. package/dist/core.d.ts +5 -1
  163. package/dist/core.js +1 -1
  164. package/dist/currencies.cjs.map +1 -1
  165. package/dist/enigmaCardForm.cjs.map +1 -1
  166. package/dist/error.cjs.map +1 -1
  167. package/dist/eventStream.cjs.map +1 -1
  168. package/dist/exportDownload.cjs.map +1 -1
  169. package/dist/feeProgram.cjs.map +1 -1
  170. package/dist/index.cjs +33 -25
  171. package/dist/index.cjs.map +1 -1
  172. package/dist/index.d.cts +3 -1
  173. package/dist/index.d.ts +3 -1
  174. package/dist/index.js +40 -32
  175. package/dist/internal/resources/admin.cjs.map +1 -1
  176. package/dist/internal/resources/admin.d.cts +1 -1
  177. package/dist/internal/resources/admin.d.ts +1 -1
  178. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  179. package/dist/internal/resources/adminBranding.d.cts +1 -1
  180. package/dist/internal/resources/adminBranding.d.ts +1 -1
  181. package/dist/internal/resources/adminFeePlans.cjs +7 -0
  182. package/dist/internal/resources/adminFeePlans.cjs.map +1 -0
  183. package/dist/internal/resources/adminFeePlans.d.cts +39 -0
  184. package/dist/internal/resources/adminFeePlans.d.ts +39 -0
  185. package/dist/internal/resources/adminFeePlans.js +7 -0
  186. package/dist/internal/resources/adminFeePlans.js.map +1 -0
  187. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  188. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  189. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  190. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  191. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  192. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  193. package/dist/internal/resources/adminLive.cjs.map +1 -1
  194. package/dist/internal/resources/adminNotices.cjs +7 -0
  195. package/dist/internal/resources/adminNotices.cjs.map +1 -0
  196. package/dist/internal/resources/adminNotices.d.cts +43 -0
  197. package/dist/internal/resources/adminNotices.d.ts +43 -0
  198. package/dist/internal/resources/adminNotices.js +7 -0
  199. package/dist/internal/resources/adminNotices.js.map +1 -0
  200. package/dist/internal/resources/adminPortal.cjs +2 -2
  201. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  202. package/dist/internal/resources/adminPortal.d.cts +18 -2
  203. package/dist/internal/resources/adminPortal.d.ts +18 -2
  204. package/dist/internal/resources/adminPortal.js +1 -1
  205. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  206. package/dist/internal/resources/adminSupport.d.cts +1 -1
  207. package/dist/internal/resources/adminSupport.d.ts +1 -1
  208. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  209. package/dist/internal/resources/auditLogs.d.cts +1 -1
  210. package/dist/internal/resources/auditLogs.d.ts +1 -1
  211. package/dist/internal/resources/cache.cjs.map +1 -1
  212. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  213. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  214. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  215. package/dist/internal/resources/configs.cjs.map +1 -1
  216. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  217. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  218. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  219. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  220. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  221. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  222. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  223. package/dist/internal/resources/diagnostic.d.cts +1 -1
  224. package/dist/internal/resources/diagnostic.d.ts +1 -1
  225. package/dist/internal/resources/gsm.cjs.map +1 -1
  226. package/dist/internal/resources/gsm.d.cts +1 -1
  227. package/dist/internal/resources/gsm.d.ts +1 -1
  228. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  229. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  230. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  231. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  232. package/dist/internal/resources/platformBilling.d.cts +1 -1
  233. package/dist/internal/resources/platformBilling.d.ts +1 -1
  234. package/dist/internal/resources/platformFees.cjs.map +1 -1
  235. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  236. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  237. package/dist/internal/resources/platformSettings.d.cts +1 -1
  238. package/dist/internal/resources/platformSettings.d.ts +1 -1
  239. package/dist/internal.cjs +64 -46
  240. package/dist/internal.cjs.map +1 -1
  241. package/dist/internal.d.cts +10 -3
  242. package/dist/internal.d.ts +10 -3
  243. package/dist/internal.js +78 -60
  244. package/dist/internal.js.map +1 -1
  245. package/dist/listQuery.cjs.map +1 -1
  246. package/dist/panes.cjs.map +1 -1
  247. package/dist/paymentPresentation.cjs.map +1 -1
  248. package/dist/recordCounter.cjs.map +1 -1
  249. package/dist/resources/aiTools.cjs.map +1 -1
  250. package/dist/resources/analytics.cjs.map +1 -1
  251. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  252. package/dist/resources/apiKeys.cjs.map +1 -1
  253. package/dist/resources/audit.cjs.map +1 -1
  254. package/dist/resources/authentication.cjs.map +1 -1
  255. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  256. package/dist/resources/billing.cjs.map +1 -1
  257. package/dist/resources/buyerAccount.cjs.map +1 -1
  258. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  259. package/dist/resources/buyerConversations.cjs.map +1 -1
  260. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  261. package/dist/resources/buyerPortal.cjs.map +1 -1
  262. package/dist/resources/cards.cjs.map +1 -1
  263. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  264. package/dist/resources/checkoutMethods.cjs.map +1 -1
  265. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  266. package/dist/resources/checkoutTemplates.cjs +2 -2
  267. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  268. package/dist/resources/checkoutTemplates.d.cts +8 -2
  269. package/dist/resources/checkoutTemplates.d.ts +8 -2
  270. package/dist/resources/checkoutTemplates.js +1 -1
  271. package/dist/resources/connectors.cjs.map +1 -1
  272. package/dist/resources/contentEncryption.cjs +7 -0
  273. package/dist/resources/contentEncryption.cjs.map +1 -0
  274. package/dist/resources/contentEncryption.d.cts +31 -0
  275. package/dist/resources/contentEncryption.d.ts +31 -0
  276. package/dist/resources/contentEncryption.js +7 -0
  277. package/dist/resources/contentEncryption.js.map +1 -0
  278. package/dist/resources/costRules.cjs.map +1 -1
  279. package/dist/resources/customers.cjs.map +1 -1
  280. package/dist/resources/deploymentBranding.cjs.map +1 -1
  281. package/dist/resources/disputes.cjs.map +1 -1
  282. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  283. package/dist/resources/events.cjs.map +1 -1
  284. package/dist/resources/export.cjs.map +1 -1
  285. package/dist/resources/externalRecords.cjs.map +1 -1
  286. package/dist/resources/featureMatrix.cjs.map +1 -1
  287. package/dist/resources/fees.cjs.map +1 -1
  288. package/dist/resources/files.cjs.map +1 -1
  289. package/dist/resources/forex.cjs.map +1 -1
  290. package/dist/resources/identityVerifications.cjs.map +1 -1
  291. package/dist/resources/industries.cjs.map +1 -1
  292. package/dist/resources/invoiceSettings.cjs.map +1 -1
  293. package/dist/resources/invoices.cjs.map +1 -1
  294. package/dist/resources/live.cjs.map +1 -1
  295. package/dist/resources/mandates.cjs.map +1 -1
  296. package/dist/resources/merchantAccounts.cjs.map +1 -1
  297. package/dist/resources/messageTemplates.cjs.map +1 -1
  298. package/dist/resources/notices.cjs +7 -0
  299. package/dist/resources/notices.cjs.map +1 -0
  300. package/dist/resources/notices.d.cts +56 -0
  301. package/dist/resources/notices.d.ts +56 -0
  302. package/dist/resources/notices.js +7 -0
  303. package/dist/resources/notices.js.map +1 -0
  304. package/dist/resources/operationLimits.cjs.map +1 -1
  305. package/dist/resources/paymentLinks.cjs.map +1 -1
  306. package/dist/resources/paymentMethods.cjs.map +1 -1
  307. package/dist/resources/payments.cjs.map +1 -1
  308. package/dist/resources/payoutDestinations.cjs.map +1 -1
  309. package/dist/resources/payouts.cjs.map +1 -1
  310. package/dist/resources/paypalDisputes.cjs.map +1 -1
  311. package/dist/resources/persons.cjs.map +1 -1
  312. package/dist/resources/poll.cjs.map +1 -1
  313. package/dist/resources/processorCosts.cjs.map +1 -1
  314. package/dist/resources/processorImports.cjs.map +1 -1
  315. package/dist/resources/products.cjs.map +1 -1
  316. package/dist/resources/profileAcquirers.cjs.map +1 -1
  317. package/dist/resources/profiles.cjs.map +1 -1
  318. package/dist/resources/projects.cjs.map +1 -1
  319. package/dist/resources/refunds.cjs.map +1 -1
  320. package/dist/resources/regions.cjs.map +1 -1
  321. package/dist/resources/relay.cjs.map +1 -1
  322. package/dist/resources/risk.cjs.map +1 -1
  323. package/dist/resources/routing.cjs.map +1 -1
  324. package/dist/resources/search.cjs.map +1 -1
  325. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  326. package/dist/resources/settings.cjs.map +1 -1
  327. package/dist/resources/settlement.cjs +2 -2
  328. package/dist/resources/settlement.cjs.map +1 -1
  329. package/dist/resources/settlement.d.cts +17 -1
  330. package/dist/resources/settlement.d.ts +17 -1
  331. package/dist/resources/settlement.js +1 -1
  332. package/dist/resources/shopLabels.cjs.map +1 -1
  333. package/dist/resources/shops.cjs.map +1 -1
  334. package/dist/resources/stripeConnect.cjs.map +1 -1
  335. package/dist/resources/subscriptions.cjs.map +1 -1
  336. package/dist/resources/support.cjs.map +1 -1
  337. package/dist/resources/threeDsRules.cjs.map +1 -1
  338. package/dist/resources/users.cjs.map +1 -1
  339. package/dist/resources/vatRates.cjs.map +1 -1
  340. package/dist/resources/verification.cjs.map +1 -1
  341. package/dist/resources/webhooks.cjs.map +1 -1
  342. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  343. package/dist/{types-CAF6Fg1O.d.ts → types-B82KRgid.d.cts} +267 -3
  344. package/dist/{types-gi0y0Jy7.d.cts → types-CVKMSviB.d.ts} +267 -3
  345. package/dist/types.cjs.map +1 -1
  346. package/dist/types.d.cts +462 -5
  347. package/dist/types.d.ts +462 -5
  348. package/package.json +1 -1
  349. package/dist/chunk-424542L2.cjs.map +0 -1
  350. package/dist/chunk-5JJ65Z7J.cjs.map +0 -1
  351. package/dist/chunk-7ITPMVDB.cjs.map +0 -1
  352. package/dist/chunk-A4UPU5UE.js +0 -1
  353. package/dist/chunk-BEND2MZX.js.map +0 -1
  354. package/dist/chunk-GU3VNMQ5.js.map +0 -1
  355. package/dist/chunk-H2NGR5JG.js.map +0 -1
  356. package/dist/chunk-K74UMEU4.js.map +0 -1
  357. package/dist/chunk-MFZ5FBS7.cjs.map +0 -1
  358. package/dist/chunk-QMLU5DST.cjs.map +0 -1
  359. package/dist/chunk-UZ5V4N7M.js.map +0 -1
  360. package/dist/chunk-VHHQX52U.cjs +0 -1
  361. package/dist/chunk-VHHQX52U.cjs.map +0 -1
  362. package/dist/chunk-WR6Z4I52.cjs.map +0 -1
  363. /package/dist/{chunk-FELTF5FF.js.map → chunk-GQYWT7BY.js.map} +0 -0
  364. /package/dist/{chunk-A4UPU5UE.js.map → chunk-XW7LMBMD.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","../src/resources/buyerConversations.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACyBO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,MAAA,EAAqE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,sBAAA,EAAwB;AAAA,MACjD,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AAClE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9C8E;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerConversationAssign,\n BuyerConversationAttachment,\n BuyerConversationDetail,\n BuyerConversationList,\n BuyerConversationListQuery,\n BuyerConversationMessage,\n BuyerConversationMessageCreate,\n BuyerConversationMessagesQuery,\n BuyerConversationNote,\n BuyerConversationNoteCreate,\n BuyerConversationStart,\n BuyerConversationStatusUpdate,\n BuyerConversationSummary,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * Conversations between buyers and the shop's team. A buyer writes from the\n * buyer account or a shop's portal; the team reads and answers here. There is\n * one conversation per buyer, shop and mode, whoever on the team answers.\n *\n * Every route needs a dashboard session. The `BuyerConversations` area at\n * `Read` lists and opens conversations, `Edit` answers, starts one and adds\n * internal notes and uploads files for an answer, and `Write` assigns, closes and reopens. A caller scoped to one shop reaches\n * that shop's conversations only. Answers carry the team member's first name\n * to the buyer, never more of their name.\n */\nexport class BuyerConversations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * One page of the inbox, the latest message first unless `sort_by` says\n * otherwise, filtered by shop, status (one or several), assignee, mode or\n * buyer. `GET /buyer-conversations`\n */\n async list(params?: BuyerConversationListQuery): Promise<BuyerConversationList> {\n return this.request('GET', '/buyer-conversations', {\n query: csvQuery(params, ['status']),\n });\n }\n\n /**\n * Starts the conversation with a buyer at one shop, or adds to the one that\n * exists, with a first message. `POST /buyer-conversations`\n */\n async start(params: BuyerConversationStart): Promise<BuyerConversationDetail> {\n return this.request('POST', '/buyer-conversations', { body: params });\n }\n\n /**\n * One conversation and its newest messages, oldest first; `before` pages\n * back. `GET /buyer-conversations/{id}`\n */\n async retrieve(\n id: string,\n params?: BuyerConversationMessagesQuery,\n ): Promise<BuyerConversationDetail> {\n return this.request('GET', `/buyer-conversations/${encodeURIComponent(id)}`, {\n query: params as Record<string, string | number | null | undefined>,\n });\n }\n\n /**\n * A team member's answer. A closed conversation refuses it.\n * `POST /buyer-conversations/{id}/messages`\n */\n async reply(\n id: string,\n params: BuyerConversationMessageCreate,\n ): Promise<BuyerConversationMessage> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/messages`, {\n body: params,\n });\n }\n\n /**\n * A team member's internal note. Only the team reads it: the buyer never\n * sees a note, and a note does not move the conversation or mark it unread.\n * A closed conversation takes notes as well.\n * `POST /buyer-conversations/{id}/notes`\n */\n async addNote(id: string, params: BuyerConversationNoteCreate): Promise<BuyerConversationNote> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/notes`, {\n body: params,\n });\n }\n\n /**\n * Upload a file for the caller's next answer, under the shop's attachment\n * rules (`attachment_rules` on the conversation). It belongs to the caller\n * until an answer names it in `attachments`; one no answer took within a\n * day is cleared. Uploading again with the same `clientUploadId` returns\n * the file the first upload stored.\n * `POST /buyer-conversation-files/{conversation}`\n */\n async uploadFile(\n id: string,\n file: Blob,\n clientUploadId: string,\n fileName?: string,\n ): Promise<BuyerConversationAttachment> {\n const form = new FormData();\n form.append('client_upload_id', clientUploadId);\n if (fileName === undefined) form.append('file', file);\n else form.append('file', file, fileName);\n return this.request('POST', `/buyer-conversation-files/${encodeURIComponent(id)}`, {\n body: form,\n });\n }\n\n /**\n * Download a file a message of the conversation carries.\n * `GET /buyer-conversation-files/{conversation}/{file}`\n */\n async downloadFile(id: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Remove a file the caller uploaded that no answer took.\n * `DELETE /buyer-conversation-files/{conversation}/{file}`\n */\n async removeFile(id: string, fileId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n );\n }\n\n /**\n * The team has read the conversation up to its last accepted message.\n * `POST /buyer-conversations/{id}/read`\n */\n async markRead(id: string): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/read`);\n }\n\n /**\n * Hands the conversation to a team member, to the caller with `me`, or to\n * nobody with `null`. `POST /buyer-conversations/{id}/assign`\n */\n async assign(id: string, params: BuyerConversationAssign): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/assign`, {\n body: params,\n });\n }\n\n /**\n * Closes or reopens the conversation. Closing moves no money and decides\n * no case; it stops new messages until reopened.\n * `POST /buyer-conversations/{id}/status`\n */\n async setStatus(\n id: string,\n params: BuyerConversationStatusUpdate,\n ): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/status`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","../src/resources/buyerConversations.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACyBO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,IAAA,CAAK,MAAA,EAAqE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,sBAAA,EAAwB;AAAA,MACjD,KAAA,EAAO,wCAAA,MAAS,EAAQ,CAAC,QAAQ,CAAC;AAAA,IACpC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,KAAA,CAAM,MAAA,EAAkE;AAC5E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,sBAAA,EAAwB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACtE;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,QAAA,CACJ,EAAA,EACA,MAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,qBAAA,EAAwB,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA;AAChE,MAAA;AACR,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AASqC,EAAA;AACuC,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ+F,EAAA;AACnB,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAewC,EAAA;AACZ,IAAA;AACoB,IAAA;AACM,IAAA;AACb,IAAA;AACkB,IAAA;AACjD,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAM8D,EAAA;AAChD,IAAA;AACV,MAAA;AACuD,MAAA;AAChC,MAAA;AACzB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM4D,EAAA;AAC9C,IAAA;AACV,MAAA;AACuD,MAAA;AACzD,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM8D,EAAA;AACc,IAAA;AAC5E,EAAA;AAAA;AAAA;AAAA;AAAA;AAM6F,EAAA;AACjB,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACuC,IAAA;AAClE,MAAA;AACP,IAAA;AACH,EAAA;AACF;AD9C8E;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GW7IHYXR.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n BuyerConversationAssign,\n BuyerConversationAttachment,\n BuyerConversationDetail,\n BuyerConversationList,\n BuyerConversationListQuery,\n BuyerConversationMessage,\n BuyerConversationMessageCreate,\n BuyerConversationMessagesQuery,\n BuyerConversationNote,\n BuyerConversationNoteCreate,\n BuyerConversationStart,\n BuyerConversationStatusUpdate,\n BuyerConversationSummary,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\n/**\n * Conversations between buyers and the shop's team. A buyer writes from the\n * buyer account or a shop's portal; the team reads and answers here. There is\n * one conversation per buyer, shop and mode, whoever on the team answers.\n *\n * Every route needs a dashboard session. The `BuyerConversations` area at\n * `Read` lists and opens conversations, `Edit` answers, starts one and adds\n * internal notes and uploads files for an answer, and `Write` assigns, closes and reopens. A caller scoped to one shop reaches\n * that shop's conversations only. Answers carry the team member's first name\n * to the buyer, never more of their name.\n */\nexport class BuyerConversations {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * One page of the inbox, the latest message first unless `sort_by` says\n * otherwise, filtered by shop, status (one or several), assignee, mode or\n * buyer. `GET /buyer-conversations`\n */\n async list(params?: BuyerConversationListQuery): Promise<BuyerConversationList> {\n return this.request('GET', '/buyer-conversations', {\n query: csvQuery(params, ['status']),\n });\n }\n\n /**\n * Starts the conversation with a buyer at one shop, or adds to the one that\n * exists, with a first message. `POST /buyer-conversations`\n */\n async start(params: BuyerConversationStart): Promise<BuyerConversationDetail> {\n return this.request('POST', '/buyer-conversations', { body: params });\n }\n\n /**\n * One conversation and its newest messages, oldest first; `before` pages\n * back. `GET /buyer-conversations/{id}`\n */\n async retrieve(\n id: string,\n params?: BuyerConversationMessagesQuery,\n ): Promise<BuyerConversationDetail> {\n return this.request('GET', `/buyer-conversations/${encodeURIComponent(id)}`, {\n query: params as Record<string, string | number | null | undefined>,\n });\n }\n\n /**\n * A team member's answer. A closed conversation refuses it.\n * `POST /buyer-conversations/{id}/messages`\n */\n async reply(\n id: string,\n params: BuyerConversationMessageCreate,\n ): Promise<BuyerConversationMessage> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/messages`, {\n body: params,\n });\n }\n\n /**\n * A team member's internal note. Only the team reads it: the buyer never\n * sees a note, and a note does not move the conversation or mark it unread.\n * A closed conversation takes notes as well.\n * `POST /buyer-conversations/{id}/notes`\n */\n async addNote(id: string, params: BuyerConversationNoteCreate): Promise<BuyerConversationNote> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/notes`, {\n body: params,\n });\n }\n\n /**\n * Upload a file for the caller's next answer, under the shop's attachment\n * rules (`attachment_rules` on the conversation). It belongs to the caller\n * until an answer names it in `attachments`; one no answer took within a\n * day is cleared. Uploading again with the same `clientUploadId` returns\n * the file the first upload stored.\n * `POST /buyer-conversation-files/{conversation}`\n */\n async uploadFile(\n id: string,\n file: Blob,\n clientUploadId: string,\n fileName?: string,\n ): Promise<BuyerConversationAttachment> {\n const form = new FormData();\n form.append('client_upload_id', clientUploadId);\n if (fileName === undefined) form.append('file', file);\n else form.append('file', file, fileName);\n return this.request('POST', `/buyer-conversation-files/${encodeURIComponent(id)}`, {\n body: form,\n });\n }\n\n /**\n * Download a file a message of the conversation carries.\n * `GET /buyer-conversation-files/{conversation}/{file}`\n */\n async downloadFile(id: string, fileId: string): Promise<Blob> {\n return this.request(\n 'GET',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n { responseType: 'blob' },\n );\n }\n\n /**\n * Remove a file the caller uploaded that no answer took.\n * `DELETE /buyer-conversation-files/{conversation}/{file}`\n */\n async removeFile(id: string, fileId: string): Promise<void> {\n return this.request(\n 'DELETE',\n `/buyer-conversation-files/${encodeURIComponent(id)}/${encodeURIComponent(fileId)}`,\n );\n }\n\n /**\n * The team has read the conversation up to its last accepted message.\n * `POST /buyer-conversations/{id}/read`\n */\n async markRead(id: string): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/read`);\n }\n\n /**\n * Hands the conversation to a team member, to the caller with `me`, or to\n * nobody with `null`. `POST /buyer-conversations/{id}/assign`\n */\n async assign(id: string, params: BuyerConversationAssign): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/assign`, {\n body: params,\n });\n }\n\n /**\n * Closes or reopens the conversation. Closing moves no money and decides\n * no case; it stops new messages until reopened.\n * `POST /buyer-conversations/{id}/status`\n */\n async setStatus(\n id: string,\n params: BuyerConversationStatusUpdate,\n ): Promise<BuyerConversationSummary> {\n return this.request('POST', `/buyer-conversations/${encodeURIComponent(id)}/status`, {\n body: params,\n });\n }\n}\n"]}
@@ -0,0 +1,63 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/resources/notices.ts
2
+ var path = (noticeId) => `/notices/${encodeURIComponent(noticeId)}`;
3
+ var Notices = class {
4
+ constructor(request) {
5
+ this.request = request;
6
+ }
7
+ /**
8
+ * Whom the caller may write to: shops, projects, roles and members, and
9
+ * whether everyone. `GET /notices/audiences`
10
+ */
11
+ async audiences() {
12
+ return this.request("GET", "/notices/audiences");
13
+ }
14
+ /** How many people an audience reaches right now. Sends nothing. `POST /notices/preview` */
15
+ async preview(audience) {
16
+ return this.request("POST", "/notices/preview", { body: { audience } });
17
+ }
18
+ /**
19
+ * Send a notice now, at `send_at`, or keep it as a draft. Who receives it
20
+ * is fixed when it goes out. `POST /notices`
21
+ */
22
+ async create(params) {
23
+ return this.request("POST", "/notices", { body: params });
24
+ }
25
+ /** The history, newest first: sent and withdrawn notices by default. `GET /notices` */
26
+ async list(params) {
27
+ return this.request("GET", "/notices", { query: { ...params } });
28
+ }
29
+ /** One notice with everyone it reached and when each of them read it. `GET /notices/{noticeId}` */
30
+ async retrieve(noticeId) {
31
+ return this.request("GET", path(noticeId));
32
+ }
33
+ /**
34
+ * Change a draft or a scheduled notice, every field stated again, at the
35
+ * version read. `PUT /notices/{noticeId}`
36
+ */
37
+ async update(noticeId, params) {
38
+ return this.request("PUT", path(noticeId), { body: params });
39
+ }
40
+ /**
41
+ * Send a draft or a scheduled notice now, at the version read, to the people
42
+ * it reaches now. `POST /notices/{noticeId}/send`
43
+ */
44
+ async sendStored(noticeId, version) {
45
+ return this.request("POST", `${path(noticeId)}/send`, { body: { version } });
46
+ }
47
+ /** Delete a draft or a scheduled notice, at the version read. `DELETE /notices/{noticeId}` */
48
+ async delete(noticeId, version) {
49
+ return this.request("DELETE", path(noticeId), { query: { version } });
50
+ }
51
+ /**
52
+ * Take a sent notice back from everyone it reached; the history keeps it.
53
+ * `POST /notices/{noticeId}/withdraw`
54
+ */
55
+ async withdraw(noticeId) {
56
+ return this.request("POST", `${path(noticeId)}/withdraw`);
57
+ }
58
+ };
59
+
60
+
61
+
62
+ exports.Notices = Notices;
63
+ //# sourceMappingURL=chunk-GWJ33GOK.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GWJ33GOK.cjs","../src/resources/notices.ts"],"names":[],"mappings":"AAAA;ACaA,IAAM,KAAA,EAAO,CAAC,QAAA,EAAA,GAA6B,CAAA,SAAA,EAAY,kBAAA,CAAmB,QAAQ,CAAC,CAAA,CAAA;AAc9D;AAC8B,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAAA;AAAA;AAAA;AAMA,EAAA;AACD,IAAA;AACjD,EAAA;AAAA;AAGgE,EAAA;AACJ,IAAA;AAC5D,EAAA;AAAA;AAAA;AAAA;AAAA;AAM0D,EAAA;AACA,IAAA;AAC1D,EAAA;AAAA;AAG2D,EAAA;AACK,IAAA;AAChE,EAAA;AAAA;AAGwD,EAAA;AACb,IAAA;AAC3C,EAAA;AAAA;AAAA;AAAA;AAAA;AAM4E,EAAA;AACf,IAAA;AAC7D,EAAA;AAAA;AAAA;AAAA;AAAA;AAMqE,EAAA;AACL,IAAA;AAChE,EAAA;AAAA;AAGiE,EAAA;AACN,IAAA;AAC3D,EAAA;AAAA;AAAA;AAAA;AAAA;AAMwD,EAAA;AACE,IAAA;AAC1D,EAAA;AACF;AD/BkE;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-GWJ33GOK.cjs","sourcesContent":[null,"import type {\n Notice,\n NoticeAudience,\n NoticeAudienceOptions,\n NoticeCreateParams,\n NoticeDetail,\n NoticeList,\n NoticeListParams,\n NoticePreview,\n NoticeUpdateParams,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nconst path = (noticeId: string): string => `/notices/${encodeURIComponent(noticeId)}`;\n\n/**\n * Notices a merchant's people send each other: to everyone, the teams of\n * shops (optionally only some roles there), the shops of projects, roles or\n * chosen members. Recipients find them in their notification list.\n *\n * Signed-in dashboard sessions only, never an API key: a notice names its\n * sender. The caller reaches whom their role reaches: a shop role only its\n * own shop's people, and everyone only with the Announcements manage level.\n * Somebody outside the caller's reach is refused as unknown (400 `IR_07`).\n * A stale `version` answers 400 `IR_16` with `details.reason:\n * 'changed_elsewhere'`. At most 20 notices are sent per merchant in 24 hours.\n */\nexport class Notices {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Whom the caller may write to: shops, projects, roles and members, and\n * whether everyone. `GET /notices/audiences`\n */\n async audiences(): Promise<NoticeAudienceOptions> {\n return this.request('GET', '/notices/audiences');\n }\n\n /** How many people an audience reaches right now. Sends nothing. `POST /notices/preview` */\n async preview(audience: NoticeAudience): Promise<NoticePreview> {\n return this.request('POST', '/notices/preview', { body: { audience } });\n }\n\n /**\n * Send a notice now, at `send_at`, or keep it as a draft. Who receives it\n * is fixed when it goes out. `POST /notices`\n */\n async create(params: NoticeCreateParams): Promise<Notice> {\n return this.request('POST', '/notices', { body: params });\n }\n\n /** The history, newest first: sent and withdrawn notices by default. `GET /notices` */\n async list(params?: NoticeListParams): Promise<NoticeList> {\n return this.request('GET', '/notices', { query: { ...params } });\n }\n\n /** One notice with everyone it reached and when each of them read it. `GET /notices/{noticeId}` */\n async retrieve(noticeId: string): Promise<NoticeDetail> {\n return this.request('GET', path(noticeId));\n }\n\n /**\n * Change a draft or a scheduled notice, every field stated again, at the\n * version read. `PUT /notices/{noticeId}`\n */\n async update(noticeId: string, params: NoticeUpdateParams): Promise<Notice> {\n return this.request('PUT', path(noticeId), { body: params });\n }\n\n /**\n * Send a draft or a scheduled notice now, at the version read, to the people\n * it reaches now. `POST /notices/{noticeId}/send`\n */\n async sendStored(noticeId: string, version: number): Promise<Notice> {\n return this.request('POST', `${path(noticeId)}/send`, { body: { version } });\n }\n\n /** Delete a draft or a scheduled notice, at the version read. `DELETE /notices/{noticeId}` */\n async delete(noticeId: string, version: number): Promise<Notice> {\n return this.request('DELETE', path(noticeId), { query: { version } });\n }\n\n /**\n * Take a sent notice back from everyone it reached; the history keeps it.\n * `POST /notices/{noticeId}/withdraw`\n */\n async withdraw(noticeId: string): Promise<NoticeDetail> {\n return this.request('POST', `${path(noticeId)}/withdraw`);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=chunk-HBBEQWDU.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HBBEQWDU.cjs"],"names":[],"mappings":"AAAA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HBBEQWDU.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-HLHML5ES.cjs","../src/resources/analytics.ts"],"names":[],"mappings":"AAAA;ACyBO,IAAM,UAAA,EAAN,MAAgB;AAAA,EACrB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalD,MAAM,KAAA,CAAM,MAAA,EAAiE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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,EAAA;AACqC,IAAA;AACzE,EAAA;AACF;AD9D+E;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-HLHML5ES.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport type {\n AnalyticsScopeRequest,\n AnalyticsScopeResponse,\n AnalyticsShopsRequest,\n AnalyticsShopsResponse,\n AnalyticsConnectorsRequest,\n AnalyticsConnectorsResponse,\n ClientAnalyticsRequest,\n IndustryAnalytics,\n IndustryAnalyticsRequest,\n DevicesAnalyticsResponse,\n GeoAnalyticsResponse,\n DeviceDrillRequest,\n GeoDrillRequest,\n DrillResponse,\n SubscriptionAnalyticsRequest,\n SubscriptionAnalyticsResponse,\n SubscriptionDrillRequest,\n ScopeDrillRequest,\n AnalyticsExclusionRequest,\n AnalyticsExclusionResponse,\n AnalyticsExclusionsResponse,\n} from '../types';\n\nexport class Analytics {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Scoped, drill-level analytics dashboard for the authenticated merchant\n * (the same engine as the admin portal, pinned server-side to your own\n * merchant). The server ignores `merchant_id` — it always scopes to your\n * merchant, and to your single shop for profile-scoped users — so pass only\n * `project_id` / `shop_id` to drill and the window / `sections` fields.\n * Returns one drill level: the scope's daily series + previous window,\n * processor mix and direct children. Accepts a dashboard session or an API\n * key, including a `statistics_read` key; a shop-bound key reads only its\n * shop. `GET /analytics/scope`\n */\n async scope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/scope', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Period Reports: the scoped daily series, pinned exactly like `scope`, but\n * gated on the Period Reports permission area instead of Payment\n * Performance. Pass `timezone` and each day bucket is a local calendar day,\n * which sums exactly into calendar weeks and months. Answers only the\n * `series`, `previous` and `children` blocks and ignores country and device\n * filters. Accepts a dashboard session or an API key, including a\n * `statistics_read` key. `GET /analytics/reports`\n */\n async reports(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/reports', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Shop comparison: one series per shop over one window, with whole-window\n * and previous-window totals, so shops can be drawn side by side. Pinned\n * server-side to your own merchant (`merchant_id` is ignored), and to your\n * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.\n * Shops without activity are included, sorted by name. Hourly buckets are\n * refused for windows over 7 days. Accepts an API key like `scope`.\n * `GET /analytics/shops`\n */\n async shops(params?: AnalyticsShopsRequest): Promise<AnalyticsShopsResponse> {\n return this.request('GET', '/analytics/shops', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * PSP analytics: routed payments, outcomes, volume and payment sizes per\n * connector and per connector account over one window, with the breakdown\n * by project and shop. Pinned server-side to your own merchant\n * (`merchant_id` is ignored) and to your shop for a shop-scoped user. Live\n * payments unless `test_mode` is `true`. Amounts are in USD unless\n * `currency` names one. Pass `sections` to compute only some blocks.\n * A role that may see no processor gets a 403.\n * `GET /analytics/connectors`\n */\n async connectors(params?: AnalyticsConnectorsRequest): Promise<AnalyticsConnectorsResponse> {\n return this.request('GET', '/analytics/connectors', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Industry analytics: payments, volume, outcomes, refunds and disputes by\n * the industry each shop had on the UTC day a payment was created, as a tree\n * of industries, sub-industries, the merchant's own industries and the\n * shops without one, each with the previous window, a series, the processor\n * and country split and the largest shops. Pinned server-side to your own\n * merchant (`merchant_id` is ignored). Needs the `IndustryAnalytics` area,\n * which no other analytics grant implies, at merchant level: a shop-scoped\n * role or a shop-bound key gets a 403 (`IR_22`). Live payments unless\n * `test_mode` is `true`; amounts in USD unless `currency` names one.\n * `GET /analytics/industries`\n */\n async industries(params?: IndustryAnalyticsRequest): Promise<IndustryAnalytics> {\n return this.request('GET', '/analytics/industries', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Device analytics over the canonical client-context observation per\n * payment (browser/platform families, device classes and models, checkout\n * channel mix, time-to-pay), pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the\n * client-context optimisation-use switch: when it is off the server answers\n * 200 with `enabled: false` and a caveat naming the switch. Accepts an API\n * key like `scope`. `GET /analytics/devices`\n */\n async devices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse> {\n return this.request('GET', '/analytics/devices', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Geo analytics over the canonical client-context observation per payment:\n * country totals, city bubbles (IP mode), buyer languages, buyer-local\n * purchase hours and the IP-vs-billing mismatch share. `mode` selects the\n * location claim (`ip` default, `billing`); the two are never coalesced.\n * Same drill, window, gating and API-key contract as `devices`.\n * `GET /analytics/geo`\n */\n async geo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse> {\n return this.request('GET', '/analytics/geo', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The recent payments behind one clicked geo target: a map country (in the\n * active claim mode), optionally narrowed to an IP-resolved city, or one\n * buyer-local heatmap cell (`dow` + `hour`, paid sessions only). Same\n * window/scope/filter and gating contract as `geo`; capped at 50 rows,\n * newest first, with the full match count alongside.\n * `GET /analytics/geo/transactions`\n */\n async geoTransactions(params: GeoDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/geo/transactions', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The recent payments behind one clicked device target: exactly one of a\n * browser family, a platform family, an identified device-model label, or\n * a device class. Family/model targets are resolved server-side with the\n * same classifiers the cards use. Same window/scope/filter and gating\n * contract as `devices`; 50 rows per page (`offset` for the next page),\n * newest first, with the full match count alongside.\n * `GET /analytics/devices/transactions`\n */\n async deviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/devices/transactions', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one clicked element of the payments dashboard: a\n * processor-donut slice, a payment-method slice, an outcome segment of a\n * series bar, a series bucket, or a breakdown row — combinable, with\n * `target_bucket` narrowing every other target. The outcome mapping is the\n * one the series and donuts are folded with, expanded server-side, so the\n * list is what the clicked number was made of. Rows and the whole-match\n * `summary` carry USD figures converted with the dashboard's own rates.\n * Same window/scope/chip contract as `scope`; sorted per `sort_on` /\n * `sort_by`, `limit` rows (default 50) per page, `offset` for the next.\n * `GET /analytics/scope/transactions`\n */\n async scopeTransactions(params: ScopeDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/scope/transactions', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point, and the query builder\n // only ever reads own enumerable keys.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Subscription analytics over `subscription` and `invoice`: estimated\n * recurring volume, the invoice funnel, movement (new / expansion /\n * contraction / churn), both processor axes, plan mix and the breakdown one\n * level below the scope. Pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`.\n *\n * Half the figures are **stocks** — a snapshot at the window's end rather\n * than a sum over it — so `est_monthly_volume_usd` and `active` can match\n * across a 7-day and a 30-day window while `billed_volume_usd` does not.\n * Day granularity only. Accepts an API key like `scope`.\n * `GET /analytics/subscriptions`\n */\n async subscriptions(\n params?: SubscriptionAnalyticsRequest,\n ): Promise<SubscriptionAnalyticsResponse> {\n return this.request('GET', '/analytics/subscriptions', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The billing cycles behind one clicked element of the subscription\n * dashboard: an invoice outcome, a processor slice on either axis, a plan\n * row, a subscription status, a movement component, a series bucket or a\n * breakdown row. Same window/scope/filter contract as `subscriptions`; 50\n * rows per page (`offset` for the next), newest first, with the full match\n * count alongside.\n *\n * A cycle that never reached a payment is listed too — that is what \"still\n * unpaid\" means — and carries its invoice id as `payment_id` with\n * `invoice_id` set to the same value, so you can always tell which you got.\n * `GET /analytics/subscriptions/list`\n */\n async subscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/subscriptions/list', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point, and the query builder\n // only ever reads own enumerable keys.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Every analytics exclusion of the merchant, with the payments each one\n * matched in the lookback window.\n *\n * These rules change what the merchant's own dashboards count. Financial\n * records and transaction lists are never filtered by them.\n *\n * `matched_payments` counts overlap between rules: a payment matched by\n * three rules is counted once by each, so the values are not additive. The\n * envelope's `best_effort` and `lookback_days` apply to every row — matching\n * runs on client signals that may be absent or expired, within that window.\n * `GET /analytics/exclusions`\n */\n async listExclusions(): Promise<AnalyticsExclusionsResponse> {\n return this.request('GET', '/analytics/exclusions');\n }\n\n /**\n * Write a new exclusion. A shop-scoped user must name their own shop in\n * `profile_id`; omitting it applies the rule to every shop of the merchant.\n * Omitting `surfaces` means **all five**, not none.\n * `POST /analytics/exclusions`\n */\n async createExclusion(rule: AnalyticsExclusionRequest): Promise<AnalyticsExclusionResponse> {\n return this.request('POST', '/analytics/exclusions', { body: rule });\n }\n\n /**\n * Replace a stored exclusion **completely**. This is not a patch: every\n * field you leave out reverts to its default rather than keeping its stored\n * value, so send the whole rule — including an explicit `null` for a\n * `profile_id`, `value`, `valid_from`, `valid_until` or `note` you mean to\n * clear, and the full `surfaces` list you mean to keep.\n * `PUT /analytics/exclusions/{id}`\n */\n async updateExclusion(\n id: string,\n rule: AnalyticsExclusionRequest,\n options?: RequestExtras,\n ): Promise<AnalyticsExclusionResponse> {\n return this.request('PUT', `/analytics/exclusions/${encodeURIComponent(id)}`, {\n body: rule,\n ...options,\n });\n }\n\n /**\n * Delete a stored exclusion. Returns the rule as it was, so a caller can\n * say what it removed. `DELETE /analytics/exclusions/{id}`\n */\n async deleteExclusion(id: string): Promise<AnalyticsExclusionResponse> {\n return this.request('DELETE', `/analytics/exclusions/${encodeURIComponent(id)}`);\n }\n\n /** Global search. `POST /analytics/search` */\n async search(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/search', { body: params });\n }\n\n /** Domain-specific search. `POST /analytics/search/{domain}` */\n async searchDomain(\n domain: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/analytics/search/${encodeURIComponent(domain)}`, {\n body: params,\n });\n }\n\n /** Get analytics info. `GET /analytics/{domain}/info` */\n async getInfo(domain: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/analytics/${encodeURIComponent(domain)}/info`);\n }\n\n /** Get API event logs. `GET /analytics/api-event-logs` */\n async apiEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/api-event-logs', { query: params });\n }\n\n /** Get SDK event logs. `POST /analytics/sdk-event-logs` */\n async sdkEventLogs(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/sdk-event-logs', { body: params });\n }\n\n /** Get connector event logs. `GET /analytics/connector-event-logs` */\n async connectorEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/connector-event-logs', { query: params });\n }\n\n /**\n * Get routing event logs. `GET /analytics/routing-event-logs`\n *\n * @deprecated The service answers this only from a ClickHouse analytics\n * store; with SQL analytics, the default configuration, it answers an\n * error. To learn why a payment used a connector, read\n * `payments.routingDecisions(paymentId)`,\n * the routing decision recorded behind each attempt. This method stays for\n * compatibility and still sends the same request.\n */\n async routingEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/routing-event-logs', { query: params });\n }\n\n /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */\n async outgoingWebhookEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/outgoing-webhook-event-logs', { query: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HLHML5ES.cjs","../src/resources/analytics.ts"],"names":[],"mappings":"AAAA;ACyBO,IAAM,UAAA,EAAN,MAAgB;AAAA,EACrB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalD,MAAM,KAAA,CAAM,MAAA,EAAiE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAM,OAAA,CAAQ,MAAA,EAAiE;AAC7E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,oBAAA,EAAsB;AAAA,MAC/C,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAM,KAAA,CAAM,MAAA,EAAiE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,MAAM,UAAA,CAAW,MAAA,EAA2E;AAC1F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,uBAAA,EAAyB;AAAA,MAClD,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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AAA,sBAAA,EAAyB,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA;AAClE,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMuE,EAAA;AACK,IAAA;AAC5E,EAAA;AAAA;AAGgF,EAAA;AACb,IAAA;AACnE,EAAA;AAAA;AAMoC,EAAA;AACyC,IAAA;AACnE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAGgE,EAAA;AACY,IAAA;AAC5E,EAAA;AAAA;AAKoC,EAAA;AACuC,IAAA;AAC3E,EAAA;AAAA;AAGsF,EAAA;AACX,IAAA;AAC3E,EAAA;AAAA;AAKoC,EAAA;AACqC,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcoC,EAAA;AACmC,IAAA;AACvE,EAAA;AAAA;AAKoC,EAAA;AACqC,IAAA;AACzE,EAAA;AACF;AD9D+E;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HLHML5ES.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport type {\n AnalyticsScopeRequest,\n AnalyticsScopeResponse,\n AnalyticsShopsRequest,\n AnalyticsShopsResponse,\n AnalyticsConnectorsRequest,\n AnalyticsConnectorsResponse,\n ClientAnalyticsRequest,\n IndustryAnalytics,\n IndustryAnalyticsRequest,\n DevicesAnalyticsResponse,\n GeoAnalyticsResponse,\n DeviceDrillRequest,\n GeoDrillRequest,\n DrillResponse,\n SubscriptionAnalyticsRequest,\n SubscriptionAnalyticsResponse,\n SubscriptionDrillRequest,\n ScopeDrillRequest,\n AnalyticsExclusionRequest,\n AnalyticsExclusionResponse,\n AnalyticsExclusionsResponse,\n} from '../types';\n\nexport class Analytics {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Scoped, drill-level analytics dashboard for the authenticated merchant\n * (the same engine as the admin portal, pinned server-side to your own\n * merchant). The server ignores `merchant_id` — it always scopes to your\n * merchant, and to your single shop for profile-scoped users — so pass only\n * `project_id` / `shop_id` to drill and the window / `sections` fields.\n * Returns one drill level: the scope's daily series + previous window,\n * processor mix and direct children. Accepts a dashboard session or an API\n * key, including a `statistics_read` key; a shop-bound key reads only its\n * shop. `GET /analytics/scope`\n */\n async scope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/scope', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Period Reports: the scoped daily series, pinned exactly like `scope`, but\n * gated on the Period Reports permission area instead of Payment\n * Performance. Pass `timezone` and each day bucket is a local calendar day,\n * which sums exactly into calendar weeks and months. Answers only the\n * `series`, `previous` and `children` blocks and ignores country and device\n * filters. Accepts a dashboard session or an API key, including a\n * `statistics_read` key. `GET /analytics/reports`\n */\n async reports(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/reports', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Shop comparison: one series per shop over one window, with whole-window\n * and previous-window totals, so shops can be drawn side by side. Pinned\n * server-side to your own merchant (`merchant_id` is ignored), and to your\n * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.\n * Shops without activity are included, sorted by name. Hourly buckets are\n * refused for windows over 7 days. Accepts an API key like `scope`.\n * `GET /analytics/shops`\n */\n async shops(params?: AnalyticsShopsRequest): Promise<AnalyticsShopsResponse> {\n return this.request('GET', '/analytics/shops', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * PSP analytics: routed payments, outcomes, volume and payment sizes per\n * connector and per connector account over one window, with the breakdown\n * by project and shop. Pinned server-side to your own merchant\n * (`merchant_id` is ignored) and to your shop for a shop-scoped user. Live\n * payments unless `test_mode` is `true`. Amounts are in USD unless\n * `currency` names one. Pass `sections` to compute only some blocks.\n * A role that may see no processor gets a 403.\n * `GET /analytics/connectors`\n */\n async connectors(params?: AnalyticsConnectorsRequest): Promise<AnalyticsConnectorsResponse> {\n return this.request('GET', '/analytics/connectors', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Industry analytics: payments, volume, outcomes, refunds and disputes by\n * the industry each shop had on the UTC day a payment was created, as a tree\n * of industries, sub-industries, the merchant's own industries and the\n * shops without one, each with the previous window, a series, the processor\n * and country split and the largest shops. Pinned server-side to your own\n * merchant (`merchant_id` is ignored). Needs the `IndustryAnalytics` area,\n * which no other analytics grant implies, at merchant level: a shop-scoped\n * role or a shop-bound key gets a 403 (`IR_22`). Live payments unless\n * `test_mode` is `true`; amounts in USD unless `currency` names one.\n * `GET /analytics/industries`\n */\n async industries(params?: IndustryAnalyticsRequest): Promise<IndustryAnalytics> {\n return this.request('GET', '/analytics/industries', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Device analytics over the canonical client-context observation per\n * payment (browser/platform families, device classes and models, checkout\n * channel mix, time-to-pay), pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the\n * client-context optimisation-use switch: when it is off the server answers\n * 200 with `enabled: false` and a caveat naming the switch. Accepts an API\n * key like `scope`. `GET /analytics/devices`\n */\n async devices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse> {\n return this.request('GET', '/analytics/devices', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Geo analytics over the canonical client-context observation per payment:\n * country totals, city bubbles (IP mode), buyer languages, buyer-local\n * purchase hours and the IP-vs-billing mismatch share. `mode` selects the\n * location claim (`ip` default, `billing`); the two are never coalesced.\n * Same drill, window, gating and API-key contract as `devices`.\n * `GET /analytics/geo`\n */\n async geo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse> {\n return this.request('GET', '/analytics/geo', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The recent payments behind one clicked geo target: a map country (in the\n * active claim mode), optionally narrowed to an IP-resolved city, or one\n * buyer-local heatmap cell (`dow` + `hour`, paid sessions only). Same\n * window/scope/filter and gating contract as `geo`; capped at 50 rows,\n * newest first, with the full match count alongside.\n * `GET /analytics/geo/transactions`\n */\n async geoTransactions(params: GeoDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/geo/transactions', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The recent payments behind one clicked device target: exactly one of a\n * browser family, a platform family, an identified device-model label, or\n * a device class. Family/model targets are resolved server-side with the\n * same classifiers the cards use. Same window/scope/filter and gating\n * contract as `devices`; 50 rows per page (`offset` for the next page),\n * newest first, with the full match count alongside.\n * `GET /analytics/devices/transactions`\n */\n async deviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/devices/transactions', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The payments behind one clicked element of the payments dashboard: a\n * processor-donut slice, a payment-method slice, an outcome segment of a\n * series bar, a series bucket, or a breakdown row — combinable, with\n * `target_bucket` narrowing every other target. The outcome mapping is the\n * one the series and donuts are folded with, expanded server-side, so the\n * list is what the clicked number was made of. Rows and the whole-match\n * `summary` carry USD figures converted with the dashboard's own rates.\n * Same window/scope/chip contract as `scope`; sorted per `sort_on` /\n * `sort_by`, `limit` rows (default 50) per page, `offset` for the next.\n * `GET /analytics/scope/transactions`\n */\n async scopeTransactions(params: ScopeDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/scope/transactions', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point, and the query builder\n // only ever reads own enumerable keys.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Subscription analytics over `subscription` and `invoice`: estimated\n * recurring volume, the invoice funnel, movement (new / expansion /\n * contraction / churn), both processor axes, plan mix and the breakdown one\n * level below the scope. Pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`.\n *\n * Half the figures are **stocks** — a snapshot at the window's end rather\n * than a sum over it — so `est_monthly_volume_usd` and `active` can match\n * across a 7-day and a 30-day window while `billed_volume_usd` does not.\n * Day granularity only. Accepts an API key like `scope`.\n * `GET /analytics/subscriptions`\n */\n async subscriptions(\n params?: SubscriptionAnalyticsRequest,\n ): Promise<SubscriptionAnalyticsResponse> {\n return this.request('GET', '/analytics/subscriptions', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * The billing cycles behind one clicked element of the subscription\n * dashboard: an invoice outcome, a processor slice on either axis, a plan\n * row, a subscription status, a movement component, a series bucket or a\n * breakdown row. Same window/scope/filter contract as `subscriptions`; 50\n * rows per page (`offset` for the next), newest first, with the full match\n * count alongside.\n *\n * A cycle that never reached a payment is listed too — that is what \"still\n * unpaid\" means — and carries its invoice id as `payment_id` with\n * `invoice_id` set to the same value, so you can always tell which you got.\n * `GET /analytics/subscriptions/list`\n */\n async subscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/subscriptions/list', {\n // A discriminated union carries no index signature, so the widening\n // goes via `unknown` — the union is the point, and the query builder\n // only ever reads own enumerable keys.\n query: params as unknown as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Every analytics exclusion of the merchant, with the payments each one\n * matched in the lookback window.\n *\n * These rules change what the merchant's own dashboards count. Financial\n * records and transaction lists are never filtered by them.\n *\n * `matched_payments` counts overlap between rules: a payment matched by\n * three rules is counted once by each, so the values are not additive. The\n * envelope's `best_effort` and `lookback_days` apply to every row — matching\n * runs on client signals that may be absent or expired, within that window.\n * `GET /analytics/exclusions`\n */\n async listExclusions(): Promise<AnalyticsExclusionsResponse> {\n return this.request('GET', '/analytics/exclusions');\n }\n\n /**\n * Write a new exclusion. A shop-scoped user must name their own shop in\n * `profile_id`; omitting it applies the rule to every shop of the merchant.\n * Omitting `surfaces` means **all five**, not none.\n * `POST /analytics/exclusions`\n */\n async createExclusion(rule: AnalyticsExclusionRequest): Promise<AnalyticsExclusionResponse> {\n return this.request('POST', '/analytics/exclusions', { body: rule });\n }\n\n /**\n * Replace a stored exclusion **completely**. This is not a patch: every\n * field you leave out reverts to its default rather than keeping its stored\n * value, so send the whole rule — including an explicit `null` for a\n * `profile_id`, `value`, `valid_from`, `valid_until` or `note` you mean to\n * clear, and the full `surfaces` list you mean to keep.\n * `PUT /analytics/exclusions/{id}`\n */\n async updateExclusion(\n id: string,\n rule: AnalyticsExclusionRequest,\n options?: RequestExtras,\n ): Promise<AnalyticsExclusionResponse> {\n return this.request('PUT', `/analytics/exclusions/${encodeURIComponent(id)}`, {\n body: rule,\n ...options,\n });\n }\n\n /**\n * Delete a stored exclusion. Returns the rule as it was, so a caller can\n * say what it removed. `DELETE /analytics/exclusions/{id}`\n */\n async deleteExclusion(id: string): Promise<AnalyticsExclusionResponse> {\n return this.request('DELETE', `/analytics/exclusions/${encodeURIComponent(id)}`);\n }\n\n /** Global search. `POST /analytics/search` */\n async search(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/search', { body: params });\n }\n\n /** Domain-specific search. `POST /analytics/search/{domain}` */\n async searchDomain(\n domain: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/analytics/search/${encodeURIComponent(domain)}`, {\n body: params,\n });\n }\n\n /** Get analytics info. `GET /analytics/{domain}/info` */\n async getInfo(domain: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/analytics/${encodeURIComponent(domain)}/info`);\n }\n\n /** Get API event logs. `GET /analytics/api-event-logs` */\n async apiEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/api-event-logs', { query: params });\n }\n\n /** Get SDK event logs. `POST /analytics/sdk-event-logs` */\n async sdkEventLogs(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/sdk-event-logs', { body: params });\n }\n\n /** Get connector event logs. `GET /analytics/connector-event-logs` */\n async connectorEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/connector-event-logs', { query: params });\n }\n\n /**\n * Get routing event logs. `GET /analytics/routing-event-logs`\n *\n * @deprecated The service answers this only from a ClickHouse analytics\n * store; with SQL analytics, the default configuration, it answers an\n * error. To learn why a payment used a connector, read\n * `payments.routingDecisions(paymentId)`,\n * the routing decision recorded behind each attempt. This method stays for\n * compatibility and still sends the same request.\n */\n async routingEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/routing-event-logs', { query: params });\n }\n\n /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */\n async outgoingWebhookEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/outgoing-webhook-event-logs', { query: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-HLKFUOAQ.cjs","../src/internal/resources/configs.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,QAAA,EAAN,MAAc;AAAA,EACnB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,UAAA,EAAY,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC1D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,GAAA,EAA+C;AAC5D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,SAAA,EAAY,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAChE,EAAA;AAAA;AAG6F,EAAA;AAC7B,IAAA;AAChE,EAAA;AAAA;AAG4D,EAAA;AACG,IAAA;AAC/D,EAAA;AACF;ADFmE;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-HLKFUOAQ.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\n\nexport class Configs {\n constructor(private readonly request: RequestFn) {}\n\n /** Create a config. `POST /configs` */\n async create(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/configs', { body: params });\n }\n\n /** Retrieve a config by key. `GET /configs/{key}` */\n async retrieve(key: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/configs/${encodeURIComponent(key)}`);\n }\n\n /** Update a config. `PUT /configs/{key}` */\n async update(key: string, params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('PUT', `/configs/${encodeURIComponent(key)}`, { body: params });\n }\n\n /** Delete a config. `DELETE /configs/{key}` */\n async delete(key: string): Promise<Record<string, unknown>> {\n return this.request('DELETE', `/configs/${encodeURIComponent(key)}`);\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HLKFUOAQ.cjs","../src/internal/resources/configs.ts"],"names":[],"mappings":"AAAA;ACEO,IAAM,QAAA,EAAN,MAAc;AAAA,EACnB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,MAAA,CAAO,MAAA,EAAmE;AAC9E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,UAAA,EAAY,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC1D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,GAAA,EAA+C;AAC5D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,SAAA,EAAY,kBAAA,CAAmB,GAAG,CAAC,CAAA,CAAA;AAChE,EAAA;AAAA;AAG6F,EAAA;AAC7B,IAAA;AAChE,EAAA;AAAA;AAG4D,EAAA;AACG,IAAA;AAC/D,EAAA;AACF;ADFmE;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HLKFUOAQ.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\n\nexport class Configs {\n constructor(private readonly request: RequestFn) {}\n\n /** Create a config. `POST /configs` */\n async create(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/configs', { body: params });\n }\n\n /** Retrieve a config by key. `GET /configs/{key}` */\n async retrieve(key: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/configs/${encodeURIComponent(key)}`);\n }\n\n /** Update a config. `PUT /configs/{key}` */\n async update(key: string, params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('PUT', `/configs/${encodeURIComponent(key)}`, { body: params });\n }\n\n /** Delete a config. `DELETE /configs/{key}` */\n async delete(key: string): Promise<Record<string, unknown>> {\n return this.request('DELETE', `/configs/${encodeURIComponent(key)}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-HLYGHP6F.cjs","../src/internal/resources/platformFees.ts"],"names":[],"mappings":"AAAA;ACoBO,IAAM,aAAA,EAAN,MAAmB;AAAA,EAIxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAC3B,IAAA,IAAA,CAAK,MAAA,EAAQ,IAAI,uBAAA,CAAwB,OAAO,CAAA;AAAA,EAClD;AAAA;AAAA,EAGA,MAAM,MAAA,CAAO,MAAA,EAAkC,UAAA,EAAkD;AAC/F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe;AAAA,MACzC,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,IAAA,CAAK,UAAA,EAAoD;AAC7D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,KAAA,EAA6C;AAC1D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,YAAA,EAAe,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AACrE,EAAA;AAAA;AAG4F,EAAA;AACvB,IAAA;AACrE,EAAA;AAAA;AAG0D,EAAA;AACQ,IAAA;AAClE,EAAA;AACF;AASqC;AACc,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAG+C,EAAA;AACvB,IAAA;AACxB,IAAA;AAC9C,MAAA;AACiC,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMgG,EAAA;AAC9C,IAAA;AACU,MAAA;AACzD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMoE,EAAA;AAChB,IAAA;AACQ,MAAA;AACzD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOiG,EAAA;AACtC,IAAA;AACjD,MAAA;AAC2B,MAAA;AAClC,IAAA;AACH,EAAA;AACF;ADnCwE;AACA;AACA;AACA;AACA","file":"/home/skyline/Programming/work/delopay/delopay-typescript-sdk/dist/chunk-HLYGHP6F.cjs","sourcesContent":[null,"import type {\n FeeRulePreviewRequest,\n FeeRulePreviewResponse,\n FeeScheduleCreateRequest,\n FeeScheduleResponse,\n FeeScheduleUpdateRequest,\n PlatformFeeRuleInput,\n PlatformFeeRuleResponse,\n PlatformFeeRuleRequest,\n} from '../../types';\nimport type { RequestFn } from '../../client';\n\n/**\n * Platform-wide fee schedule management. Admin-only routes under\n * `/admin/fees/*`. Exposed only via `'@delopay/sdk/internal'`.\n *\n * `platformFees.rules` manages the platform-owned Euclid fee-rule program per\n * merchant, which takes precedence over the flat platform schedules. Build the\n * program with `feeProgram()`.\n */\nexport class PlatformFees {\n /** Platform-owned Euclid fee-rule program (`/admin/fees/rules`). */\n readonly rules: PlatformFeeRulesManager;\n\n constructor(private readonly request: RequestFn) {\n this.rules = new PlatformFeeRulesManager(request);\n }\n\n /** Create a platform fee schedule for a specific merchant. */\n async create(params: FeeScheduleCreateRequest, merchantId: string): Promise<FeeScheduleResponse> {\n return this.request('POST', '/admin/fees', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /** List every platform fee schedule assigned to a merchant. */\n async list(merchantId: string): Promise<FeeScheduleResponse[]> {\n return this.request('GET', '/admin/fees/list', {\n query: { merchant_id: merchantId },\n });\n }\n\n /** Retrieve a single platform fee schedule by ID. */\n async retrieve(feeId: string): Promise<FeeScheduleResponse> {\n return this.request('GET', `/admin/fees/${encodeURIComponent(feeId)}`);\n }\n\n /** Update a platform fee schedule. */\n async update(feeId: string, params: FeeScheduleUpdateRequest): Promise<FeeScheduleResponse> {\n return this.request('PUT', `/admin/fees/${encodeURIComponent(feeId)}`, { body: params });\n }\n\n /** Delete a platform fee schedule. */\n async delete(feeId: string): Promise<FeeScheduleResponse> {\n return this.request('DELETE', `/admin/fees/${encodeURIComponent(feeId)}`);\n }\n}\n\n/**\n * Manages a merchant's platform-owned Euclid fee-rule programs (admin surface),\n * merchant-wide or per-shop (one active program per scope; a shop-scoped\n * program wins for its shop, else the merchant-wide one applies). Build the\n * `algorithm` with `feeProgram()`. The SDK injects `fee_owner: 'platform'`; set\n * `profile_id` on the input to scope a program to a shop.\n */\nexport class PlatformFeeRulesManager {\n constructor(private readonly request: RequestFn) {}\n\n /** Create or replace the platform fee-rule program for a merchant. */\n async upsert(params: PlatformFeeRuleInput, merchantId: string): Promise<PlatformFeeRuleResponse> {\n const body: PlatformFeeRuleRequest = { ...params, fee_owner: 'platform' };\n return this.request('PUT', '/admin/fees/rules', {\n body,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Retrieve the active platform fee-rule program for a scope, or `null`.\n * `profileId` omitted = merchant-wide program; set = that shop's program.\n */\n async retrieve(merchantId: string, profileId?: string): Promise<PlatformFeeRuleResponse | null> {\n return this.request('GET', '/admin/fees/rules', {\n query: { merchant_id: merchantId, profile_id: profileId },\n });\n }\n\n /**\n * Deactivate a platform fee-rule program. Idempotent. `profileId` omitted\n * targets the merchant-wide program; set targets only that shop's program.\n */\n async delete(merchantId: string, profileId?: string): Promise<void> {\n await this.request('DELETE', '/admin/fees/rules', {\n query: { merchant_id: merchantId, profile_id: profileId },\n });\n }\n\n /**\n * Dry-run a candidate fee-rule program against a sample transaction.\n * Returns the matched rule name, whether it fell through, and the computed fee.\n * Does not persist anything.\n */\n async preview(input: FeeRulePreviewRequest, merchantId: string): Promise<FeeRulePreviewResponse> {\n return this.request('POST', '/admin/fees/rules/preview', {\n body: input,\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HLYGHP6F.cjs","../src/internal/resources/platformFees.ts"],"names":[],"mappings":"AAAA;ACoBO,IAAM,aAAA,EAAN,MAAmB;AAAA,EAIxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAC3B,IAAA,IAAA,CAAK,MAAA,EAAQ,IAAI,uBAAA,CAAwB,OAAO,CAAA;AAAA,EAClD;AAAA;AAAA,EAGA,MAAM,MAAA,CAAO,MAAA,EAAkC,UAAA,EAAkD;AAC/F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,aAAA,EAAe;AAAA,MACzC,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,IAAA,CAAK,UAAA,EAAoD;AAC7D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW;AAAA,IACnC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,KAAA,EAA6C;AAC1D,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,YAAA,EAAe,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AACrE,EAAA;AAAA;AAG4F,EAAA;AACvB,IAAA;AACrE,EAAA;AAAA;AAG0D,EAAA;AACQ,IAAA;AAClE,EAAA;AACF;AASqC;AACc,EAAA;AAApB,IAAA;AAAqB,EAAA;AAAA;AAG+C,EAAA;AACvB,IAAA;AACxB,IAAA;AAC9C,MAAA;AACiC,MAAA;AAClC,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMgG,EAAA;AAC9C,IAAA;AACU,MAAA;AACzD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMoE,EAAA;AAChB,IAAA;AACQ,MAAA;AACzD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOiG,EAAA;AACtC,IAAA;AACjD,MAAA;AAC2B,MAAA;AAClC,IAAA;AACH,EAAA;AACF;ADnCwE;AACA;AACA;AACA;AACA","file":"/Users/skyline/Programming/delopay/delopay-typescript-sdk/dist/chunk-HLYGHP6F.cjs","sourcesContent":[null,"import type {\n FeeRulePreviewRequest,\n FeeRulePreviewResponse,\n FeeScheduleCreateRequest,\n FeeScheduleResponse,\n FeeScheduleUpdateRequest,\n PlatformFeeRuleInput,\n PlatformFeeRuleResponse,\n PlatformFeeRuleRequest,\n} from '../../types';\nimport type { RequestFn } from '../../client';\n\n/**\n * Platform-wide fee schedule management. Admin-only routes under\n * `/admin/fees/*`. Exposed only via `'@delopay/sdk/internal'`.\n *\n * `platformFees.rules` manages the platform-owned Euclid fee-rule program per\n * merchant, which takes precedence over the flat platform schedules. Build the\n * program with `feeProgram()`.\n */\nexport class PlatformFees {\n /** Platform-owned Euclid fee-rule program (`/admin/fees/rules`). */\n readonly rules: PlatformFeeRulesManager;\n\n constructor(private readonly request: RequestFn) {\n this.rules = new PlatformFeeRulesManager(request);\n }\n\n /** Create a platform fee schedule for a specific merchant. */\n async create(params: FeeScheduleCreateRequest, merchantId: string): Promise<FeeScheduleResponse> {\n return this.request('POST', '/admin/fees', {\n body: params,\n query: { merchant_id: merchantId },\n });\n }\n\n /** List every platform fee schedule assigned to a merchant. */\n async list(merchantId: string): Promise<FeeScheduleResponse[]> {\n return this.request('GET', '/admin/fees/list', {\n query: { merchant_id: merchantId },\n });\n }\n\n /** Retrieve a single platform fee schedule by ID. */\n async retrieve(feeId: string): Promise<FeeScheduleResponse> {\n return this.request('GET', `/admin/fees/${encodeURIComponent(feeId)}`);\n }\n\n /** Update a platform fee schedule. */\n async update(feeId: string, params: FeeScheduleUpdateRequest): Promise<FeeScheduleResponse> {\n return this.request('PUT', `/admin/fees/${encodeURIComponent(feeId)}`, { body: params });\n }\n\n /** Delete a platform fee schedule. */\n async delete(feeId: string): Promise<FeeScheduleResponse> {\n return this.request('DELETE', `/admin/fees/${encodeURIComponent(feeId)}`);\n }\n}\n\n/**\n * Manages a merchant's platform-owned Euclid fee-rule programs (admin surface),\n * merchant-wide or per-shop (one active program per scope; a shop-scoped\n * program wins for its shop, else the merchant-wide one applies). Build the\n * `algorithm` with `feeProgram()`. The SDK injects `fee_owner: 'platform'`; set\n * `profile_id` on the input to scope a program to a shop.\n */\nexport class PlatformFeeRulesManager {\n constructor(private readonly request: RequestFn) {}\n\n /** Create or replace the platform fee-rule program for a merchant. */\n async upsert(params: PlatformFeeRuleInput, merchantId: string): Promise<PlatformFeeRuleResponse> {\n const body: PlatformFeeRuleRequest = { ...params, fee_owner: 'platform' };\n return this.request('PUT', '/admin/fees/rules', {\n body,\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Retrieve the active platform fee-rule program for a scope, or `null`.\n * `profileId` omitted = merchant-wide program; set = that shop's program.\n */\n async retrieve(merchantId: string, profileId?: string): Promise<PlatformFeeRuleResponse | null> {\n return this.request('GET', '/admin/fees/rules', {\n query: { merchant_id: merchantId, profile_id: profileId },\n });\n }\n\n /**\n * Deactivate a platform fee-rule program. Idempotent. `profileId` omitted\n * targets the merchant-wide program; set targets only that shop's program.\n */\n async delete(merchantId: string, profileId?: string): Promise<void> {\n await this.request('DELETE', '/admin/fees/rules', {\n query: { merchant_id: merchantId, profile_id: profileId },\n });\n }\n\n /**\n * Dry-run a candidate fee-rule program against a sample transaction.\n * Returns the matched rule name, whether it fell through, and the computed fee.\n * Does not persist anything.\n */\n async preview(input: FeeRulePreviewRequest, merchantId: string): Promise<FeeRulePreviewResponse> {\n return this.request('POST', '/admin/fees/rules/preview', {\n body: input,\n query: { merchant_id: merchantId },\n });\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  statementListQuery
3
- } from "./chunk-K74UMEU4.js";
3
+ } from "./chunk-UQDXXLLT.js";
4
4
  import {
5
5
  riskTuningPath
6
6
  } from "./chunk-645BQ53W.js";
@@ -1229,6 +1229,24 @@ var AdminPortal = class {
1229
1229
  { body }
1230
1230
  );
1231
1231
  }
1232
+ /**
1233
+ * Sign in as another staff member, to see and do what they may. Only an
1234
+ * administrator may, from their own session, and only as an active staff
1235
+ * member who is not an administrator. Answers the staff member's session
1236
+ * token for a tab of its own: no cookie is set and the caller's own session
1237
+ * stays as it is. The session ends one sign-in lifetime later, when the
1238
+ * administrator signs out in that tab, or when either person no longer
1239
+ * qualifies. Every change made in it is recorded under the administrator.
1240
+ *
1241
+ * Needs `UsersManage`, else a `403`. A refusal is a `400` `UR_33`: the
1242
+ * caller is no administrator, names themselves, an administrator or no
1243
+ * active staff member, or calls from a session that is not their own. The
1244
+ * admin API key signs in as nobody and is refused the same way.
1245
+ * `POST /admin-portal/staff/{user_id}/sign-in-as`
1246
+ */
1247
+ async signInAsStaffMember(userId) {
1248
+ return this.request("POST", `/admin-portal/staff/${encodeURIComponent(userId)}/sign-in-as`);
1249
+ }
1232
1250
  /**
1233
1251
  * What holders of each staff role may do inside a merchant's dashboard
1234
1252
  * during a support session.
@@ -1926,4 +1944,4 @@ function adminAccount(merchantId) {
1926
1944
  export {
1927
1945
  AdminPortal
1928
1946
  };
1929
- //# sourceMappingURL=chunk-GU3VNMQ5.js.map
1947
+ //# sourceMappingURL=chunk-I23IC3T4.js.map