@delopay/sdk 0.420.0 → 0.424.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 (309) hide show
  1. package/dist/airwallexCard.cjs.map +1 -1
  2. package/dist/branding.cjs.map +1 -1
  3. package/dist/cardFormStyles.cjs.map +1 -1
  4. package/dist/checkoutSession.cjs +2 -2
  5. package/dist/checkoutSession.cjs.map +1 -1
  6. package/dist/checkoutSession.js +1 -1
  7. package/dist/chunk-244VZFFO.cjs.map +1 -1
  8. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  9. package/dist/chunk-34PC72O7.cjs.map +1 -1
  10. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  11. package/dist/{chunk-BXQLINBN.cjs → chunk-3TFE2JB5.cjs} +3 -3
  12. package/dist/{chunk-BXQLINBN.cjs.map → chunk-3TFE2JB5.cjs.map} +1 -1
  13. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  14. package/dist/{chunk-B2TCNGC2.cjs → chunk-424542L2.cjs} +16 -1
  15. package/dist/chunk-424542L2.cjs.map +1 -0
  16. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  17. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  18. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  19. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  20. package/dist/chunk-5CITBN33.cjs.map +1 -1
  21. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  22. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  23. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  24. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  25. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  26. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  27. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  28. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  29. package/dist/chunk-7ITPMVDB.cjs.map +1 -1
  30. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  31. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  32. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  33. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  34. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  35. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  36. package/dist/chunk-BOU2TQ6U.cjs.map +1 -1
  37. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  38. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  39. package/dist/chunk-CAMALM35.cjs.map +1 -1
  40. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  41. package/dist/chunk-CKKNFFKP.cjs.map +1 -1
  42. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  43. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  44. package/dist/chunk-EEB2HDYL.cjs +172 -0
  45. package/dist/chunk-EEB2HDYL.cjs.map +1 -0
  46. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  47. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  48. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  49. package/dist/chunk-F3I5DOWV.cjs.map +1 -1
  50. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  51. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  52. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  53. package/dist/chunk-GA3KXPIF.cjs.map +1 -1
  54. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  55. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  56. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  57. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  58. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  59. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  60. package/dist/{chunk-TA5O2MBG.js → chunk-HNJFRQSY.js} +2 -2
  61. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  62. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  63. package/dist/chunk-I65QS3YQ.cjs.map +1 -1
  64. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  65. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  66. package/dist/{chunk-GGYLU7YO.cjs → chunk-J4ZB7MU4.cjs} +28 -2
  67. package/dist/chunk-J4ZB7MU4.cjs.map +1 -0
  68. package/dist/{chunk-KGN4J2JT.js → chunk-JZGSKVTT.js} +38 -6
  69. package/dist/chunk-JZGSKVTT.js.map +1 -0
  70. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  71. package/dist/{chunk-W3EFNOH6.js → chunk-K74UMEU4.js} +16 -1
  72. package/dist/chunk-K74UMEU4.js.map +1 -0
  73. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  74. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  75. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  76. package/dist/chunk-KOB6MOAV.cjs.map +1 -1
  77. package/dist/chunk-KSJ7JLR3.cjs.map +1 -1
  78. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  79. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  80. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  81. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  82. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  83. package/dist/chunk-MCNDMK7F.cjs.map +1 -1
  84. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  85. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  86. package/dist/{chunk-X76YC766.js → chunk-NN74DH4Q.js} +3 -3
  87. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  88. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  89. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  90. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  91. package/dist/{chunk-5XGAQGYK.cjs → chunk-ONEPBY3O.cjs} +5 -5
  92. package/dist/{chunk-5XGAQGYK.cjs.map → chunk-ONEPBY3O.cjs.map} +1 -1
  93. package/dist/chunk-OWP7XBY2.cjs.map +1 -1
  94. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  95. package/dist/chunk-P6JLNQ6L.cjs.map +1 -1
  96. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  97. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  98. package/dist/chunk-PWDY5D5S.cjs.map +1 -1
  99. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  100. package/dist/chunk-QMLU5DST.cjs.map +1 -1
  101. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  102. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  103. package/dist/chunk-R4FE6K43.cjs.map +1 -1
  104. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  105. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  106. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  107. package/dist/chunk-RSVLVW4L.cjs.map +1 -1
  108. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  109. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  110. package/dist/chunk-SQELICSX.cjs.map +1 -1
  111. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  112. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  113. package/dist/{chunk-X5P2AS63.cjs → chunk-U2BPNOYN.cjs} +39 -7
  114. package/dist/chunk-U2BPNOYN.cjs.map +1 -0
  115. package/dist/{chunk-IB75VVZO.js → chunk-UFJFKEY4.js} +28 -2
  116. package/dist/chunk-UFJFKEY4.js.map +1 -0
  117. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  118. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  119. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  120. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  121. package/dist/chunk-VOIELJLZ.cjs.map +1 -1
  122. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  123. package/dist/chunk-W457XUA6.cjs.map +1 -1
  124. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  125. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  126. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  127. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  128. package/dist/chunk-XYX25TII.js +172 -0
  129. package/dist/chunk-XYX25TII.js.map +1 -0
  130. package/dist/chunk-YJQPKT6W.cjs.map +1 -1
  131. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  132. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  133. package/dist/client.cjs +2 -2
  134. package/dist/client.cjs.map +1 -1
  135. package/dist/client.js +1 -1
  136. package/dist/core.cjs.map +1 -1
  137. package/dist/currencies.cjs.map +1 -1
  138. package/dist/enigmaCardForm.cjs.map +1 -1
  139. package/dist/error.cjs.map +1 -1
  140. package/dist/eventStream.cjs.map +1 -1
  141. package/dist/exportDownload.cjs.map +1 -1
  142. package/dist/feeProgram.cjs.map +1 -1
  143. package/dist/index.cjs +5 -5
  144. package/dist/index.cjs.map +1 -1
  145. package/dist/index.d.cts +1 -1
  146. package/dist/index.d.ts +1 -1
  147. package/dist/index.js +4 -4
  148. package/dist/internal/resources/admin.cjs.map +1 -1
  149. package/dist/internal/resources/admin.d.cts +1 -1
  150. package/dist/internal/resources/admin.d.ts +1 -1
  151. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  152. package/dist/internal/resources/adminBranding.d.cts +1 -1
  153. package/dist/internal/resources/adminBranding.d.ts +1 -1
  154. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  155. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  156. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  157. package/dist/internal/resources/adminIndustries.cjs +2 -2
  158. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  159. package/dist/internal/resources/adminIndustries.d.cts +22 -2
  160. package/dist/internal/resources/adminIndustries.d.ts +22 -2
  161. package/dist/internal/resources/adminIndustries.js +1 -1
  162. package/dist/internal/resources/adminLive.cjs.map +1 -1
  163. package/dist/internal/resources/adminPortal.cjs +2 -2
  164. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  165. package/dist/internal/resources/adminPortal.d.cts +33 -5
  166. package/dist/internal/resources/adminPortal.d.ts +33 -5
  167. package/dist/internal/resources/adminPortal.js +1 -1
  168. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  169. package/dist/internal/resources/adminSupport.d.cts +1 -1
  170. package/dist/internal/resources/adminSupport.d.ts +1 -1
  171. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  172. package/dist/internal/resources/auditLogs.d.cts +1 -1
  173. package/dist/internal/resources/auditLogs.d.ts +1 -1
  174. package/dist/internal/resources/cache.cjs.map +1 -1
  175. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  176. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  177. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  178. package/dist/internal/resources/configs.cjs.map +1 -1
  179. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  180. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  181. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  182. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  183. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  184. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  185. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  186. package/dist/internal/resources/diagnostic.d.cts +1 -1
  187. package/dist/internal/resources/diagnostic.d.ts +1 -1
  188. package/dist/internal/resources/gsm.cjs.map +1 -1
  189. package/dist/internal/resources/gsm.d.cts +1 -1
  190. package/dist/internal/resources/gsm.d.ts +1 -1
  191. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  192. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  193. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  194. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  195. package/dist/internal/resources/platformBilling.d.cts +1 -1
  196. package/dist/internal/resources/platformBilling.d.ts +1 -1
  197. package/dist/internal/resources/platformFees.cjs.map +1 -1
  198. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  199. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  200. package/dist/internal/resources/platformSettings.d.cts +1 -1
  201. package/dist/internal/resources/platformSettings.d.ts +1 -1
  202. package/dist/internal.cjs +10 -10
  203. package/dist/internal.cjs.map +1 -1
  204. package/dist/internal.d.cts +2 -2
  205. package/dist/internal.d.ts +2 -2
  206. package/dist/internal.js +6 -6
  207. package/dist/listQuery.cjs.map +1 -1
  208. package/dist/panes.cjs.map +1 -1
  209. package/dist/paymentPresentation.cjs.map +1 -1
  210. package/dist/recordCounter.cjs.map +1 -1
  211. package/dist/resources/analytics.cjs.map +1 -1
  212. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  213. package/dist/resources/apiKeys.cjs.map +1 -1
  214. package/dist/resources/audit.cjs.map +1 -1
  215. package/dist/resources/authentication.cjs.map +1 -1
  216. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  217. package/dist/resources/billing.cjs.map +1 -1
  218. package/dist/resources/buyerAccount.cjs.map +1 -1
  219. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  220. package/dist/resources/buyerConversations.cjs.map +1 -1
  221. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  222. package/dist/resources/buyerPortal.cjs.map +1 -1
  223. package/dist/resources/cards.cjs.map +1 -1
  224. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  225. package/dist/resources/checkoutMethods.cjs.map +1 -1
  226. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  227. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  228. package/dist/resources/connectors.cjs.map +1 -1
  229. package/dist/resources/costRules.cjs.map +1 -1
  230. package/dist/resources/customers.cjs.map +1 -1
  231. package/dist/resources/deploymentBranding.cjs.map +1 -1
  232. package/dist/resources/disputes.cjs.map +1 -1
  233. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  234. package/dist/resources/events.cjs.map +1 -1
  235. package/dist/resources/export.cjs.map +1 -1
  236. package/dist/resources/externalRecords.cjs.map +1 -1
  237. package/dist/resources/featureMatrix.cjs.map +1 -1
  238. package/dist/resources/fees.cjs.map +1 -1
  239. package/dist/resources/files.cjs.map +1 -1
  240. package/dist/resources/forex.cjs.map +1 -1
  241. package/dist/resources/identityVerifications.cjs.map +1 -1
  242. package/dist/resources/industries.cjs +2 -2
  243. package/dist/resources/industries.cjs.map +1 -1
  244. package/dist/resources/industries.d.cts +79 -7
  245. package/dist/resources/industries.d.ts +79 -7
  246. package/dist/resources/industries.js +1 -1
  247. package/dist/resources/invoiceSettings.cjs.map +1 -1
  248. package/dist/resources/invoices.cjs.map +1 -1
  249. package/dist/resources/live.cjs.map +1 -1
  250. package/dist/resources/mandates.cjs.map +1 -1
  251. package/dist/resources/merchantAccounts.cjs.map +1 -1
  252. package/dist/resources/messageTemplates.cjs.map +1 -1
  253. package/dist/resources/operationLimits.cjs.map +1 -1
  254. package/dist/resources/paymentLinks.cjs.map +1 -1
  255. package/dist/resources/paymentMethods.cjs.map +1 -1
  256. package/dist/resources/payments.cjs.map +1 -1
  257. package/dist/resources/payoutDestinations.cjs.map +1 -1
  258. package/dist/resources/payouts.cjs.map +1 -1
  259. package/dist/resources/paypalDisputes.cjs.map +1 -1
  260. package/dist/resources/persons.cjs.map +1 -1
  261. package/dist/resources/poll.cjs.map +1 -1
  262. package/dist/resources/processorCosts.cjs.map +1 -1
  263. package/dist/resources/processorImports.cjs.map +1 -1
  264. package/dist/resources/products.cjs.map +1 -1
  265. package/dist/resources/profileAcquirers.cjs.map +1 -1
  266. package/dist/resources/profiles.cjs.map +1 -1
  267. package/dist/resources/projects.cjs.map +1 -1
  268. package/dist/resources/refunds.cjs.map +1 -1
  269. package/dist/resources/regions.cjs.map +1 -1
  270. package/dist/resources/relay.cjs.map +1 -1
  271. package/dist/resources/risk.cjs.map +1 -1
  272. package/dist/resources/routing.cjs.map +1 -1
  273. package/dist/resources/search.cjs.map +1 -1
  274. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  275. package/dist/resources/settings.cjs.map +1 -1
  276. package/dist/resources/settlement.cjs +2 -2
  277. package/dist/resources/settlement.cjs.map +1 -1
  278. package/dist/resources/settlement.d.cts +11 -1
  279. package/dist/resources/settlement.d.ts +11 -1
  280. package/dist/resources/settlement.js +1 -1
  281. package/dist/resources/shopLabels.cjs.map +1 -1
  282. package/dist/resources/shops.cjs.map +1 -1
  283. package/dist/resources/stripeConnect.cjs.map +1 -1
  284. package/dist/resources/subscriptions.cjs.map +1 -1
  285. package/dist/resources/support.cjs.map +1 -1
  286. package/dist/resources/threeDsRules.cjs.map +1 -1
  287. package/dist/resources/users.cjs.map +1 -1
  288. package/dist/resources/vatRates.cjs.map +1 -1
  289. package/dist/resources/verification.cjs.map +1 -1
  290. package/dist/resources/webhooks.cjs.map +1 -1
  291. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  292. package/dist/{types-OKCtk7xG.d.ts → types-Cgt_cKwA.d.cts} +124 -12
  293. package/dist/{types-BSkzDB3r.d.cts → types-DaKpMBi_.d.ts} +124 -12
  294. package/dist/types.cjs.map +1 -1
  295. package/dist/types.d.cts +224 -4
  296. package/dist/types.d.ts +224 -4
  297. package/package.json +1 -1
  298. package/dist/chunk-34AF36TY.js +0 -89
  299. package/dist/chunk-34AF36TY.js.map +0 -1
  300. package/dist/chunk-B2TCNGC2.cjs.map +0 -1
  301. package/dist/chunk-GGYLU7YO.cjs.map +0 -1
  302. package/dist/chunk-IB75VVZO.js.map +0 -1
  303. package/dist/chunk-KGN4J2JT.js.map +0 -1
  304. package/dist/chunk-W3EFNOH6.js.map +0 -1
  305. package/dist/chunk-X5P2AS63.cjs.map +0 -1
  306. package/dist/chunk-ZOD4J4XF.cjs +0 -89
  307. package/dist/chunk-ZOD4J4XF.cjs.map +0 -1
  308. /package/dist/{chunk-TA5O2MBG.js.map → chunk-HNJFRQSY.js.map} +0 -0
  309. /package/dist/{chunk-X76YC766.js.map → chunk-NN74DH4Q.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/internal/resources/adminIndustries.ts"],"sourcesContent":["import type { RequestFn } from '../../client';\nimport type {\n IndustryAvailability,\n IndustryCatalog,\n IndustryCategory,\n IndustryCreateRequest,\n IndustryMapRequest,\n IndustryPreview,\n IndustryPreviewQuery,\n IndustryRenameRequest,\n MerchantDefinedIndustry,\n MerchantDefinedIndustryList,\n MerchantDefinedIndustryQuery,\n} from '../types';\n\nconst path = (id: string): string => `/admin-portal/industries/${encodeURIComponent(id)}`;\n\n/**\n * The industry catalog: industries, their sub-industries, and where each one\n * can be selected. Reads take any internal role; changes need the account\n * management permission. Every change is recorded in the audit log\n * (`entity_type: 'industry'`), and a change that changes nothing records\n * nothing.\n *\n * An entry is selectable at a merchant, project or shop when it is active,\n * (for a sub-industry) its industry is selectable there too, and its own\n * availability is `all` or one of its scopes reaches the target.\n *\n * Errors: `IR_06` (422) an invalid name, scope or availability, a parent that\n * is a sub-industry, or a preview naming both a project and a shop; `IR_37`\n * (404) an unknown entry, parent, merchant, project or shop; `IR_38` (400) an\n * active sibling already has the name; `IR_16` (400) the parent industry is\n * archived.\n */\nexport class AdminIndustries {\n constructor(private readonly request: RequestFn) {}\n\n /** The whole catalog, archived entries included. `GET /admin-portal/industries` */\n async list(): Promise<IndustryCatalog> {\n return this.request('GET', '/admin-portal/industries');\n }\n\n /**\n * Create an industry, or a sub-industry under `parent_id`. Without\n * `availability` it can be selected nowhere until availability is set.\n * `POST /admin-portal/industries`\n */\n async create(body: IndustryCreateRequest): Promise<IndustryCategory> {\n return this.request('POST', '/admin-portal/industries', { body });\n }\n\n /**\n * Rename an entry. With `apply_to` `all` (the default) its id stays; with\n * `from` or `today` the answer is the new entry that carries the new name\n * (see `IndustryRenameRequest`). `PATCH /admin-portal/industries/{industry_id}`\n */\n async rename(industryId: string, body: IndustryRenameRequest): Promise<IndustryCategory> {\n return this.request('PATCH', path(industryId), { body });\n }\n\n /**\n * Stop offering an entry, and for an industry its sub-industries, for new\n * selections. Existing selections keep it. `POST /admin-portal/industries/{industry_id}/archive`\n */\n async archive(industryId: string): Promise<IndustryCategory> {\n return this.request('POST', `${path(industryId)}/archive`);\n }\n\n /**\n * Offer an archived entry again. Refused while an active sibling holds its\n * name, or for a sub-industry while its industry is archived.\n * `POST /admin-portal/industries/{industry_id}/restore`\n */\n async restore(industryId: string): Promise<IndustryCategory> {\n return this.request('POST', `${path(industryId)}/restore`);\n }\n\n /**\n * Replace where an entry can be selected.\n * `PUT /admin-portal/industries/{industry_id}/availability`\n */\n async setAvailability(industryId: string, body: IndustryAvailability): Promise<IndustryCategory> {\n return this.request('PUT', `${path(industryId)}/availability`, { body });\n }\n\n /**\n * Every entry as seen from one merchant, or one of its projects or shops:\n * whether it can be selected there, why, and which scope grants it.\n * `GET /admin-portal/industries/preview`\n */\n async preview(query: IndustryPreviewQuery): Promise<IndustryPreview> {\n return this.request('GET', '/admin-portal/industries/preview', { query: { ...query } });\n }\n\n /**\n * The industries merchants defined for themselves, each with its merchant,\n * the selections naming it, the closest of DeloPay's entries selectable at\n * that merchant, and its mapping. An employee limited to some merchants sees\n * theirs only. `GET /admin-portal/industries/merchant-defined`\n */\n async listMerchantDefined(\n query: MerchantDefinedIndustryQuery = {},\n ): Promise<MerchantDefinedIndustryList> {\n return this.request('GET', '/admin-portal/industries/merchant-defined', {\n query: { ...query },\n });\n }\n\n /**\n * Move every selection of a merchant-defined industry, and every payment\n * counted in it, to one of DeloPay's active entries selectable at that\n * merchant, and archive it as `mapped`. The merchant is shown a notice for\n * 90 days. Needs the account-management group. An entry already archived or\n * mapped answers 422 (`IR_06`); an id that is not merchant-defined, 404\n * (`IR_37`). `POST /admin-portal/industries/{industry_id}/map`\n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AAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AAAA;AAAA,EAGA,MAAM,eAAA,CAAgB,MAAA,EAAmE;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yCAAA,EAA2C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzF;AACF,CAAA;ADVA;AACA;AACE;AACF,sCAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-UGSM7RJ2.cjs","sourcesContent":[null,"import type {\n StripeConnectAccountRequest,\n StripeConnectAccountResponse,\n StripeConnectLinkRequest,\n StripeConnectLinkResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class StripeConnect {\n constructor(private readonly request: RequestFn) {}\n\n async createAccount(params: StripeConnectAccountRequest): Promise<StripeConnectAccountResponse> {\n return this.request('POST', '/connector-onboarding/stripe/accounts', { body: params });\n }\n\n async createAccountLink(params: StripeConnectLinkRequest): Promise<StripeConnectLinkResponse> {\n return this.request('POST', '/connector-onboarding/stripe/account-links', { body: params });\n }\n\n // --- Generic connector onboarding (Task 4.11) ---\n\n /** Get onboarding action URL. `POST /connector-onboarding/action-url` */\n async getActionUrl(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/action-url', { body: params });\n }\n\n /** Sync onboarding status. `POST /connector-onboarding/sync` */\n async syncOnboarding(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/sync', { body: params });\n }\n\n /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */\n async resetTrackingId(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/reset-tracking-id', { body: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-UGSM7RJ2.cjs","../src/resources/stripeConnect.ts"],"names":[],"mappings":"AAAA;ACQO,IAAM,cAAA,EAAN,MAAoB;AAAA,EACzB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,aAAA,CAAc,MAAA,EAA4E;AAC9F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,uCAAA,EAAyC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACvF;AAAA,EAEA,MAAM,iBAAA,CAAkB,MAAA,EAAsE;AAC5F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4CAAA,EAA8C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5F;AAAA;AAAA;AAAA,EAKA,MAAM,YAAA,CAAa,MAAA,EAAmE;AACpF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,kCAAA,EAAoC,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAClF;AAAA;AAAA,EAGA,MAAM,cAAA,CAAe,MAAA,EAAmE;AACtF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AAAA;AAAA,EAGA,MAAM,eAAA,CAAgB,MAAA,EAAmE;AACvF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yCAAA,EAA2C,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EACzF;AACF,CAAA;ADVA;AACA;AACE;AACF,sCAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-UGSM7RJ2.cjs","sourcesContent":[null,"import type {\n StripeConnectAccountRequest,\n StripeConnectAccountResponse,\n StripeConnectLinkRequest,\n StripeConnectLinkResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class StripeConnect {\n constructor(private readonly request: RequestFn) {}\n\n async createAccount(params: StripeConnectAccountRequest): Promise<StripeConnectAccountResponse> {\n return this.request('POST', '/connector-onboarding/stripe/accounts', { body: params });\n }\n\n async createAccountLink(params: StripeConnectLinkRequest): Promise<StripeConnectLinkResponse> {\n return this.request('POST', '/connector-onboarding/stripe/account-links', { body: params });\n }\n\n // --- Generic connector onboarding (Task 4.11) ---\n\n /** Get onboarding action URL. `POST /connector-onboarding/action-url` */\n async getActionUrl(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/action-url', { body: params });\n }\n\n /** Sync onboarding status. `POST /connector-onboarding/sync` */\n async syncOnboarding(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/sync', { body: params });\n }\n\n /** Reset tracking ID. `POST /connector-onboarding/reset-tracking-id` */\n async resetTrackingId(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/connector-onboarding/reset-tracking-id', { body: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-UKLZAOLW.cjs","../src/resources/checkoutMethods.ts"],"names":[],"mappings":"AAAA;AC8BO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,QAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,CAAC,CAAA,EAC5C,OAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,WAAA,CAAY,SAAA,EAAW,MAAA,CAAO,WAAW,CAAA,EAAG;AAAA,MACrE,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW,CAAA;AAAA,MACjC,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAA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ACF,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASE,EAAA;AAMY,IAAA;AACV,MAAA;AACqB,MAAA;AACG,MAAA;AAC1B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaE,EAAA;AAG2B,IAAA;AACH,MAAA;AACvB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUE,EAAA;AAK2B,IAAA;AACH,MAAA;AACtB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE,EAAA;AAIoB,IAAA;AACI,MAAA;AACvB,IAAA;AACH,EAAA;AACF;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;AAEwC;AACzB,EAAA;AACU,EAAA;AACzB;ADpGgC;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-UKLZAOLW.cjs","sourcesContent":[null,"import type {\n CheckoutAccountVisibilityRequest,\n CheckoutAccountVisibilityResponse,\n CheckoutEntriesResponse,\n CheckoutEntriesUpdateRequest,\n CheckoutMethodsAvailabilityParams,\n CheckoutMethodsAvailabilityResponse,\n CheckoutMethodsChildrenParams,\n CheckoutMethodsChildrenResponse,\n CheckoutMethodsEnvironmentParams,\n CheckoutMethodsResetResponse,\n CheckoutMethodsResponse,\n CheckoutMethodsUpdateRequest,\n ConnectorCoverageResponse,\n CheckoutPaymentMethodOptionsResponse,\n CheckoutRedirectRulesTestRequest,\n CheckoutRedirectRulesTestResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A shop's payment-method layout for the hosted checkout: the express strip,\n * the main list, the \"other payment methods\" list, and each item's overrides\n * (text, translations, icon, look, open target, visibility). One document per\n * shop (business profile), owned by the shop rather than by each connector\n * account. Until a shop saves one, the router derives a layout from the\n * shop's connector accounts and reports `source: 'derived'`.\n *\n * Dashboard JWT (`CheckoutMethods` read / write) or an admin key.\n */\nexport class CheckoutMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's layout (stored, or derived from its accounts) and every item\n * it may place. Live's by default; `environment: 'test'` reads the Test\n * checkout's, used by payments with `test_mode: true`, which follows Live's\n * (`follows_live`) until its first save.\n * `GET /checkout-methods/{profile_id}` (`/test`)\n */\n async retrieve(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The same document as {@link retrieve}, on the route that stays open to a\n * reader of the checkout's appearance while the role's payment-data\n * visibility is restricted.\n * `GET /checkout-methods/{profile_id}/preview` (`/test/preview`)\n */\n async preview(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', `${methodsPath(profileId, params.environment)}/preview`, {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Replace the layout of one environment. The router refuses an express\n * item that does not draw its own button, more than two rows of two in the\n * express strip, a title without text, or an item no account of the shop\n * offers. Pass `options.headers` with the `If-Match` of the version read to\n * have a save over a newer change refused.\n * `PUT /checkout-methods/{profile_id}` (`/test`)\n */\n async update(\n merchantId: string,\n profileId: string,\n body: CheckoutMethodsUpdateRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('PUT', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n ...options,\n });\n }\n\n /**\n * For a buyer in `country` paying `amount` `currency`: which placeable\n * items they are offered and every reason they are not, asked the way the\n * hosted checkout asks; and how each smart block of the layout evaluates\n * for them (`smart_blocks`). `test_mode` asks the Test environment.\n * `GET /checkout-methods/{profile_id}/availability`\n */\n async availability(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsAvailabilityParams,\n ): Promise<CheckoutMethodsAvailabilityResponse> {\n const { test_mode, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (test_mode) {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,\n { query },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {\n query,\n });\n }\n\n /**\n * What DeloPay's connector information says about a country, for any shop:\n * each provider's method, and whether the provider's list of countries names\n * it. A method with no list is `unknown`, which is no statement either way.\n * Nothing here comes from a merchant's accounts, and it is no promise about\n * what a shop's checkout offers. A role that may not read provider names gets\n * none. `GET /checkout-methods/coverage`\n *\n * @param country The buyer's country, ISO 3166-1 alpha-2.\n */\n async coverage(country: string): Promise<ConnectorCoverageResponse> {\n return this.request('GET', '/checkout-methods/coverage', { query: { country } });\n }\n\n /**\n * What DeloPay confirms beneath each item the shop can place: the card\n * networks the card form's accounts accept, and the methods or coins a\n * provider's page offers, per account, with source and freshness. A\n * provider that answers only per order reports `context_required` until\n * `currency` and `amount` are given. A layout item's `children` narrows\n * these lists and never adds to them.\n * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)\n */\n async children(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsChildrenParams = {},\n ): Promise<CheckoutMethodsChildrenResponse> {\n const { environment, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (environment === 'test') {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,\n {\n query,\n },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/children`, {\n query,\n });\n }\n\n /**\n * Delete the stored layout of one environment; Live is back on the derived\n * layout, Test follows Live again.\n * `DELETE /checkout-methods/{profile_id}` (`/test`)\n */\n async reset(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResetResponse> {\n return this.request('DELETE', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The methods a payment of the shop can be limited to through\n * `allowed_payment_method_types`, in the order its checkout places them, for\n * one environment. Names methods only, never a processor or account.\n * `GET /checkout-methods/{profile_id}/payment-method-options` (`/test/…`)\n */\n async paymentMethodOptions(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutPaymentMethodOptionsResponse> {\n return this.request(\n 'GET',\n `${methodsPath(profileId, params.environment)}/payment-method-options`,\n { query: { merchant_id: merchantId }, ...options },\n );\n }\n\n /**\n * What the given redirect rules, saved or not, decide for the buyer the\n * body describes, and how each rule fared. The buyer's options are the\n * shop's layout after its availability rules and the cap states; nothing is\n * stored. Live's checkout by default, `environment: 'test'` for the Test\n * checkout's. Refused with 422 when the rules are malformed or name an\n * account that is not the shop's, and with 403 when they name one the\n * caller may not read.\n * `POST /checkout-methods/{profile_id}/redirect-rules/test` (`/test/…`)\n */\n async testRedirectRules(\n merchantId: string,\n profileId: string,\n body: CheckoutRedirectRulesTestRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutRedirectRulesTestResponse> {\n return this.request(\n 'POST',\n `${methodsPath(profileId, params.environment)}/redirect-rules/test`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * Hide a connector account from the checkout of the named environments, or\n * show it again. Its items stay in the layout, listed with\n * `account_enabled: false`; routing and credentials are not changed.\n * `PUT /checkout-methods/{profile_id}/accounts/{merchant_connector_id}/visibility`\n */\n async setAccountVisibility(\n merchantId: string,\n profileId: string,\n merchantConnectorId: string,\n body: CheckoutAccountVisibilityRequest,\n options?: RequestExtras,\n ): Promise<CheckoutAccountVisibilityResponse> {\n return this.request(\n 'PUT',\n `/checkout-methods/${encodeURIComponent(profileId)}/accounts/${encodeURIComponent(merchantConnectorId)}/visibility`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * The shop's checkout entries: separate ways into the hosted checkout of\n * one payment (`?entry=<key>`), such as a card form embedded in the shop's\n * page, a \"Pay with crypto\" checkout and an \"Other payment methods\"\n * checkout, each in its own named look. Live's by default; `environment:\n * 'test'` reads the Test checkout's, used by payments with `test_mode: true`.\n * Refused (403) to a caller that may not see or change every method.\n * `GET /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async entries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('GET', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Replace the shop's entries of one environment. Refused when a key is\n * malformed or used twice, when an entry lists a method, group or card form\n * that environment's layout does not place, or when a card entry's\n * `other_entry` is not another `methods` entry.\n * `PUT /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async updateEntries(\n merchantId: string,\n profileId: string,\n body: CheckoutEntriesUpdateRequest,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('PUT', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n });\n }\n\n /**\n * Delete every entry of one environment. A link that still names an entry\n * then offers nothing.\n * `DELETE /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async clearEntries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('DELETE', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n}\n\nfunction methodsPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test` : shop;\n}\n\nfunction entriesPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test/entries` : `${shop}/entries`;\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-UKLZAOLW.cjs","../src/resources/checkoutMethods.ts"],"names":[],"mappings":"AAAA;AC8BO,IAAM,gBAAA,EAAN,MAAsB;AAAA,EAC3B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,QAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,CAAC,CAAA,EAC5C,OAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,WAAA,CAAY,SAAA,EAAW,MAAA,CAAO,WAAW,CAAA,EAAG;AAAA,MACrE,KAAA,EAAO,EAAE,WAAA,EAAa,WAAW,CAAA;AAAA,MACjC,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,OAAA,CACJ,UAAA,EACA,SAAA,EACA,OAAA,EAA2C,CAAC,CAAA,EAC5C,OAAA,EACkC;AAClC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,EAAA;AACH,MAAA;AACnB,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYE,EAAA;AAK2B,IAAA;AACH,MAAA;AACtB,MAAA;AACG,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUE,EAAA;AAI4B,IAAA;AACZ,IAAA;AACD,IAAA;AACD,MAAA;AACV,QAAA;AACqB,QAAA;AACb,QAAA;AACV,MAAA;AACF,IAAA;AAC2B,IAAA;AACzB,MAAA;AACD,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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/chunk-UKLZAOLW.cjs","sourcesContent":[null,"import type {\n CheckoutAccountVisibilityRequest,\n CheckoutAccountVisibilityResponse,\n CheckoutEntriesResponse,\n CheckoutEntriesUpdateRequest,\n CheckoutMethodsAvailabilityParams,\n CheckoutMethodsAvailabilityResponse,\n CheckoutMethodsChildrenParams,\n CheckoutMethodsChildrenResponse,\n CheckoutMethodsEnvironmentParams,\n CheckoutMethodsResetResponse,\n CheckoutMethodsResponse,\n CheckoutMethodsUpdateRequest,\n ConnectorCoverageResponse,\n CheckoutPaymentMethodOptionsResponse,\n CheckoutRedirectRulesTestRequest,\n CheckoutRedirectRulesTestResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * A shop's payment-method layout for the hosted checkout: the express strip,\n * the main list, the \"other payment methods\" list, and each item's overrides\n * (text, translations, icon, look, open target, visibility). One document per\n * shop (business profile), owned by the shop rather than by each connector\n * account. Until a shop saves one, the router derives a layout from the\n * shop's connector accounts and reports `source: 'derived'`.\n *\n * Dashboard JWT (`CheckoutMethods` read / write) or an admin key.\n */\nexport class CheckoutMethods {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The shop's layout (stored, or derived from its accounts) and every item\n * it may place. Live's by default; `environment: 'test'` reads the Test\n * checkout's, used by payments with `test_mode: true`, which follows Live's\n * (`follows_live`) until its first save.\n * `GET /checkout-methods/{profile_id}` (`/test`)\n */\n async retrieve(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The same document as {@link retrieve}, on the route that stays open to a\n * reader of the checkout's appearance while the role's payment-data\n * visibility is restricted.\n * `GET /checkout-methods/{profile_id}/preview` (`/test/preview`)\n */\n async preview(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('GET', `${methodsPath(profileId, params.environment)}/preview`, {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * Replace the layout of one environment. The router refuses an express\n * item that does not draw its own button, more than two rows of two in the\n * express strip, a title without text, or an item no account of the shop\n * offers. Pass `options.headers` with the `If-Match` of the version read to\n * have a save over a newer change refused.\n * `PUT /checkout-methods/{profile_id}` (`/test`)\n */\n async update(\n merchantId: string,\n profileId: string,\n body: CheckoutMethodsUpdateRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResponse> {\n return this.request('PUT', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n ...options,\n });\n }\n\n /**\n * For a buyer in `country` paying `amount` `currency`: which placeable\n * items they are offered and every reason they are not, asked the way the\n * hosted checkout asks; and how each smart block of the layout evaluates\n * for them (`smart_blocks`). `test_mode` asks the Test environment.\n * `GET /checkout-methods/{profile_id}/availability`\n */\n async availability(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsAvailabilityParams,\n ): Promise<CheckoutMethodsAvailabilityResponse> {\n const { test_mode, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (test_mode) {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/availability`,\n { query },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/availability`, {\n query,\n });\n }\n\n /**\n * What DeloPay's connector information says about a country, for any shop:\n * each provider's method, and whether the provider's list of countries names\n * it. A method with no list is `unknown`, which is no statement either way.\n * Nothing here comes from a merchant's accounts, and it is no promise about\n * what a shop's checkout offers. A role that may not read provider names gets\n * none. `GET /checkout-methods/coverage`\n *\n * @param country The buyer's country, ISO 3166-1 alpha-2.\n */\n async coverage(country: string): Promise<ConnectorCoverageResponse> {\n return this.request('GET', '/checkout-methods/coverage', { query: { country } });\n }\n\n /**\n * What DeloPay confirms beneath each item the shop can place: the card\n * networks the card form's accounts accept, and the methods or coins a\n * provider's page offers, per account, with source and freshness. A\n * provider that answers only per order reports `context_required` until\n * `currency` and `amount` are given. A layout item's `children` narrows\n * these lists and never adds to them.\n * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)\n */\n async children(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsChildrenParams = {},\n ): Promise<CheckoutMethodsChildrenResponse> {\n const { environment, ...order } = params;\n const query = { merchant_id: merchantId, ...order };\n if (environment === 'test') {\n return this.request(\n 'GET',\n `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,\n {\n query,\n },\n );\n }\n return this.request('GET', `/checkout-methods/${encodeURIComponent(profileId)}/children`, {\n query,\n });\n }\n\n /**\n * Delete the stored layout of one environment; Live is back on the derived\n * layout, Test follows Live again.\n * `DELETE /checkout-methods/{profile_id}` (`/test`)\n */\n async reset(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutMethodsResetResponse> {\n return this.request('DELETE', methodsPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n ...options,\n });\n }\n\n /**\n * The methods a payment of the shop can be limited to through\n * `allowed_payment_method_types`, in the order its checkout places them, for\n * one environment. Names methods only, never a processor or account.\n * `GET /checkout-methods/{profile_id}/payment-method-options` (`/test/…`)\n */\n async paymentMethodOptions(\n merchantId: string,\n profileId: string,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutPaymentMethodOptionsResponse> {\n return this.request(\n 'GET',\n `${methodsPath(profileId, params.environment)}/payment-method-options`,\n { query: { merchant_id: merchantId }, ...options },\n );\n }\n\n /**\n * What the given redirect rules, saved or not, decide for the buyer the\n * body describes, and how each rule fared. The buyer's options are the\n * shop's layout after its availability rules and the cap states; nothing is\n * stored. Live's checkout by default, `environment: 'test'` for the Test\n * checkout's. Refused with 422 when the rules are malformed or name an\n * account that is not the shop's, and with 403 when they name one the\n * caller may not read.\n * `POST /checkout-methods/{profile_id}/redirect-rules/test` (`/test/…`)\n */\n async testRedirectRules(\n merchantId: string,\n profileId: string,\n body: CheckoutRedirectRulesTestRequest,\n params: CheckoutMethodsEnvironmentParams = {},\n options?: RequestExtras,\n ): Promise<CheckoutRedirectRulesTestResponse> {\n return this.request(\n 'POST',\n `${methodsPath(profileId, params.environment)}/redirect-rules/test`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * Hide a connector account from the checkout of the named environments, or\n * show it again. Its items stay in the layout, listed with\n * `account_enabled: false`; routing and credentials are not changed.\n * `PUT /checkout-methods/{profile_id}/accounts/{merchant_connector_id}/visibility`\n */\n async setAccountVisibility(\n merchantId: string,\n profileId: string,\n merchantConnectorId: string,\n body: CheckoutAccountVisibilityRequest,\n options?: RequestExtras,\n ): Promise<CheckoutAccountVisibilityResponse> {\n return this.request(\n 'PUT',\n `/checkout-methods/${encodeURIComponent(profileId)}/accounts/${encodeURIComponent(merchantConnectorId)}/visibility`,\n { query: { merchant_id: merchantId }, body, ...options },\n );\n }\n\n /**\n * The shop's checkout entries: separate ways into the hosted checkout of\n * one payment (`?entry=<key>`), such as a card form embedded in the shop's\n * page, a \"Pay with crypto\" checkout and an \"Other payment methods\"\n * checkout, each in its own named look. Live's by default; `environment:\n * 'test'` reads the Test checkout's, used by payments with `test_mode: true`.\n * Refused (403) to a caller that may not see or change every method.\n * `GET /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async entries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('GET', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n\n /**\n * Replace the shop's entries of one environment. Refused when a key is\n * malformed or used twice, when an entry lists a method, group or card form\n * that environment's layout does not place, or when a card entry's\n * `other_entry` is not another `methods` entry.\n * `PUT /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async updateEntries(\n merchantId: string,\n profileId: string,\n body: CheckoutEntriesUpdateRequest,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('PUT', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n body,\n });\n }\n\n /**\n * Delete every entry of one environment. A link that still names an entry\n * then offers nothing.\n * `DELETE /checkout-methods/{profile_id}/entries` (`/test/entries`)\n */\n async clearEntries(\n merchantId: string,\n profileId: string,\n params: { environment?: 'live' | 'test' } = {},\n ): Promise<CheckoutEntriesResponse> {\n return this.request('DELETE', entriesPath(profileId, params.environment), {\n query: { merchant_id: merchantId },\n });\n }\n}\n\nfunction methodsPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test` : shop;\n}\n\nfunction entriesPath(profileId: string, environment: 'live' | 'test' | undefined): string {\n const shop = `/checkout-methods/${encodeURIComponent(profileId)}`;\n return environment === 'test' ? `${shop}/test/entries` : `${shop}/entries`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-V47G7P6L.cjs","../src/listQuery.ts"],"names":[],"mappings":"AAAA;ACSO,SAAS,QAAA,CACd,MAAA,EACA,OAAA,EACyB;AACzB,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ,OAAO,KAAA,CAAA;AACpB,EAAA,MAAM,OAAA,EAA4B,OAAA;AAClC,EAAA,MAAM,MAAA,EAAiC,CAAC,CAAA;AACxC,EAAA,IAAA,CAAA,MAAW,CAAC,GAAA,EAAK,KAAK,EAAA,GAAK,MAAA,CAAO,OAAA,CAAQ,MAAM,CAAA,EAAG;AACjD,IAAA,GAAA,CAAI,CAAC,MAAA,CAAO,QAAA,CAAS,GAAG,EAAA,GAAK,CAAC,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AAClD,MAAA,KAAA,CAAM,GAAG,EAAA,EAAI,KAAA;AAAA,IACf,EAAA,KAAA,GAAA,CAAW,KAAA,CAAM,OAAA,EAAS,CAAA,EAAG;AAC3B,MAAA,KAAA,CAAM,GAAG,EAAA,EAAI,KAAA,CAAM,IAAA,CAAK,GAAG,CAAA;AAAA,IAC7B;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT;ADVA;AACA;AACE;AACF,4BAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-V47G7P6L.cjs","sourcesContent":[null,"import type { RequestOptions } from './client';\n\n/**\n * The query of a list whose multi-value filters travel as one comma-separated\n * value (`status=open,closed`), not as the transport's repeated keys. Each key\n * in `csvKeys` that holds an array is joined with `,`; an empty array is\n * dropped, so it filters nothing. A single value passes through unchanged, and\n * every other key is copied as it is.\n */\nexport function csvQuery<T extends object>(\n params: T | undefined,\n csvKeys: readonly (keyof T & string)[],\n): RequestOptions['query'] {\n if (!params) return undefined;\n const joined: readonly string[] = csvKeys;\n const query: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(params)) {\n if (!joined.includes(key) || !Array.isArray(value)) {\n query[key] = value;\n } else if (value.length > 0) {\n query[key] = value.join(',');\n }\n }\n return query as RequestOptions['query'];\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-V47G7P6L.cjs","../src/listQuery.ts"],"names":[],"mappings":"AAAA;ACSO,SAAS,QAAA,CACd,MAAA,EACA,OAAA,EACyB;AACzB,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ,OAAO,KAAA,CAAA;AACpB,EAAA,MAAM,OAAA,EAA4B,OAAA;AAClC,EAAA,MAAM,MAAA,EAAiC,CAAC,CAAA;AACxC,EAAA,IAAA,CAAA,MAAW,CAAC,GAAA,EAAK,KAAK,EAAA,GAAK,MAAA,CAAO,OAAA,CAAQ,MAAM,CAAA,EAAG;AACjD,IAAA,GAAA,CAAI,CAAC,MAAA,CAAO,QAAA,CAAS,GAAG,EAAA,GAAK,CAAC,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AAClD,MAAA,KAAA,CAAM,GAAG,EAAA,EAAI,KAAA;AAAA,IACf,EAAA,KAAA,GAAA,CAAW,KAAA,CAAM,OAAA,EAAS,CAAA,EAAG;AAC3B,MAAA,KAAA,CAAM,GAAG,EAAA,EAAI,KAAA,CAAM,IAAA,CAAK,GAAG,CAAA;AAAA,IAC7B;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT;ADVA;AACA;AACE;AACF,4BAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-V47G7P6L.cjs","sourcesContent":[null,"import type { RequestOptions } from './client';\n\n/**\n * The query of a list whose multi-value filters travel as one comma-separated\n * value (`status=open,closed`), not as the transport's repeated keys. Each key\n * in `csvKeys` that holds an array is joined with `,`; an empty array is\n * dropped, so it filters nothing. A single value passes through unchanged, and\n * every other key is copied as it is.\n */\nexport function csvQuery<T extends object>(\n params: T | undefined,\n csvKeys: readonly (keyof T & string)[],\n): RequestOptions['query'] {\n if (!params) return undefined;\n const joined: readonly string[] = csvKeys;\n const query: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(params)) {\n if (!joined.includes(key) || !Array.isArray(value)) {\n query[key] = value;\n } else if (value.length > 0) {\n query[key] = value.join(',');\n }\n }\n return query as RequestOptions['query'];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-VH5A6SMU.cjs","../src/resources/paypalDisputes.ts"],"names":[],"mappings":"AAAA;ACiBO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAClD,OAAA,CAAQ,MAAA,EAAgB,OAAA,EAAS,CAAA,EAAyC;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,MAAM,CAAC,CAAA,QAAA,CAAA,EAAY;AAAA,MACzF,KAAA,EAAO,EAAE,OAAO;AAAA,IAClB,CAAC,CAAA;AAAA,EACH;AAAA,EACA,QAAA,CAAS,MAAA,EAAgB,WAAA,EAAqD;AAC5E,IAAA,MAAM,KAAA,EAAqC,EAAE,YAAA,EAAc,YAAY,CAAA;AACvE,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,MACV,MAAA;AAAA,MACA,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,MAAM,CAAC,CAAA,mBAAA,CAAA;AAAA,MACpD,EAAE,KAAK;AAAA,IACT,CAAA;AAAA,EACF;AAAA,EACA,IAAA,CAAK,MAAA,EAAiE;AACpE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,wBAAA,EAA0B;AAAA,MACnD,KAAA,EAAO;AAAA,IACT,CAAC,CAAA;AAAA,EACH;AAAA,EACA,QAAA,CAAS,MAAA,EAAgB,UAAA,EAAY,KAAA,EAAmC;AACtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,uBAAA,EAA0B,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AAC9C,MAAA;AAChC,IAAA;AACH,EAAA;AACkE,EAAA;AACe,IAAA;AAC7D,MAAA;AACjB,IAAA;AACH,EAAA;AACiF,EAAA;AACR,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAI8F,EAAA;AACZ,IAAA;AACxE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADboF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-VH5A6SMU.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n PaypalDisputeCase,\n PaypalDisputeListRequest,\n PaypalDisputeImportRequest,\n PaypalDisputeImportResponse,\n PaypalDisputeActionRequest,\n PaypalDisputeActionResponse,\n PaypalDisputeActionRecord,\n PaypalDisputeDocument,\n PaypalDisputeDownloadRequest,\n} from '../types';\n\n/**\n * PayPal seller cases, including external and subscription sales.\n * Every operation honors the caller's connector-account grants.\n */\nexport class PaypalDisputes {\n constructor(private readonly request: RequestFn) {}\n actions(caseId: string, offset = 0): Promise<PaypalDisputeActionRecord[]> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/actions`, {\n query: { offset },\n });\n }\n download(caseId: string, documentUrl: string): Promise<PaypalDisputeDocument> {\n const body: PaypalDisputeDownloadRequest = { document_url: documentUrl };\n return this.request(\n 'POST',\n `/disputes/paypal/cases/${encodeURIComponent(caseId)}/documents/download`,\n { body },\n );\n }\n list(params?: PaypalDisputeListRequest): Promise<PaypalDisputeCase[]> {\n return this.request('GET', '/disputes/paypal/cases', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n retrieve(caseId: string, forceSync = false): Promise<PaypalDisputeCase> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}`, {\n query: { force_sync: forceSync },\n });\n }\n history(caseId: string, offset = 0): Promise<PaypalDisputeCase[]> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/history`, {\n query: { offset },\n });\n }\n import(params: PaypalDisputeImportRequest): Promise<PaypalDisputeImportResponse> {\n return this.request('POST', '/disputes/paypal/import', { body: params });\n }\n /** The backend checks current provider permissions and deduplicates request_id.\n * An unknown result requires reconciliation, not a new request ID.\n */\n act(caseId: string, params: PaypalDisputeActionRequest): Promise<PaypalDisputeActionResponse> {\n return this.request('POST', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/actions`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-VH5A6SMU.cjs","../src/resources/paypalDisputes.ts"],"names":[],"mappings":"AAAA;ACiBO,IAAM,eAAA,EAAN,MAAqB;AAAA,EAC1B,WAAA,CAA6B,OAA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w4/dist/chunk-VH5A6SMU.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n PaypalDisputeCase,\n PaypalDisputeListRequest,\n PaypalDisputeImportRequest,\n PaypalDisputeImportResponse,\n PaypalDisputeActionRequest,\n PaypalDisputeActionResponse,\n PaypalDisputeActionRecord,\n PaypalDisputeDocument,\n PaypalDisputeDownloadRequest,\n} from '../types';\n\n/**\n * PayPal seller cases, including external and subscription sales.\n * Every operation honors the caller's connector-account grants.\n */\nexport class PaypalDisputes {\n constructor(private readonly request: RequestFn) {}\n actions(caseId: string, offset = 0): Promise<PaypalDisputeActionRecord[]> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/actions`, {\n query: { offset },\n });\n }\n download(caseId: string, documentUrl: string): Promise<PaypalDisputeDocument> {\n const body: PaypalDisputeDownloadRequest = { document_url: documentUrl };\n return this.request(\n 'POST',\n `/disputes/paypal/cases/${encodeURIComponent(caseId)}/documents/download`,\n { body },\n );\n }\n list(params?: PaypalDisputeListRequest): Promise<PaypalDisputeCase[]> {\n return this.request('GET', '/disputes/paypal/cases', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n retrieve(caseId: string, forceSync = false): Promise<PaypalDisputeCase> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}`, {\n query: { force_sync: forceSync },\n });\n }\n history(caseId: string, offset = 0): Promise<PaypalDisputeCase[]> {\n return this.request('GET', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/history`, {\n query: { offset },\n });\n }\n import(params: PaypalDisputeImportRequest): Promise<PaypalDisputeImportResponse> {\n return this.request('POST', '/disputes/paypal/import', { body: params });\n }\n /** The backend checks current provider permissions and deduplicates request_id.\n * An unknown result requires reconciliation, not a new request ID.\n */\n act(caseId: string, params: PaypalDisputeActionRequest): Promise<PaypalDisputeActionResponse> {\n return this.request('POST', `/disputes/paypal/cases/${encodeURIComponent(caseId)}/actions`, {\n body: params,\n });\n }\n}\n"]}
@@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ACP,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;AD3D+E;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-VOIELJLZ.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 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 * 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":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-VOIELJLZ.cjs","../src/resources/analytics.ts"],"names":[],"mappings":"AAAA;ACuBO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A;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;AD3D+E;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-VOIELJLZ.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 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 * 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/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-VYC7WUM5.cjs","../src/resources/whopResolutionCases.ts"],"names":[],"mappings":"AAAA;ACiBO,IAAM,oBAAA,EAAN,MAA0B;AAAA,EAC/B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,IAAA,CAAK,MAAA,EAAwE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,sBAAA,EAAwB;AAAA,MACjD,KAAA,EAAO,EAAE,GAAG,OAAO;AAAA,IACrB,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,QAAA,CAAS,MAAA,EAAgB,OAAA,EAAiE;AACxF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,qBAAA,EAAwB,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AACvD,MAAA;AACrB,IAAA;AACH,EAAA;AAAA;AAMwC,EAAA;AACuC,IAAA;AACxD,MAAA;AACpB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU6C,EAAA;AACmC,IAAA;AACtE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADvBkF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-VYC7WUM5.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n WhopResolutionCase,\n WhopResolutionCaseActionRequest,\n WhopResolutionCaseActionResponse,\n WhopResolutionCaseEventList,\n WhopResolutionCaseEventsRequest,\n WhopResolutionCaseList,\n WhopResolutionCaseListRequest,\n WhopResolutionCaseLocator,\n} from '../types';\n\n/**\n * Whop Resolution Center cases: a buyer's claim before any chargeback. Read\n * and answered live through one Whop connector account and environment.\n * Every operation honors the caller's connector-account grants and shop scope.\n */\nexport class WhopResolutionCases {\n constructor(private readonly request: RequestFn) {}\n\n /** GET /disputes/whop/cases — newest first, one Whop page at a time. */\n list(params: WhopResolutionCaseListRequest): Promise<WhopResolutionCaseList> {\n return this.request('GET', '/disputes/whop/cases', {\n query: { ...params },\n });\n }\n\n /** GET /disputes/whop/cases/{case_id} — the case as Whop reports it now. */\n retrieve(caseId: string, locator: WhopResolutionCaseLocator): Promise<WhopResolutionCase> {\n return this.request('GET', `/disputes/whop/cases/${encodeURIComponent(caseId)}`, {\n query: { ...locator },\n });\n }\n\n /** GET /disputes/whop/cases/{case_id}/events — the case timeline, newest first. */\n events(\n caseId: string,\n params: WhopResolutionCaseEventsRequest,\n ): Promise<WhopResolutionCaseEventList> {\n return this.request('GET', `/disputes/whop/cases/${encodeURIComponent(caseId)}/events`, {\n query: { ...params },\n });\n }\n\n /**\n * POST /disputes/whop/cases/{case_id}/actions — accept, deny, reply or\n * request info. `accept` refunds the payment in full at Whop. An `unknown`\n * outcome is retried with the same `request_id`.\n */\n act(\n caseId: string,\n params: WhopResolutionCaseActionRequest,\n ): Promise<WhopResolutionCaseActionResponse> {\n return this.request('POST', `/disputes/whop/cases/${encodeURIComponent(caseId)}/actions`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-VYC7WUM5.cjs","../src/resources/whopResolutionCases.ts"],"names":[],"mappings":"AAAA;ACiBO,IAAM,oBAAA,EAAN,MAA0B;AAAA,EAC/B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,IAAA,CAAK,MAAA,EAAwE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,sBAAA,EAAwB;AAAA,MACjD,KAAA,EAAO,EAAE,GAAG,OAAO;AAAA,IACrB,CAAC,CAAA;AAAA,EACH;AAAA;AAAA,EAGA,QAAA,CAAS,MAAA,EAAgB,OAAA,EAAiE;AACxF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,qBAAA,EAAwB,kBAAA,CAAmB,MAAM,CAAC,CAAA,CAAA;AACvD,MAAA;AACrB,IAAA;AACH,EAAA;AAAA;AAMwC,EAAA;AACuC,IAAA;AACxD,MAAA;AACpB,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU6C,EAAA;AACmC,IAAA;AACtE,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADvBkF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-VYC7WUM5.cjs","sourcesContent":[null,"import type { RequestFn } from '../client';\nimport type {\n WhopResolutionCase,\n WhopResolutionCaseActionRequest,\n WhopResolutionCaseActionResponse,\n WhopResolutionCaseEventList,\n WhopResolutionCaseEventsRequest,\n WhopResolutionCaseList,\n WhopResolutionCaseListRequest,\n WhopResolutionCaseLocator,\n} from '../types';\n\n/**\n * Whop Resolution Center cases: a buyer's claim before any chargeback. Read\n * and answered live through one Whop connector account and environment.\n * Every operation honors the caller's connector-account grants and shop scope.\n */\nexport class WhopResolutionCases {\n constructor(private readonly request: RequestFn) {}\n\n /** GET /disputes/whop/cases — newest first, one Whop page at a time. */\n list(params: WhopResolutionCaseListRequest): Promise<WhopResolutionCaseList> {\n return this.request('GET', '/disputes/whop/cases', {\n query: { ...params },\n });\n }\n\n /** GET /disputes/whop/cases/{case_id} — the case as Whop reports it now. */\n retrieve(caseId: string, locator: WhopResolutionCaseLocator): Promise<WhopResolutionCase> {\n return this.request('GET', `/disputes/whop/cases/${encodeURIComponent(caseId)}`, {\n query: { ...locator },\n });\n }\n\n /** GET /disputes/whop/cases/{case_id}/events — the case timeline, newest first. */\n events(\n caseId: string,\n params: WhopResolutionCaseEventsRequest,\n ): Promise<WhopResolutionCaseEventList> {\n return this.request('GET', `/disputes/whop/cases/${encodeURIComponent(caseId)}/events`, {\n query: { ...params },\n });\n }\n\n /**\n * POST /disputes/whop/cases/{case_id}/actions — accept, deny, reply or\n * request info. `accept` refunds the payment in full at Whop. An `unknown`\n * outcome is retried with the same `request_id`.\n */\n act(\n caseId: string,\n params: WhopResolutionCaseActionRequest,\n ): Promise<WhopResolutionCaseActionResponse> {\n return this.request('POST', `/disputes/whop/cases/${encodeURIComponent(caseId)}/actions`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-W457XUA6.cjs","../src/internal/resources/platformMessageTemplates.ts"],"names":[],"mappings":"AAAA;ACyBO,IAAM,yBAAA,EAAN,MAA+B;AAAA,EACpC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,IAAA,CAAA,EAAqC;AACzC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iCAAiC,CAAA;AAAA,EAC9D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,UAAA,EAAoD;AACjE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gCAAA,EAAmC,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAC9F,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWoC,EAAA;AACtB,IAAA;AACV,MAAA;AAC+E,MAAA;AAC/E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWoC,EAAA;AACtB,IAAA;AACV,MAAA;AAC+E,MAAA;AAC/E,MAAA;AACuD,QAAA;AACvD,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAMmC,EAAA;AACrB,IAAA;AACV,MAAA;AACiE,MAAA;AAClD,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUoC,EAAA;AACtB,IAAA;AACV,MAAA;AACiE,MAAA;AAClD,MAAA;AACjB,IAAA;AACF,EAAA;AACF;ADzCiG;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-W457XUA6.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\nimport type {\n MessageLanguage,\n MessageTemplateDetail,\n MessageTemplateLanguage,\n MessageTemplateList,\n MessageTemplatePreview,\n PreviewMessageTemplateRequest,\n ResetMessageTemplateLanguageQuery,\n SendTestMessageRequest,\n SendTestMessageResponse,\n UpdateMessageTemplateLanguageRequest,\n} from '../../types';\n\n/**\n * The texts of every message the platform sends, as the operator writes them\n * at the platform scope: dashboard and operator emails, and the platform\n * default of every buyer email. A shop's own text of a buyer email goes\n * before the platform's, and the built-in text applies where neither exists.\n *\n * Reading needs an admin login or API key; writes, resets and test sends need\n * `AccountManage`. Every change is recorded in the audit log\n * (`entity_type: 'message_template'`, `entity_id:\n * 'platform:platform:<channel>:<template_id>:<language>'`).\n */\nexport class PlatformMessageTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /** `GET /admin-portal/message-templates` */\n async list(): Promise<MessageTemplateList> {\n return this.request('GET', '/admin-portal/message-templates');\n }\n\n /** `GET /admin-portal/message-templates/{template_id}` */\n async retrieve(templateId: string): Promise<MessageTemplateDetail> {\n return this.request('GET', `/admin-portal/message-templates/${encodeURIComponent(templateId)}`);\n }\n\n /**\n * Store the platform's text in one language.\n *\n * `PUT /admin-portal/message-templates/{template_id}/languages/{language}`\n */\n async updateLanguage(\n templateId: string,\n language: MessageLanguage,\n params: UpdateMessageTemplateLanguageRequest,\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'PUT',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Remove the platform's text in one language, so the built-in text applies.\n *\n * `DELETE /admin-portal/message-templates/{template_id}/languages/{language}`\n */\n async resetLanguage(\n templateId: string,\n language: MessageLanguage,\n params: ResetMessageTemplateLanguageQuery = {},\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'DELETE',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n {\n query: { expected_revision: params.expected_revision },\n },\n );\n }\n\n /** `POST /admin-portal/message-templates/{template_id}/preview` */\n async preview(\n templateId: string,\n params: PreviewMessageTemplateRequest,\n ): Promise<MessageTemplatePreview> {\n return this.request(\n 'POST',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/preview`,\n { body: params },\n );\n }\n\n /**\n * Send the template to the signed-in admin's own address.\n *\n * `POST /admin-portal/message-templates/{template_id}/test`\n */\n async sendTest(\n templateId: string,\n params: SendTestMessageRequest,\n ): Promise<SendTestMessageResponse> {\n return this.request(\n 'POST',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/test`,\n { body: params },\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-W457XUA6.cjs","../src/internal/resources/platformMessageTemplates.ts"],"names":[],"mappings":"AAAA;ACyBO,IAAM,yBAAA,EAAN,MAA+B;AAAA,EACpC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA,EAGlD,MAAM,IAAA,CAAA,EAAqC;AACzC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,iCAAiC,CAAA;AAAA,EAC9D;AAAA;AAAA,EAGA,MAAM,QAAA,CAAS,UAAA,EAAoD;AACjE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,gCAAA,EAAmC,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AAC9F,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWoC,EAAA;AACtB,IAAA;AACV,MAAA;AAC+E,MAAA;AAC/E,MAAA;AACQ,QAAA;AACR,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWoC,EAAA;AACtB,IAAA;AACV,MAAA;AAC+E,MAAA;AAC/E,MAAA;AACuD,QAAA;AACvD,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAMmC,EAAA;AACrB,IAAA;AACV,MAAA;AACiE,MAAA;AAClD,MAAA;AACjB,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUoC,EAAA;AACtB,IAAA;AACV,MAAA;AACiE,MAAA;AAClD,MAAA;AACjB,IAAA;AACF,EAAA;AACF;ADzCiG;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-W457XUA6.cjs","sourcesContent":[null,"import type { RequestFn } from '../../client';\nimport type {\n MessageLanguage,\n MessageTemplateDetail,\n MessageTemplateLanguage,\n MessageTemplateList,\n MessageTemplatePreview,\n PreviewMessageTemplateRequest,\n ResetMessageTemplateLanguageQuery,\n SendTestMessageRequest,\n SendTestMessageResponse,\n UpdateMessageTemplateLanguageRequest,\n} from '../../types';\n\n/**\n * The texts of every message the platform sends, as the operator writes them\n * at the platform scope: dashboard and operator emails, and the platform\n * default of every buyer email. A shop's own text of a buyer email goes\n * before the platform's, and the built-in text applies where neither exists.\n *\n * Reading needs an admin login or API key; writes, resets and test sends need\n * `AccountManage`. Every change is recorded in the audit log\n * (`entity_type: 'message_template'`, `entity_id:\n * 'platform:platform:<channel>:<template_id>:<language>'`).\n */\nexport class PlatformMessageTemplates {\n constructor(private readonly request: RequestFn) {}\n\n /** `GET /admin-portal/message-templates` */\n async list(): Promise<MessageTemplateList> {\n return this.request('GET', '/admin-portal/message-templates');\n }\n\n /** `GET /admin-portal/message-templates/{template_id}` */\n async retrieve(templateId: string): Promise<MessageTemplateDetail> {\n return this.request('GET', `/admin-portal/message-templates/${encodeURIComponent(templateId)}`);\n }\n\n /**\n * Store the platform's text in one language.\n *\n * `PUT /admin-portal/message-templates/{template_id}/languages/{language}`\n */\n async updateLanguage(\n templateId: string,\n language: MessageLanguage,\n params: UpdateMessageTemplateLanguageRequest,\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'PUT',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n {\n body: params,\n },\n );\n }\n\n /**\n * Remove the platform's text in one language, so the built-in text applies.\n *\n * `DELETE /admin-portal/message-templates/{template_id}/languages/{language}`\n */\n async resetLanguage(\n templateId: string,\n language: MessageLanguage,\n params: ResetMessageTemplateLanguageQuery = {},\n ): Promise<MessageTemplateLanguage> {\n return this.request(\n 'DELETE',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,\n {\n query: { expected_revision: params.expected_revision },\n },\n );\n }\n\n /** `POST /admin-portal/message-templates/{template_id}/preview` */\n async preview(\n templateId: string,\n params: PreviewMessageTemplateRequest,\n ): Promise<MessageTemplatePreview> {\n return this.request(\n 'POST',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/preview`,\n { body: params },\n );\n }\n\n /**\n * Send the template to the signed-in admin's own address.\n *\n * `POST /admin-portal/message-templates/{template_id}/test`\n */\n async sendTest(\n templateId: string,\n params: SendTestMessageRequest,\n ): Promise<SendTestMessageResponse> {\n return this.request(\n 'POST',\n `/admin-portal/message-templates/${encodeURIComponent(templateId)}/test`,\n { body: params },\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-WHDI3TMP.cjs","../src/resources/verification.ts"],"names":[],"mappings":"AAAA;ACOO,IAAM,aAAA,EAAN,MAAmB;AAAA,EACxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,uBAAA,CACJ,UAAA,EACA,MAAA,EACuC;AACvC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AACvE,MAAA;AACP,IAAA;AACH,EAAA;AAI4C,EAAA;AACsB,IAAA;AACvD,MAAA;AACR,IAAA;AACH,EAAA;AACF;ADVoF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-WHDI3TMP.cjs","sourcesContent":[null,"import type {\n ApplePayVerificationRequest,\n ApplePayVerificationResponse,\n ApplePayVerifiedDomainsResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class Verification {\n constructor(private readonly request: RequestFn) {}\n\n async registerApplePayDomains(\n merchantId: string,\n params: ApplePayVerificationRequest,\n ): Promise<ApplePayVerificationResponse> {\n return this.request('POST', `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n async getApplePayVerifiedDomains(\n params: Record<string, string>,\n ): Promise<ApplePayVerifiedDomainsResponse> {\n return this.request('GET', '/verify/applepay-verified-domains', {\n query: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-WHDI3TMP.cjs","../src/resources/verification.ts"],"names":[],"mappings":"AAAA;ACOO,IAAM,aAAA,EAAN,MAAmB;AAAA,EACxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,uBAAA,CACJ,UAAA,EACA,MAAA,EACuC;AACvC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,CAAA,kBAAA,EAAqB,kBAAA,CAAmB,UAAU,CAAC,CAAA,CAAA;AACvE,MAAA;AACP,IAAA;AACH,EAAA;AAI4C,EAAA;AACsB,IAAA;AACvD,MAAA;AACR,IAAA;AACH,EAAA;AACF;ADVoF;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-WHDI3TMP.cjs","sourcesContent":[null,"import type {\n ApplePayVerificationRequest,\n ApplePayVerificationResponse,\n ApplePayVerifiedDomainsResponse,\n} from '../types';\nimport type { RequestFn } from '../client';\n\nexport class Verification {\n constructor(private readonly request: RequestFn) {}\n\n async registerApplePayDomains(\n merchantId: string,\n params: ApplePayVerificationRequest,\n ): Promise<ApplePayVerificationResponse> {\n return this.request('POST', `/verify/apple-pay/${encodeURIComponent(merchantId)}`, {\n body: params,\n });\n }\n\n async getApplePayVerifiedDomains(\n params: Record<string, string>,\n ): Promise<ApplePayVerifiedDomainsResponse> {\n return this.request('GET', '/verify/applepay-verified-domains', {\n query: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-WITCPKNL.cjs","../src/internal/resources/cardIssuers.ts"],"names":[],"mappings":"AAAA;ACQO,IAAM,YAAA,EAAN,MAAkB;AAAA,EACvB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAA8D;AACzE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC/D;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAkB,MAAA,EAA8D;AAC3F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,cAAA,EAAiB,kBAAA,CAAmB,QAAQ,CAAC,CAAA,CAAA;AAC1E,EAAA;AAE8C,EAAA;AACF,IAAA;AAC5C,EAAA;AACF;ADP6E;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-WITCPKNL.cjs","sourcesContent":[null,"import type {\n CardIssuerCreateRequest,\n CardIssuerResponse,\n CardIssuerUpdateRequest,\n CardIssuerListResponse,\n} from '../types';\nimport type { RequestFn } from '../../client';\n\nexport class CardIssuers {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: CardIssuerCreateRequest): Promise<CardIssuerResponse> {\n return this.request('POST', '/card-issuers', { body: params });\n }\n\n async update(issuerId: string, params: CardIssuerUpdateRequest): Promise<CardIssuerResponse> {\n return this.request('PUT', `/card-issuers/${encodeURIComponent(issuerId)}`, { body: params });\n }\n\n async list(): Promise<CardIssuerListResponse> {\n return this.request('GET', '/card-issuers');\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-WITCPKNL.cjs","../src/internal/resources/cardIssuers.ts"],"names":[],"mappings":"AAAA;ACQO,IAAM,YAAA,EAAN,MAAkB;AAAA,EACvB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAA8D;AACzE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,eAAA,EAAiB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC/D;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAkB,MAAA,EAA8D;AAC3F,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,cAAA,EAAiB,kBAAA,CAAmB,QAAQ,CAAC,CAAA,CAAA;AAC1E,EAAA;AAE8C,EAAA;AACF,IAAA;AAC5C,EAAA;AACF;ADP6E;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-WITCPKNL.cjs","sourcesContent":[null,"import type {\n CardIssuerCreateRequest,\n CardIssuerResponse,\n CardIssuerUpdateRequest,\n CardIssuerListResponse,\n} from '../types';\nimport type { RequestFn } from '../../client';\n\nexport class CardIssuers {\n constructor(private readonly request: RequestFn) {}\n\n async create(params: CardIssuerCreateRequest): Promise<CardIssuerResponse> {\n return this.request('POST', '/card-issuers', { body: params });\n }\n\n async update(issuerId: string, params: CardIssuerUpdateRequest): Promise<CardIssuerResponse> {\n return this.request('PUT', `/card-issuers/${encodeURIComponent(issuerId)}`, { body: params });\n }\n\n async list(): Promise<CardIssuerListResponse> {\n return this.request('GET', '/card-issuers');\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-WX6NP7UU.cjs","../src/resources/threeDsRules.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,aAAA,EAAN,MAAmB;AAAA,EACxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,OAAA,CAAQ,MAAA,EAAiE;AAC7E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AACF,CAAA;ADAA;AACA;AACE;AACF,oCAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-WX6NP7UU.cjs","sourcesContent":[null,"import type { ThreeDsRuleExecuteRequest, ThreeDsRuleResponse } from '../types';\nimport type { RequestFn } from '../client';\n\nexport class ThreeDsRules {\n constructor(private readonly request: RequestFn) {}\n\n async execute(params: ThreeDsRuleExecuteRequest): Promise<ThreeDsRuleResponse> {\n return this.request('POST', '/three-ds-decision/execute', { body: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-WX6NP7UU.cjs","../src/resources/threeDsRules.ts"],"names":[],"mappings":"AAAA;ACGO,IAAM,aAAA,EAAN,MAAmB;AAAA,EACxB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,OAAA,CAAQ,MAAA,EAAiE;AAC7E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC5E;AACF,CAAA;ADAA;AACA;AACE;AACF,oCAAC","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-WX6NP7UU.cjs","sourcesContent":[null,"import type { ThreeDsRuleExecuteRequest, ThreeDsRuleResponse } from '../types';\nimport type { RequestFn } from '../client';\n\nexport class ThreeDsRules {\n constructor(private readonly request: RequestFn) {}\n\n async execute(params: ThreeDsRuleExecuteRequest): Promise<ThreeDsRuleResponse> {\n return this.request('POST', '/three-ds-decision/execute', { body: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0420-clone-w4/dist/chunk-XQLRIBVR.cjs","../src/eventStream.ts"],"names":[],"mappings":"AAAA;AC0BA,IAAM,GAAA,EAAK,EAAA;AACX,IAAM,GAAA,EAAK,EAAA;AAGJ,IAAM,kBAAA,EAAN,MAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAe7B,WAAA,CAAY,YAAA,EAAc,EAAA,EAAI;AAd9B,IAAA,IAAA,CAAQ,KAAA,EAAO,EAAA;AAEf;AAAA,IAAA,IAAA,CAAQ,OAAA,EAAS,KAAA;AACjB,IAAA,IAAA,CAAQ,KAAA,EAAO,EAAA;AACf,IAAA,IAAA,CAAQ,QAAA,EAAU,KAAA;AAClB,IAAA,IAAA,CAAQ,UAAA,EAAY,EAAA;AAEpB,IAAA,IAAA,CAAQ,MAAA,EAAuB,IAAA;AAQ7B,IAAA,IAAA,CAAK,SAAA,EAAW,WAAA;AAAA,EAClB;AAAA;AAAA,EAGA,IAAA,CAAK,IAAA,EAAqC;AACxC,IAAA,MAAM,IAAA,EAA6B,CAAC,CAAA;AACpC,IAAA,GAAA,CAAI,IAAA,CAAK,OAAA,IAAW,CAAA,EAAG,OAAO,GAAA;AAC9B,IAAA,IAAI,MAAA,EAAQ,CAAA;AACZ,IAAA,GAAA,CAAI,IAAA,CAAK,MAAA,EAAQ;AACf,MAAA,IAAA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`text/event-stream` (server-sent events) parser, after the WHATWG HTML\n * standard's \"event stream interpretation\", for streams read through `fetch`\n * rather than `EventSource` — which cannot send an `Authorization` header.\n *\n * It holds only the line in progress and the event being assembled, never the\n * body read so far: a stream may stay open for half an hour.\n */\n\n/** One dispatch of the stream, in the order the stream made them. */\nexport interface EventStreamDispatch {\n /**\n * The stream's last event id after this dispatch. Every dispatch sets it,\n * one without data too: that is how a keepalive advances the position.\n * `''` when the server reset it, or never sent one.\n */\n lastEventId: string;\n /** The reconnection time the stream last announced (`retry:`), in ms. */\n retry: number | null;\n /**\n * The event, or `null` for a dispatch without data, which carries only\n * the id. `type` is `message` when the stream named none.\n */\n event: { type: string; data: string } | null;\n}\n\nconst LF = 10;\nconst CR = 13;\n\n/** Parses decoded text into dispatches, however the text is split into chunks. */\nexport class EventStreamParser {\n private line = '';\n /** The previous chunk ended in CR: a LF opening the next one belongs to it. */\n private skipLf = false;\n private data = '';\n private hasData = false;\n private eventType = '';\n private idBuffer: string;\n private retry: number | null = null;\n\n /**\n * @param lastEventId - The id the stream resumes after, as `EventSource`\n * carries it into a reconnection: a dispatch before the server names an\n * id keeps this one.\n */\n constructor(lastEventId = '') {\n this.idBuffer = lastEventId;\n }\n\n /** Feed the next piece of decoded text; returns the dispatches it completed. */\n push(text: string): EventStreamDispatch[] {\n const out: EventStreamDispatch[] = [];\n if (text.length === 0) return out;\n let start = 0;\n if (this.skipLf) {\n this.skipLf = false;\n if (text.charCodeAt(0) === LF) start = 1;\n }\n for (let i = start; i < text.length; i++) {\n const c = text.charCodeAt(i);\n if (c !== LF && c !== CR) continue;\n const line = this.line + text.slice(start, i);\n this.line = '';\n this.processLine(line, out);\n if (c === CR) {\n if (i + 1 < text.length) {\n if (text.charCodeAt(i + 1) === LF) i++;\n } else {\n this.skipLf = true;\n }\n }\n start = i + 1;\n }\n this.line += text.slice(start);\n return out;\n }\n\n private processLine(line: string, out: EventStreamDispatch[]): void {\n if (line === '') {\n this.dispatch(out);\n return;\n }\n if (line.charCodeAt(0) === 0x3a /* : */) return; // a comment\n const colon = line.indexOf(':');\n let field: string;\n let value: string;\n if (colon === -1) {\n field = line;\n value = '';\n } else {\n field = line.slice(0, colon);\n value = line.slice(colon + 1);\n if (value.charCodeAt(0) === 0x20 /* space */) value = value.slice(1);\n }\n switch (field) {\n case 'event':\n this.eventType = value;\n break;\n case 'data':\n this.data = this.hasData ? `${this.data}\\n${value}` : value;\n this.hasData = true;\n break;\n case 'id':\n if (!value.includes('\\u0000')) this.idBuffer = value;\n break;\n case 'retry':\n if (/^[0-9]+$/.test(value)) {\n const ms = Number(value);\n if (Number.isSafeInteger(ms)) this.retry = ms;\n }\n break;\n default:\n // Unknown fields are ignored.\n break;\n }\n }\n\n private dispatch(out: EventStreamDispatch[]): void {\n const event = this.hasData ? { type: this.eventType || 'message', data: this.data } : null;\n out.push({ lastEventId: this.idBuffer, retry: this.retry, event });\n this.data = '';\n this.hasData = false;\n this.eventType = '';\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-XQLRIBVR.cjs","../src/eventStream.ts"],"names":[],"mappings":"AAAA;AC0BA,IAAM,GAAA,EAAK,EAAA;AACX,IAAM,GAAA,EAAK,EAAA;AAGJ,IAAM,kBAAA,EAAN,MAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAe7B,WAAA,CAAY,YAAA,EAAc,EAAA,EAAI;AAd9B,IAAA,IAAA,CAAQ,KAAA,EAAO,EAAA;AAEf;AAAA,IAAA,IAAA,CAAQ,OAAA,EAAS,KAAA;AACjB,IAAA,IAAA,CAAQ,KAAA,EAAO,EAAA;AACf,IAAA,IAAA,CAAQ,QAAA,EAAU,KAAA;AAClB,IAAA,IAAA,CAAQ,UAAA,EAAY,EAAA;AAEpB,IAAA,IAAA,CAAQ,MAAA,EAAuB,IAAA;AAQ7B,IAAA,IAAA,CAAK,SAAA,EAAW,WAAA;AAAA,EAClB;AAAA;AAA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A,QAAA;AACF,MAAA;AAEE,QAAA;AACJ,IAAA;AACF,EAAA;AAEmD,EAAA;AAClB,IAAA;AACF,IAAA;AACjB,IAAA;AACG,IAAA;AACE,IAAA;AACnB,EAAA;AACF;AD/BoC;AACA;AACA;AACA","file":"/home/anes/delo-payment/_worktrees/sdk-publish-0424-clone-w4/dist/chunk-XQLRIBVR.cjs","sourcesContent":[null,"/**\n * A `text/event-stream` (server-sent events) parser, after the WHATWG HTML\n * standard's \"event stream interpretation\", for streams read through `fetch`\n * rather than `EventSource` — which cannot send an `Authorization` header.\n *\n * It holds only the line in progress and the event being assembled, never the\n * body read so far: a stream may stay open for half an hour.\n */\n\n/** One dispatch of the stream, in the order the stream made them. */\nexport interface EventStreamDispatch {\n /**\n * The stream's last event id after this dispatch. Every dispatch sets it,\n * one without data too: that is how a keepalive advances the position.\n * `''` when the server reset it, or never sent one.\n */\n lastEventId: string;\n /** The reconnection time the stream last announced (`retry:`), in ms. */\n retry: number | null;\n /**\n * The event, or `null` for a dispatch without data, which carries only\n * the id. `type` is `message` when the stream named none.\n */\n event: { type: string; data: string } | null;\n}\n\nconst LF = 10;\nconst CR = 13;\n\n/** Parses decoded text into dispatches, however the text is split into chunks. */\nexport class EventStreamParser {\n private line = '';\n /** The previous chunk ended in CR: a LF opening the next one belongs to it. */\n private skipLf = false;\n private data = '';\n private hasData = false;\n private eventType = '';\n private idBuffer: string;\n private retry: number | null = null;\n\n /**\n * @param lastEventId - The id the stream resumes after, as `EventSource`\n * carries it into a reconnection: a dispatch before the server names an\n * id keeps this one.\n */\n constructor(lastEventId = '') {\n this.idBuffer = lastEventId;\n }\n\n /** Feed the next piece of decoded text; returns the dispatches it completed. */\n push(text: string): EventStreamDispatch[] {\n const out: EventStreamDispatch[] = [];\n if (text.length === 0) return out;\n let start = 0;\n if (this.skipLf) {\n this.skipLf = false;\n if (text.charCodeAt(0) === LF) start = 1;\n }\n for (let i = start; i < text.length; i++) {\n const c = text.charCodeAt(i);\n if (c !== LF && c !== CR) continue;\n const line = this.line + text.slice(start, i);\n this.line = '';\n this.processLine(line, out);\n if (c === CR) {\n if (i + 1 < text.length) {\n if (text.charCodeAt(i + 1) === LF) i++;\n } else {\n this.skipLf = true;\n }\n }\n start = i + 1;\n }\n this.line += text.slice(start);\n return out;\n }\n\n private processLine(line: string, out: EventStreamDispatch[]): void {\n if (line === '') {\n this.dispatch(out);\n return;\n }\n if (line.charCodeAt(0) === 0x3a /* : */) return; // a comment\n const colon = line.indexOf(':');\n let field: string;\n let value: string;\n if (colon === -1) {\n field = line;\n value = '';\n } else {\n field = line.slice(0, colon);\n value = line.slice(colon + 1);\n if (value.charCodeAt(0) === 0x20 /* space */) value = value.slice(1);\n }\n switch (field) {\n case 'event':\n this.eventType = value;\n break;\n case 'data':\n this.data = this.hasData ? `${this.data}\\n${value}` : value;\n this.hasData = true;\n break;\n case 'id':\n if (!value.includes('\\u0000')) this.idBuffer = value;\n break;\n case 'retry':\n if (/^[0-9]+$/.test(value)) {\n const ms = Number(value);\n if (Number.isSafeInteger(ms)) this.retry = ms;\n }\n break;\n default:\n // Unknown fields are ignored.\n break;\n }\n }\n\n private dispatch(out: EventStreamDispatch[]): void {\n const event = this.hasData ? { type: this.eventType || 'message', data: this.data } : null;\n out.push({ lastEventId: this.idBuffer, retry: this.retry, event });\n this.data = '';\n this.hasData = false;\n this.eventType = '';\n }\n}\n"]}
@@ -0,0 +1,172 @@
1
+ // src/resources/industries.ts
2
+ var Industries = class {
3
+ constructor(request) {
4
+ this.request = request;
5
+ }
6
+ /**
7
+ * The merchant's industry: the default its projects and shops inherit.
8
+ *
9
+ * `GET /industries/merchant`
10
+ */
11
+ async retrieveMerchant() {
12
+ return this.request("GET", "/industries/merchant");
13
+ }
14
+ /**
15
+ * Select the merchant's industry.
16
+ *
17
+ * `PUT /industries/merchant`
18
+ */
19
+ async setMerchant(params, options) {
20
+ return this.request("PUT", "/industries/merchant", { body: params, query: { ...options } });
21
+ }
22
+ /**
23
+ * Clear the merchant's industry.
24
+ *
25
+ * `DELETE /industries/merchant`
26
+ */
27
+ async clearMerchant(options) {
28
+ return this.request("DELETE", "/industries/merchant", { query: { ...options } });
29
+ }
30
+ /**
31
+ * One project's industry.
32
+ *
33
+ * `GET /industries/projects/{projectId}`
34
+ */
35
+ async retrieveProject(projectId) {
36
+ return this.request("GET", projectPath(projectId));
37
+ }
38
+ /**
39
+ * Select one project's industry.
40
+ *
41
+ * `PUT /industries/projects/{projectId}`
42
+ */
43
+ async setProject(projectId, params, options) {
44
+ return this.request("PUT", projectPath(projectId), { body: params, query: { ...options } });
45
+ }
46
+ /**
47
+ * Clear one project's industry, so it inherits again.
48
+ *
49
+ * `DELETE /industries/projects/{projectId}`
50
+ */
51
+ async clearProject(projectId, options) {
52
+ return this.request("DELETE", projectPath(projectId), { query: { ...options } });
53
+ }
54
+ /**
55
+ * One shop's industry.
56
+ *
57
+ * `GET /industries/shops/{profileId}`
58
+ */
59
+ async retrieveShop(profileId) {
60
+ return this.request("GET", shopPath(profileId));
61
+ }
62
+ /**
63
+ * Select one shop's industry.
64
+ *
65
+ * `PUT /industries/shops/{profileId}`
66
+ */
67
+ async setShop(profileId, params, options) {
68
+ return this.request("PUT", shopPath(profileId), { body: params, query: { ...options } });
69
+ }
70
+ /**
71
+ * Clear one shop's industry, so it inherits again.
72
+ *
73
+ * `DELETE /industries/shops/{profileId}`
74
+ */
75
+ async clearShop(profileId, options) {
76
+ return this.request("DELETE", shopPath(profileId), { query: { ...options } });
77
+ }
78
+ /**
79
+ * What selecting `industry_id` for the merchant (or clearing it, when
80
+ * omitted) would move: the shops whose effective industry changes and their
81
+ * payments, test and live, in total, from `from_date` and from today.
82
+ * Writes nothing. Same permission as reading the classification.
83
+ *
84
+ * `GET /industries/merchant/impact`
85
+ */
86
+ async impactMerchant(query = {}) {
87
+ return this.request("GET", "/industries/merchant/impact", { query: { ...query } });
88
+ }
89
+ /**
90
+ * As `impactMerchant`, for one project's selection.
91
+ *
92
+ * `GET /industries/projects/{projectId}/impact`
93
+ */
94
+ async impactProject(projectId, query = {}) {
95
+ return this.request("GET", `${projectPath(projectId)}/impact`, { query: { ...query } });
96
+ }
97
+ /**
98
+ * As `impactMerchant`, for one shop's selection.
99
+ *
100
+ * `GET /industries/shops/{profileId}/impact`
101
+ */
102
+ async impactShop(profileId, query = {}) {
103
+ return this.request("GET", `${shopPath(profileId)}/impact`, { query: { ...query } });
104
+ }
105
+ /**
106
+ * The merchant's own industries: the active ones, and those mapped to one of
107
+ * DeloPay's in the last 90 days, with the selections naming each. Needs
108
+ * `MerchantIndustryRead` at merchant level.
109
+ *
110
+ * `GET /industries/own`
111
+ */
112
+ async listOwn() {
113
+ return this.request("GET", "/industries/own");
114
+ }
115
+ /**
116
+ * Define an industry only this merchant sees and selects, optionally under
117
+ * one of DeloPay's industries it can select. It never has sub-industries; at
118
+ * most 100 are active at once (422, `IR_06`). Needs `MerchantIndustryWrite`
119
+ * at merchant level.
120
+ *
121
+ * `POST /industries/own`
122
+ */
123
+ async createOwn(params) {
124
+ return this.request("POST", "/industries/own", { body: params });
125
+ }
126
+ /**
127
+ * Rename an active own industry. With `apply_to` `from` or `today` the answer
128
+ * is the new own industry that carries the new name (see
129
+ * `OwnIndustryRenameRequest`). Needs `MerchantIndustryWrite`.
130
+ *
131
+ * `PATCH /industries/own/{industryId}`
132
+ */
133
+ async renameOwn(industryId, params) {
134
+ return this.request("PATCH", ownPath(industryId), { body: params });
135
+ }
136
+ /**
137
+ * Archive an active own industry. While a selection names it, `replacement`
138
+ * is required: an industry the merchant can select, which every such
139
+ * selection then names, or `'inherit'`, which clears them. The shops whose
140
+ * industry changes move their payments from `apply_to` on. Needs
141
+ * `MerchantIndustryWrite`.
142
+ *
143
+ * `DELETE /industries/own/{industryId}`
144
+ */
145
+ async removeOwn(industryId, query = {}) {
146
+ return this.request("DELETE", ownPath(industryId), { query: { ...query } });
147
+ }
148
+ /**
149
+ * At most three of DeloPay's industries and sub-industries the merchant can
150
+ * select that are like `name`, closest first: a hint before defining an own
151
+ * industry. Needs `MerchantIndustryRead` at merchant level.
152
+ *
153
+ * `GET /industries/suggest`
154
+ */
155
+ async suggest(query) {
156
+ return this.request("GET", "/industries/suggest", { query: { ...query } });
157
+ }
158
+ };
159
+ function projectPath(projectId) {
160
+ return `/industries/projects/${encodeURIComponent(projectId)}`;
161
+ }
162
+ function shopPath(profileId) {
163
+ return `/industries/shops/${encodeURIComponent(profileId)}`;
164
+ }
165
+ function ownPath(industryId) {
166
+ return `/industries/own/${encodeURIComponent(industryId)}`;
167
+ }
168
+
169
+ export {
170
+ Industries
171
+ };
172
+ //# sourceMappingURL=chunk-XYX25TII.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/industries.ts"],"sourcesContent":["import type {\n IndustryApplyQuery,\n IndustryChangeImpact,\n IndustryClassification,\n IndustryImpactQuery,\n IndustrySelectionRequest,\n IndustrySuggestQuery,\n IndustrySuggestions,\n OwnIndustry,\n OwnIndustryCreateRequest,\n OwnIndustryList,\n OwnIndustryRemoveQuery,\n OwnIndustryRemoved,\n OwnIndustryRenameRequest,\n} from '../types';\nimport type { RequestFn } from '../client';\n\n/**\n * The industry of the caller's merchant, its projects and its shops.\n *\n * One primary industry per merchant, project or shop: an industry or a\n * sub-industry, which implies its industry. A shop without its own selection\n * inherits the nearest one of its project and that project's parents, then the\n * merchant's. A project inherits from its parents, then the merchant. Every\n * call answers the target's `IndustryClassification`: what is stored there,\n * what it inherits, what applies, what can be selected and whether the caller\n * may change it.\n *\n * Classification only: payments, routing, risk policies, the merchant\n * category code and shop labels do not read it, and a change writes none of\n * them. Every change is recorded in the audit log\n * (`entity_type: 'industry_selection'`).\n *\n * A payment counts in the industry its shop had when the payment was created.\n * Every write that changes a shop's industry takes an optional\n * `IndustryApplyQuery`: which of its existing payments follow the change\n * (`all`, the default; from a `from_date`; or from today). The `impact*`\n * methods preview how many would move before writing. Besides DeloPay's\n * industries, a merchant can define its own (`createOwn`), which only it sees\n * and selects.\n *\n * Dashboard (JWT) routes; the merchant comes from the token. Reading needs\n * `MerchantIndustryRead` (merchant, project) or `ProfileIndustryRead` (shop);\n * changing needs `MerchantIndustryWrite`, `MerchantIndustryEdit` or\n * `ProfileIndustryEdit`. A scope the caller may not address answers 403\n * (`IR_22`); a project or shop the merchant does not hold answers 404\n * (`IR_37`); an id that cannot be selected there answers 400 (`IR_16`).\n */\nexport class Industries {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant's industry: the default its projects and shops inherit.\n *\n * `GET /industries/merchant`\n */\n async retrieveMerchant(): Promise<IndustryClassification> {\n return this.request('GET', '/industries/merchant');\n }\n\n /**\n * Select the merchant's industry.\n *\n * `PUT /industries/merchant`\n */\n async setMerchant(\n params: IndustrySelectionRequest,\n options?: IndustryApplyQuery,\n ): Promise<IndustryClassification> {\n return this.request('PUT', '/industries/merchant', { body: params, query: { ...options } });\n }\n\n /**\n * Clear the merchant's industry.\n *\n * `DELETE /industries/merchant`\n */\n async clearMerchant(options?: IndustryApplyQuery): Promise<IndustryClassification> {\n return this.request('DELETE', '/industries/merchant', { query: { ...options } });\n }\n\n /**\n * One project's industry.\n *\n * `GET /industries/projects/{projectId}`\n */\n async retrieveProject(projectId: string): Promise<IndustryClassification> {\n return this.request('GET', projectPath(projectId));\n }\n\n /**\n * Select one project's industry.\n *\n * `PUT /industries/projects/{projectId}`\n */\n async setProject(\n projectId: string,\n params: IndustrySelectionRequest,\n options?: IndustryApplyQuery,\n ): Promise<IndustryClassification> {\n return this.request('PUT', projectPath(projectId), { body: params, query: { ...options } });\n }\n\n /**\n * Clear one project's industry, so it inherits again.\n *\n * `DELETE /industries/projects/{projectId}`\n */\n async clearProject(\n projectId: string,\n options?: IndustryApplyQuery,\n ): Promise<IndustryClassification> {\n return this.request('DELETE', projectPath(projectId), { query: { ...options } });\n }\n\n /**\n * One shop's industry.\n *\n * `GET /industries/shops/{profileId}`\n */\n async retrieveShop(profileId: string): Promise<IndustryClassification> {\n return this.request('GET', shopPath(profileId));\n }\n\n /**\n * Select one shop's industry.\n *\n * `PUT /industries/shops/{profileId}`\n */\n async setShop(\n profileId: string,\n params: IndustrySelectionRequest,\n options?: IndustryApplyQuery,\n ): Promise<IndustryClassification> {\n return this.request('PUT', shopPath(profileId), { body: params, query: { ...options } });\n }\n\n /**\n * Clear one shop's industry, so it inherits again.\n *\n * `DELETE /industries/shops/{profileId}`\n */\n async clearShop(\n profileId: string,\n options?: IndustryApplyQuery,\n ): Promise<IndustryClassification> {\n return this.request('DELETE', shopPath(profileId), { query: { ...options } });\n }\n\n /**\n * What selecting `industry_id` for the merchant (or clearing it, when\n * omitted) would move: the shops whose effective industry changes and their\n * payments, test and live, in total, from `from_date` and from today.\n * Writes nothing. Same permission as reading the classification.\n *\n * `GET /industries/merchant/impact`\n */\n async impactMerchant(query: IndustryImpactQuery = {}): Promise<IndustryChangeImpact> {\n return this.request('GET', '/industries/merchant/impact', { query: { ...query } });\n }\n\n /**\n * As `impactMerchant`, for one project's selection.\n *\n * `GET /industries/projects/{projectId}/impact`\n */\n async impactProject(\n projectId: string,\n query: IndustryImpactQuery = {},\n ): Promise<IndustryChangeImpact> {\n return this.request('GET', `${projectPath(projectId)}/impact`, { query: { ...query } });\n }\n\n /**\n * As `impactMerchant`, for one shop's selection.\n *\n * `GET /industries/shops/{profileId}/impact`\n */\n async impactShop(\n profileId: string,\n query: IndustryImpactQuery = {},\n ): Promise<IndustryChangeImpact> {\n return this.request('GET', `${shopPath(profileId)}/impact`, { query: { ...query } });\n }\n\n /**\n * The merchant's own industries: the active ones, and those mapped to one of\n * DeloPay's in the last 90 days, with the selections naming each. Needs\n * `MerchantIndustryRead` at merchant level.\n *\n * `GET /industries/own`\n */\n async listOwn(): Promise<OwnIndustryList> {\n return this.request('GET', '/industries/own');\n }\n\n /**\n * Define an industry only this merchant sees and selects, optionally under\n * one of DeloPay's industries it can select. It never has sub-industries; at\n * most 100 are active at once (422, `IR_06`). Needs `MerchantIndustryWrite`\n * at merchant level.\n *\n * `POST /industries/own`\n */\n async createOwn(params: OwnIndustryCreateRequest): Promise<OwnIndustry> {\n return this.request('POST', '/industries/own', { body: params });\n }\n\n /**\n * Rename an active own industry. With `apply_to` `from` or `today` the answer\n * is the new own industry that carries the new name (see\n * `OwnIndustryRenameRequest`). Needs `MerchantIndustryWrite`.\n *\n * `PATCH /industries/own/{industryId}`\n */\n async renameOwn(industryId: string, params: OwnIndustryRenameRequest): Promise<OwnIndustry> {\n return this.request('PATCH', ownPath(industryId), { body: params });\n }\n\n /**\n * Archive an active own industry. While a selection names it, `replacement`\n * is required: an industry the merchant can select, which every such\n * selection then names, or `'inherit'`, which clears them. The shops whose\n * industry changes move their payments from `apply_to` on. Needs\n * `MerchantIndustryWrite`.\n *\n * `DELETE /industries/own/{industryId}`\n */\n async removeOwn(\n industryId: string,\n query: OwnIndustryRemoveQuery = {},\n ): Promise<OwnIndustryRemoved> {\n return this.request('DELETE', ownPath(industryId), { query: { ...query } });\n }\n\n /**\n * At most three of DeloPay's industries and sub-industries the merchant can\n * select that are like `name`, closest first: a hint before defining an own\n * industry. Needs `MerchantIndustryRead` at merchant level.\n *\n * `GET /industries/suggest`\n */\n async suggest(query: IndustrySuggestQuery): Promise<IndustrySuggestions> {\n return this.request('GET', '/industries/suggest', { query: { ...query } });\n }\n}\n\nfunction projectPath(projectId: string): string {\n return `/industries/projects/${encodeURIComponent(projectId)}`;\n}\n\nfunction shopPath(profileId: string): string {\n return `/industries/shops/${encodeURIComponent(profileId)}`;\n}\n\nfunction ownPath(industryId: string): string {\n return `/industries/own/${encodeURIComponent(industryId)}`;\n}\n"],"mappings":";AAgDO,IAAM,aAAN,MAAiB;AAAA,EACtB,YAA6B,SAAoB;AAApB;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,mBAAoD;AACxD,WAAO,KAAK,QAAQ,OAAO,sBAAsB;AAAA,EACnD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,Y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