@delopay/sdk 0.407.0 → 0.413.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.
- package/README.md +23 -0
- package/dist/airwallexCard.cjs +41 -0
- package/dist/airwallexCard.cjs.map +1 -0
- package/dist/airwallexCard.d.cts +214 -0
- package/dist/airwallexCard.d.ts +214 -0
- package/dist/airwallexCard.js +41 -0
- package/dist/airwallexCard.js.map +1 -0
- package/dist/branding.cjs +235 -0
- package/dist/branding.cjs.map +1 -0
- package/dist/branding.d.cts +784 -0
- package/dist/branding.d.ts +784 -0
- package/dist/branding.js +235 -0
- package/dist/branding.js.map +1 -0
- package/dist/cardFormStyles.cjs +77 -0
- package/dist/cardFormStyles.cjs.map +1 -0
- package/dist/cardFormStyles.d.cts +182 -0
- package/dist/cardFormStyles.d.ts +182 -0
- package/dist/cardFormStyles.js +77 -0
- package/dist/cardFormStyles.js.map +1 -0
- package/dist/checkoutSession.cjs +7 -0
- package/dist/checkoutSession.cjs.map +1 -0
- package/dist/checkoutSession.d.cts +662 -0
- package/dist/checkoutSession.d.ts +662 -0
- package/dist/checkoutSession.js +7 -0
- package/dist/checkoutSession.js.map +1 -0
- package/dist/chunk-244VZFFO.cjs +27 -0
- package/dist/chunk-244VZFFO.cjs.map +1 -0
- package/dist/chunk-26THONSG.js +274 -0
- package/dist/chunk-26THONSG.js.map +1 -0
- package/dist/chunk-27NVIXDV.js +24 -0
- package/dist/chunk-27NVIXDV.js.map +1 -0
- package/dist/chunk-2C5XHXAY.js +19 -0
- package/dist/chunk-2C5XHXAY.js.map +1 -0
- package/dist/chunk-2IJRBJXW.cjs +35 -0
- package/dist/chunk-2IJRBJXW.cjs.map +1 -0
- package/dist/chunk-2JSBGTTW.js +99 -0
- package/dist/chunk-2JSBGTTW.js.map +1 -0
- package/dist/chunk-2PC2VAR7.js +217 -0
- package/dist/chunk-2PC2VAR7.js.map +1 -0
- package/dist/chunk-2QMSBWQY.js +453 -0
- package/dist/chunk-2QMSBWQY.js.map +1 -0
- package/dist/chunk-2RGSWTDI.js +19 -0
- package/dist/chunk-2RGSWTDI.js.map +1 -0
- package/dist/chunk-2TQA6UYY.js +228 -0
- package/dist/chunk-2TQA6UYY.js.map +1 -0
- package/dist/chunk-2XAJIA23.js +20 -0
- package/dist/chunk-2XAJIA23.js.map +1 -0
- package/dist/chunk-34AF36TY.js +89 -0
- package/dist/chunk-34AF36TY.js.map +1 -0
- package/dist/chunk-34PC72O7.cjs +73 -0
- package/dist/chunk-34PC72O7.cjs.map +1 -0
- package/dist/chunk-37BJUQ32.js +37 -0
- package/dist/chunk-37BJUQ32.js.map +1 -0
- package/dist/chunk-3GBWQWTP.cjs +54 -0
- package/dist/chunk-3GBWQWTP.cjs.map +1 -0
- package/dist/chunk-3L3B46AZ.js +44 -0
- package/dist/chunk-3L3B46AZ.js.map +1 -0
- package/dist/chunk-3NKFPZRS.js +973 -0
- package/dist/chunk-3NKFPZRS.js.map +1 -0
- package/dist/chunk-3ST4NW2T.js +35 -0
- package/dist/chunk-3ST4NW2T.js.map +1 -0
- package/dist/chunk-3YBBJT3Y.cjs +64 -0
- package/dist/chunk-3YBBJT3Y.cjs.map +1 -0
- package/dist/chunk-3YUKTCY2.js +71 -0
- package/dist/chunk-3YUKTCY2.js.map +1 -0
- package/dist/chunk-3ZHS3MFZ.js +35 -0
- package/dist/chunk-3ZHS3MFZ.js.map +1 -0
- package/dist/chunk-44QBWVRS.cjs +39 -0
- package/dist/chunk-44QBWVRS.cjs.map +1 -0
- package/dist/chunk-4EKAWNYI.cjs +69 -0
- package/dist/chunk-4EKAWNYI.cjs.map +1 -0
- package/dist/chunk-4FVOCZIM.js +15 -0
- package/dist/chunk-4FVOCZIM.js.map +1 -0
- package/dist/chunk-4LN4BR2T.cjs +262 -0
- package/dist/chunk-4LN4BR2T.cjs.map +1 -0
- package/dist/chunk-4T3MXBO2.js +114 -0
- package/dist/chunk-4T3MXBO2.js.map +1 -0
- package/dist/chunk-4T4XHPYN.cjs +135 -0
- package/dist/chunk-4T4XHPYN.cjs.map +1 -0
- package/dist/chunk-4YCQWMFF.js +316 -0
- package/dist/chunk-4YCQWMFF.js.map +1 -0
- package/dist/chunk-55XO7BFC.js +23 -0
- package/dist/chunk-55XO7BFC.js.map +1 -0
- package/dist/chunk-5CITBN33.cjs +485 -0
- package/dist/chunk-5CITBN33.cjs.map +1 -0
- package/dist/chunk-5CNBINCX.cjs +54 -0
- package/dist/chunk-5CNBINCX.cjs.map +1 -0
- package/dist/chunk-5HCKC4HF.cjs +217 -0
- package/dist/chunk-5HCKC4HF.cjs.map +1 -0
- package/dist/chunk-5O2JSQYA.cjs +114 -0
- package/dist/chunk-5O2JSQYA.cjs.map +1 -0
- package/dist/chunk-5P2AO6XY.js +202 -0
- package/dist/chunk-5P2AO6XY.js.map +1 -0
- package/dist/chunk-5VS3SUPL.js +125 -0
- package/dist/chunk-5VS3SUPL.js.map +1 -0
- package/dist/chunk-645BQ53W.js +84 -0
- package/dist/chunk-645BQ53W.js.map +1 -0
- package/dist/chunk-6EBY2KKL.cjs +43 -0
- package/dist/chunk-6EBY2KKL.cjs.map +1 -0
- package/dist/chunk-6H7K5DDI.js +307 -0
- package/dist/chunk-6H7K5DDI.js.map +1 -0
- package/dist/chunk-6LOWE2YI.cjs +23 -0
- package/dist/chunk-6LOWE2YI.cjs.map +1 -0
- package/dist/chunk-6LSG5Z4T.cjs +122 -0
- package/dist/chunk-6LSG5Z4T.cjs.map +1 -0
- package/dist/chunk-6QGC52VH.js +177 -0
- package/dist/chunk-6QGC52VH.js.map +1 -0
- package/dist/chunk-6SU2MTN2.cjs +17 -0
- package/dist/chunk-6SU2MTN2.cjs.map +1 -0
- package/dist/chunk-6TBA7KZO.js +132 -0
- package/dist/chunk-6TBA7KZO.js.map +1 -0
- package/dist/chunk-6VIC6Y7T.js +64 -0
- package/dist/chunk-6VIC6Y7T.js.map +1 -0
- package/dist/chunk-6YCDLSIU.cjs +105 -0
- package/dist/chunk-6YCDLSIU.cjs.map +1 -0
- package/dist/chunk-75E5WNJG.cjs +122 -0
- package/dist/chunk-75E5WNJG.cjs.map +1 -0
- package/dist/chunk-7ITPMVDB.cjs +108 -0
- package/dist/chunk-7ITPMVDB.cjs.map +1 -0
- package/dist/chunk-7JV6VVO7.cjs +43 -0
- package/dist/chunk-7JV6VVO7.cjs.map +1 -0
- package/dist/chunk-7M2KEERO.js +311 -0
- package/dist/chunk-7M2KEERO.js.map +1 -0
- package/dist/chunk-7QGASY6O.js +134 -0
- package/dist/chunk-7QGASY6O.js.map +1 -0
- package/dist/chunk-7QZCUXWB.cjs +15 -0
- package/dist/chunk-7QZCUXWB.cjs.map +1 -0
- package/dist/chunk-7VXF5D67.cjs +23 -0
- package/dist/chunk-7VXF5D67.cjs.map +1 -0
- package/dist/chunk-7YIDBPIU.js +208 -0
- package/dist/chunk-7YIDBPIU.js.map +1 -0
- package/dist/chunk-ACZ2R47X.cjs +140 -0
- package/dist/chunk-ACZ2R47X.cjs.map +1 -0
- package/dist/chunk-AREMIQLZ.js +202 -0
- package/dist/chunk-AREMIQLZ.js.map +1 -0
- package/dist/chunk-AYUYJO3I.cjs +44 -0
- package/dist/chunk-AYUYJO3I.cjs.map +1 -0
- package/dist/chunk-B2TCNGC2.cjs +536 -0
- package/dist/chunk-B2TCNGC2.cjs.map +1 -0
- package/dist/chunk-B72YNBLS.js +628 -0
- package/dist/chunk-B72YNBLS.js.map +1 -0
- package/dist/chunk-BCA3TCGS.cjs +185 -0
- package/dist/chunk-BCA3TCGS.cjs.map +1 -0
- package/dist/chunk-BEND2MZX.js +108 -0
- package/dist/chunk-BEND2MZX.js.map +1 -0
- package/dist/chunk-BF7IX2O4.js +128 -0
- package/dist/chunk-BF7IX2O4.js.map +1 -0
- package/dist/chunk-BOU2TQ6U.cjs +1 -0
- package/dist/chunk-BOU2TQ6U.cjs.map +1 -0
- package/dist/chunk-BP6KDQ6I.cjs +52 -0
- package/dist/chunk-BP6KDQ6I.cjs.map +1 -0
- package/dist/chunk-BRY3W7N3.cjs +43 -0
- package/dist/chunk-BRY3W7N3.cjs.map +1 -0
- package/dist/chunk-CAMALM35.cjs +277 -0
- package/dist/chunk-CAMALM35.cjs.map +1 -0
- package/dist/chunk-CCN44NZJ.cjs +134 -0
- package/dist/chunk-CCN44NZJ.cjs.map +1 -0
- package/dist/chunk-CECSSOIZ.js +44 -0
- package/dist/chunk-CECSSOIZ.js.map +1 -0
- package/dist/chunk-CKKNFFKP.cjs +311 -0
- package/dist/chunk-CKKNFFKP.cjs.map +1 -0
- package/dist/chunk-CMETZEUX.js +168 -0
- package/dist/chunk-CMETZEUX.js.map +1 -0
- package/dist/chunk-CR3JBTP3.cjs +31 -0
- package/dist/chunk-CR3JBTP3.cjs.map +1 -0
- package/dist/chunk-CRNICOYA.js +157 -0
- package/dist/chunk-CRNICOYA.js.map +1 -0
- package/dist/chunk-CSY3IZOC.js +695 -0
- package/dist/chunk-CSY3IZOC.js.map +1 -0
- package/dist/chunk-CTB54SCJ.js +43 -0
- package/dist/chunk-CTB54SCJ.js.map +1 -0
- package/dist/chunk-D3D73ANJ.js +39 -0
- package/dist/chunk-D3D73ANJ.js.map +1 -0
- package/dist/chunk-DECN4QU3.js +33 -0
- package/dist/chunk-DECN4QU3.js.map +1 -0
- package/dist/chunk-DFC4T6FA.js +137 -0
- package/dist/chunk-DFC4T6FA.js.map +1 -0
- package/dist/chunk-DJASVBOJ.cjs +61 -0
- package/dist/chunk-DJASVBOJ.cjs.map +1 -0
- package/dist/chunk-DLKGOSZR.js +73 -0
- package/dist/chunk-DLKGOSZR.js.map +1 -0
- package/dist/chunk-DO2DYNFW.js +122 -0
- package/dist/chunk-DO2DYNFW.js.map +1 -0
- package/dist/chunk-DVA3T3MD.js +67 -0
- package/dist/chunk-DVA3T3MD.js.map +1 -0
- package/dist/chunk-EGQKVHQB.js +148 -0
- package/dist/chunk-EGQKVHQB.js.map +1 -0
- package/dist/chunk-ENPSUWTS.cjs +35 -0
- package/dist/chunk-ENPSUWTS.cjs.map +1 -0
- package/dist/chunk-EQ6P6ZND.cjs +177 -0
- package/dist/chunk-EQ6P6ZND.cjs.map +1 -0
- package/dist/chunk-EXPWQBI3.cjs +23 -0
- package/dist/chunk-EXPWQBI3.cjs.map +1 -0
- package/dist/chunk-EXW4VDRM.js +57 -0
- package/dist/chunk-EXW4VDRM.js.map +1 -0
- package/dist/chunk-F3I5DOWV.cjs +14 -0
- package/dist/chunk-F3I5DOWV.cjs.map +1 -0
- package/dist/chunk-F6JABQLJ.js +720 -0
- package/dist/chunk-F6JABQLJ.js.map +1 -0
- package/dist/chunk-F6S3WCCB.cjs +40 -0
- package/dist/chunk-F6S3WCCB.cjs.map +1 -0
- package/dist/chunk-FI7NLDWZ.js +1 -0
- package/dist/chunk-FI7NLDWZ.js.map +1 -0
- package/dist/chunk-FQRC4NJG.cjs +202 -0
- package/dist/chunk-FQRC4NJG.cjs.map +1 -0
- package/dist/chunk-FYISDU2Y.cjs +137 -0
- package/dist/chunk-FYISDU2Y.cjs.map +1 -0
- package/dist/chunk-FZYEZLTM.js +59 -0
- package/dist/chunk-FZYEZLTM.js.map +1 -0
- package/dist/chunk-G7FHCGT5.js +140 -0
- package/dist/chunk-G7FHCGT5.js.map +1 -0
- package/dist/chunk-GA3KXPIF.cjs +720 -0
- package/dist/chunk-GA3KXPIF.cjs.map +1 -0
- package/dist/chunk-GEYCGYAN.js +122 -0
- package/dist/chunk-GEYCGYAN.js.map +1 -0
- package/dist/chunk-GG52SAHA.cjs +157 -0
- package/dist/chunk-GG52SAHA.cjs.map +1 -0
- package/dist/chunk-GGYLU7YO.cjs +58 -0
- package/dist/chunk-GGYLU7YO.cjs.map +1 -0
- package/dist/chunk-GK5FWN4H.cjs +307 -0
- package/dist/chunk-GK5FWN4H.cjs.map +1 -0
- package/dist/chunk-GSQN5EOO.cjs +347 -0
- package/dist/chunk-GSQN5EOO.cjs.map +1 -0
- package/dist/chunk-GVHN6BAJ.js +19 -0
- package/dist/chunk-GVHN6BAJ.js.map +1 -0
- package/dist/chunk-GW7IHYXR.cjs +125 -0
- package/dist/chunk-GW7IHYXR.cjs.map +1 -0
- package/dist/chunk-GZW5AFIL.js +27 -0
- package/dist/chunk-GZW5AFIL.js.map +1 -0
- package/dist/chunk-H2NGR5JG.js +786 -0
- package/dist/chunk-H2NGR5JG.js.map +1 -0
- package/dist/chunk-H537KAYC.cjs +71 -0
- package/dist/chunk-H537KAYC.cjs.map +1 -0
- package/dist/chunk-HJL32HDH.js +14 -0
- package/dist/chunk-HJL32HDH.js.map +1 -0
- package/dist/chunk-HL763JX2.js +43 -0
- package/dist/chunk-HL763JX2.js.map +1 -0
- package/dist/chunk-HLKFUOAQ.cjs +27 -0
- package/dist/chunk-HLKFUOAQ.cjs.map +1 -0
- package/dist/chunk-HLYGHP6F.cjs +80 -0
- package/dist/chunk-HLYGHP6F.cjs.map +1 -0
- package/dist/chunk-HO3SKXCG.js +559 -0
- package/dist/chunk-HO3SKXCG.js.map +1 -0
- package/dist/chunk-I2W7AO4B.cjs +37 -0
- package/dist/chunk-I2W7AO4B.cjs.map +1 -0
- package/dist/chunk-I2XGNALG.cjs +19 -0
- package/dist/chunk-I2XGNALG.cjs.map +1 -0
- package/dist/chunk-I5KOMBQ3.js +277 -0
- package/dist/chunk-I5KOMBQ3.js.map +1 -0
- package/dist/chunk-I65QS3YQ.cjs +695 -0
- package/dist/chunk-I65QS3YQ.cjs.map +1 -0
- package/dist/chunk-IB75VVZO.js +58 -0
- package/dist/chunk-IB75VVZO.js.map +1 -0
- package/dist/chunk-IGFEQECO.js +67 -0
- package/dist/chunk-IGFEQECO.js.map +1 -0
- package/dist/chunk-IKXGA2Z5.cjs +24 -0
- package/dist/chunk-IKXGA2Z5.cjs.map +1 -0
- package/dist/chunk-INQQLXAV.js +347 -0
- package/dist/chunk-INQQLXAV.js.map +1 -0
- package/dist/chunk-IR2LFKKA.cjs +44 -0
- package/dist/chunk-IR2LFKKA.cjs.map +1 -0
- package/dist/chunk-IVQDVFFR.js +226 -0
- package/dist/chunk-IVQDVFFR.js.map +1 -0
- package/dist/chunk-J3UH2OJH.js +31 -0
- package/dist/chunk-J3UH2OJH.js.map +1 -0
- package/dist/chunk-JAJOUFPM.js +30 -0
- package/dist/chunk-JAJOUFPM.js.map +1 -0
- package/dist/chunk-JPVR2NHV.js +54 -0
- package/dist/chunk-JPVR2NHV.js.map +1 -0
- package/dist/chunk-K5Q2H3VD.cjs +85 -0
- package/dist/chunk-K5Q2H3VD.cjs.map +1 -0
- package/dist/chunk-KAKDDX4L.js +144 -0
- package/dist/chunk-KAKDDX4L.js.map +1 -0
- package/dist/chunk-KD5Y2YWK.cjs +128 -0
- package/dist/chunk-KD5Y2YWK.cjs.map +1 -0
- package/dist/chunk-KJDMNF2T.cjs +202 -0
- package/dist/chunk-KJDMNF2T.cjs.map +1 -0
- package/dist/chunk-KKKEARPT.js +40 -0
- package/dist/chunk-KKKEARPT.js.map +1 -0
- package/dist/chunk-KLONGJCL.cjs +59 -0
- package/dist/chunk-KLONGJCL.cjs.map +1 -0
- package/dist/chunk-KS5ZUVPC.js +23 -0
- package/dist/chunk-KS5ZUVPC.js.map +1 -0
- package/dist/chunk-KSJ7JLR3.cjs +228 -0
- package/dist/chunk-KSJ7JLR3.cjs.map +1 -0
- package/dist/chunk-L7474OST.js +21 -0
- package/dist/chunk-L7474OST.js.map +1 -0
- package/dist/chunk-LG7XHNAY.js +52 -0
- package/dist/chunk-LG7XHNAY.js.map +1 -0
- package/dist/chunk-LJ2EG6JK.cjs +226 -0
- package/dist/chunk-LJ2EG6JK.cjs.map +1 -0
- package/dist/chunk-LLYY4TCZ.cjs +628 -0
- package/dist/chunk-LLYY4TCZ.cjs.map +1 -0
- package/dist/chunk-LPDUHBHT.js +2842 -0
- package/dist/chunk-LPDUHBHT.js.map +1 -0
- package/dist/chunk-LX6E5TTR.js +58 -0
- package/dist/chunk-LX6E5TTR.js.map +1 -0
- package/dist/chunk-LYIBTVK6.cjs +2842 -0
- package/dist/chunk-LYIBTVK6.cjs.map +1 -0
- package/dist/chunk-LZUHCGJ3.js +281 -0
- package/dist/chunk-LZUHCGJ3.js.map +1 -0
- package/dist/chunk-M3HWE7KT.cjs +33 -0
- package/dist/chunk-M3HWE7KT.cjs.map +1 -0
- package/dist/chunk-M3SJHFT4.cjs +24 -0
- package/dist/chunk-M3SJHFT4.cjs.map +1 -0
- package/dist/chunk-MCNDMK7F.cjs +167 -0
- package/dist/chunk-MCNDMK7F.cjs.map +1 -0
- package/dist/chunk-MLG6NXI6.cjs +19 -0
- package/dist/chunk-MLG6NXI6.cjs.map +1 -0
- package/dist/chunk-MTFLXMYI.js +262 -0
- package/dist/chunk-MTFLXMYI.js.map +1 -0
- package/dist/chunk-MYDDK2Z3.js +485 -0
- package/dist/chunk-MYDDK2Z3.js.map +1 -0
- package/dist/chunk-NFB3S2E6.cjs +22 -0
- package/dist/chunk-NFB3S2E6.cjs.map +1 -0
- package/dist/chunk-NLQOHTYN.js +44 -0
- package/dist/chunk-NLQOHTYN.js.map +1 -0
- package/dist/chunk-NPIVFYLK.js +344 -0
- package/dist/chunk-NPIVFYLK.js.map +1 -0
- package/dist/chunk-NYL3BNHR.cjs +57 -0
- package/dist/chunk-NYL3BNHR.cjs.map +1 -0
- package/dist/chunk-O4AYHLQX.cjs +132 -0
- package/dist/chunk-O4AYHLQX.cjs.map +1 -0
- package/dist/chunk-ODPNVNYE.cjs +75 -0
- package/dist/chunk-ODPNVNYE.cjs.map +1 -0
- package/dist/chunk-OEKPQXXM.js +24 -0
- package/dist/chunk-OEKPQXXM.js.map +1 -0
- package/dist/chunk-OG2KJAYD.cjs +44 -0
- package/dist/chunk-OG2KJAYD.cjs.map +1 -0
- package/dist/chunk-OMGDHJYX.js +39 -0
- package/dist/chunk-OMGDHJYX.js.map +1 -0
- package/dist/chunk-OMRKVER7.js +80 -0
- package/dist/chunk-OMRKVER7.js.map +1 -0
- package/dist/chunk-OWP7XBY2.cjs +281 -0
- package/dist/chunk-OWP7XBY2.cjs.map +1 -0
- package/dist/chunk-OYZP6NF6.cjs +58 -0
- package/dist/chunk-OYZP6NF6.cjs.map +1 -0
- package/dist/chunk-P6JLNQ6L.cjs +111 -0
- package/dist/chunk-P6JLNQ6L.cjs.map +1 -0
- package/dist/chunk-P7DYLUUI.cjs +168 -0
- package/dist/chunk-P7DYLUUI.cjs.map +1 -0
- package/dist/chunk-PKAE6AQT.cjs +208 -0
- package/dist/chunk-PKAE6AQT.cjs.map +1 -0
- package/dist/chunk-PWDY5D5S.cjs +344 -0
- package/dist/chunk-PWDY5D5S.cjs.map +1 -0
- package/dist/chunk-Q347PTXI.js +54 -0
- package/dist/chunk-Q347PTXI.js.map +1 -0
- package/dist/chunk-Q6HI2G7W.js +40 -0
- package/dist/chunk-Q6HI2G7W.js.map +1 -0
- package/dist/chunk-Q7M7DO7M.cjs +186 -0
- package/dist/chunk-Q7M7DO7M.cjs.map +1 -0
- package/dist/chunk-QCPEE3EV.js +186 -0
- package/dist/chunk-QCPEE3EV.js.map +1 -0
- package/dist/chunk-QF3Q3TPV.js +162 -0
- package/dist/chunk-QF3Q3TPV.js.map +1 -0
- package/dist/chunk-QGTVOC6O.js +167 -0
- package/dist/chunk-QGTVOC6O.js.map +1 -0
- package/dist/chunk-QMLU5DST.cjs +786 -0
- package/dist/chunk-QMLU5DST.cjs.map +1 -0
- package/dist/chunk-QRSA72B3.cjs +40 -0
- package/dist/chunk-QRSA72B3.cjs.map +1 -0
- package/dist/chunk-QT3HUTWI.cjs +316 -0
- package/dist/chunk-QT3HUTWI.cjs.map +1 -0
- package/dist/chunk-QYNRNDIY.cjs +186 -0
- package/dist/chunk-QYNRNDIY.cjs.map +1 -0
- package/dist/chunk-R4FE6K43.cjs +99 -0
- package/dist/chunk-R4FE6K43.cjs.map +1 -0
- package/dist/chunk-R4GA6BVP.cjs +59 -0
- package/dist/chunk-R4GA6BVP.cjs.map +1 -0
- package/dist/chunk-R5VYSZ3Q.cjs +67 -0
- package/dist/chunk-R5VYSZ3Q.cjs.map +1 -0
- package/dist/chunk-RI42IDRR.cjs +23 -0
- package/dist/chunk-RI42IDRR.cjs.map +1 -0
- package/dist/chunk-RSVLVW4L.cjs +148 -0
- package/dist/chunk-RSVLVW4L.cjs.map +1 -0
- package/dist/chunk-RUDKQPEO.js +22 -0
- package/dist/chunk-RUDKQPEO.js.map +1 -0
- package/dist/chunk-RWCCRTLZ.js +17 -0
- package/dist/chunk-RWCCRTLZ.js.map +1 -0
- package/dist/chunk-S7SBNOGS.cjs +144 -0
- package/dist/chunk-S7SBNOGS.cjs.map +1 -0
- package/dist/chunk-SQELICSX.cjs +159 -0
- package/dist/chunk-SQELICSX.cjs.map +1 -0
- package/dist/chunk-SXCH2AXM.js +85 -0
- package/dist/chunk-SXCH2AXM.js.map +1 -0
- package/dist/chunk-T326ZWR3.js +1795 -0
- package/dist/chunk-T326ZWR3.js.map +1 -0
- package/dist/chunk-T37FLY7Q.js +185 -0
- package/dist/chunk-T37FLY7Q.js.map +1 -0
- package/dist/chunk-T6N35YFJ.js +186 -0
- package/dist/chunk-T6N35YFJ.js.map +1 -0
- package/dist/chunk-THPCSJUP.js +43 -0
- package/dist/chunk-THPCSJUP.js.map +1 -0
- package/dist/chunk-TMAJE5P2.cjs +84 -0
- package/dist/chunk-TMAJE5P2.cjs.map +1 -0
- package/dist/chunk-TNIJ6OSH.cjs +162 -0
- package/dist/chunk-TNIJ6OSH.cjs.map +1 -0
- package/dist/chunk-TZ4JHXBR.js +98 -0
- package/dist/chunk-TZ4JHXBR.js.map +1 -0
- package/dist/chunk-UGSM7RJ2.cjs +30 -0
- package/dist/chunk-UGSM7RJ2.cjs.map +1 -0
- package/dist/chunk-UH2A7ZDK.js +61 -0
- package/dist/chunk-UH2A7ZDK.js.map +1 -0
- package/dist/chunk-UKLZAOLW.cjs +209 -0
- package/dist/chunk-UKLZAOLW.cjs.map +1 -0
- package/dist/chunk-ULZWGW2O.js +14 -0
- package/dist/chunk-ULZWGW2O.js.map +1 -0
- package/dist/chunk-US6R4TM4.js +50 -0
- package/dist/chunk-US6R4TM4.js.map +1 -0
- package/dist/chunk-UU3YQJT6.js +27 -0
- package/dist/chunk-UU3YQJT6.js.map +1 -0
- package/dist/chunk-V3PCNGDH.js +69 -0
- package/dist/chunk-V3PCNGDH.js.map +1 -0
- package/dist/chunk-V47G7P6L.cjs +19 -0
- package/dist/chunk-V47G7P6L.cjs.map +1 -0
- package/dist/chunk-VH5A6SMU.cjs +50 -0
- package/dist/chunk-VH5A6SMU.cjs.map +1 -0
- package/dist/chunk-VJ2L2GOF.js +23 -0
- package/dist/chunk-VJ2L2GOF.js.map +1 -0
- package/dist/chunk-VOIELJLZ.cjs +274 -0
- package/dist/chunk-VOIELJLZ.cjs.map +1 -0
- package/dist/chunk-VW7GWSP6.js +209 -0
- package/dist/chunk-VW7GWSP6.js.map +1 -0
- package/dist/chunk-VYC7WUM5.cjs +39 -0
- package/dist/chunk-VYC7WUM5.cjs.map +1 -0
- package/dist/chunk-W3EFNOH6.js +536 -0
- package/dist/chunk-W3EFNOH6.js.map +1 -0
- package/dist/chunk-W457XUA6.cjs +67 -0
- package/dist/chunk-W457XUA6.cjs.map +1 -0
- package/dist/chunk-WBAPQODS.js +111 -0
- package/dist/chunk-WBAPQODS.js.map +1 -0
- package/dist/chunk-WHDI3TMP.cjs +21 -0
- package/dist/chunk-WHDI3TMP.cjs.map +1 -0
- package/dist/chunk-WITCPKNL.cjs +20 -0
- package/dist/chunk-WITCPKNL.cjs.map +1 -0
- package/dist/chunk-WSOUQS6C.js +135 -0
- package/dist/chunk-WSOUQS6C.js.map +1 -0
- package/dist/chunk-WX6NP7UU.cjs +14 -0
- package/dist/chunk-WX6NP7UU.cjs.map +1 -0
- package/dist/chunk-WZK3BIHG.js +75 -0
- package/dist/chunk-WZK3BIHG.js.map +1 -0
- package/dist/chunk-XAUPBK6A.cjs +1038 -0
- package/dist/chunk-XAUPBK6A.cjs.map +1 -0
- package/dist/chunk-XQLRIBVR.cjs +98 -0
- package/dist/chunk-XQLRIBVR.cjs.map +1 -0
- package/dist/chunk-Y4XILACH.js +105 -0
- package/dist/chunk-Y4XILACH.js.map +1 -0
- package/dist/chunk-Y6W2EJ2R.cjs +1795 -0
- package/dist/chunk-Y6W2EJ2R.cjs.map +1 -0
- package/dist/chunk-YJQPKT6W.cjs +453 -0
- package/dist/chunk-YJQPKT6W.cjs.map +1 -0
- package/dist/chunk-YK3P5QNZ.cjs +559 -0
- package/dist/chunk-YK3P5QNZ.cjs.map +1 -0
- package/dist/chunk-ZJRQ2AKS.js +1038 -0
- package/dist/chunk-ZJRQ2AKS.js.map +1 -0
- package/dist/chunk-ZKPVUCQV.cjs +973 -0
- package/dist/chunk-ZKPVUCQV.cjs.map +1 -0
- package/dist/chunk-ZOD4J4XF.cjs +89 -0
- package/dist/chunk-ZOD4J4XF.cjs.map +1 -0
- package/dist/chunk-ZTFYSSKD.js +59 -0
- package/dist/chunk-ZTFYSSKD.js.map +1 -0
- package/dist/chunk-ZX4JTR2J.js +23 -0
- package/dist/chunk-ZX4JTR2J.js.map +1 -0
- package/dist/chunk-ZYWW275O.js +159 -0
- package/dist/chunk-ZYWW275O.js.map +1 -0
- package/dist/client.cjs +17 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +221 -0
- package/dist/client.d.ts +221 -0
- package/dist/client.js +17 -0
- package/dist/client.js.map +1 -0
- package/dist/core.cjs +13 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +376 -0
- package/dist/core.d.ts +376 -0
- package/dist/core.js +13 -0
- package/dist/core.js.map +1 -0
- package/dist/currencies.cjs +7 -0
- package/dist/currencies.cjs.map +1 -0
- package/dist/currencies.d.cts +8 -0
- package/dist/currencies.d.ts +8 -0
- package/dist/currencies.js +7 -0
- package/dist/currencies.js.map +1 -0
- package/dist/enigmaCardForm.cjs +65 -0
- package/dist/enigmaCardForm.cjs.map +1 -0
- package/dist/enigmaCardForm.d.cts +145 -0
- package/dist/enigmaCardForm.d.ts +145 -0
- package/dist/enigmaCardForm.js +65 -0
- package/dist/enigmaCardForm.js.map +1 -0
- package/dist/error.cjs +9 -0
- package/dist/error.cjs.map +1 -0
- package/dist/error.d.cts +66 -0
- package/dist/error.d.ts +66 -0
- package/dist/error.js +9 -0
- package/dist/error.js.map +1 -0
- package/dist/eventStream.cjs +7 -0
- package/dist/eventStream.cjs.map +1 -0
- package/dist/eventStream.d.cts +50 -0
- package/dist/eventStream.d.ts +50 -0
- package/dist/eventStream.js +7 -0
- package/dist/eventStream.js.map +1 -0
- package/dist/exportDownload.cjs +21 -0
- package/dist/exportDownload.cjs.map +1 -0
- package/dist/exportDownload.d.cts +86 -0
- package/dist/exportDownload.d.ts +86 -0
- package/dist/exportDownload.js +21 -0
- package/dist/exportDownload.js.map +1 -0
- package/dist/feeProgram.cjs +25 -0
- package/dist/feeProgram.cjs.map +1 -0
- package/dist/feeProgram.d.cts +169 -0
- package/dist/feeProgram.d.ts +169 -0
- package/dist/feeProgram.js +25 -0
- package/dist/feeProgram.js.map +1 -0
- package/dist/index.cjs +839 -18404
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -1
- package/dist/index.d.ts +87 -1
- package/dist/index.js +417 -187
- package/dist/internal/resources/admin.cjs +7 -0
- package/dist/internal/resources/admin.cjs.map +1 -0
- package/dist/internal/resources/admin.d.cts +31 -0
- package/dist/internal/resources/admin.d.ts +31 -0
- package/dist/internal/resources/admin.js +7 -0
- package/dist/internal/resources/admin.js.map +1 -0
- package/dist/internal/resources/adminBranding.cjs +7 -0
- package/dist/internal/resources/adminBranding.cjs.map +1 -0
- package/dist/internal/resources/adminBranding.d.cts +37 -0
- package/dist/internal/resources/adminBranding.d.ts +37 -0
- package/dist/internal/resources/adminBranding.js +7 -0
- package/dist/internal/resources/adminBranding.js.map +1 -0
- package/dist/internal/resources/adminFileScans.cjs +7 -0
- package/dist/internal/resources/adminFileScans.cjs.map +1 -0
- package/dist/internal/resources/adminFileScans.d.cts +39 -0
- package/dist/internal/resources/adminFileScans.d.ts +39 -0
- package/dist/internal/resources/adminFileScans.js +7 -0
- package/dist/internal/resources/adminFileScans.js.map +1 -0
- package/dist/internal/resources/adminIndustries.cjs +7 -0
- package/dist/internal/resources/adminIndustries.cjs.map +1 -0
- package/dist/internal/resources/adminIndustries.d.cts +61 -0
- package/dist/internal/resources/adminIndustries.d.ts +61 -0
- package/dist/internal/resources/adminIndustries.js +7 -0
- package/dist/internal/resources/adminIndustries.js.map +1 -0
- package/dist/internal/resources/adminLive.cjs +7 -0
- package/dist/internal/resources/adminLive.cjs.map +1 -0
- package/dist/internal/resources/adminLive.d.cts +33 -0
- package/dist/internal/resources/adminLive.d.ts +33 -0
- package/dist/internal/resources/adminLive.js +7 -0
- package/dist/internal/resources/adminLive.js.map +1 -0
- package/dist/internal/resources/adminPortal.cjs +7 -0
- package/dist/internal/resources/adminPortal.cjs.map +1 -0
- package/dist/internal/resources/adminPortal.d.cts +1065 -0
- package/dist/internal/resources/adminPortal.d.ts +1065 -0
- package/dist/internal/resources/adminPortal.js +7 -0
- package/dist/internal/resources/adminPortal.js.map +1 -0
- package/dist/internal/resources/adminSupport.cjs +7 -0
- package/dist/internal/resources/adminSupport.cjs.map +1 -0
- package/dist/internal/resources/adminSupport.d.cts +52 -0
- package/dist/internal/resources/adminSupport.d.ts +52 -0
- package/dist/internal/resources/adminSupport.js +7 -0
- package/dist/internal/resources/adminSupport.js.map +1 -0
- package/dist/internal/resources/auditLogs.cjs +7 -0
- package/dist/internal/resources/auditLogs.cjs.map +1 -0
- package/dist/internal/resources/auditLogs.d.cts +48 -0
- package/dist/internal/resources/auditLogs.d.ts +48 -0
- package/dist/internal/resources/auditLogs.js +7 -0
- package/dist/internal/resources/auditLogs.js.map +1 -0
- package/dist/internal/resources/cache.cjs +7 -0
- package/dist/internal/resources/cache.cjs.map +1 -0
- package/dist/internal/resources/cache.d.cts +13 -0
- package/dist/internal/resources/cache.d.ts +13 -0
- package/dist/internal/resources/cache.js +7 -0
- package/dist/internal/resources/cache.js.map +1 -0
- package/dist/internal/resources/cardIssuers.cjs +7 -0
- package/dist/internal/resources/cardIssuers.cjs.map +1 -0
- package/dist/internal/resources/cardIssuers.d.cts +15 -0
- package/dist/internal/resources/cardIssuers.d.ts +15 -0
- package/dist/internal/resources/cardIssuers.js +7 -0
- package/dist/internal/resources/cardIssuers.js.map +1 -0
- package/dist/internal/resources/configs.cjs +7 -0
- package/dist/internal/resources/configs.cjs.map +1 -0
- package/dist/internal/resources/configs.d.cts +19 -0
- package/dist/internal/resources/configs.d.ts +19 -0
- package/dist/internal/resources/configs.js +7 -0
- package/dist/internal/resources/configs.js.map +1 -0
- package/dist/internal/resources/connectorRestrictionRules.cjs +7 -0
- package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -0
- package/dist/internal/resources/connectorRestrictionRules.d.cts +43 -0
- package/dist/internal/resources/connectorRestrictionRules.d.ts +43 -0
- package/dist/internal/resources/connectorRestrictionRules.js +7 -0
- package/dist/internal/resources/connectorRestrictionRules.js.map +1 -0
- package/dist/internal/resources/connectorRestrictions.cjs +7 -0
- package/dist/internal/resources/connectorRestrictions.cjs.map +1 -0
- package/dist/internal/resources/connectorRestrictions.d.cts +33 -0
- package/dist/internal/resources/connectorRestrictions.d.ts +33 -0
- package/dist/internal/resources/connectorRestrictions.js +7 -0
- package/dist/internal/resources/connectorRestrictions.js.map +1 -0
- package/dist/internal/resources/diagnostic.cjs +7 -0
- package/dist/internal/resources/diagnostic.cjs.map +1 -0
- package/dist/internal/resources/diagnostic.d.cts +183 -0
- package/dist/internal/resources/diagnostic.d.ts +183 -0
- package/dist/internal/resources/diagnostic.js +7 -0
- package/dist/internal/resources/diagnostic.js.map +1 -0
- package/dist/internal/resources/gsm.cjs +7 -0
- package/dist/internal/resources/gsm.cjs.map +1 -0
- package/dist/internal/resources/gsm.d.cts +16 -0
- package/dist/internal/resources/gsm.d.ts +16 -0
- package/dist/internal/resources/gsm.js +7 -0
- package/dist/internal/resources/gsm.js.map +1 -0
- package/dist/internal/resources/nativeRenewals.cjs +7 -0
- package/dist/internal/resources/nativeRenewals.cjs.map +1 -0
- package/dist/internal/resources/nativeRenewals.d.cts +16 -0
- package/dist/internal/resources/nativeRenewals.d.ts +16 -0
- package/dist/internal/resources/nativeRenewals.js +7 -0
- package/dist/internal/resources/nativeRenewals.js.map +1 -0
- package/dist/internal/resources/platformBilling.cjs +7 -0
- package/dist/internal/resources/platformBilling.cjs.map +1 -0
- package/dist/internal/resources/platformBilling.d.cts +145 -0
- package/dist/internal/resources/platformBilling.d.ts +145 -0
- package/dist/internal/resources/platformBilling.js +7 -0
- package/dist/internal/resources/platformBilling.js.map +1 -0
- package/dist/internal/resources/platformFees.cjs +9 -0
- package/dist/internal/resources/platformFees.cjs.map +1 -0
- package/dist/internal/resources/platformFees.d.cts +60 -0
- package/dist/internal/resources/platformFees.d.ts +60 -0
- package/dist/internal/resources/platformFees.js +9 -0
- package/dist/internal/resources/platformFees.js.map +1 -0
- package/dist/internal/resources/platformMessageTemplates.cjs +7 -0
- package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -0
- package/dist/internal/resources/platformMessageTemplates.d.cts +46 -0
- package/dist/internal/resources/platformMessageTemplates.d.ts +46 -0
- package/dist/internal/resources/platformMessageTemplates.js +7 -0
- package/dist/internal/resources/platformMessageTemplates.js.map +1 -0
- package/dist/internal/resources/platformSettings.cjs +7 -0
- package/dist/internal/resources/platformSettings.cjs.map +1 -0
- package/dist/internal/resources/platformSettings.d.cts +41 -0
- package/dist/internal/resources/platformSettings.d.ts +41 -0
- package/dist/internal/resources/platformSettings.js +7 -0
- package/dist/internal/resources/platformSettings.js.map +1 -0
- package/dist/internal.cjs +855 -21120
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +109 -6144
- package/dist/internal.d.ts +109 -6144
- package/dist/internal.js +478 -2932
- package/dist/internal.js.map +1 -1
- package/dist/listQuery.cjs +7 -0
- package/dist/listQuery.cjs.map +1 -0
- package/dist/listQuery.d.cts +15 -0
- package/dist/listQuery.d.ts +15 -0
- package/dist/listQuery.js +7 -0
- package/dist/listQuery.js.map +1 -0
- package/dist/panes.cjs +65 -0
- package/dist/panes.cjs.map +1 -0
- package/dist/panes.d.cts +523 -0
- package/dist/panes.d.ts +523 -0
- package/dist/panes.js +65 -0
- package/dist/panes.js.map +1 -0
- package/dist/paymentPresentation.cjs +27 -0
- package/dist/paymentPresentation.cjs.map +1 -0
- package/dist/paymentPresentation.d.cts +101 -0
- package/dist/paymentPresentation.d.ts +101 -0
- package/dist/paymentPresentation.js +27 -0
- package/dist/paymentPresentation.js.map +1 -0
- package/dist/recordCounter.cjs +9 -0
- package/dist/recordCounter.cjs.map +1 -0
- package/dist/recordCounter.d.cts +92 -0
- package/dist/recordCounter.d.ts +92 -0
- package/dist/recordCounter.js +9 -0
- package/dist/recordCounter.js.map +1 -0
- package/dist/resources/analytics.cjs +7 -0
- package/dist/resources/analytics.cjs.map +1 -0
- package/dist/resources/analytics.d.cts +193 -0
- package/dist/resources/analytics.d.ts +193 -0
- package/dist/resources/analytics.js +7 -0
- package/dist/resources/analytics.js.map +1 -0
- package/dist/resources/analyticsDashboard.cjs +7 -0
- package/dist/resources/analyticsDashboard.cjs.map +1 -0
- package/dist/resources/analyticsDashboard.d.cts +15 -0
- package/dist/resources/analyticsDashboard.d.ts +15 -0
- package/dist/resources/analyticsDashboard.js +7 -0
- package/dist/resources/analyticsDashboard.js.map +1 -0
- package/dist/resources/apiKeys.cjs +7 -0
- package/dist/resources/apiKeys.cjs.map +1 -0
- package/dist/resources/apiKeys.d.cts +156 -0
- package/dist/resources/apiKeys.d.ts +156 -0
- package/dist/resources/apiKeys.js +7 -0
- package/dist/resources/apiKeys.js.map +1 -0
- package/dist/resources/audit.cjs +7 -0
- package/dist/resources/audit.cjs.map +1 -0
- package/dist/resources/audit.d.cts +34 -0
- package/dist/resources/audit.d.ts +34 -0
- package/dist/resources/audit.js +7 -0
- package/dist/resources/audit.js.map +1 -0
- package/dist/resources/authentication.cjs +7 -0
- package/dist/resources/authentication.cjs.map +1 -0
- package/dist/resources/authentication.d.cts +22 -0
- package/dist/resources/authentication.d.ts +22 -0
- package/dist/resources/authentication.js +7 -0
- package/dist/resources/authentication.js.map +1 -0
- package/dist/resources/availabilityOverrides.cjs +7 -0
- package/dist/resources/availabilityOverrides.cjs.map +1 -0
- package/dist/resources/availabilityOverrides.d.cts +30 -0
- package/dist/resources/availabilityOverrides.d.ts +30 -0
- package/dist/resources/availabilityOverrides.js +7 -0
- package/dist/resources/availabilityOverrides.js.map +1 -0
- package/dist/resources/billing.cjs +7 -0
- package/dist/resources/billing.cjs.map +1 -0
- package/dist/resources/billing.d.cts +122 -0
- package/dist/resources/billing.d.ts +122 -0
- package/dist/resources/billing.js +7 -0
- package/dist/resources/billing.js.map +1 -0
- package/dist/resources/buyerAccount.cjs +7 -0
- package/dist/resources/buyerAccount.cjs.map +1 -0
- package/dist/resources/buyerAccount.d.cts +162 -0
- package/dist/resources/buyerAccount.d.ts +162 -0
- package/dist/resources/buyerAccount.js +7 -0
- package/dist/resources/buyerAccount.js.map +1 -0
- package/dist/resources/buyerBlocklist.cjs +7 -0
- package/dist/resources/buyerBlocklist.cjs.map +1 -0
- package/dist/resources/buyerBlocklist.d.cts +120 -0
- package/dist/resources/buyerBlocklist.d.ts +120 -0
- package/dist/resources/buyerBlocklist.js +7 -0
- package/dist/resources/buyerBlocklist.js.map +1 -0
- package/dist/resources/buyerConversations.cjs +7 -0
- package/dist/resources/buyerConversations.cjs.map +1 -0
- package/dist/resources/buyerConversations.d.cts +85 -0
- package/dist/resources/buyerConversations.d.ts +85 -0
- package/dist/resources/buyerConversations.js +7 -0
- package/dist/resources/buyerConversations.js.map +1 -0
- package/dist/resources/buyerEvidenceReviews.cjs +7 -0
- package/dist/resources/buyerEvidenceReviews.cjs.map +1 -0
- package/dist/resources/buyerEvidenceReviews.d.cts +43 -0
- package/dist/resources/buyerEvidenceReviews.d.ts +43 -0
- package/dist/resources/buyerEvidenceReviews.js +7 -0
- package/dist/resources/buyerEvidenceReviews.js.map +1 -0
- package/dist/resources/buyerPortal.cjs +7 -0
- package/dist/resources/buyerPortal.cjs.map +1 -0
- package/dist/resources/buyerPortal.d.cts +122 -0
- package/dist/resources/buyerPortal.d.ts +122 -0
- package/dist/resources/buyerPortal.js +7 -0
- package/dist/resources/buyerPortal.js.map +1 -0
- package/dist/resources/cards.cjs +7 -0
- package/dist/resources/cards.cjs.map +1 -0
- package/dist/resources/cards.d.cts +17 -0
- package/dist/resources/cards.d.ts +17 -0
- package/dist/resources/cards.js +7 -0
- package/dist/resources/cards.js.map +1 -0
- package/dist/resources/chargebackPrevention.cjs +9 -0
- package/dist/resources/chargebackPrevention.cjs.map +1 -0
- package/dist/resources/chargebackPrevention.d.cts +51 -0
- package/dist/resources/chargebackPrevention.d.ts +51 -0
- package/dist/resources/chargebackPrevention.js +9 -0
- package/dist/resources/chargebackPrevention.js.map +1 -0
- package/dist/resources/checkoutMethods.cjs +7 -0
- package/dist/resources/checkoutMethods.cjs.map +1 -0
- package/dist/resources/checkoutMethods.d.cts +135 -0
- package/dist/resources/checkoutMethods.d.ts +135 -0
- package/dist/resources/checkoutMethods.js +7 -0
- package/dist/resources/checkoutMethods.js.map +1 -0
- package/dist/resources/checkoutRecovery.cjs +7 -0
- package/dist/resources/checkoutRecovery.cjs.map +1 -0
- package/dist/resources/checkoutRecovery.d.cts +92 -0
- package/dist/resources/checkoutRecovery.d.ts +92 -0
- package/dist/resources/checkoutRecovery.js +7 -0
- package/dist/resources/checkoutRecovery.js.map +1 -0
- package/dist/resources/checkoutTemplates.cjs +7 -0
- package/dist/resources/checkoutTemplates.cjs.map +1 -0
- package/dist/resources/checkoutTemplates.d.cts +75 -0
- package/dist/resources/checkoutTemplates.d.ts +75 -0
- package/dist/resources/checkoutTemplates.js +7 -0
- package/dist/resources/checkoutTemplates.js.map +1 -0
- package/dist/resources/connectors.cjs +7 -0
- package/dist/resources/connectors.cjs.map +1 -0
- package/dist/resources/connectors.d.cts +500 -0
- package/dist/resources/connectors.d.ts +500 -0
- package/dist/resources/connectors.js +7 -0
- package/dist/resources/connectors.js.map +1 -0
- package/dist/resources/costRules.cjs +7 -0
- package/dist/resources/costRules.cjs.map +1 -0
- package/dist/resources/costRules.d.cts +56 -0
- package/dist/resources/costRules.d.ts +56 -0
- package/dist/resources/costRules.js +7 -0
- package/dist/resources/costRules.js.map +1 -0
- package/dist/resources/customers.cjs +7 -0
- package/dist/resources/customers.cjs.map +1 -0
- package/dist/resources/customers.d.cts +185 -0
- package/dist/resources/customers.d.ts +185 -0
- package/dist/resources/customers.js +7 -0
- package/dist/resources/customers.js.map +1 -0
- package/dist/resources/deploymentBranding.cjs +9 -0
- package/dist/resources/deploymentBranding.cjs.map +1 -0
- package/dist/resources/deploymentBranding.d.cts +51 -0
- package/dist/resources/deploymentBranding.d.ts +51 -0
- package/dist/resources/deploymentBranding.js +9 -0
- package/dist/resources/deploymentBranding.js.map +1 -0
- package/dist/resources/disputes.cjs +7 -0
- package/dist/resources/disputes.cjs.map +1 -0
- package/dist/resources/disputes.d.cts +157 -0
- package/dist/resources/disputes.d.ts +157 -0
- package/dist/resources/disputes.js +7 -0
- package/dist/resources/disputes.js.map +1 -0
- package/dist/resources/ephemeralKeys.cjs +7 -0
- package/dist/resources/ephemeralKeys.cjs.map +1 -0
- package/dist/resources/ephemeralKeys.d.cts +43 -0
- package/dist/resources/ephemeralKeys.d.ts +43 -0
- package/dist/resources/ephemeralKeys.js +7 -0
- package/dist/resources/ephemeralKeys.js.map +1 -0
- package/dist/resources/events.cjs +7 -0
- package/dist/resources/events.cjs.map +1 -0
- package/dist/resources/events.d.cts +48 -0
- package/dist/resources/events.d.ts +48 -0
- package/dist/resources/events.js +7 -0
- package/dist/resources/events.js.map +1 -0
- package/dist/resources/export.cjs +7 -0
- package/dist/resources/export.cjs.map +1 -0
- package/dist/resources/export.d.cts +165 -0
- package/dist/resources/export.d.ts +165 -0
- package/dist/resources/export.js +7 -0
- package/dist/resources/export.js.map +1 -0
- package/dist/resources/externalRecords.cjs +7 -0
- package/dist/resources/externalRecords.cjs.map +1 -0
- package/dist/resources/externalRecords.d.cts +53 -0
- package/dist/resources/externalRecords.d.ts +53 -0
- package/dist/resources/externalRecords.js +7 -0
- package/dist/resources/externalRecords.js.map +1 -0
- package/dist/resources/featureMatrix.cjs +7 -0
- package/dist/resources/featureMatrix.cjs.map +1 -0
- package/dist/resources/featureMatrix.d.cts +24 -0
- package/dist/resources/featureMatrix.d.ts +24 -0
- package/dist/resources/featureMatrix.js +7 -0
- package/dist/resources/featureMatrix.js.map +1 -0
- package/dist/resources/fees.cjs +9 -0
- package/dist/resources/fees.cjs.map +1 -0
- package/dist/resources/fees.d.cts +96 -0
- package/dist/resources/fees.d.ts +96 -0
- package/dist/resources/fees.js +9 -0
- package/dist/resources/fees.js.map +1 -0
- package/dist/resources/files.cjs +7 -0
- package/dist/resources/files.cjs.map +1 -0
- package/dist/resources/files.d.cts +17 -0
- package/dist/resources/files.d.ts +17 -0
- package/dist/resources/files.js +7 -0
- package/dist/resources/files.js.map +1 -0
- package/dist/resources/forex.cjs +7 -0
- package/dist/resources/forex.cjs.map +1 -0
- package/dist/resources/forex.d.cts +15 -0
- package/dist/resources/forex.d.ts +15 -0
- package/dist/resources/forex.js +7 -0
- package/dist/resources/forex.js.map +1 -0
- package/dist/resources/identityVerifications.cjs +7 -0
- package/dist/resources/identityVerifications.cjs.map +1 -0
- package/dist/resources/identityVerifications.d.cts +224 -0
- package/dist/resources/identityVerifications.d.ts +224 -0
- package/dist/resources/identityVerifications.js +7 -0
- package/dist/resources/identityVerifications.js.map +1 -0
- package/dist/resources/industries.cjs +7 -0
- package/dist/resources/industries.cjs.map +1 -0
- package/dist/resources/industries.d.cts +88 -0
- package/dist/resources/industries.d.ts +88 -0
- package/dist/resources/industries.js +7 -0
- package/dist/resources/industries.js.map +1 -0
- package/dist/resources/invoiceSettings.cjs +7 -0
- package/dist/resources/invoiceSettings.cjs.map +1 -0
- package/dist/resources/invoiceSettings.d.cts +131 -0
- package/dist/resources/invoiceSettings.d.ts +131 -0
- package/dist/resources/invoiceSettings.js +7 -0
- package/dist/resources/invoiceSettings.js.map +1 -0
- package/dist/resources/invoices.cjs +7 -0
- package/dist/resources/invoices.cjs.map +1 -0
- package/dist/resources/invoices.d.cts +160 -0
- package/dist/resources/invoices.d.ts +160 -0
- package/dist/resources/invoices.js +7 -0
- package/dist/resources/invoices.js.map +1 -0
- package/dist/resources/live.cjs +13 -0
- package/dist/resources/live.cjs.map +1 -0
- package/dist/resources/live.d.cts +92 -0
- package/dist/resources/live.d.ts +92 -0
- package/dist/resources/live.js +13 -0
- package/dist/resources/live.js.map +1 -0
- package/dist/resources/mandates.cjs +7 -0
- package/dist/resources/mandates.cjs.map +1 -0
- package/dist/resources/mandates.d.cts +33 -0
- package/dist/resources/mandates.d.ts +33 -0
- package/dist/resources/mandates.js +7 -0
- package/dist/resources/mandates.js.map +1 -0
- package/dist/resources/merchantAccounts.cjs +7 -0
- package/dist/resources/merchantAccounts.cjs.map +1 -0
- package/dist/resources/merchantAccounts.d.cts +23 -0
- package/dist/resources/merchantAccounts.d.ts +23 -0
- package/dist/resources/merchantAccounts.js +7 -0
- package/dist/resources/merchantAccounts.js.map +1 -0
- package/dist/resources/messageTemplates.cjs +7 -0
- package/dist/resources/messageTemplates.cjs.map +1 -0
- package/dist/resources/messageTemplates.d.cts +48 -0
- package/dist/resources/messageTemplates.d.ts +48 -0
- package/dist/resources/messageTemplates.js +7 -0
- package/dist/resources/messageTemplates.js.map +1 -0
- package/dist/resources/operationLimits.cjs +7 -0
- package/dist/resources/operationLimits.cjs.map +1 -0
- package/dist/resources/operationLimits.d.cts +122 -0
- package/dist/resources/operationLimits.d.ts +122 -0
- package/dist/resources/operationLimits.js +7 -0
- package/dist/resources/operationLimits.js.map +1 -0
- package/dist/resources/paymentLinks.cjs +7 -0
- package/dist/resources/paymentLinks.cjs.map +1 -0
- package/dist/resources/paymentLinks.d.cts +42 -0
- package/dist/resources/paymentLinks.d.ts +42 -0
- package/dist/resources/paymentLinks.js +7 -0
- package/dist/resources/paymentLinks.js.map +1 -0
- package/dist/resources/paymentMethods.cjs +7 -0
- package/dist/resources/paymentMethods.cjs.map +1 -0
- package/dist/resources/paymentMethods.d.cts +172 -0
- package/dist/resources/paymentMethods.d.ts +172 -0
- package/dist/resources/paymentMethods.js +7 -0
- package/dist/resources/paymentMethods.js.map +1 -0
- package/dist/resources/payments.cjs +7 -0
- package/dist/resources/payments.cjs.map +1 -0
- package/dist/resources/payments.d.cts +509 -0
- package/dist/resources/payments.d.ts +509 -0
- package/dist/resources/payments.js +7 -0
- package/dist/resources/payments.js.map +1 -0
- package/dist/resources/payoutDestinations.cjs +7 -0
- package/dist/resources/payoutDestinations.cjs.map +1 -0
- package/dist/resources/payoutDestinations.d.cts +122 -0
- package/dist/resources/payoutDestinations.d.ts +122 -0
- package/dist/resources/payoutDestinations.js +7 -0
- package/dist/resources/payoutDestinations.js.map +1 -0
- package/dist/resources/payouts.cjs +7 -0
- package/dist/resources/payouts.cjs.map +1 -0
- package/dist/resources/payouts.d.cts +86 -0
- package/dist/resources/payouts.d.ts +86 -0
- package/dist/resources/payouts.js +7 -0
- package/dist/resources/payouts.js.map +1 -0
- package/dist/resources/paypalDisputes.cjs +7 -0
- package/dist/resources/paypalDisputes.cjs.map +1 -0
- package/dist/resources/paypalDisputes.d.cts +25 -0
- package/dist/resources/paypalDisputes.d.ts +25 -0
- package/dist/resources/paypalDisputes.js +7 -0
- package/dist/resources/paypalDisputes.js.map +1 -0
- package/dist/resources/persons.cjs +7 -0
- package/dist/resources/persons.cjs.map +1 -0
- package/dist/resources/persons.d.cts +58 -0
- package/dist/resources/persons.d.ts +58 -0
- package/dist/resources/persons.js +7 -0
- package/dist/resources/persons.js.map +1 -0
- package/dist/resources/poll.cjs +7 -0
- package/dist/resources/poll.cjs.map +1 -0
- package/dist/resources/poll.d.cts +12 -0
- package/dist/resources/poll.d.ts +12 -0
- package/dist/resources/poll.js +7 -0
- package/dist/resources/poll.js.map +1 -0
- package/dist/resources/processorCosts.cjs +7 -0
- package/dist/resources/processorCosts.cjs.map +1 -0
- package/dist/resources/processorCosts.d.cts +102 -0
- package/dist/resources/processorCosts.d.ts +102 -0
- package/dist/resources/processorCosts.js +7 -0
- package/dist/resources/processorCosts.js.map +1 -0
- package/dist/resources/processorImports.cjs +11 -0
- package/dist/resources/processorImports.cjs.map +1 -0
- package/dist/resources/processorImports.d.cts +96 -0
- package/dist/resources/processorImports.d.ts +96 -0
- package/dist/resources/processorImports.js +11 -0
- package/dist/resources/processorImports.js.map +1 -0
- package/dist/resources/products.cjs +7 -0
- package/dist/resources/products.cjs.map +1 -0
- package/dist/resources/products.d.cts +347 -0
- package/dist/resources/products.d.ts +347 -0
- package/dist/resources/products.js +7 -0
- package/dist/resources/products.js.map +1 -0
- package/dist/resources/profileAcquirers.cjs +7 -0
- package/dist/resources/profileAcquirers.cjs.map +1 -0
- package/dist/resources/profileAcquirers.d.cts +13 -0
- package/dist/resources/profileAcquirers.d.ts +13 -0
- package/dist/resources/profileAcquirers.js +7 -0
- package/dist/resources/profileAcquirers.js.map +1 -0
- package/dist/resources/profiles.cjs +7 -0
- package/dist/resources/profiles.cjs.map +1 -0
- package/dist/resources/profiles.d.cts +65 -0
- package/dist/resources/profiles.d.ts +65 -0
- package/dist/resources/profiles.js +7 -0
- package/dist/resources/profiles.js.map +1 -0
- package/dist/resources/projects.cjs +7 -0
- package/dist/resources/projects.cjs.map +1 -0
- package/dist/resources/projects.d.cts +131 -0
- package/dist/resources/projects.d.ts +131 -0
- package/dist/resources/projects.js +7 -0
- package/dist/resources/projects.js.map +1 -0
- package/dist/resources/refunds.cjs +7 -0
- package/dist/resources/refunds.cjs.map +1 -0
- package/dist/resources/refunds.d.cts +118 -0
- package/dist/resources/refunds.d.ts +118 -0
- package/dist/resources/refunds.js +7 -0
- package/dist/resources/refunds.js.map +1 -0
- package/dist/resources/regions.cjs +7 -0
- package/dist/resources/regions.cjs.map +1 -0
- package/dist/resources/regions.d.cts +32 -0
- package/dist/resources/regions.d.ts +32 -0
- package/dist/resources/regions.js +7 -0
- package/dist/resources/regions.js.map +1 -0
- package/dist/resources/relay.cjs +7 -0
- package/dist/resources/relay.cjs.map +1 -0
- package/dist/resources/relay.d.cts +13 -0
- package/dist/resources/relay.d.ts +13 -0
- package/dist/resources/relay.js +7 -0
- package/dist/resources/relay.js.map +1 -0
- package/dist/resources/risk.cjs +9 -0
- package/dist/resources/risk.cjs.map +1 -0
- package/dist/resources/risk.d.cts +67 -0
- package/dist/resources/risk.d.ts +67 -0
- package/dist/resources/risk.js +9 -0
- package/dist/resources/risk.js.map +1 -0
- package/dist/resources/routing.cjs +7 -0
- package/dist/resources/routing.cjs.map +1 -0
- package/dist/resources/routing.d.cts +526 -0
- package/dist/resources/routing.d.ts +526 -0
- package/dist/resources/routing.js +7 -0
- package/dist/resources/routing.js.map +1 -0
- package/dist/resources/search.cjs +7 -0
- package/dist/resources/search.cjs.map +1 -0
- package/dist/resources/search.d.cts +59 -0
- package/dist/resources/search.d.ts +59 -0
- package/dist/resources/search.js +7 -0
- package/dist/resources/search.js.map +1 -0
- package/dist/resources/sellToRestrictions.cjs +7 -0
- package/dist/resources/sellToRestrictions.cjs.map +1 -0
- package/dist/resources/sellToRestrictions.d.cts +99 -0
- package/dist/resources/sellToRestrictions.d.ts +99 -0
- package/dist/resources/sellToRestrictions.js +7 -0
- package/dist/resources/sellToRestrictions.js.map +1 -0
- package/dist/resources/settings.cjs +7 -0
- package/dist/resources/settings.cjs.map +1 -0
- package/dist/resources/settings.d.cts +36 -0
- package/dist/resources/settings.d.ts +36 -0
- package/dist/resources/settings.js +7 -0
- package/dist/resources/settings.js.map +1 -0
- package/dist/resources/settlement.cjs +9 -0
- package/dist/resources/settlement.cjs.map +1 -0
- package/dist/resources/settlement.d.cts +297 -0
- package/dist/resources/settlement.d.ts +297 -0
- package/dist/resources/settlement.js +9 -0
- package/dist/resources/settlement.js.map +1 -0
- package/dist/resources/shopLabels.cjs +7 -0
- package/dist/resources/shopLabels.cjs.map +1 -0
- package/dist/resources/shopLabels.d.cts +56 -0
- package/dist/resources/shopLabels.d.ts +56 -0
- package/dist/resources/shopLabels.js +7 -0
- package/dist/resources/shopLabels.js.map +1 -0
- package/dist/resources/shops.cjs +7 -0
- package/dist/resources/shops.cjs.map +1 -0
- package/dist/resources/shops.d.cts +196 -0
- package/dist/resources/shops.d.ts +196 -0
- package/dist/resources/shops.js +7 -0
- package/dist/resources/shops.js.map +1 -0
- package/dist/resources/stripeConnect.cjs +7 -0
- package/dist/resources/stripeConnect.cjs.map +1 -0
- package/dist/resources/stripeConnect.d.cts +19 -0
- package/dist/resources/stripeConnect.d.ts +19 -0
- package/dist/resources/stripeConnect.js +7 -0
- package/dist/resources/stripeConnect.js.map +1 -0
- package/dist/resources/subscriptions.cjs +7 -0
- package/dist/resources/subscriptions.cjs.map +1 -0
- package/dist/resources/subscriptions.d.cts +219 -0
- package/dist/resources/subscriptions.d.ts +219 -0
- package/dist/resources/subscriptions.js +7 -0
- package/dist/resources/subscriptions.js.map +1 -0
- package/dist/resources/support.cjs +7 -0
- package/dist/resources/support.cjs.map +1 -0
- package/dist/resources/support.d.cts +51 -0
- package/dist/resources/support.d.ts +51 -0
- package/dist/resources/support.js +7 -0
- package/dist/resources/support.js.map +1 -0
- package/dist/resources/threeDsRules.cjs +7 -0
- package/dist/resources/threeDsRules.cjs.map +1 -0
- package/dist/resources/threeDsRules.d.cts +12 -0
- package/dist/resources/threeDsRules.d.ts +12 -0
- package/dist/resources/threeDsRules.js +7 -0
- package/dist/resources/threeDsRules.js.map +1 -0
- package/dist/resources/users.cjs +7 -0
- package/dist/resources/users.cjs.map +1 -0
- package/dist/resources/users.d.cts +696 -0
- package/dist/resources/users.d.ts +696 -0
- package/dist/resources/users.js +7 -0
- package/dist/resources/users.js.map +1 -0
- package/dist/resources/vatRates.cjs +7 -0
- package/dist/resources/vatRates.cjs.map +1 -0
- package/dist/resources/vatRates.d.cts +24 -0
- package/dist/resources/vatRates.d.ts +24 -0
- package/dist/resources/vatRates.js +7 -0
- package/dist/resources/vatRates.js.map +1 -0
- package/dist/resources/verification.cjs +7 -0
- package/dist/resources/verification.cjs.map +1 -0
- package/dist/resources/verification.d.cts +13 -0
- package/dist/resources/verification.d.ts +13 -0
- package/dist/resources/verification.js +7 -0
- package/dist/resources/verification.js.map +1 -0
- package/dist/resources/webhooks.cjs +11 -0
- package/dist/resources/webhooks.cjs.map +1 -0
- package/dist/resources/webhooks.d.cts +145 -0
- package/dist/resources/webhooks.d.ts +145 -0
- package/dist/resources/webhooks.js +11 -0
- package/dist/resources/webhooks.js.map +1 -0
- package/dist/resources/whopResolutionCases.cjs +7 -0
- package/dist/resources/whopResolutionCases.cjs.map +1 -0
- package/dist/resources/whopResolutionCases.d.cts +28 -0
- package/dist/resources/whopResolutionCases.d.ts +28 -0
- package/dist/resources/whopResolutionCases.js +7 -0
- package/dist/resources/whopResolutionCases.js.map +1 -0
- package/dist/types-By5GGlvR.d.cts +4699 -0
- package/dist/types-CZib7kHm.d.ts +4699 -0
- package/dist/types.cjs +1 -0
- package/dist/types.cjs.map +1 -0
- package/dist/{index-WArxrQje.d.cts → types.d.cts} +132 -11123
- package/dist/{index-WArxrQje.d.ts → types.d.ts} +132 -11123
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/package.json +11 -1
- package/dist/chunk-DZK6LFNW.js +0 -18084
- package/dist/chunk-DZK6LFNW.js.map +0 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// src/internal/resources/diagnostic.ts
|
|
2
|
+
var Diagnostic = class {
|
|
3
|
+
constructor(request) {
|
|
4
|
+
this.request = request;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The ranked attention board — the page's landing state, with nothing typed.
|
|
8
|
+
*
|
|
9
|
+
* Always carries `checks_run` and `vitals`, so an empty `items` reads as
|
|
10
|
+
* "checked these things at 14:02, all clear" rather than as a panel that
|
|
11
|
+
* failed to load. A check that could not run is **absent** from `checks_run`
|
|
12
|
+
* rather than silently counted as clear.
|
|
13
|
+
*/
|
|
14
|
+
async attention(body) {
|
|
15
|
+
return this.request("POST", "/admin-portal/diagnostic/attention", { body: body ?? {} });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Provider webhooks received, across every merchant.
|
|
19
|
+
*
|
|
20
|
+
* `source_verified: false` selects rows that failed verification **or** never
|
|
21
|
+
* reached it — the deliveries that failed before verification was attempted
|
|
22
|
+
* are exactly the ones an operator opens this tab for.
|
|
23
|
+
*/
|
|
24
|
+
async listIncomingWebhooks(body) {
|
|
25
|
+
return this.request("POST", "/admin-portal/diagnostic/webhooks/incoming", {
|
|
26
|
+
body: body ?? {}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* One delivery in full: masked headers and body, the verification verdict,
|
|
31
|
+
* and the router log lines for its request id.
|
|
32
|
+
*
|
|
33
|
+
* `router_logs` is `null` — not `[]` — when the log store is unreachable, and
|
|
34
|
+
* `router_logs_unavailable` then says why. Render the first as *unavailable*,
|
|
35
|
+
* never as "the router logged nothing".
|
|
36
|
+
*/
|
|
37
|
+
async getIncomingWebhook(eventId) {
|
|
38
|
+
return this.request(
|
|
39
|
+
"GET",
|
|
40
|
+
`/admin-portal/diagnostic/webhooks/incoming/${encodeURIComponent(eventId)}`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
/** Shop webhooks sent, across every merchant, with each event's attempts folded in. */
|
|
44
|
+
async listOutgoingWebhooks(body) {
|
|
45
|
+
return this.request("POST", "/admin-portal/diagnostic/webhooks/outgoing", {
|
|
46
|
+
body: body ?? {}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The four tiles above the shop-webhooks table.
|
|
51
|
+
*
|
|
52
|
+
* Counted under the same window and environment as the table but **without**
|
|
53
|
+
* its delivery filter — the tiles say what the window holds, and applying the
|
|
54
|
+
* filter would make every tile agree with whichever one is selected.
|
|
55
|
+
*/
|
|
56
|
+
async outgoingWebhookSummary(body) {
|
|
57
|
+
return this.request("POST", "/admin-portal/diagnostic/webhooks/outgoing/summary", {
|
|
58
|
+
body: body ?? {}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Connector calls the router made.
|
|
63
|
+
*
|
|
64
|
+
* List rows carry no payload. Fetch one with {@link getConnectorCall} for the
|
|
65
|
+
* masked request and response.
|
|
66
|
+
*/
|
|
67
|
+
async listConnectorCalls(body) {
|
|
68
|
+
return this.request("POST", "/admin-portal/diagnostic/connector-calls", { body: body ?? {} });
|
|
69
|
+
}
|
|
70
|
+
/** One connector call, with its masked payloads. */
|
|
71
|
+
async getConnectorCall(id) {
|
|
72
|
+
return this.request(
|
|
73
|
+
"GET",
|
|
74
|
+
`/admin-portal/diagnostic/connector-calls/${encodeURIComponent(id)}`
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Router logs, proxied from the deployment's log store.
|
|
79
|
+
*
|
|
80
|
+
* Answers a {@link DiagnosticPanel}. Check `status` before reading `data`:
|
|
81
|
+
* `'unavailable'` means the store did not answer, which is the opposite of
|
|
82
|
+
* "there were no errors" and must be rendered as such.
|
|
83
|
+
*/
|
|
84
|
+
async routerLogs(body) {
|
|
85
|
+
return this.request("POST", "/admin-portal/diagnostic/logs", { body: body ?? {} });
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Payments that are stuck or failed.
|
|
89
|
+
*
|
|
90
|
+
* Stuck means non-terminal for longer than `stuck_minutes`; failed means it
|
|
91
|
+
* ended without succeeding inside the window. Omitting `stuck_minutes` turns
|
|
92
|
+
* the first arm off rather than widening it.
|
|
93
|
+
*/
|
|
94
|
+
async listPayments(body) {
|
|
95
|
+
return this.request("POST", "/admin-portal/diagnostic/payments", { body: body ?? {} });
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The error codes in this window, each with its count in the previous window
|
|
99
|
+
* of equal length.
|
|
100
|
+
*
|
|
101
|
+
* `previous_count: null` means the code did not appear before — render it as
|
|
102
|
+
* "new" rather than as a fall to zero.
|
|
103
|
+
*/
|
|
104
|
+
async paymentErrorCodes(body) {
|
|
105
|
+
return this.request("POST", "/admin-portal/diagnostic/payments/error-codes", {
|
|
106
|
+
body: body ?? {}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Everything about one payment, in one call: the payment, its attempts, its
|
|
111
|
+
* status history, its client context, and what it produced — connector calls,
|
|
112
|
+
* webhooks both ways, and scheduler jobs.
|
|
113
|
+
*
|
|
114
|
+
* Read `diagnostic_capture` before rendering an empty section. A payment with
|
|
115
|
+
* no connector calls and a deployment that never recorded any are different
|
|
116
|
+
* facts, and the second must not read as the first.
|
|
117
|
+
*
|
|
118
|
+
* Typed loosely on purpose: the payment, attempts, status-history and
|
|
119
|
+
* client-context halves are the merchant-facing shapes this package already
|
|
120
|
+
* exports, and re-declaring them here would give consumers two names for one
|
|
121
|
+
* thing that could then drift apart.
|
|
122
|
+
*/
|
|
123
|
+
async getPayment(paymentId) {
|
|
124
|
+
return this.request(
|
|
125
|
+
"GET",
|
|
126
|
+
`/admin-portal/diagnostic/payments/${encodeURIComponent(paymentId)}`
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
/** Scheduler tasks, most overdue first. */
|
|
130
|
+
async listQueues(body) {
|
|
131
|
+
return this.request("POST", "/admin-portal/diagnostic/queues", { body: body ?? {} });
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The four tiles above the queues table, plus the approvals count.
|
|
135
|
+
*
|
|
136
|
+
* `pending_approvals` is a **different** queue from `pending_count`: a stalled
|
|
137
|
+
* scheduler needs a consumer, a full approvals queue needs a person, and
|
|
138
|
+
* folding them into one number would point an operator at the wrong fix.
|
|
139
|
+
*/
|
|
140
|
+
async queueSummary() {
|
|
141
|
+
return this.request("GET", "/admin-portal/diagnostic/queues/summary");
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Replicas and their dependencies.
|
|
145
|
+
*
|
|
146
|
+
* `build_mismatch` is computed server-side rather than left for a caller to
|
|
147
|
+
* notice by comparing strings: one replica in four answering differently
|
|
148
|
+
* explains a whole class of "it only fails sometimes" incident, and is
|
|
149
|
+
* invisible unless something says it out loud.
|
|
150
|
+
*/
|
|
151
|
+
async infrastructure() {
|
|
152
|
+
return this.request("GET", "/admin-portal/diagnostic/infrastructure");
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Firing alerts, proxied from Alertmanager.
|
|
156
|
+
*
|
|
157
|
+
* Answers a {@link DiagnosticPanel} for the same reason {@link routerLogs}
|
|
158
|
+
* does: a strip that renders empty because Alertmanager is down says "nothing
|
|
159
|
+
* is firing", which is the most dangerous sentence this page could print.
|
|
160
|
+
*/
|
|
161
|
+
async alerts() {
|
|
162
|
+
return this.request("GET", "/admin-portal/diagnostic/alerts");
|
|
163
|
+
}
|
|
164
|
+
/** Config edits and admin actions inside the window. */
|
|
165
|
+
async listChanges(body) {
|
|
166
|
+
return this.request("POST", "/admin-portal/diagnostic/changes", { body: body ?? {} });
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* What a pasted id is, and whether we hold it.
|
|
170
|
+
*
|
|
171
|
+
* `kind` and `found` are separate answers on purpose. A well-shaped id that
|
|
172
|
+
* matches nothing comes back `found: false` with the three `reasons` and
|
|
173
|
+
* their fixes — render that, never an empty table, which reads as "no such
|
|
174
|
+
* payment" when the real answer is "outside the window" or "it is a test
|
|
175
|
+
* payment".
|
|
176
|
+
*/
|
|
177
|
+
async resolveId(id) {
|
|
178
|
+
return this.request("GET", `/admin-portal/diagnostic/resolve/${encodeURIComponent(id)}`);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* One id across every source, as an ordered span list.
|
|
182
|
+
*
|
|
183
|
+
* Accepts a payment, attempt, event or request id. Sources that could not be
|
|
184
|
+
* read are named in `unavailable_sources` rather than left out: a waterfall
|
|
185
|
+
* with an unexplained gap reads as a period when nothing happened.
|
|
186
|
+
*/
|
|
187
|
+
async trace(id) {
|
|
188
|
+
return this.request("GET", `/admin-portal/diagnostic/trace/${encodeURIComponent(id)}`);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Unmask one field of one object.
|
|
192
|
+
*
|
|
193
|
+
* **Writes an audit row** naming the operator, the field and the object,
|
|
194
|
+
* before the value is returned — a reveal that could not be audited does not
|
|
195
|
+
* happen. Needs a dashboard JWT holding `DiagnosticReveal`; an admin API key
|
|
196
|
+
* cannot call it, because an API key names no person.
|
|
197
|
+
*
|
|
198
|
+
* `reason` is required and is stored verbatim.
|
|
199
|
+
*/
|
|
200
|
+
async reveal(body) {
|
|
201
|
+
return this.request("POST", "/admin-portal/diagnostic/reveal", { body });
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export {
|
|
206
|
+
Diagnostic
|
|
207
|
+
};
|
|
208
|
+
//# sourceMappingURL=chunk-7YIDBPIU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/internal/resources/diagnostic.ts"],"sourcesContent":["import type {\n DiagnosticAttentionBoard,\n DiagnosticAttentionParams,\n DiagnosticChange,\n DiagnosticChangeListParams,\n DiagnosticConnectorCall,\n DiagnosticConnectorCallListParams,\n DiagnosticErrorCodeCount,\n DiagnosticFiringAlert,\n DiagnosticIncomingWebhook,\n DiagnosticIncomingWebhookDetail,\n DiagnosticIncomingWebhookListParams,\n DiagnosticInfrastructure,\n DiagnosticList,\n DiagnosticOutgoingWebhook,\n DiagnosticOutgoingWebhookListParams,\n DiagnosticOutgoingWebhookSummary,\n DiagnosticPanel,\n DiagnosticPayment,\n DiagnosticPaymentListParams,\n DiagnosticQueueItem,\n DiagnosticQueueListParams,\n DiagnosticQueueSummary,\n DiagnosticResolvedId,\n DiagnosticRevealRequest,\n DiagnosticRevealResponse,\n DiagnosticRouterLog,\n DiagnosticRouterLogParams,\n DiagnosticTrace,\n} from '../types';\nimport type { RequestFn } from '../../client';\n\n/**\n * The diagnostic console — everything the router did, without a\n * shell.\n *\n * Cross-merchant by construction: one call answers across every merchant on the\n * deployment. The backend gates that on the `Diagnostic` permission, which is\n * granted to DeloPay's internal staff roles alone, which is why this lives in\n * `@delopay/sdk/internal` and never on the merchant-facing client.\n *\n * ## Two shapes worth knowing before you call anything\n *\n * **Lists answer {@link DiagnosticList}**, which carries `hidden_by_environment`\n * beside the rows. That number is what lets a UI say \"612 test-mode rows are\n * hidden\" rather than leaving an operator unable to tell an empty tab from a\n * filtered one.\n *\n * **Two reads answer {@link DiagnosticPanel} instead** — {@link routerLogs} and\n * {@link alerts} — because their sources can be down independently of the\n * router. A panel is `available` with data or `unavailable` with a reason, and\n * that distinction is the whole point: **an unreachable log store must never be\n * rendered as \"no errors found\"**, and a `T[]` gives a caller no way to tell the\n * two apart.\n *\n * ## The environment filter\n *\n * Every list takes `environment`. Omitting it is read by the backend as\n * `'live'`, never as `'all'` — a caller that forgot to say gets the safer of the\n * two, and a test payment never appears in a view that reads as live.\n */\nexport class Diagnostic {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The ranked attention board — the page's landing state, with nothing typed.\n *\n * Always carries `checks_run` and `vitals`, so an empty `items` reads as\n * \"checked these things at 14:02, all clear\" rather than as a panel that\n * failed to load. A check that could not run is **absent** from `checks_run`\n * rather than silently counted as clear.\n */\n async attention(body?: DiagnosticAttentionParams): Promise<DiagnosticAttentionBoard> {\n return this.request('POST', '/admin-portal/diagnostic/attention', { body: body ?? {} });\n }\n\n /**\n * Provider webhooks received, across every merchant.\n *\n * `source_verified: false` selects rows that failed verification **or** never\n * reached it — the deliveries that failed before verification was attempted\n * are exactly the ones an operator opens this tab for.\n */\n async listIncomingWebhooks(\n body?: DiagnosticIncomingWebhookListParams,\n ): Promise<DiagnosticList<DiagnosticIncomingWebhook>> {\n return this.request('POST', '/admin-portal/diagnostic/webhooks/incoming', {\n body: body ?? {},\n });\n }\n\n /**\n * One delivery in full: masked headers and body, the verification verdict,\n * and the router log lines for its request id.\n *\n * `router_logs` is `null` — not `[]` — when the log store is unreachable, and\n * `router_logs_unavailable` then says why. Render the first as *unavailable*,\n * never as \"the router logged nothing\".\n */\n async getIncomingWebhook(eventId: string): Promise<DiagnosticIncomingWebhookDetail> {\n return this.request(\n 'GET',\n `/admin-portal/diagnostic/webhooks/incoming/${encodeURIComponent(eventId)}`,\n );\n }\n\n /** Shop webhooks sent, across every merchant, with each event's attempts folded in. */\n async listOutgoingWebhooks(\n body?: DiagnosticOutgoingWebhookListParams,\n ): Promise<DiagnosticList<DiagnosticOutgoingWebhook>> {\n return this.request('POST', '/admin-portal/diagnostic/webhooks/outgoing', {\n body: body ?? {},\n });\n }\n\n /**\n * The four tiles above the shop-webhooks table.\n *\n * Counted under the same window and environment as the table but **without**\n * its delivery filter — the tiles say what the window holds, and applying the\n * filter would make every tile agree with whichever one is selected.\n */\n async outgoingWebhookSummary(\n body?: DiagnosticOutgoingWebhookListParams,\n ): Promise<DiagnosticOutgoingWebhookSummary> {\n return this.request('POST', '/admin-portal/diagnostic/webhooks/outgoing/summary', {\n body: body ?? {},\n });\n }\n\n /**\n * Connector calls the router made.\n *\n * List rows carry no payload. Fetch one with {@link getConnectorCall} for the\n * masked request and response.\n */\n async listConnectorCalls(\n body?: DiagnosticConnectorCallListParams,\n ): Promise<DiagnosticList<DiagnosticConnectorCall>> {\n return this.request('POST', '/admin-portal/diagnostic/connector-calls', { body: body ?? {} });\n }\n\n /** One connector call, with its masked payloads. */\n async getConnectorCall(id: string): Promise<DiagnosticConnectorCall> {\n return this.request(\n 'GET',\n `/admin-portal/diagnostic/connector-calls/${encodeURIComponent(id)}`,\n );\n }\n\n /**\n * Router logs, proxied from the deployment's log store.\n *\n * Answers a {@link DiagnosticPanel}. Check `status` before reading `data`:\n * `'unavailable'` means the store did not answer, which is the opposite of\n * \"there were no errors\" and must be rendered as such.\n */\n async routerLogs(\n body?: DiagnosticRouterLogParams,\n ): Promise<DiagnosticPanel<DiagnosticList<DiagnosticRouterLog>>> {\n return this.request('POST', '/admin-portal/diagnostic/logs', { body: body ?? {} });\n }\n\n /**\n * Payments that are stuck or failed.\n *\n * Stuck means non-terminal for longer than `stuck_minutes`; failed means it\n * ended without succeeding inside the window. Omitting `stuck_minutes` turns\n * the first arm off rather than widening it.\n */\n async listPayments(\n body?: DiagnosticPaymentListParams,\n ): Promise<DiagnosticList<DiagnosticPayment>> {\n return this.request('POST', '/admin-portal/diagnostic/payments', { body: body ?? {} });\n }\n\n /**\n * The error codes in this window, each with its count in the previous window\n * of equal length.\n *\n * `previous_count: null` means the code did not appear before — render it as\n * \"new\" rather than as a fall to zero.\n */\n async paymentErrorCodes(body?: DiagnosticPaymentListParams): Promise<DiagnosticErrorCodeCount[]> {\n return this.request('POST', '/admin-portal/diagnostic/payments/error-codes', {\n body: body ?? {},\n });\n }\n\n /**\n * Everything about one payment, in one call: the payment, its attempts, its\n * status history, its client context, and what it produced — connector calls,\n * webhooks both ways, and scheduler jobs.\n *\n * Read `diagnostic_capture` before rendering an empty section. A payment with\n * no connector calls and a deployment that never recorded any are different\n * facts, and the second must not read as the first.\n *\n * Typed loosely on purpose: the payment, attempts, status-history and\n * client-context halves are the merchant-facing shapes this package already\n * exports, and re-declaring them here would give consumers two names for one\n * thing that could then drift apart.\n */\n async getPayment(paymentId: string): Promise<Record<string, unknown>> {\n return this.request(\n 'GET',\n `/admin-portal/diagnostic/payments/${encodeURIComponent(paymentId)}`,\n );\n }\n\n /** Scheduler tasks, most overdue first. */\n async listQueues(body?: DiagnosticQueueListParams): Promise<DiagnosticList<DiagnosticQueueItem>> {\n return this.request('POST', '/admin-portal/diagnostic/queues', { body: body ?? {} });\n }\n\n /**\n * The four tiles above the queues table, plus the approvals count.\n *\n * `pending_approvals` is a **different** queue from `pending_count`: a stalled\n * scheduler needs a consumer, a full approvals queue needs a person, and\n * folding them into one number would point an operator at the wrong fix.\n */\n async queueSummary(): Promise<DiagnosticQueueSummary> {\n return this.request('GET', '/admin-portal/diagnostic/queues/summary');\n }\n\n /**\n * Replicas and their dependencies.\n *\n * `build_mismatch` is computed server-side rather than left for a caller to\n * notice by comparing strings: one replica in four answering differently\n * explains a whole class of \"it only fails sometimes\" incident, and is\n * invisible unless something says it out loud.\n */\n async infrastructure(): Promise<DiagnosticInfrastructure> {\n return this.request('GET', '/admin-portal/diagnostic/infrastructure');\n }\n\n /**\n * Firing alerts, proxied from Alertmanager.\n *\n * Answers a {@link DiagnosticPanel} for the same reason {@link routerLogs}\n * does: a strip that renders empty because Alertmanager is down says \"nothing\n * is firing\", which is the most dangerous sentence this page could print.\n */\n async alerts(): Promise<DiagnosticPanel<DiagnosticFiringAlert[]>> {\n return this.request('GET', '/admin-portal/diagnostic/alerts');\n }\n\n /** Config edits and admin actions inside the window. */\n async listChanges(body?: DiagnosticChangeListParams): Promise<DiagnosticList<DiagnosticChange>> {\n return this.request('POST', '/admin-portal/diagnostic/changes', { body: body ?? {} });\n }\n\n /**\n * What a pasted id is, and whether we hold it.\n *\n * `kind` and `found` are separate answers on purpose. A well-shaped id that\n * matches nothing comes back `found: false` with the three `reasons` and\n * their fixes — render that, never an empty table, which reads as \"no such\n * payment\" when the real answer is \"outside the window\" or \"it is a test\n * payment\".\n */\n async resolveId(id: string): Promise<DiagnosticResolvedId> {\n return this.request('GET', `/admin-portal/diagnostic/resolve/${encodeURIComponent(id)}`);\n }\n\n /**\n * One id across every source, as an ordered span list.\n *\n * Accepts a payment, attempt, event or request id. Sources that could not be\n * read are named in `unavailable_sources` rather than left out: a waterfall\n * with an unexplained gap reads as a period when nothing happened.\n */\n async trace(id: string): Promise<DiagnosticTrace> {\n return this.request('GET', `/admin-portal/diagnostic/trace/${encodeURIComponent(id)}`);\n }\n\n /**\n * Unmask one field of one object.\n *\n * **Writes an audit row** naming the operator, the field and the object,\n * before the value is returned — a reveal that could not be audited does not\n * happen. Needs a dashboard JWT holding `DiagnosticReveal`; an admin API key\n * cannot call it, because an API key names no person.\n *\n * `reason` is required and is stored verbatim.\n */\n async reveal(body: DiagnosticRevealRequest): Promise<DiagnosticRevealResponse> {\n return this.request('POST', '/admin-portal/diagnostic/reveal', { body });\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/resources/sellToRestrictions.ts
|
|
2
|
+
var SellToRestrictions = class {
|
|
3
|
+
constructor(request) {
|
|
4
|
+
this.request = request;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The merchant-wide policy and every shop's effective policy. A caller
|
|
8
|
+
* scoped to one shop receives that shop alone, and no merchant-wide policy.
|
|
9
|
+
* `GET /sell-to-restrictions`
|
|
10
|
+
*/
|
|
11
|
+
async retrieve() {
|
|
12
|
+
return this.request("GET", "/sell-to-restrictions");
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Replace the merchant-wide policy every shop without an override inherits.
|
|
16
|
+
* The change is recorded in the audit log before it is made.
|
|
17
|
+
* `PUT /sell-to-restrictions/merchant`
|
|
18
|
+
*/
|
|
19
|
+
async updateMerchantPolicy(params, options) {
|
|
20
|
+
return this.request("PUT", "/sell-to-restrictions/merchant", { body: params, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Give one shop its own policy, replacing the merchant-wide policy for that
|
|
24
|
+
* shop. An empty `blocked_countries` lifts every restriction for it.
|
|
25
|
+
* `PUT /sell-to-restrictions/shops/{profile_id}`
|
|
26
|
+
*/
|
|
27
|
+
async updateShopOverride(profileId, params, options) {
|
|
28
|
+
return this.request("PUT", `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`, {
|
|
29
|
+
body: params,
|
|
30
|
+
...options
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Remove one shop's override, so it inherits the merchant-wide policy again.
|
|
35
|
+
* Removing an override the shop does not have changes nothing.
|
|
36
|
+
* `DELETE /sell-to-restrictions/shops/{profile_id}`
|
|
37
|
+
*/
|
|
38
|
+
async deleteShopOverride(profileId, options) {
|
|
39
|
+
return this.request(
|
|
40
|
+
"DELETE",
|
|
41
|
+
`/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`,
|
|
42
|
+
options
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* One project's own policy, if it has one.
|
|
47
|
+
* `GET /sell-to-restrictions/projects/{project_id}`
|
|
48
|
+
*/
|
|
49
|
+
async retrieveProject(projectId) {
|
|
50
|
+
return this.request("GET", `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Give one project its own policy. It replaces the merchant-wide policy for
|
|
54
|
+
* every shop of the project's subtree without an override or a nearer
|
|
55
|
+
* project policy, from their next payment on. An empty `blocked_countries`
|
|
56
|
+
* lifts every restriction for them. Recorded in the audit log first.
|
|
57
|
+
* `PUT /sell-to-restrictions/projects/{project_id}`
|
|
58
|
+
*/
|
|
59
|
+
async updateProjectPolicy(projectId, params, options) {
|
|
60
|
+
return this.request("PUT", `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`, {
|
|
61
|
+
body: params,
|
|
62
|
+
...options
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Remove one project's policy, so its subtree inherits from above again.
|
|
67
|
+
* Removing a policy the project does not have changes nothing.
|
|
68
|
+
* `DELETE /sell-to-restrictions/projects/{project_id}`
|
|
69
|
+
*/
|
|
70
|
+
async deleteProjectPolicy(projectId, options) {
|
|
71
|
+
return this.request(
|
|
72
|
+
"DELETE",
|
|
73
|
+
`/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`,
|
|
74
|
+
options
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* One payment connector account's own policy, and which buyer
|
|
79
|
+
* signals its payments can be judged on. Needs the merchant-level `Read`
|
|
80
|
+
* rung; a shop-scoped role is refused.
|
|
81
|
+
* `GET /sell-to-restrictions/connectors/{merchant_connector_id}`
|
|
82
|
+
*/
|
|
83
|
+
async retrieveConnectorPolicy(merchantConnectorId) {
|
|
84
|
+
return this.request(
|
|
85
|
+
"GET",
|
|
86
|
+
`/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Give one payment connector account its own policy. It applies on top of
|
|
91
|
+
* each shop's policy, in every shop the account serves, from the next
|
|
92
|
+
* payment on: a buyer it refuses is routed to another account of the shop.
|
|
93
|
+
* Needs the merchant-wide `Write` rung and write visibility for the
|
|
94
|
+
* processor; recorded in the audit log first.
|
|
95
|
+
* `PUT /sell-to-restrictions/connectors/{merchant_connector_id}`
|
|
96
|
+
*/
|
|
97
|
+
async updateConnectorPolicy(merchantConnectorId, params, options) {
|
|
98
|
+
return this.request(
|
|
99
|
+
"PUT",
|
|
100
|
+
`/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,
|
|
101
|
+
{ body: params, ...options }
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Remove one connector account's own policy; each shop's policy still
|
|
106
|
+
* applies. Removing a policy the account does not have changes nothing.
|
|
107
|
+
* `DELETE /sell-to-restrictions/connectors/{merchant_connector_id}`
|
|
108
|
+
*/
|
|
109
|
+
async deleteConnectorPolicy(merchantConnectorId, options) {
|
|
110
|
+
return this.request(
|
|
111
|
+
"DELETE",
|
|
112
|
+
`/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,
|
|
113
|
+
options
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Which checks each payment path performs, and how this deployment resolves
|
|
118
|
+
* a buyer's country — read before relying on a restriction for a path.
|
|
119
|
+
* `GET /sell-to-restrictions/capabilities`
|
|
120
|
+
*/
|
|
121
|
+
async capabilities() {
|
|
122
|
+
return this.request("GET", "/sell-to-restrictions/capabilities");
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Why a payment was refused: where, by which signal, for which country and
|
|
126
|
+
* under which policy. A shop-scoped caller sees only refusals in its shop.
|
|
127
|
+
* `GET /sell-to-restrictions/payments/{payment_id}/decisions`
|
|
128
|
+
*/
|
|
129
|
+
async listDecisions(paymentId) {
|
|
130
|
+
return this.request(
|
|
131
|
+
"GET",
|
|
132
|
+
`/sell-to-restrictions/payments/${encodeURIComponent(paymentId)}/decisions`
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
exports.SellToRestrictions = SellToRestrictions;
|
|
140
|
+
//# sourceMappingURL=chunk-ACZ2R47X.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/tmp/delopay-sdk-publish/dist/chunk-ACZ2R47X.cjs","../src/resources/sellToRestrictions.ts"],"names":[],"mappings":"AAAA;ACsBO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EAC9B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlD,MAAM,QAAA,CAAA,EAAgD;AACpD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,uBAAuB,CAAA;AAAA,EACpD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,oBAAA,CACJ,MAAA,EACA,OAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,gCAAA,EAAkC,EAAE,IAAA,EAAM,MAAA,EAAQ,GAAG,QAAQ,CAAC,CAAA;AAAA,EAC3F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,kBAAA,CACJ,SAAA,EACA,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,4BAAA,EAA+B,kBAAA,CAAmB,SAAS,CAAC,CAAA,CAAA;AAC/E,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUkC,EAAA;AACpB,IAAA;AACV,MAAA;AAC4D,MAAA;AAC5D,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAM4E,EAAA;AACM,IAAA;AAClF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaqC,EAAA;AAC6C,IAAA;AACxE,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUqC,EAAA;AACvB,IAAA;AACV,MAAA;AAC+D,MAAA;AAC/D,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQgG,EAAA;AAClF,IAAA;AACV,MAAA;AAC2E,MAAA;AAC7E,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcuC,EAAA;AACzB,IAAA;AACV,MAAA;AAC2E,MAAA;AAChD,MAAA;AAC7B,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUuC,EAAA;AACzB,IAAA;AACV,MAAA;AAC2E,MAAA;AAC3E,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOqE,EAAA;AACJ,IAAA;AACjE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOoF,EAAA;AACtE,IAAA;AACV,MAAA;AAC+D,MAAA;AACjE,IAAA;AACF,EAAA;AACF;ADtD4F;AACA;AACA;AACA","file":"/tmp/delopay-sdk-publish/dist/chunk-ACZ2R47X.cjs","sourcesContent":[null,"import type {\n ConnectorSellToRestriction,\n ProjectSellToRestriction,\n SellToRestrictionCapabilitiesResponse,\n SellToRestrictionDecisionsResponse,\n SellToRestrictionPolicyRequest,\n SellToRestrictionsResponse,\n ShopSellToRestriction,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\n\n/**\n * Sell-to restrictions: the buyer countries a merchant refuses to sell to,\n * merchant-wide, per project and per shop. A refused payment fails with error\n * code `DE_10`.\n *\n * Every route needs a dashboard session. Reading needs the `SellToRestrictions`\n * area at `Read`, overriding a shop needs `Edit` (a shop-scoped role may\n * override only its own shop), a project's policy needs `Edit` at merchant\n * level (no shop-scoped role, project members included), and changing the\n * merchant-wide policy needs `Write`.\n */\nexport class SellToRestrictions {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The merchant-wide policy and every shop's effective policy. A caller\n * scoped to one shop receives that shop alone, and no merchant-wide policy.\n * `GET /sell-to-restrictions`\n */\n async retrieve(): Promise<SellToRestrictionsResponse> {\n return this.request('GET', '/sell-to-restrictions');\n }\n\n /**\n * Replace the merchant-wide policy every shop without an override inherits.\n * The change is recorded in the audit log before it is made.\n * `PUT /sell-to-restrictions/merchant`\n */\n async updateMerchantPolicy(\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<SellToRestrictionsResponse> {\n return this.request('PUT', '/sell-to-restrictions/merchant', { body: params, ...options });\n }\n\n /**\n * Give one shop its own policy, replacing the merchant-wide policy for that\n * shop. An empty `blocked_countries` lifts every restriction for it.\n * `PUT /sell-to-restrictions/shops/{profile_id}`\n */\n async updateShopOverride(\n profileId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ShopSellToRestriction> {\n return this.request('PUT', `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Remove one shop's override, so it inherits the merchant-wide policy again.\n * Removing an override the shop does not have changes nothing.\n * `DELETE /sell-to-restrictions/shops/{profile_id}`\n */\n async deleteShopOverride(\n profileId: string,\n options?: RequestExtras,\n ): Promise<ShopSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/shops/${encodeURIComponent(profileId)}`,\n options,\n );\n }\n\n /**\n * One project's own policy, if it has one.\n * `GET /sell-to-restrictions/projects/{project_id}`\n */\n async retrieveProject(projectId: string): Promise<ProjectSellToRestriction> {\n return this.request('GET', `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`);\n }\n\n /**\n * Give one project its own policy. It replaces the merchant-wide policy for\n * every shop of the project's subtree without an override or a nearer\n * project policy, from their next payment on. An empty `blocked_countries`\n * lifts every restriction for them. Recorded in the audit log first.\n * `PUT /sell-to-restrictions/projects/{project_id}`\n */\n async updateProjectPolicy(\n projectId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ProjectSellToRestriction> {\n return this.request('PUT', `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Remove one project's policy, so its subtree inherits from above again.\n * Removing a policy the project does not have changes nothing.\n * `DELETE /sell-to-restrictions/projects/{project_id}`\n */\n async deleteProjectPolicy(\n projectId: string,\n options?: RequestExtras,\n ): Promise<ProjectSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/projects/${encodeURIComponent(projectId)}`,\n options,\n );\n }\n\n /**\n * One payment connector account's own policy, and which buyer\n * signals its payments can be judged on. Needs the merchant-level `Read`\n * rung; a shop-scoped role is refused.\n * `GET /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async retrieveConnectorPolicy(merchantConnectorId: string): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'GET',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n );\n }\n\n /**\n * Give one payment connector account its own policy. It applies on top of\n * each shop's policy, in every shop the account serves, from the next\n * payment on: a buyer it refuses is routed to another account of the shop.\n * Needs the merchant-wide `Write` rung and write visibility for the\n * processor; recorded in the audit log first.\n * `PUT /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async updateConnectorPolicy(\n merchantConnectorId: string,\n params: SellToRestrictionPolicyRequest,\n options?: RequestExtras,\n ): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'PUT',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n { body: params, ...options },\n );\n }\n\n /**\n * Remove one connector account's own policy; each shop's policy still\n * applies. Removing a policy the account does not have changes nothing.\n * `DELETE /sell-to-restrictions/connectors/{merchant_connector_id}`\n */\n async deleteConnectorPolicy(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<ConnectorSellToRestriction> {\n return this.request(\n 'DELETE',\n `/sell-to-restrictions/connectors/${encodeURIComponent(merchantConnectorId)}`,\n options,\n );\n }\n\n /**\n * Which checks each payment path performs, and how this deployment resolves\n * a buyer's country — read before relying on a restriction for a path.\n * `GET /sell-to-restrictions/capabilities`\n */\n async capabilities(): Promise<SellToRestrictionCapabilitiesResponse> {\n return this.request('GET', '/sell-to-restrictions/capabilities');\n }\n\n /**\n * Why a payment was refused: where, by which signal, for which country and\n * under which policy. A shop-scoped caller sees only refusals in its shop.\n * `GET /sell-to-restrictions/payments/{payment_id}/decisions`\n */\n async listDecisions(paymentId: string): Promise<SellToRestrictionDecisionsResponse> {\n return this.request(\n 'GET',\n `/sell-to-restrictions/payments/${encodeURIComponent(paymentId)}/decisions`,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CsvRecordCounter,
|
|
3
|
+
JsonArrayRecordCounter
|
|
4
|
+
} from "./chunk-BF7IX2O4.js";
|
|
5
|
+
import {
|
|
6
|
+
DelopayError
|
|
7
|
+
} from "./chunk-37BJUQ32.js";
|
|
8
|
+
|
|
9
|
+
// src/exportDownload.ts
|
|
10
|
+
var RECORD_COUNT_HEADER = "x-delopay-record-count";
|
|
11
|
+
var PRESENTATION_HEADER = "X-Delopay-Export-Presentation";
|
|
12
|
+
var MAX_PRESENTATION_HEADER = 6 * 1024;
|
|
13
|
+
function encodePresentation(presentation) {
|
|
14
|
+
const bytes = new TextEncoder().encode(JSON.stringify(presentation));
|
|
15
|
+
let binary = "";
|
|
16
|
+
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
17
|
+
const encoded = btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
18
|
+
if (encoded.length > MAX_PRESENTATION_HEADER) {
|
|
19
|
+
throw new DelopayError(
|
|
20
|
+
`Export presentation is ${encoded.length} bytes encoded; the server reads at most ${MAX_PRESENTATION_HEADER}`,
|
|
21
|
+
{
|
|
22
|
+
status: 0,
|
|
23
|
+
code: "EXPORT_PRESENTATION_TOO_LARGE",
|
|
24
|
+
type: "invalid_request",
|
|
25
|
+
data: { encoded_length: encoded.length, max_length: MAX_PRESENTATION_HEADER }
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
return encoded;
|
|
30
|
+
}
|
|
31
|
+
var LIST_ENVELOPE = { rows: "records", count: "record_count" };
|
|
32
|
+
var WORKSPACE_ENVELOPE = { rows: "data", count: "total_count" };
|
|
33
|
+
function parseRecordCount(header) {
|
|
34
|
+
if (header === null) return null;
|
|
35
|
+
const trimmed = header.trim();
|
|
36
|
+
if (!/^\d+$/.test(trimmed)) return null;
|
|
37
|
+
const value = Number(trimmed);
|
|
38
|
+
return Number.isSafeInteger(value) ? value : null;
|
|
39
|
+
}
|
|
40
|
+
function counterFor(format) {
|
|
41
|
+
if (format === "csv") return new CsvRecordCounter();
|
|
42
|
+
if (format === "json") return new JsonArrayRecordCounter();
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function isRecord(value) {
|
|
46
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
47
|
+
}
|
|
48
|
+
function announced(expected) {
|
|
49
|
+
return expected === null ? "" : ` of the ${expected} announced`;
|
|
50
|
+
}
|
|
51
|
+
function incomplete(message, expected, received, requestId) {
|
|
52
|
+
return new DelopayError(message, {
|
|
53
|
+
status: 0,
|
|
54
|
+
code: "EXPORT_INCOMPLETE",
|
|
55
|
+
type: "export_incomplete",
|
|
56
|
+
...requestId !== void 0 ? { requestId } : {},
|
|
57
|
+
data: { expected_records: expected, received_records: received }
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
async function downloadExport(request, call, options) {
|
|
61
|
+
const { format } = call;
|
|
62
|
+
const envelope = call.envelope ?? LIST_ENVELOPE;
|
|
63
|
+
const onProgress = options?.onProgress;
|
|
64
|
+
let latest = {
|
|
65
|
+
phase: "preparing",
|
|
66
|
+
receivedBytes: 0,
|
|
67
|
+
totalBytes: null,
|
|
68
|
+
receivedRecords: 0,
|
|
69
|
+
expectedRecords: null
|
|
70
|
+
};
|
|
71
|
+
const seen = { attempt: -1, counter: null, expected: null, requestId: void 0, listenerError: null };
|
|
72
|
+
const report = (progress) => {
|
|
73
|
+
latest = progress;
|
|
74
|
+
if (!onProgress) return;
|
|
75
|
+
try {
|
|
76
|
+
onProgress({ ...progress });
|
|
77
|
+
} catch (error) {
|
|
78
|
+
seen.listenerError = { error };
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
report(latest);
|
|
83
|
+
const onDownloadProgress = (event) => {
|
|
84
|
+
if (event.attempt !== seen.attempt) {
|
|
85
|
+
seen.attempt = event.attempt;
|
|
86
|
+
seen.counter = counterFor(format);
|
|
87
|
+
seen.expected = format === "pdf" ? null : parseRecordCount(event.headers.get(RECORD_COUNT_HEADER));
|
|
88
|
+
seen.requestId = event.headers.get("x-request-id") ?? event.headers.get("x-trace-id") ?? void 0;
|
|
89
|
+
}
|
|
90
|
+
if (event.chunk.byteLength > 0) seen.counter?.push(event.chunk);
|
|
91
|
+
report({
|
|
92
|
+
phase: "receiving",
|
|
93
|
+
receivedBytes: event.loaded,
|
|
94
|
+
totalBytes: event.total,
|
|
95
|
+
receivedRecords: seen.counter?.records ?? 0,
|
|
96
|
+
expectedRecords: seen.expected
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
let result;
|
|
100
|
+
try {
|
|
101
|
+
result = await request(call.method, call.path, {
|
|
102
|
+
...call.request,
|
|
103
|
+
...options?.signal !== void 0 ? { signal: options.signal } : {},
|
|
104
|
+
...options?.timeout !== void 0 ? { timeout: options.timeout } : {},
|
|
105
|
+
onDownloadProgress
|
|
106
|
+
});
|
|
107
|
+
} catch (err) {
|
|
108
|
+
if (seen.listenerError !== null && err === seen.listenerError.error) throw err;
|
|
109
|
+
if (format === "json" && seen.attempt >= 0 && err instanceof SyntaxError) {
|
|
110
|
+
const received2 = seen.counter?.records ?? 0;
|
|
111
|
+
throw incomplete(
|
|
112
|
+
seen.expected === null ? `Export incomplete: the body ended part-way through the JSON document, after ${received2} records` : `Export incomplete: the server announced ${seen.expected} records, and the body ended part-way through the JSON document after ${received2}`,
|
|
113
|
+
seen.expected,
|
|
114
|
+
received2,
|
|
115
|
+
seen.requestId
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
throw err;
|
|
119
|
+
}
|
|
120
|
+
const { expected, requestId } = seen;
|
|
121
|
+
let received = 0;
|
|
122
|
+
if (format === "json") {
|
|
123
|
+
const rows = isRecord(result) ? result[envelope.rows] : void 0;
|
|
124
|
+
if (!Array.isArray(rows)) {
|
|
125
|
+
throw incomplete(
|
|
126
|
+
`Export incomplete: the body is not an export envelope with a "${envelope.rows}" array, so it carries 0 records${announced(expected)}`,
|
|
127
|
+
expected,
|
|
128
|
+
0,
|
|
129
|
+
requestId
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
received = rows.length;
|
|
133
|
+
const declared = isRecord(result) ? result[envelope.count] : void 0;
|
|
134
|
+
if (typeof declared === "number" && declared !== rows.length) {
|
|
135
|
+
throw incomplete(
|
|
136
|
+
`Export incomplete: the file's ${envelope.count} is ${declared}, but it carries ${rows.length} records`,
|
|
137
|
+
declared,
|
|
138
|
+
rows.length,
|
|
139
|
+
requestId
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
} else if (format === "csv") {
|
|
143
|
+
const counter = seen.counter;
|
|
144
|
+
received = counter?.finish() ?? 0;
|
|
145
|
+
if (!counter?.complete) {
|
|
146
|
+
throw incomplete(
|
|
147
|
+
`Export incomplete: the CSV body ended part-way through a line, after ${received} complete records${announced(expected)}`,
|
|
148
|
+
expected,
|
|
149
|
+
received,
|
|
150
|
+
requestId
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (expected !== null && received !== expected) {
|
|
155
|
+
throw incomplete(
|
|
156
|
+
`Export incomplete: the server announced ${expected} records, and the body carried ${received}`,
|
|
157
|
+
expected,
|
|
158
|
+
received,
|
|
159
|
+
requestId
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
report({
|
|
163
|
+
phase: "done",
|
|
164
|
+
receivedBytes: latest.receivedBytes,
|
|
165
|
+
totalBytes: latest.totalBytes,
|
|
166
|
+
receivedRecords: received,
|
|
167
|
+
expectedRecords: expected
|
|
168
|
+
});
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
var ACCEPT = {
|
|
172
|
+
csv: "text/csv",
|
|
173
|
+
json: "application/json",
|
|
174
|
+
pdf: "application/pdf"
|
|
175
|
+
};
|
|
176
|
+
function negotiated(options, format, presentation) {
|
|
177
|
+
const headers = { ...options.headers, Accept: ACCEPT[format] };
|
|
178
|
+
if (format === "pdf" && presentation !== void 0) {
|
|
179
|
+
headers[PRESENTATION_HEADER] = encodePresentation(presentation);
|
|
180
|
+
}
|
|
181
|
+
return format === "json" ? { ...options, headers } : { ...options, headers, responseType: "blob" };
|
|
182
|
+
}
|
|
183
|
+
function runExport(request, method, path, base, options) {
|
|
184
|
+
const format = options?.format ?? "json";
|
|
185
|
+
return downloadExport(
|
|
186
|
+
request,
|
|
187
|
+
{ method, path, request: negotiated(base, format, options?.presentation), format },
|
|
188
|
+
options
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export {
|
|
193
|
+
PRESENTATION_HEADER,
|
|
194
|
+
MAX_PRESENTATION_HEADER,
|
|
195
|
+
encodePresentation,
|
|
196
|
+
LIST_ENVELOPE,
|
|
197
|
+
WORKSPACE_ENVELOPE,
|
|
198
|
+
downloadExport,
|
|
199
|
+
negotiated,
|
|
200
|
+
runExport
|
|
201
|
+
};
|
|
202
|
+
//# sourceMappingURL=chunk-AREMIQLZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/exportDownload.ts"],"sourcesContent":["import { DelopayError } from './error';\nimport type { DownloadProgressEvent, RequestFn, RequestOptions } from './client';\nimport type {\n ExportFormat,\n ExportOptions,\n ExportPresentation,\n ExportProgress,\n ExportTransferOptions,\n} from './types';\nimport { CsvRecordCounter, JsonArrayRecordCounter } from './recordCounter';\nimport type { RecordCounter } from './recordCounter';\n\n/** The header a streamed export announces its record count in. */\nconst RECORD_COUNT_HEADER = 'x-delopay-record-count';\n\n/** The header a PDF export's words travel in. */\nexport const PRESENTATION_HEADER = 'X-Delopay-Export-Presentation';\n\n/**\n * Longest encoded presentation the server reads. A longer one is refused\n * there with `IR_06`; checked here first, so the caller hears it before a\n * request is sent and without a proxy's opinion of a long header in between.\n */\nexport const MAX_PRESENTATION_HEADER = 6 * 1024;\n\n/**\n * `presentation` as the header carries it: base64url, unpadded, of its UTF-8\n * JSON. Rejects with `EXPORT_PRESENTATION_TOO_LARGE` past\n * {@link MAX_PRESENTATION_HEADER}.\n */\nexport function encodePresentation(presentation: ExportPresentation): string {\n const bytes = new TextEncoder().encode(JSON.stringify(presentation));\n let binary = '';\n for (const byte of bytes) binary += String.fromCharCode(byte);\n const encoded = btoa(binary).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n if (encoded.length > MAX_PRESENTATION_HEADER) {\n throw new DelopayError(\n `Export presentation is ${encoded.length} bytes encoded; the server reads at most ${MAX_PRESENTATION_HEADER}`,\n {\n status: 0,\n code: 'EXPORT_PRESENTATION_TOO_LARGE',\n type: 'invalid_request',\n data: { encoded_length: encoded.length, max_length: MAX_PRESENTATION_HEADER },\n },\n );\n }\n return encoded;\n}\n\n/**\n * Where a `json` export keeps its rows, and its own count of them.\n *\n * Every list export answers `{\"records\":[…],\"record_count\":N,\"filters\":{…}}`;\n * the disputes workspace answers `{\"data\":[…],\"total_count\":N}`.\n */\nexport interface ExportEnvelopeShape {\n rows: string;\n count: string;\n}\n\n/** `{\"records\":[…],\"record_count\":N,\"filters\":{…}}` — every list export. */\nexport const LIST_ENVELOPE: ExportEnvelopeShape = { rows: 'records', count: 'record_count' };\n\n/** `{\"data\":[…],\"total_count\":N}` — the disputes workspace export. */\nexport const WORKSPACE_ENVELOPE: ExportEnvelopeShape = { rows: 'data', count: 'total_count' };\n\n/** One export request, as the resource method built it. */\nexport interface ExportCall {\n method: string;\n path: string;\n /**\n * The request without its transfer options: filters, headers (`Accept`\n * included) and `responseType`.\n */\n request: RequestOptions;\n format: ExportFormat;\n /** The `json` envelope. Defaults to {@link LIST_ENVELOPE}. */\n envelope?: ExportEnvelopeShape;\n}\n\n/**\n * `X-Delopay-Record-Count` as a count, or `null` when there is none.\n *\n * Only a plain run of digits is a count. Anything else — a value a proxy\n * mangled, two values folded into one — is treated as no announcement rather\n * than guessed at.\n */\nfunction parseRecordCount(header: string | null): number | null {\n if (header === null) return null;\n const trimmed = header.trim();\n if (!/^\\d+$/.test(trimmed)) return null;\n const value = Number(trimmed);\n return Number.isSafeInteger(value) ? value : null;\n}\n\nfunction counterFor(format: ExportFormat): RecordCounter | null {\n if (format === 'csv') return new CsvRecordCounter();\n if (format === 'json') return new JsonArrayRecordCounter();\n return null;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/** `\" of the N announced\"`, or nothing when the server announced no count. */\nfunction announced(expected: number | null): string {\n return expected === null ? '' : ` of the ${expected} announced`;\n}\n\nfunction incomplete(\n message: string,\n expected: number | null,\n received: number,\n requestId: string | undefined,\n): DelopayError {\n return new DelopayError(message, {\n status: 0,\n code: 'EXPORT_INCOMPLETE',\n type: 'export_incomplete',\n ...(requestId !== undefined ? { requestId } : {}),\n data: { expected_records: expected, received_records: received },\n });\n}\n\n/**\n * Run one export: send it, report its progress, and hold the finished body to\n * the size the server announced before handing it back.\n *\n * The check is the point. These are finance files, and a body that ends short\n * of `X-Delopay-Record-Count` is a file missing rows that would otherwise open,\n * sum and reconcile without a word. It is refused with `EXPORT_INCOMPLETE`\n * rather than returned. For `json` the envelope's own count is held to its\n * rows as well, and a body that is not a whole JSON document is incomplete by\n * definition.\n *\n * `onProgress` hears `preparing` synchronously, before anything is sent — the\n * caller's `async` method runs this far on the call itself.\n */\nexport async function downloadExport<T>(\n request: RequestFn,\n call: ExportCall,\n options: ExportTransferOptions | undefined,\n): Promise<T> {\n const { format } = call;\n const envelope = call.envelope ?? LIST_ENVELOPE;\n const onProgress = options?.onProgress;\n\n let latest: ExportProgress = {\n phase: 'preparing',\n receivedBytes: 0,\n totalBytes: null,\n receivedRecords: 0,\n expectedRecords: null,\n };\n // What the current attempt's headers announced, what its body has\n // delivered, and whether the caller's own listener threw. Kept on an object\n // because the listeners below write it.\n const seen: {\n attempt: number;\n counter: RecordCounter | null;\n expected: number | null;\n requestId: string | undefined;\n listenerError: { error: unknown } | null;\n } = { attempt: -1, counter: null, expected: null, requestId: undefined, listenerError: null };\n\n // A copy each time, so a listener that keeps the snapshots it is given\n // keeps what it was told. What it throws is remembered so it reaches the\n // caller as itself: a `SyntaxError` in a progress bar is not a body that\n // failed to parse.\n const report = (progress: ExportProgress) => {\n latest = progress;\n if (!onProgress) return;\n try {\n onProgress({ ...progress });\n } catch (error) {\n seen.listenerError = { error };\n throw error;\n }\n };\n report(latest);\n\n const onDownloadProgress = (event: DownloadProgressEvent) => {\n if (event.attempt !== seen.attempt) {\n // The headers of a new attempt: a retry starts the body over, so the\n // count does too.\n seen.attempt = event.attempt;\n seen.counter = counterFor(format);\n // A PDF is not counted, so an announced count could only ever fail it.\n seen.expected =\n format === 'pdf' ? null : parseRecordCount(event.headers.get(RECORD_COUNT_HEADER));\n seen.requestId =\n event.headers.get('x-request-id') ?? event.headers.get('x-trace-id') ?? undefined;\n }\n if (event.chunk.byteLength > 0) seen.counter?.push(event.chunk);\n report({\n phase: 'receiving',\n receivedBytes: event.loaded,\n totalBytes: event.total,\n receivedRecords: seen.counter?.records ?? 0,\n expectedRecords: seen.expected,\n });\n };\n\n let result: unknown;\n try {\n result = await request<unknown>(call.method, call.path, {\n ...call.request,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n ...(options?.timeout !== undefined ? { timeout: options.timeout } : {}),\n onDownloadProgress,\n });\n } catch (err) {\n if (seen.listenerError !== null && err === seen.listenerError.error) throw err;\n // The body arrived whole as far as the connection could tell, but it does\n // not parse: it stopped part-way through the document.\n if (format === 'json' && seen.attempt >= 0 && err instanceof SyntaxError) {\n const received = seen.counter?.records ?? 0;\n throw incomplete(\n seen.expected === null\n ? `Export incomplete: the body ended part-way through the JSON document, after ${received} records`\n : `Export incomplete: the server announced ${seen.expected} records, and the body ended part-way through the JSON document after ${received}`,\n seen.expected,\n received,\n seen.requestId,\n );\n }\n throw err;\n }\n\n const { expected, requestId } = seen;\n let received = 0;\n if (format === 'json') {\n // Only the export's own envelope is a JSON export. Anything else — an\n // empty 200, which parses to nothing — delivered no file, and a count of\n // zero records must not be read as a complete empty one.\n const rows = isRecord(result) ? result[envelope.rows] : undefined;\n if (!Array.isArray(rows)) {\n throw incomplete(\n `Export incomplete: the body is not an export envelope with a \"${envelope.rows}\" array, so it carries 0 records${announced(expected)}`,\n expected,\n 0,\n requestId,\n );\n }\n received = rows.length;\n const declared = isRecord(result) ? result[envelope.count] : undefined;\n if (typeof declared === 'number' && declared !== rows.length) {\n throw incomplete(\n `Export incomplete: the file's ${envelope.count} is ${declared}, but it carries ${rows.length} records`,\n declared,\n rows.length,\n requestId,\n );\n }\n } else if (format === 'csv') {\n const counter = seen.counter;\n received = counter?.finish() ?? 0;\n // Checked whether or not a count was announced: every line of an export\n // body ends in a newline, so one that ends anywhere else was cut off.\n if (!counter?.complete) {\n throw incomplete(\n `Export incomplete: the CSV body ended part-way through a line, after ${received} complete records${announced(expected)}`,\n expected,\n received,\n requestId,\n );\n }\n }\n\n if (expected !== null && received !== expected) {\n throw incomplete(\n `Export incomplete: the server announced ${expected} records, and the body carried ${received}`,\n expected,\n received,\n requestId,\n );\n }\n\n report({\n phase: 'done',\n receivedBytes: latest.receivedBytes,\n totalBytes: latest.totalBytes,\n receivedRecords: received,\n expectedRecords: expected,\n });\n return result as T;\n}\n\n/** The media type each format is asked for by name. */\nconst ACCEPT: Record<ExportFormat, string> = {\n csv: 'text/csv',\n json: 'application/json',\n pdf: 'application/pdf',\n};\n\n/**\n * Headers and response handling for one export.\n *\n * The format is negotiated with `Accept`, never a request field. The API's\n * reason is that an export reuses its list's filter model as literally the same\n * type, and several of those are `deny_unknown_fields` — so a `format` key in\n * the query or body is a 400, not an option. That holds for the transactions\n * export too, whose body is the payments list filter.\n *\n * `csv` and `pdf` are not JSON, and the client parses a body as JSON unless it\n * is told otherwise, so a missing `responseType` would be a `SyntaxError` on\n * the first comma rather than a wrong type.\n */\nexport function negotiated(\n options: RequestOptions,\n format: ExportFormat,\n presentation?: ExportPresentation,\n): RequestOptions {\n const headers: Record<string, string> = { ...options.headers, Accept: ACCEPT[format] };\n // Only a PDF prints words; a CSV or JSON file is sent none.\n if (format === 'pdf' && presentation !== undefined) {\n headers[PRESENTATION_HEADER] = encodePresentation(presentation);\n }\n return format === 'json'\n ? { ...options, headers }\n : { ...options, headers, responseType: 'blob' };\n}\n\n/**\n * Send one list export in the format `options` asks for — `json` unless told\n * otherwise — with its progress and its record-count check.\n *\n * `base` is the request as the list would send it: its filters in `body` or\n * `query`, and any header of its own. The format's `Accept` and\n * `responseType` are added here.\n */\nexport function runExport<T>(\n request: RequestFn,\n method: string,\n path: string,\n base: RequestOptions,\n options: ExportOptions | undefined,\n): Promise<T> {\n const format = options?.format ?? 'json';\n return downloadExport<T>(\n request,\n { method, path, request: negotiated(base, format, options?.presentation), format },\n options,\n );\n}\n"],"mappings":"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","names":["received"]}
|