@commercelayer/sdk 7.0.0-rc.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/lib/api-BsKF9Q-K.d.cts +17565 -0
- package/lib/api-hqUAWxVp.d.ts +17565 -0
- package/lib/api.cjs +288 -283
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +137 -136
- package/lib/bundle.cjs +277 -401
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +2 -2
- package/lib/bundle.d.ts +2 -2
- package/lib/bundle.js +276 -400
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-2AIPAXOH.cjs +65 -0
- package/lib/chunk-2AIPAXOH.cjs.map +1 -0
- package/lib/chunk-2CPNHJAZ.cjs +51 -0
- package/lib/chunk-2CPNHJAZ.cjs.map +1 -0
- package/lib/chunk-2M54XID3.cjs +51 -0
- package/lib/chunk-2M54XID3.cjs.map +1 -0
- package/lib/chunk-2M5MIMZG.cjs +55 -0
- package/lib/chunk-2M5MIMZG.cjs.map +1 -0
- package/lib/chunk-2QBP2WHJ.js +49 -0
- package/lib/chunk-2QBP2WHJ.js.map +1 -0
- package/lib/chunk-2VNQTC3B.cjs +56 -0
- package/lib/chunk-2VNQTC3B.cjs.map +1 -0
- package/lib/chunk-2Y3T4MLF.cjs +53 -0
- package/lib/chunk-2Y3T4MLF.cjs.map +1 -0
- package/lib/chunk-33CXJXIW.js +63 -0
- package/lib/chunk-33CXJXIW.js.map +1 -0
- package/lib/chunk-3FQU4LWE.js +53 -0
- package/lib/chunk-3FQU4LWE.js.map +1 -0
- package/lib/chunk-3SD7QN5M.js +49 -0
- package/lib/chunk-3SD7QN5M.js.map +1 -0
- package/lib/chunk-3WTRPII2.cjs +47 -0
- package/lib/chunk-3WTRPII2.cjs.map +1 -0
- package/lib/chunk-3XJA5M3C.cjs +56 -0
- package/lib/chunk-3XJA5M3C.cjs.map +1 -0
- package/lib/chunk-3YINNWNG.cjs +51 -0
- package/lib/chunk-3YINNWNG.cjs.map +1 -0
- package/lib/chunk-3ZOHHEJR.js +59 -0
- package/lib/chunk-3ZOHHEJR.js.map +1 -0
- package/lib/chunk-43SLAYP5.js +68 -0
- package/lib/chunk-43SLAYP5.js.map +1 -0
- package/lib/chunk-45YSQMGA.cjs +81 -0
- package/lib/chunk-45YSQMGA.cjs.map +1 -0
- package/lib/chunk-4ATZM33H.js +49 -0
- package/lib/chunk-4ATZM33H.js.map +1 -0
- package/lib/chunk-4B4WZM22.cjs +39 -0
- package/lib/chunk-4B4WZM22.cjs.map +1 -0
- package/lib/chunk-4L73VYT5.cjs +51 -0
- package/lib/chunk-4L73VYT5.cjs.map +1 -0
- package/lib/chunk-4MCWJ5GT.js +57 -0
- package/lib/chunk-4MCWJ5GT.js.map +1 -0
- package/lib/chunk-4MDMKEMH.js +645 -0
- package/lib/chunk-4MDMKEMH.js.map +1 -0
- package/lib/chunk-4XQNILDJ.js +59 -0
- package/lib/chunk-4XQNILDJ.js.map +1 -0
- package/lib/chunk-54UOEWTE.cjs +79 -0
- package/lib/chunk-54UOEWTE.cjs.map +1 -0
- package/lib/chunk-5BIP4OLZ.js +54 -0
- package/lib/chunk-5BIP4OLZ.js.map +1 -0
- package/lib/chunk-5ENDZCMK.js +72 -0
- package/lib/chunk-5ENDZCMK.js.map +1 -0
- package/lib/chunk-5QHMVNEQ.cjs +34 -0
- package/lib/chunk-5QHMVNEQ.cjs.map +1 -0
- package/lib/chunk-5TL34ZY6.js +49 -0
- package/lib/chunk-5TL34ZY6.js.map +1 -0
- package/lib/chunk-5WUI6OHH.cjs +43 -0
- package/lib/chunk-5WUI6OHH.cjs.map +1 -0
- package/lib/chunk-62EOOGD4.js +128 -0
- package/lib/chunk-62EOOGD4.js.map +1 -0
- package/lib/chunk-65LSQZTV.js +45 -0
- package/lib/chunk-65LSQZTV.js.map +1 -0
- package/lib/chunk-67TJ6ALR.js +47 -0
- package/lib/chunk-67TJ6ALR.js.map +1 -0
- package/lib/chunk-67U7A4FV.cjs +72 -0
- package/lib/chunk-67U7A4FV.cjs.map +1 -0
- package/lib/chunk-6EIS4TN3.js +49 -0
- package/lib/chunk-6EIS4TN3.js.map +1 -0
- package/lib/chunk-6LHRWK5U.cjs +39 -0
- package/lib/chunk-6LHRWK5U.cjs.map +1 -0
- package/lib/chunk-6MVBC553.js +99 -0
- package/lib/chunk-6MVBC553.js.map +1 -0
- package/lib/chunk-6PKJDHVC.js +48 -0
- package/lib/chunk-6PKJDHVC.js.map +1 -0
- package/lib/chunk-6QOS6B5F.cjs +51 -0
- package/lib/chunk-6QOS6B5F.cjs.map +1 -0
- package/lib/chunk-6S7EJUCA.cjs +47 -0
- package/lib/chunk-6S7EJUCA.cjs.map +1 -0
- package/lib/chunk-6SGYQRO6.js +53 -0
- package/lib/chunk-6SGYQRO6.js.map +1 -0
- package/lib/chunk-6STKOQR7.cjs +63 -0
- package/lib/chunk-6STKOQR7.cjs.map +1 -0
- package/lib/chunk-6ZJMVQ7T.js +44 -0
- package/lib/chunk-6ZJMVQ7T.js.map +1 -0
- package/lib/chunk-6ZUGJHNV.cjs +47 -0
- package/lib/chunk-6ZUGJHNV.cjs.map +1 -0
- package/lib/chunk-73VR2FML.cjs +51 -0
- package/lib/chunk-73VR2FML.cjs.map +1 -0
- package/lib/chunk-7AHYBTEX.js +36 -0
- package/lib/chunk-7AHYBTEX.js.map +1 -0
- package/lib/chunk-7AOVIJPK.cjs +102 -0
- package/lib/chunk-7AOVIJPK.cjs.map +1 -0
- package/lib/chunk-7LH7NNTW.js +44 -0
- package/lib/chunk-7LH7NNTW.js.map +1 -0
- package/lib/chunk-7OLCOMGV.cjs +54 -0
- package/lib/chunk-7OLCOMGV.cjs.map +1 -0
- package/lib/chunk-7P3ZTIQX.cjs +55 -0
- package/lib/chunk-7P3ZTIQX.cjs.map +1 -0
- package/lib/chunk-7SJAVPZH.cjs +54 -0
- package/lib/chunk-7SJAVPZH.cjs.map +1 -0
- package/lib/chunk-7YWXHAMP.cjs +61 -0
- package/lib/chunk-7YWXHAMP.cjs.map +1 -0
- package/lib/chunk-7Z7FQA33.cjs +661 -0
- package/lib/chunk-7Z7FQA33.cjs.map +1 -0
- package/lib/chunk-A2SZPZSG.cjs +50 -0
- package/lib/chunk-A2SZPZSG.cjs.map +1 -0
- package/lib/chunk-A4MUL4NB.js +53 -0
- package/lib/chunk-A4MUL4NB.js.map +1 -0
- package/lib/chunk-A76SFMAB.cjs +51 -0
- package/lib/chunk-A76SFMAB.cjs.map +1 -0
- package/lib/chunk-AB7QWMMM.cjs +33 -0
- package/lib/chunk-AB7QWMMM.cjs.map +1 -0
- package/lib/chunk-AT27CIRM.js +107 -0
- package/lib/chunk-AT27CIRM.js.map +1 -0
- package/lib/chunk-ATVNGAQC.cjs +109 -0
- package/lib/chunk-ATVNGAQC.cjs.map +1 -0
- package/lib/chunk-AWV5Y4SH.js +70 -0
- package/lib/chunk-AWV5Y4SH.js.map +1 -0
- package/lib/chunk-BGHPRKU4.cjs +51 -0
- package/lib/chunk-BGHPRKU4.cjs.map +1 -0
- package/lib/chunk-BHXCVURA.cjs +130 -0
- package/lib/chunk-BHXCVURA.cjs.map +1 -0
- package/lib/chunk-BQ4VRKE7.js +28 -0
- package/lib/chunk-BQ4VRKE7.js.map +1 -0
- package/lib/chunk-BT72RZCE.js +36 -0
- package/lib/chunk-BT72RZCE.js.map +1 -0
- package/lib/chunk-BTLPF6RH.js +49 -0
- package/lib/chunk-BTLPF6RH.js.map +1 -0
- package/lib/chunk-BUHV5UDN.cjs +54 -0
- package/lib/chunk-BUHV5UDN.cjs.map +1 -0
- package/lib/chunk-C47UWH7R.js +48 -0
- package/lib/chunk-C47UWH7R.js.map +1 -0
- package/lib/chunk-C6ACTKJH.js +48 -0
- package/lib/chunk-C6ACTKJH.js.map +1 -0
- package/lib/chunk-CETB5FAI.js +41 -0
- package/lib/chunk-CETB5FAI.js.map +1 -0
- package/lib/chunk-CHYP5F26.js.map +1 -1
- package/lib/chunk-CMUUBOZK.cjs +99 -0
- package/lib/chunk-CMUUBOZK.cjs.map +1 -0
- package/lib/chunk-CRPD5Q5Y.js +88 -0
- package/lib/chunk-CRPD5Q5Y.js.map +1 -0
- package/lib/chunk-CYEVBUIW.js +100 -0
- package/lib/chunk-CYEVBUIW.js.map +1 -0
- package/lib/chunk-D7SALAS2.cjs +29 -0
- package/lib/chunk-D7SALAS2.cjs.map +1 -0
- package/lib/chunk-D7VHCT5M.cjs +47 -0
- package/lib/chunk-D7VHCT5M.cjs.map +1 -0
- package/lib/chunk-DEYOBMM5.js +49 -0
- package/lib/chunk-DEYOBMM5.js.map +1 -0
- package/lib/chunk-DIE5NWNX.js +105 -0
- package/lib/chunk-DIE5NWNX.js.map +1 -0
- package/lib/chunk-DM62R5CL.cjs +50 -0
- package/lib/chunk-DM62R5CL.cjs.map +1 -0
- package/lib/chunk-DPE4FTTS.cjs +42 -0
- package/lib/chunk-DPE4FTTS.cjs.map +1 -0
- package/lib/chunk-DPIHG4FX.cjs +51 -0
- package/lib/chunk-DPIHG4FX.cjs.map +1 -0
- package/lib/chunk-DPJDEC6A.js +42 -0
- package/lib/chunk-DPJDEC6A.js.map +1 -0
- package/lib/chunk-DQWWKXLR.cjs +51 -0
- package/lib/chunk-DQWWKXLR.cjs.map +1 -0
- package/lib/chunk-E2EVY45K.js +48 -0
- package/lib/chunk-E2EVY45K.js.map +1 -0
- package/lib/chunk-E2G3K7H4.js +32 -0
- package/lib/chunk-E2G3K7H4.js.map +1 -0
- package/lib/chunk-E6MQFGEF.js +77 -0
- package/lib/chunk-E6MQFGEF.js.map +1 -0
- package/lib/chunk-EAR4AXVU.cjs +51 -0
- package/lib/chunk-EAR4AXVU.cjs.map +1 -0
- package/lib/chunk-EFQH4OGQ.cjs +46 -0
- package/lib/chunk-EFQH4OGQ.cjs.map +1 -0
- package/lib/chunk-EFU44R7O.js +56 -0
- package/lib/chunk-EFU44R7O.js.map +1 -0
- package/lib/chunk-EPDTA5Z3.cjs +79 -0
- package/lib/chunk-EPDTA5Z3.cjs.map +1 -0
- package/lib/chunk-ESGRB4YB.cjs +55 -0
- package/lib/chunk-ESGRB4YB.cjs.map +1 -0
- package/lib/chunk-EVVUYC7T.cjs +47 -0
- package/lib/chunk-EVVUYC7T.cjs.map +1 -0
- package/lib/chunk-EW5ZFLK6.cjs +74 -0
- package/lib/chunk-EW5ZFLK6.cjs.map +1 -0
- package/lib/chunk-EZQ3QHF2.js +97 -0
- package/lib/chunk-EZQ3QHF2.js.map +1 -0
- package/lib/chunk-F3UMNXXH.js +45 -0
- package/lib/chunk-F3UMNXXH.js.map +1 -0
- package/lib/chunk-F6TOLEEF.js +37 -0
- package/lib/chunk-F6TOLEEF.js.map +1 -0
- package/lib/chunk-F6WABN7F.cjs +105 -0
- package/lib/chunk-F6WABN7F.cjs.map +1 -0
- package/lib/chunk-FCGKL7AI.cjs +51 -0
- package/lib/chunk-FCGKL7AI.cjs.map +1 -0
- package/lib/chunk-FDW7JX5A.cjs +55 -0
- package/lib/chunk-FDW7JX5A.cjs.map +1 -0
- package/lib/chunk-FDWMELHT.js +51 -0
- package/lib/chunk-FDWMELHT.js.map +1 -0
- package/lib/chunk-FI2PWG6C.js +63 -0
- package/lib/chunk-FI2PWG6C.js.map +1 -0
- package/lib/chunk-FI7BWBCX.js +63 -0
- package/lib/chunk-FI7BWBCX.js.map +1 -0
- package/lib/chunk-FIM76CMU.cjs +42 -0
- package/lib/chunk-FIM76CMU.cjs.map +1 -0
- package/lib/chunk-FLFTXWLQ.cjs +286 -0
- package/lib/chunk-FLFTXWLQ.cjs.map +1 -0
- package/lib/chunk-FMGDNZQ6.cjs +51 -0
- package/lib/chunk-FMGDNZQ6.cjs.map +1 -0
- package/lib/chunk-FNTJOIQB.cjs +60 -0
- package/lib/chunk-FNTJOIQB.cjs.map +1 -0
- package/lib/chunk-FTYGJZZM.js +44 -0
- package/lib/chunk-FTYGJZZM.js.map +1 -0
- package/lib/chunk-FUDBWYKD.js +49 -0
- package/lib/chunk-FUDBWYKD.js.map +1 -0
- package/lib/chunk-G2OYFKP2.cjs +90 -0
- package/lib/chunk-G2OYFKP2.cjs.map +1 -0
- package/lib/chunk-G2Y67WFX.js +73 -0
- package/lib/chunk-G2Y67WFX.js.map +1 -0
- package/lib/chunk-G2ZCHH4W.js +55 -0
- package/lib/chunk-G2ZCHH4W.js.map +1 -0
- package/lib/chunk-G5IOYKFS.js +53 -0
- package/lib/chunk-G5IOYKFS.js.map +1 -0
- package/lib/chunk-G74VYKRY.js +45 -0
- package/lib/chunk-G74VYKRY.js.map +1 -0
- package/lib/chunk-G7MROYQP.cjs +42 -0
- package/lib/chunk-G7MROYQP.cjs.map +1 -0
- package/lib/chunk-GJOZR5TC.cjs +93 -0
- package/lib/chunk-GJOZR5TC.cjs.map +1 -0
- package/lib/chunk-GKUFMSZL.js +32 -0
- package/lib/chunk-GKUFMSZL.js.map +1 -0
- package/lib/chunk-GLL264QG.cjs +55 -0
- package/lib/chunk-GLL264QG.cjs.map +1 -0
- package/lib/chunk-GRBPCPJQ.js +58 -0
- package/lib/chunk-GRBPCPJQ.js.map +1 -0
- package/lib/chunk-H5CKBXQS.js +53 -0
- package/lib/chunk-H5CKBXQS.js.map +1 -0
- package/lib/chunk-H6AQZ5TP.js +77 -0
- package/lib/chunk-H6AQZ5TP.js.map +1 -0
- package/lib/chunk-H7EX22DB.cjs +65 -0
- package/lib/chunk-H7EX22DB.cjs.map +1 -0
- package/lib/chunk-HBDXHKBE.js +91 -0
- package/lib/chunk-HBDXHKBE.js.map +1 -0
- package/lib/chunk-HH3NIT7B.js +49 -0
- package/lib/chunk-HH3NIT7B.js.map +1 -0
- package/lib/chunk-HUDH634O.cjs +67 -0
- package/lib/chunk-HUDH634O.cjs.map +1 -0
- package/lib/chunk-HXAWT7GZ.js +97 -0
- package/lib/chunk-HXAWT7GZ.js.map +1 -0
- package/lib/chunk-HZQRIP3G.js +284 -0
- package/lib/chunk-HZQRIP3G.js.map +1 -0
- package/lib/chunk-I2NZB6KN.js +44 -0
- package/lib/chunk-I2NZB6KN.js.map +1 -0
- package/lib/chunk-I3ZMOPMJ.js +52 -0
- package/lib/chunk-I3ZMOPMJ.js.map +1 -0
- package/lib/chunk-I56ZABWO.cjs +38 -0
- package/lib/chunk-I56ZABWO.cjs.map +1 -0
- package/lib/chunk-I5VOVSS7.cjs +71 -0
- package/lib/chunk-I5VOVSS7.cjs.map +1 -0
- package/lib/chunk-I64U2VMD.cjs +51 -0
- package/lib/chunk-I64U2VMD.cjs.map +1 -0
- package/lib/chunk-I66TFFKG.cjs +160 -0
- package/lib/chunk-I66TFFKG.cjs.map +1 -0
- package/lib/chunk-I73TW24N.cjs +101 -0
- package/lib/chunk-I73TW24N.cjs.map +1 -0
- package/lib/chunk-IALPF4NG.cjs +60 -0
- package/lib/chunk-IALPF4NG.cjs.map +1 -0
- package/lib/chunk-IHPFHOEJ.js +40 -0
- package/lib/chunk-IHPFHOEJ.js.map +1 -0
- package/lib/chunk-II544XO5.cjs +51 -0
- package/lib/chunk-II544XO5.cjs.map +1 -0
- package/lib/chunk-IKHD5UQP.cjs.map +1 -1
- package/lib/chunk-IQQNG3U2.cjs +55 -0
- package/lib/chunk-IQQNG3U2.cjs.map +1 -0
- package/lib/chunk-IQVSM3MS.js +57 -0
- package/lib/chunk-IQVSM3MS.js.map +1 -0
- package/lib/chunk-IXOAGKRD.cjs +65 -0
- package/lib/chunk-IXOAGKRD.cjs.map +1 -0
- package/lib/chunk-J32Z2XNX.cjs +57 -0
- package/lib/chunk-J32Z2XNX.cjs.map +1 -0
- package/lib/chunk-J42WGTN6.cjs +50 -0
- package/lib/chunk-J42WGTN6.cjs.map +1 -0
- package/lib/chunk-JAOFRM22.js +61 -0
- package/lib/chunk-JAOFRM22.js.map +1 -0
- package/lib/chunk-JCOJGOXF.cjs +107 -0
- package/lib/chunk-JCOJGOXF.cjs.map +1 -0
- package/lib/chunk-JDFDWBXQ.js +53 -0
- package/lib/chunk-JDFDWBXQ.js.map +1 -0
- package/lib/chunk-JPKZBEAY.js +59 -0
- package/lib/chunk-JPKZBEAY.js.map +1 -0
- package/lib/chunk-JRMM5QTS.cjs +99 -0
- package/lib/chunk-JRMM5QTS.cjs.map +1 -0
- package/lib/chunk-JUVEIRM4.cjs +47 -0
- package/lib/chunk-JUVEIRM4.cjs.map +1 -0
- package/lib/chunk-JVF5KY2J.cjs.map +1 -1
- package/lib/chunk-JVQVN3JM.js +31 -0
- package/lib/chunk-JVQVN3JM.js.map +1 -0
- package/lib/chunk-JWLNUOL5.js +79 -0
- package/lib/chunk-JWLNUOL5.js.map +1 -0
- package/lib/chunk-JYSIXEKG.cjs +54 -0
- package/lib/chunk-JYSIXEKG.cjs.map +1 -0
- package/lib/chunk-K2E4PX3F.cjs +51 -0
- package/lib/chunk-K2E4PX3F.cjs.map +1 -0
- package/lib/chunk-K3BSXSHS.cjs +55 -0
- package/lib/chunk-K3BSXSHS.cjs.map +1 -0
- package/lib/chunk-K7AR7Z3J.cjs +58 -0
- package/lib/chunk-K7AR7Z3J.cjs.map +1 -0
- package/lib/chunk-KAZKQXUO.js +103 -0
- package/lib/chunk-KAZKQXUO.js.map +1 -0
- package/lib/chunk-KDDMRBB6.cjs +30 -0
- package/lib/chunk-KDDMRBB6.cjs.map +1 -0
- package/lib/chunk-KDQRA5YH.js +49 -0
- package/lib/chunk-KDQRA5YH.js.map +1 -0
- package/lib/chunk-KGZ3FTYR.cjs +43 -0
- package/lib/chunk-KGZ3FTYR.cjs.map +1 -0
- package/lib/chunk-KIB4XYWP.js +37 -0
- package/lib/chunk-KIB4XYWP.js.map +1 -0
- package/lib/chunk-KM27D322.cjs +70 -0
- package/lib/chunk-KM27D322.cjs.map +1 -0
- package/lib/chunk-KNXPWX4D.cjs +73 -0
- package/lib/chunk-KNXPWX4D.cjs.map +1 -0
- package/lib/chunk-KT2FGWBT.cjs +59 -0
- package/lib/chunk-KT2FGWBT.cjs.map +1 -0
- package/lib/chunk-KVRZZTDE.js +40 -0
- package/lib/chunk-KVRZZTDE.js.map +1 -0
- package/lib/chunk-KWOKL6HK.cjs +59 -0
- package/lib/chunk-KWOKL6HK.cjs.map +1 -0
- package/lib/chunk-LE4I5AHS.js +53 -0
- package/lib/chunk-LE4I5AHS.js.map +1 -0
- package/lib/chunk-LESXALEZ.js +49 -0
- package/lib/chunk-LESXALEZ.js.map +1 -0
- package/lib/chunk-LF3CZYGK.js +49 -0
- package/lib/chunk-LF3CZYGK.js.map +1 -0
- package/lib/chunk-LGO42DAS.cjs +58 -0
- package/lib/chunk-LGO42DAS.cjs.map +1 -0
- package/lib/chunk-LGOJTWKL.js +52 -0
- package/lib/chunk-LGOJTWKL.js.map +1 -0
- package/lib/chunk-LLYWUA5S.js +54 -0
- package/lib/chunk-LLYWUA5S.js.map +1 -0
- package/lib/chunk-LTCWS2HF.cjs +43 -0
- package/lib/chunk-LTCWS2HF.cjs.map +1 -0
- package/lib/chunk-LZXPO7K6.cjs +88 -0
- package/lib/chunk-LZXPO7K6.cjs.map +1 -0
- package/lib/chunk-ME2ZNNMA.js +58 -0
- package/lib/chunk-ME2ZNNMA.js.map +1 -0
- package/lib/chunk-MHCLPVOI.js +56 -0
- package/lib/chunk-MHCLPVOI.js.map +1 -0
- package/lib/chunk-MKV2B7P5.cjs +46 -0
- package/lib/chunk-MKV2B7P5.cjs.map +1 -0
- package/lib/chunk-MOKBZVUU.js +53 -0
- package/lib/chunk-MOKBZVUU.js.map +1 -0
- package/lib/chunk-MR6CPNFJ.cjs +110 -0
- package/lib/chunk-MR6CPNFJ.cjs.map +1 -0
- package/lib/chunk-MUMTGXL2.js +57 -0
- package/lib/chunk-MUMTGXL2.js.map +1 -0
- package/lib/chunk-MXT6VH7V.js +45 -0
- package/lib/chunk-MXT6VH7V.js.map +1 -0
- package/lib/chunk-N35FM5P4.js +64 -0
- package/lib/chunk-N35FM5P4.js.map +1 -0
- package/lib/chunk-N4COQM5Q.js +37 -0
- package/lib/chunk-N4COQM5Q.js.map +1 -0
- package/lib/chunk-N5DBVBID.js +70 -0
- package/lib/chunk-N5DBVBID.js.map +1 -0
- package/lib/chunk-NEVN2SMR.js +53 -0
- package/lib/chunk-NEVN2SMR.js.map +1 -0
- package/lib/chunk-NEZXHBGE.js +3 -0
- package/lib/chunk-NEZXHBGE.js.map +1 -0
- package/lib/chunk-NODJ4LG6.js +97 -0
- package/lib/chunk-NODJ4LG6.js.map +1 -0
- package/lib/chunk-NRZBSJPM.js +45 -0
- package/lib/chunk-NRZBSJPM.js.map +1 -0
- package/lib/chunk-NWKIFDQH.cjs +55 -0
- package/lib/chunk-NWKIFDQH.cjs.map +1 -0
- package/lib/chunk-O3NWYOPV.cjs +55 -0
- package/lib/chunk-O3NWYOPV.cjs.map +1 -0
- package/lib/chunk-OA4DVMEQ.cjs +59 -0
- package/lib/chunk-OA4DVMEQ.cjs.map +1 -0
- package/lib/chunk-OA7RZ24N.js +49 -0
- package/lib/chunk-OA7RZ24N.js.map +1 -0
- package/lib/chunk-OEUSTDGS.cjs +42 -0
- package/lib/chunk-OEUSTDGS.cjs.map +1 -0
- package/lib/chunk-OH5533KN.cjs +55 -0
- package/lib/chunk-OH5533KN.cjs.map +1 -0
- package/lib/chunk-OL6PRNU5.js +49 -0
- package/lib/chunk-OL6PRNU5.js.map +1 -0
- package/lib/chunk-OS5DXUBX.js +49 -0
- package/lib/chunk-OS5DXUBX.js.map +1 -0
- package/lib/chunk-OV4JT553.cjs +51 -0
- package/lib/chunk-OV4JT553.cjs.map +1 -0
- package/lib/chunk-P2OLPCWV.cjs +54 -0
- package/lib/chunk-P2OLPCWV.cjs.map +1 -0
- package/lib/chunk-P5GRTTMC.js +71 -0
- package/lib/chunk-P5GRTTMC.js.map +1 -0
- package/lib/chunk-P7E2LQ6Q.js +53 -0
- package/lib/chunk-P7E2LQ6Q.js.map +1 -0
- package/lib/chunk-PA43CMMI.cjs +55 -0
- package/lib/chunk-PA43CMMI.cjs.map +1 -0
- package/lib/chunk-PBE4XAIR.cjs +65 -0
- package/lib/chunk-PBE4XAIR.cjs.map +1 -0
- package/lib/chunk-PBIARBZH.cjs +51 -0
- package/lib/chunk-PBIARBZH.cjs.map +1 -0
- package/lib/chunk-PEC5CKS7.cjs +22 -0
- package/lib/chunk-PEC5CKS7.cjs.map +1 -0
- package/lib/chunk-PENOPHMW.js +52 -0
- package/lib/chunk-PENOPHMW.js.map +1 -0
- package/lib/chunk-PIYKFPYB.js +49 -0
- package/lib/chunk-PIYKFPYB.js.map +1 -0
- package/lib/chunk-PLIS7EYD.js +41 -0
- package/lib/chunk-PLIS7EYD.js.map +1 -0
- package/lib/chunk-Q3ULISRX.cjs +57 -0
- package/lib/chunk-Q3ULISRX.cjs.map +1 -0
- package/lib/chunk-QB7GGVK7.js +52 -0
- package/lib/chunk-QB7GGVK7.js.map +1 -0
- package/lib/chunk-QD2VBPJU.js +53 -0
- package/lib/chunk-QD2VBPJU.js.map +1 -0
- package/lib/chunk-QGFAOPJG.cjs +26 -0
- package/lib/chunk-QGFAOPJG.cjs.map +1 -0
- package/lib/chunk-QXYNFQDJ.js +24 -0
- package/lib/chunk-QXYNFQDJ.js.map +1 -0
- package/lib/chunk-QYVJGMYT.cjs +51 -0
- package/lib/chunk-QYVJGMYT.cjs.map +1 -0
- package/lib/chunk-R2LRLUUY.js.map +1 -1
- package/lib/chunk-R5NSJSKB.js +49 -0
- package/lib/chunk-R5NSJSKB.js.map +1 -0
- package/lib/chunk-RAF3LK5T.cjs +51 -0
- package/lib/chunk-RAF3LK5T.cjs.map +1 -0
- package/lib/chunk-RDTIBHZO.cjs +51 -0
- package/lib/chunk-RDTIBHZO.cjs.map +1 -0
- package/lib/chunk-RHG3UVET.cjs +44 -0
- package/lib/chunk-RHG3UVET.cjs.map +1 -0
- package/lib/chunk-RJJQU44M.js +45 -0
- package/lib/chunk-RJJQU44M.js.map +1 -0
- package/lib/chunk-RK3E3UJ2.cjs +61 -0
- package/lib/chunk-RK3E3UJ2.cjs.map +1 -0
- package/lib/chunk-RLZV6AKT.cjs +99 -0
- package/lib/chunk-RLZV6AKT.cjs.map +1 -0
- package/lib/chunk-SDGSOWXI.js +49 -0
- package/lib/chunk-SDGSOWXI.js.map +1 -0
- package/lib/chunk-SKETQJTW.cjs +59 -0
- package/lib/chunk-SKETQJTW.cjs.map +1 -0
- package/lib/chunk-SRW7OWVS.cjs.map +1 -1
- package/lib/chunk-SRYEFARJ.cjs +4 -0
- package/lib/chunk-SRYEFARJ.cjs.map +1 -0
- package/lib/chunk-SXPZRQBF.js +49 -0
- package/lib/chunk-SXPZRQBF.js.map +1 -0
- package/lib/chunk-T2VDBKD4.js +44 -0
- package/lib/chunk-T2VDBKD4.js.map +1 -0
- package/lib/chunk-T5AO4445.cjs +49 -0
- package/lib/chunk-T5AO4445.cjs.map +1 -0
- package/lib/chunk-TE3N57V6.js +40 -0
- package/lib/chunk-TE3N57V6.js.map +1 -0
- package/lib/chunk-TFJYQUEH.cjs +51 -0
- package/lib/chunk-TFJYQUEH.cjs.map +1 -0
- package/lib/chunk-TIINXXHU.cjs +46 -0
- package/lib/chunk-TIINXXHU.cjs.map +1 -0
- package/lib/chunk-TLOIOTYF.cjs +66 -0
- package/lib/chunk-TLOIOTYF.cjs.map +1 -0
- package/lib/chunk-TRPV3CFO.cjs +75 -0
- package/lib/chunk-TRPV3CFO.cjs.map +1 -0
- package/lib/chunk-TWL4WEOL.js +49 -0
- package/lib/chunk-TWL4WEOL.js.map +1 -0
- package/lib/chunk-TWQ4THAG.js +45 -0
- package/lib/chunk-TWQ4THAG.js.map +1 -0
- package/lib/chunk-TZAGUXNS.cjs +61 -0
- package/lib/chunk-TZAGUXNS.cjs.map +1 -0
- package/lib/chunk-U22VLCMN.cjs +284 -0
- package/lib/chunk-U22VLCMN.cjs.map +1 -0
- package/lib/chunk-U25QRMJY.js +28 -0
- package/lib/chunk-U25QRMJY.js.map +1 -0
- package/lib/chunk-U4ELOYK7.cjs +42 -0
- package/lib/chunk-U4ELOYK7.cjs.map +1 -0
- package/lib/chunk-U7OGOZ5B.cjs +51 -0
- package/lib/chunk-U7OGOZ5B.cjs.map +1 -0
- package/lib/chunk-UEDVN7C4.js +49 -0
- package/lib/chunk-UEDVN7C4.js.map +1 -0
- package/lib/chunk-UEQ3CRVM.cjs +50 -0
- package/lib/chunk-UEQ3CRVM.cjs.map +1 -0
- package/lib/chunk-UHKV2XBV.cjs +95 -0
- package/lib/chunk-UHKV2XBV.cjs.map +1 -0
- package/lib/chunk-UIPKMXES.js +97 -0
- package/lib/chunk-UIPKMXES.js.map +1 -0
- package/lib/chunk-UTFSZHUD.cjs +39 -0
- package/lib/chunk-UTFSZHUD.cjs.map +1 -0
- package/lib/chunk-UUY77JM3.js +151 -0
- package/lib/chunk-UUY77JM3.js.map +1 -0
- package/lib/chunk-UWM5SGDS.js +65 -0
- package/lib/chunk-UWM5SGDS.js.map +1 -0
- package/lib/chunk-VDMJ7RC4.js +97 -0
- package/lib/chunk-VDMJ7RC4.js.map +1 -0
- package/lib/chunk-VEBN2D2K.js +53 -0
- package/lib/chunk-VEBN2D2K.js.map +1 -0
- package/lib/chunk-VGMMPMUL.js +55 -0
- package/lib/chunk-VGMMPMUL.js.map +1 -0
- package/lib/chunk-VKLOHZKL.js +104 -0
- package/lib/chunk-VKLOHZKL.js.map +1 -0
- package/lib/chunk-VKNNJ5CS.js +49 -0
- package/lib/chunk-VKNNJ5CS.js.map +1 -0
- package/lib/chunk-VRJJX4JV.js +40 -0
- package/lib/chunk-VRJJX4JV.js.map +1 -0
- package/lib/chunk-VT5HP44I.js +49 -0
- package/lib/chunk-VT5HP44I.js.map +1 -0
- package/lib/chunk-VUVL5VPT.js +49 -0
- package/lib/chunk-VUVL5VPT.js.map +1 -0
- package/lib/chunk-W2EFIUTW.js +40 -0
- package/lib/chunk-W2EFIUTW.js.map +1 -0
- package/lib/chunk-W6KL6Q4Z.cjs +99 -0
- package/lib/chunk-W6KL6Q4Z.cjs.map +1 -0
- package/lib/chunk-WAC3LO4S.cjs +51 -0
- package/lib/chunk-WAC3LO4S.cjs.map +1 -0
- package/lib/chunk-WEWTTMPS.cjs +46 -0
- package/lib/chunk-WEWTTMPS.cjs.map +1 -0
- package/lib/chunk-WK3SIZUG.js +41 -0
- package/lib/chunk-WK3SIZUG.js.map +1 -0
- package/lib/chunk-WO4S2ZUQ.js +49 -0
- package/lib/chunk-WO4S2ZUQ.js.map +1 -0
- package/lib/chunk-WVCUPAHM.cjs +38 -0
- package/lib/chunk-WVCUPAHM.cjs.map +1 -0
- package/lib/chunk-XD7GS4QW.js.map +1 -1
- package/lib/chunk-XFHMLWZM.js +63 -0
- package/lib/chunk-XFHMLWZM.js.map +1 -0
- package/lib/chunk-XKERR6OR.js +276 -0
- package/lib/chunk-XKERR6OR.js.map +1 -0
- package/lib/chunk-XOVAUMDC.cjs +55 -0
- package/lib/chunk-XOVAUMDC.cjs.map +1 -0
- package/lib/chunk-XYBXDS3Z.cjs +30 -0
- package/lib/chunk-XYBXDS3Z.cjs.map +1 -0
- package/lib/chunk-XYR7Q662.cjs +99 -0
- package/lib/chunk-XYR7Q662.cjs.map +1 -0
- package/lib/chunk-Y3NZRCF4.js +49 -0
- package/lib/chunk-Y3NZRCF4.js.map +1 -0
- package/lib/chunk-YIABS6K6.js +57 -0
- package/lib/chunk-YIABS6K6.js.map +1 -0
- package/lib/chunk-YPRABQMP.js +49 -0
- package/lib/chunk-YPRABQMP.js.map +1 -0
- package/lib/chunk-YTXFX5LA.js +27 -0
- package/lib/chunk-YTXFX5LA.js.map +1 -0
- package/lib/chunk-YX4ZQEON.cjs +67 -0
- package/lib/chunk-YX4ZQEON.cjs.map +1 -0
- package/lib/chunk-YY5ENJSH.cjs.map +1 -1
- package/lib/chunk-YZ4JURI3.cjs +51 -0
- package/lib/chunk-YZ4JURI3.cjs.map +1 -0
- package/lib/chunk-YZZQ7GVQ.js +65 -0
- package/lib/chunk-YZZQ7GVQ.js.map +1 -0
- package/lib/chunk-Z3FUZ3YM.cjs +72 -0
- package/lib/chunk-Z3FUZ3YM.cjs.map +1 -0
- package/lib/chunk-Z4LKTHPE.js +20 -0
- package/lib/chunk-Z4LKTHPE.js.map +1 -0
- package/lib/chunk-Z66CWIH5.cjs +51 -0
- package/lib/chunk-Z66CWIH5.cjs.map +1 -0
- package/lib/chunk-ZDTIKZYR.js +93 -0
- package/lib/chunk-ZDTIKZYR.js.map +1 -0
- package/lib/chunk-ZLFWYCCG.cjs +34 -0
- package/lib/chunk-ZLFWYCCG.cjs.map +1 -0
- package/lib/chunk-ZSG25S6U.cjs +51 -0
- package/lib/chunk-ZSG25S6U.cjs.map +1 -0
- package/lib/chunk-ZU7GFVQ6.js.map +1 -1
- package/lib/chunk-ZVS24BIO.js +86 -0
- package/lib/chunk-ZVS24BIO.js.map +1 -0
- package/lib/chunk-ZW4CB7J7.cjs +46 -0
- package/lib/chunk-ZW4CB7J7.cjs.map +1 -0
- package/lib/chunk-ZWVME7CU.cjs +153 -0
- package/lib/chunk-ZWVME7CU.cjs.map +1 -0
- package/lib/chunk-ZXEE43XR.js +52 -0
- package/lib/chunk-ZXEE43XR.js.map +1 -0
- package/lib/chunk-ZYAGX4RM.js +69 -0
- package/lib/chunk-ZYAGX4RM.js.map +1 -0
- package/lib/chunk-ZZ5BND4W.js +158 -0
- package/lib/chunk-ZZ5BND4W.js.map +1 -0
- package/lib/chunk-ZZOSKORP.cjs +47 -0
- package/lib/chunk-ZZOSKORP.cjs.map +1 -0
- package/lib/client.cjs +3 -3
- package/lib/client.d.cts +3 -1
- package/lib/client.js +2 -2
- package/lib/commercelayer.cjs +13 -9
- package/lib/commercelayer.d.cts +8 -5
- package/lib/commercelayer.d.ts +6 -5
- package/lib/commercelayer.js +5 -5
- package/lib/config.cjs +2 -2
- package/lib/config.js +1 -1
- package/lib/enum.cjs +16 -16
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/enum.js +1 -1
- package/lib/index.cjs +293 -288
- package/lib/index.d.cts +5 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +139 -138
- package/lib/jsonapi.cjs +6 -6
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +4 -4
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.cjs +9 -9
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.js +4 -4
- package/lib/resources/addresses.cjs +6 -6
- package/lib/resources/addresses.d.cts +4 -1
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +5 -5
- package/lib/resources/adjustments.cjs +6 -6
- package/lib/resources/adjustments.d.cts +4 -1
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +5 -5
- package/lib/resources/adyen_gateways.cjs +6 -6
- package/lib/resources/adyen_gateways.d.cts +4 -1
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +5 -5
- package/lib/resources/adyen_payments.cjs +6 -6
- package/lib/resources/adyen_payments.d.cts +4 -1
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +5 -5
- package/lib/resources/applications.cjs +6 -6
- package/lib/resources/applications.d.cts +4 -1
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +5 -5
- package/lib/resources/attachments.cjs +6 -6
- package/lib/resources/attachments.d.cts +4 -1
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +5 -5
- package/lib/resources/authorizations.cjs +6 -6
- package/lib/resources/authorizations.d.cts +4 -1
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +5 -5
- package/lib/resources/avalara_accounts.cjs +6 -6
- package/lib/resources/avalara_accounts.d.cts +4 -1
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +5 -5
- package/lib/resources/axerve_gateways.cjs +6 -6
- package/lib/resources/axerve_gateways.d.cts +4 -1
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +5 -5
- package/lib/resources/axerve_payments.cjs +6 -6
- package/lib/resources/axerve_payments.d.cts +4 -1
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +5 -5
- package/lib/resources/bing_geocoders.cjs +6 -6
- package/lib/resources/bing_geocoders.d.cts +4 -1
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +5 -5
- package/lib/resources/braintree_gateways.cjs +6 -6
- package/lib/resources/braintree_gateways.d.cts +4 -1
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +5 -5
- package/lib/resources/braintree_payments.cjs +6 -6
- package/lib/resources/braintree_payments.d.cts +4 -1
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +5 -5
- package/lib/resources/bundles.cjs +6 -6
- package/lib/resources/bundles.d.cts +4 -1
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +5 -5
- package/lib/resources/buy_x_pay_y_promotions.cjs +6 -6
- package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -1
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +5 -5
- package/lib/resources/captures.cjs +6 -6
- package/lib/resources/captures.d.cts +4 -1
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +5 -5
- package/lib/resources/carrier_accounts.cjs +6 -6
- package/lib/resources/carrier_accounts.d.cts +4 -1
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +5 -5
- package/lib/resources/checkout_com_gateways.cjs +6 -6
- package/lib/resources/checkout_com_gateways.d.cts +4 -1
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +5 -5
- package/lib/resources/checkout_com_payments.cjs +6 -6
- package/lib/resources/checkout_com_payments.d.cts +4 -1
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +5 -5
- package/lib/resources/cleanups.cjs +6 -6
- package/lib/resources/cleanups.d.cts +4 -1
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +5 -5
- package/lib/resources/coupon_codes_promotion_rules.cjs +6 -6
- package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +5 -5
- package/lib/resources/coupon_recipients.cjs +6 -6
- package/lib/resources/coupon_recipients.d.cts +4 -1
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +5 -5
- package/lib/resources/coupons.cjs +6 -6
- package/lib/resources/coupons.d.cts +4 -1
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +5 -5
- package/lib/resources/custom_promotion_rules.cjs +6 -6
- package/lib/resources/custom_promotion_rules.d.cts +4 -1
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +5 -5
- package/lib/resources/customer_addresses.cjs +6 -6
- package/lib/resources/customer_addresses.d.cts +4 -1
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +5 -5
- package/lib/resources/customer_groups.cjs +6 -6
- package/lib/resources/customer_groups.d.cts +4 -1
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +5 -5
- package/lib/resources/customer_password_resets.cjs +6 -6
- package/lib/resources/customer_password_resets.d.cts +4 -1
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +5 -5
- package/lib/resources/customer_payment_sources.cjs +6 -6
- package/lib/resources/customer_payment_sources.d.cts +4 -1
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +5 -5
- package/lib/resources/customer_subscriptions.cjs +6 -6
- package/lib/resources/customer_subscriptions.d.cts +4 -1
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +5 -5
- package/lib/resources/customers.cjs +6 -6
- package/lib/resources/customers.d.cts +4 -1
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +5 -5
- package/lib/resources/delivery_lead_times.cjs +6 -6
- package/lib/resources/delivery_lead_times.d.cts +4 -1
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +5 -5
- package/lib/resources/discount_engine_items.cjs +6 -6
- package/lib/resources/discount_engine_items.d.cts +4 -1
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +5 -5
- package/lib/resources/discount_engines.cjs +6 -6
- package/lib/resources/discount_engines.d.cts +4 -1
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +5 -5
- package/lib/resources/easypost_pickups.cjs +6 -6
- package/lib/resources/easypost_pickups.d.cts +4 -1
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +5 -5
- package/lib/resources/event_callbacks.cjs +6 -6
- package/lib/resources/event_callbacks.d.cts +4 -1
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +5 -5
- package/lib/resources/event_stores.cjs +20 -0
- package/lib/resources/event_stores.cjs.map +1 -0
- package/lib/resources/event_stores.d.cts +7 -0
- package/lib/resources/event_stores.d.ts +4 -0
- package/lib/resources/event_stores.js +12 -0
- package/lib/resources/event_stores.js.map +1 -0
- package/lib/resources/events.cjs +6 -6
- package/lib/resources/events.d.cts +4 -1
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +5 -5
- package/lib/resources/exports.cjs +6 -6
- package/lib/resources/exports.d.cts +4 -1
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +5 -5
- package/lib/resources/external_gateways.cjs +6 -6
- package/lib/resources/external_gateways.d.cts +4 -1
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +5 -5
- package/lib/resources/external_payments.cjs +6 -6
- package/lib/resources/external_payments.d.cts +4 -1
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +5 -5
- package/lib/resources/external_promotions.cjs +6 -6
- package/lib/resources/external_promotions.d.cts +4 -1
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +5 -5
- package/lib/resources/external_tax_calculators.cjs +6 -6
- package/lib/resources/external_tax_calculators.d.cts +4 -1
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +5 -5
- package/lib/resources/fixed_amount_promotions.cjs +6 -6
- package/lib/resources/fixed_amount_promotions.d.cts +4 -1
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +5 -5
- package/lib/resources/fixed_price_promotions.cjs +6 -6
- package/lib/resources/fixed_price_promotions.d.cts +4 -1
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +5 -5
- package/lib/resources/flex_promotions.cjs +6 -6
- package/lib/resources/flex_promotions.d.cts +4 -1
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +5 -5
- package/lib/resources/free_gift_promotions.cjs +6 -6
- package/lib/resources/free_gift_promotions.d.cts +4 -1
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +5 -5
- package/lib/resources/free_shipping_promotions.cjs +6 -6
- package/lib/resources/free_shipping_promotions.d.cts +4 -1
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +5 -5
- package/lib/resources/geocoders.cjs +6 -6
- package/lib/resources/geocoders.d.cts +4 -1
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +5 -5
- package/lib/resources/gift_card_recipients.cjs +6 -6
- package/lib/resources/gift_card_recipients.d.cts +4 -1
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +5 -5
- package/lib/resources/gift_cards.cjs +6 -6
- package/lib/resources/gift_cards.d.cts +4 -1
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +5 -5
- package/lib/resources/google_geocoders.cjs +6 -6
- package/lib/resources/google_geocoders.d.cts +4 -1
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +5 -5
- package/lib/resources/imports.cjs +6 -6
- package/lib/resources/imports.d.cts +4 -1
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +5 -5
- package/lib/resources/in_stock_subscriptions.cjs +6 -6
- package/lib/resources/in_stock_subscriptions.d.cts +4 -1
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +5 -5
- package/lib/resources/inventory_models.cjs +6 -6
- package/lib/resources/inventory_models.d.cts +4 -1
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +5 -5
- package/lib/resources/inventory_return_locations.cjs +6 -6
- package/lib/resources/inventory_return_locations.d.cts +4 -1
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +5 -5
- package/lib/resources/inventory_stock_locations.cjs +6 -6
- package/lib/resources/inventory_stock_locations.d.cts +4 -1
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +5 -5
- package/lib/resources/klarna_gateways.cjs +6 -6
- package/lib/resources/klarna_gateways.d.cts +4 -1
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +5 -5
- package/lib/resources/klarna_payments.cjs +6 -6
- package/lib/resources/klarna_payments.d.cts +4 -1
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +5 -5
- package/lib/resources/line_item_options.cjs +6 -6
- package/lib/resources/line_item_options.d.cts +4 -1
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +5 -5
- package/lib/resources/line_items.cjs +6 -6
- package/lib/resources/line_items.d.cts +4 -1
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +5 -5
- package/lib/resources/links.cjs +6 -6
- package/lib/resources/links.d.cts +4 -1
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +5 -5
- package/lib/resources/manual_gateways.cjs +6 -6
- package/lib/resources/manual_gateways.d.cts +4 -1
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +5 -5
- package/lib/resources/manual_tax_calculators.cjs +6 -6
- package/lib/resources/manual_tax_calculators.d.cts +4 -1
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +5 -5
- package/lib/resources/markets.cjs +6 -6
- package/lib/resources/markets.d.cts +4 -1
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +5 -5
- package/lib/resources/merchants.cjs +6 -6
- package/lib/resources/merchants.d.cts +4 -1
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +5 -5
- package/lib/resources/notifications.cjs +6 -6
- package/lib/resources/notifications.d.cts +4 -1
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +5 -5
- package/lib/resources/order_amount_promotion_rules.cjs +6 -6
- package/lib/resources/order_amount_promotion_rules.d.cts +4 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +5 -5
- package/lib/resources/order_copies.cjs +6 -6
- package/lib/resources/order_copies.d.cts +4 -1
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +5 -5
- package/lib/resources/order_factories.cjs +6 -6
- package/lib/resources/order_factories.d.cts +4 -1
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +5 -5
- package/lib/resources/order_subscription_items.cjs +6 -6
- package/lib/resources/order_subscription_items.d.cts +4 -1
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +5 -5
- package/lib/resources/order_subscriptions.cjs +6 -6
- package/lib/resources/order_subscriptions.d.cts +4 -1
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +5 -5
- package/lib/resources/orders.cjs +6 -6
- package/lib/resources/orders.d.cts +4 -1
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +5 -5
- package/lib/resources/organizations.cjs +6 -6
- package/lib/resources/organizations.d.cts +4 -1
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +5 -5
- package/lib/resources/packages.cjs +6 -6
- package/lib/resources/packages.d.cts +4 -1
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +5 -5
- package/lib/resources/parcel_line_items.cjs +6 -6
- package/lib/resources/parcel_line_items.d.cts +4 -1
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +5 -5
- package/lib/resources/parcels.cjs +6 -6
- package/lib/resources/parcels.d.cts +4 -1
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +5 -5
- package/lib/resources/payment_gateways.cjs +6 -6
- package/lib/resources/payment_gateways.d.cts +4 -1
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +5 -5
- package/lib/resources/payment_methods.cjs +6 -6
- package/lib/resources/payment_methods.d.cts +4 -1
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +5 -5
- package/lib/resources/payment_options.cjs +6 -6
- package/lib/resources/payment_options.d.cts +4 -1
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +5 -5
- package/lib/resources/paypal_gateways.cjs +6 -6
- package/lib/resources/paypal_gateways.d.cts +4 -1
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +5 -5
- package/lib/resources/paypal_payments.cjs +6 -6
- package/lib/resources/paypal_payments.d.cts +4 -1
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +5 -5
- package/lib/resources/percentage_discount_promotions.cjs +6 -6
- package/lib/resources/percentage_discount_promotions.d.cts +4 -1
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +5 -5
- package/lib/resources/pickups.cjs +6 -6
- package/lib/resources/pickups.d.cts +4 -1
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +5 -5
- package/lib/resources/price_frequency_tiers.cjs +6 -6
- package/lib/resources/price_frequency_tiers.d.cts +4 -1
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +5 -5
- package/lib/resources/price_list_schedulers.cjs +6 -6
- package/lib/resources/price_list_schedulers.d.cts +4 -1
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +5 -5
- package/lib/resources/price_lists.cjs +6 -6
- package/lib/resources/price_lists.d.cts +4 -1
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +5 -5
- package/lib/resources/price_tiers.cjs +6 -6
- package/lib/resources/price_tiers.d.cts +4 -1
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +5 -5
- package/lib/resources/price_volume_tiers.cjs +6 -6
- package/lib/resources/price_volume_tiers.d.cts +4 -1
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +5 -5
- package/lib/resources/prices.cjs +6 -6
- package/lib/resources/prices.d.cts +4 -1
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +5 -5
- package/lib/resources/promotion_rules.cjs +6 -6
- package/lib/resources/promotion_rules.d.cts +4 -1
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +5 -5
- package/lib/resources/promotions.cjs +6 -6
- package/lib/resources/promotions.d.cts +4 -1
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +5 -5
- package/lib/resources/recurring_order_copies.cjs +6 -6
- package/lib/resources/recurring_order_copies.d.cts +4 -1
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +5 -5
- package/lib/resources/refunds.cjs +6 -6
- package/lib/resources/refunds.d.cts +4 -1
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +5 -5
- package/lib/resources/reserved_stocks.cjs +6 -6
- package/lib/resources/reserved_stocks.d.cts +4 -1
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +5 -5
- package/lib/resources/resource_errors.cjs +6 -6
- package/lib/resources/resource_errors.d.cts +4 -1
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +5 -5
- package/lib/resources/return_line_items.cjs +6 -6
- package/lib/resources/return_line_items.d.cts +4 -1
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +5 -5
- package/lib/resources/returns.cjs +6 -6
- package/lib/resources/returns.d.cts +4 -1
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +5 -5
- package/lib/resources/satispay_gateways.cjs +6 -6
- package/lib/resources/satispay_gateways.d.cts +4 -1
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +5 -5
- package/lib/resources/satispay_payments.cjs +6 -6
- package/lib/resources/satispay_payments.d.cts +4 -1
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +5 -5
- package/lib/resources/shipments.cjs +6 -6
- package/lib/resources/shipments.d.cts +4 -1
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +5 -5
- package/lib/resources/shipping_categories.cjs +6 -6
- package/lib/resources/shipping_categories.d.cts +4 -1
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +5 -5
- package/lib/resources/shipping_method_tiers.cjs +6 -6
- package/lib/resources/shipping_method_tiers.d.cts +4 -1
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +5 -5
- package/lib/resources/shipping_methods.cjs +6 -6
- package/lib/resources/shipping_methods.d.cts +4 -1
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +5 -5
- package/lib/resources/shipping_weight_tiers.cjs +6 -6
- package/lib/resources/shipping_weight_tiers.d.cts +4 -1
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +5 -5
- package/lib/resources/shipping_zones.cjs +6 -6
- package/lib/resources/shipping_zones.d.cts +4 -1
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +5 -5
- package/lib/resources/sku_list_items.cjs +6 -6
- package/lib/resources/sku_list_items.d.cts +4 -1
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +5 -5
- package/lib/resources/sku_list_promotion_rules.cjs +6 -6
- package/lib/resources/sku_list_promotion_rules.d.cts +4 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +5 -5
- package/lib/resources/sku_lists.cjs +6 -6
- package/lib/resources/sku_lists.d.cts +4 -1
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +5 -5
- package/lib/resources/sku_options.cjs +6 -6
- package/lib/resources/sku_options.d.cts +4 -1
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +5 -5
- package/lib/resources/skus.cjs +6 -6
- package/lib/resources/skus.d.cts +4 -1
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +5 -5
- package/lib/resources/stock_items.cjs +6 -6
- package/lib/resources/stock_items.d.cts +4 -1
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +5 -5
- package/lib/resources/stock_line_items.cjs +6 -6
- package/lib/resources/stock_line_items.d.cts +4 -1
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +5 -5
- package/lib/resources/stock_locations.cjs +6 -6
- package/lib/resources/stock_locations.d.cts +4 -1
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +5 -5
- package/lib/resources/stock_reservations.cjs +6 -6
- package/lib/resources/stock_reservations.d.cts +4 -1
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +5 -5
- package/lib/resources/stock_transfers.cjs +6 -6
- package/lib/resources/stock_transfers.d.cts +4 -1
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +5 -5
- package/lib/resources/stores.cjs +6 -6
- package/lib/resources/stores.d.cts +4 -1
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +5 -5
- package/lib/resources/stripe_gateways.cjs +6 -6
- package/lib/resources/stripe_gateways.d.cts +4 -1
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +5 -5
- package/lib/resources/stripe_payments.cjs +6 -6
- package/lib/resources/stripe_payments.d.cts +4 -1
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +5 -5
- package/lib/resources/stripe_tax_accounts.cjs +6 -6
- package/lib/resources/stripe_tax_accounts.d.cts +4 -1
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +5 -5
- package/lib/resources/subscription_models.cjs +6 -6
- package/lib/resources/subscription_models.d.cts +4 -1
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +5 -5
- package/lib/resources/tags.cjs +6 -6
- package/lib/resources/tags.d.cts +4 -1
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +5 -5
- package/lib/resources/talon_one_accounts.cjs +6 -6
- package/lib/resources/talon_one_accounts.d.cts +4 -1
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +5 -5
- package/lib/resources/tax_calculators.cjs +6 -6
- package/lib/resources/tax_calculators.d.cts +4 -1
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +5 -5
- package/lib/resources/tax_categories.cjs +6 -6
- package/lib/resources/tax_categories.d.cts +4 -1
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +5 -5
- package/lib/resources/tax_rules.cjs +6 -6
- package/lib/resources/tax_rules.d.cts +4 -1
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +5 -5
- package/lib/resources/taxjar_accounts.cjs +6 -6
- package/lib/resources/taxjar_accounts.d.cts +4 -1
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +5 -5
- package/lib/resources/transactions.cjs +6 -6
- package/lib/resources/transactions.d.cts +4 -1
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +5 -5
- package/lib/resources/versions.cjs +6 -6
- package/lib/resources/versions.d.cts +4 -1
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/versions.js +5 -5
- package/lib/resources/vertex_accounts.cjs +6 -6
- package/lib/resources/vertex_accounts.d.cts +4 -1
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +5 -5
- package/lib/resources/voids.cjs +6 -6
- package/lib/resources/voids.d.cts +4 -1
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +5 -5
- package/lib/resources/webhooks.cjs +6 -6
- package/lib/resources/webhooks.d.cts +4 -1
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +5 -5
- package/lib/resources/wire_transfers.cjs +6 -6
- package/lib/resources/wire_transfers.d.cts +4 -1
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +5 -5
- package/lib/static.cjs +7 -7
- package/lib/static.d.cts +2 -1
- package/lib/static.d.ts +2 -1
- package/lib/static.js +6 -6
- package/package.json +11 -11
- package/lib/api-CL2USQbG.d.cts +0 -17220
- package/lib/api-DFDuF5Xh.d.ts +0 -17220
- package/lib/chunk-2AFNQJXP.cjs +0 -61
- package/lib/chunk-2AFNQJXP.cjs.map +0 -1
- package/lib/chunk-2AMKJ6V7.cjs +0 -47
- package/lib/chunk-2AMKJ6V7.cjs.map +0 -1
- package/lib/chunk-2HLQW5MF.cjs +0 -59
- package/lib/chunk-2HLQW5MF.cjs.map +0 -1
- package/lib/chunk-2HPO4UZA.cjs +0 -51
- package/lib/chunk-2HPO4UZA.cjs.map +0 -1
- package/lib/chunk-2JOYLKTP.cjs +0 -42
- package/lib/chunk-2JOYLKTP.cjs.map +0 -1
- package/lib/chunk-2KKHO6QF.js +0 -59
- package/lib/chunk-2KKHO6QF.js.map +0 -1
- package/lib/chunk-2L2ZM3VD.js +0 -33
- package/lib/chunk-2L2ZM3VD.js.map +0 -1
- package/lib/chunk-2P6AFRJL.js +0 -44
- package/lib/chunk-2P6AFRJL.js.map +0 -1
- package/lib/chunk-2PYM3QGA.js +0 -45
- package/lib/chunk-2PYM3QGA.js.map +0 -1
- package/lib/chunk-2THU5NEW.cjs +0 -47
- package/lib/chunk-2THU5NEW.cjs.map +0 -1
- package/lib/chunk-2XGMKMF5.cjs +0 -51
- package/lib/chunk-2XGMKMF5.cjs.map +0 -1
- package/lib/chunk-34H2NFDA.js +0 -52
- package/lib/chunk-34H2NFDA.js.map +0 -1
- package/lib/chunk-35OHXDG3.cjs +0 -156
- package/lib/chunk-35OHXDG3.cjs.map +0 -1
- package/lib/chunk-3ADITMLN.cjs +0 -62
- package/lib/chunk-3ADITMLN.cjs.map +0 -1
- package/lib/chunk-3ANXNJ6U.cjs +0 -51
- package/lib/chunk-3ANXNJ6U.cjs.map +0 -1
- package/lib/chunk-3AOPII3W.js +0 -65
- package/lib/chunk-3AOPII3W.js.map +0 -1
- package/lib/chunk-3DFZ5QLR.js +0 -61
- package/lib/chunk-3DFZ5QLR.js.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3I5BJF3J.js +0 -45
- package/lib/chunk-3I5BJF3J.js.map +0 -1
- package/lib/chunk-3N2MNKA3.js +0 -54
- package/lib/chunk-3N2MNKA3.js.map +0 -1
- package/lib/chunk-3NWQH32A.js +0 -36
- package/lib/chunk-3NWQH32A.js.map +0 -1
- package/lib/chunk-3OBFBFUV.js +0 -45
- package/lib/chunk-3OBFBFUV.js.map +0 -1
- package/lib/chunk-3PVKJIA3.js +0 -40
- package/lib/chunk-3PVKJIA3.js.map +0 -1
- package/lib/chunk-3RR27O3T.js +0 -45
- package/lib/chunk-3RR27O3T.js.map +0 -1
- package/lib/chunk-3TGZNMLP.cjs +0 -38
- package/lib/chunk-3TGZNMLP.cjs.map +0 -1
- package/lib/chunk-3URHH3S6.js +0 -43
- package/lib/chunk-3URHH3S6.js.map +0 -1
- package/lib/chunk-3WKN5OCU.cjs +0 -47
- package/lib/chunk-3WKN5OCU.cjs.map +0 -1
- package/lib/chunk-3XWE56FL.cjs +0 -101
- package/lib/chunk-3XWE56FL.cjs.map +0 -1
- package/lib/chunk-42DT6ZET.cjs +0 -47
- package/lib/chunk-42DT6ZET.cjs.map +0 -1
- package/lib/chunk-432EXURP.js +0 -41
- package/lib/chunk-432EXURP.js.map +0 -1
- package/lib/chunk-465K3KVE.js +0 -49
- package/lib/chunk-465K3KVE.js.map +0 -1
- package/lib/chunk-4IH4EHXT.cjs +0 -69
- package/lib/chunk-4IH4EHXT.cjs.map +0 -1
- package/lib/chunk-4KFJUIFD.js +0 -45
- package/lib/chunk-4KFJUIFD.js.map +0 -1
- package/lib/chunk-4KO5LZ7F.js +0 -45
- package/lib/chunk-4KO5LZ7F.js.map +0 -1
- package/lib/chunk-4L4MGCUZ.js +0 -45
- package/lib/chunk-4L4MGCUZ.js.map +0 -1
- package/lib/chunk-4L73LJKG.js +0 -41
- package/lib/chunk-4L73LJKG.js.map +0 -1
- package/lib/chunk-4SCFKFIM.cjs +0 -38
- package/lib/chunk-4SCFKFIM.cjs.map +0 -1
- package/lib/chunk-57XXD3GQ.cjs +0 -50
- package/lib/chunk-57XXD3GQ.cjs.map +0 -1
- package/lib/chunk-5EXCGVF2.cjs +0 -47
- package/lib/chunk-5EXCGVF2.cjs.map +0 -1
- package/lib/chunk-5FZNBGAF.cjs +0 -38
- package/lib/chunk-5FZNBGAF.cjs.map +0 -1
- package/lib/chunk-5OQQBNVB.js +0 -49
- package/lib/chunk-5OQQBNVB.js.map +0 -1
- package/lib/chunk-5P5Z7NXC.js +0 -49
- package/lib/chunk-5P5Z7NXC.js.map +0 -1
- package/lib/chunk-5R76TU4I.cjs +0 -52
- package/lib/chunk-5R76TU4I.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-627I2FYX.cjs +0 -47
- package/lib/chunk-627I2FYX.cjs.map +0 -1
- package/lib/chunk-66JDSPFD.cjs +0 -51
- package/lib/chunk-66JDSPFD.cjs.map +0 -1
- package/lib/chunk-67QVA2J3.cjs +0 -34
- package/lib/chunk-67QVA2J3.cjs.map +0 -1
- package/lib/chunk-6AJSOS56.cjs +0 -75
- package/lib/chunk-6AJSOS56.cjs.map +0 -1
- package/lib/chunk-6B66AQKB.cjs +0 -45
- package/lib/chunk-6B66AQKB.cjs.map +0 -1
- package/lib/chunk-6EDJTG3X.cjs +0 -50
- package/lib/chunk-6EDJTG3X.cjs.map +0 -1
- package/lib/chunk-6OHA2TO3.cjs +0 -61
- package/lib/chunk-6OHA2TO3.cjs.map +0 -1
- package/lib/chunk-6PWK52UZ.cjs +0 -70
- package/lib/chunk-6PWK52UZ.cjs.map +0 -1
- package/lib/chunk-6SCAIB4K.cjs +0 -43
- package/lib/chunk-6SCAIB4K.cjs.map +0 -1
- package/lib/chunk-6SOWFGBP.cjs +0 -63
- package/lib/chunk-6SOWFGBP.cjs.map +0 -1
- package/lib/chunk-7CQTUOR4.cjs +0 -42
- package/lib/chunk-7CQTUOR4.cjs.map +0 -1
- package/lib/chunk-7GVHCOUC.js +0 -73
- package/lib/chunk-7GVHCOUC.js.map +0 -1
- package/lib/chunk-7ISS2FDY.js +0 -93
- package/lib/chunk-7ISS2FDY.js.map +0 -1
- package/lib/chunk-7JLRB7QH.js +0 -24
- package/lib/chunk-7JLRB7QH.js.map +0 -1
- package/lib/chunk-7SG4WU7W.js +0 -45
- package/lib/chunk-7SG4WU7W.js.map +0 -1
- package/lib/chunk-7SZY5BWE.js +0 -45
- package/lib/chunk-7SZY5BWE.js.map +0 -1
- package/lib/chunk-7VSYXEXL.js +0 -59
- package/lib/chunk-7VSYXEXL.js.map +0 -1
- package/lib/chunk-7X36B7N6.js +0 -27
- package/lib/chunk-7X36B7N6.js.map +0 -1
- package/lib/chunk-7Z2U4MHU.cjs +0 -52
- package/lib/chunk-7Z2U4MHU.cjs.map +0 -1
- package/lib/chunk-A6BT5FSV.cjs +0 -43
- package/lib/chunk-A6BT5FSV.cjs.map +0 -1
- package/lib/chunk-A6ZDNNYD.js +0 -51
- package/lib/chunk-A6ZDNNYD.js.map +0 -1
- package/lib/chunk-A7BEMDVP.cjs +0 -55
- package/lib/chunk-A7BEMDVP.cjs.map +0 -1
- package/lib/chunk-AD73LDFJ.cjs +0 -43
- package/lib/chunk-AD73LDFJ.cjs.map +0 -1
- package/lib/chunk-AIGQRBCY.cjs +0 -47
- package/lib/chunk-AIGQRBCY.cjs.map +0 -1
- package/lib/chunk-ANCLAYJV.cjs +0 -98
- package/lib/chunk-ANCLAYJV.cjs.map +0 -1
- package/lib/chunk-AQFAND5D.cjs +0 -282
- package/lib/chunk-AQFAND5D.cjs.map +0 -1
- package/lib/chunk-ARIBIRKF.cjs +0 -47
- package/lib/chunk-ARIBIRKF.cjs.map +0 -1
- package/lib/chunk-AW3TRBZ7.js +0 -44
- package/lib/chunk-AW3TRBZ7.js.map +0 -1
- package/lib/chunk-AYTBSAHY.js +0 -20
- package/lib/chunk-AYTBSAHY.js.map +0 -1
- package/lib/chunk-B72FREUL.cjs +0 -57
- package/lib/chunk-B72FREUL.cjs.map +0 -1
- package/lib/chunk-BBEMCANC.cjs +0 -95
- package/lib/chunk-BBEMCANC.cjs.map +0 -1
- package/lib/chunk-BF7OPORP.js +0 -69
- package/lib/chunk-BF7OPORP.js.map +0 -1
- package/lib/chunk-BN6XJAZH.cjs +0 -43
- package/lib/chunk-BN6XJAZH.cjs.map +0 -1
- package/lib/chunk-BTAKU6V5.cjs +0 -42
- package/lib/chunk-BTAKU6V5.cjs.map +0 -1
- package/lib/chunk-BYRFMGBQ.js +0 -105
- package/lib/chunk-BYRFMGBQ.js.map +0 -1
- package/lib/chunk-CG2ACHGS.js +0 -45
- package/lib/chunk-CG2ACHGS.js.map +0 -1
- package/lib/chunk-CK6RZLVM.cjs +0 -47
- package/lib/chunk-CK6RZLVM.cjs.map +0 -1
- package/lib/chunk-CNCZCBI3.js +0 -99
- package/lib/chunk-CNCZCBI3.js.map +0 -1
- package/lib/chunk-CRRYP7ZN.js +0 -45
- package/lib/chunk-CRRYP7ZN.js.map +0 -1
- package/lib/chunk-CTXBUDGO.cjs +0 -39
- package/lib/chunk-CTXBUDGO.cjs.map +0 -1
- package/lib/chunk-CUNOMS5N.js +0 -40
- package/lib/chunk-CUNOMS5N.js.map +0 -1
- package/lib/chunk-D26KDUDM.cjs +0 -47
- package/lib/chunk-D26KDUDM.cjs.map +0 -1
- package/lib/chunk-D5E4OGXU.js +0 -49
- package/lib/chunk-D5E4OGXU.js.map +0 -1
- package/lib/chunk-D7KNSKNJ.js +0 -55
- package/lib/chunk-D7KNSKNJ.js.map +0 -1
- package/lib/chunk-DAXKXBA3.js +0 -48
- package/lib/chunk-DAXKXBA3.js.map +0 -1
- package/lib/chunk-DJ572MZB.cjs +0 -50
- package/lib/chunk-DJ572MZB.cjs.map +0 -1
- package/lib/chunk-DOFPDQMJ.cjs +0 -56
- package/lib/chunk-DOFPDQMJ.cjs.map +0 -1
- package/lib/chunk-DOGEZ6XX.cjs +0 -46
- package/lib/chunk-DOGEZ6XX.cjs.map +0 -1
- package/lib/chunk-DSKZRVXS.js +0 -28
- package/lib/chunk-DSKZRVXS.js.map +0 -1
- package/lib/chunk-DTGODPCN.js +0 -93
- package/lib/chunk-DTGODPCN.js.map +0 -1
- package/lib/chunk-DYZGWPZ6.js +0 -33
- package/lib/chunk-DYZGWPZ6.js.map +0 -1
- package/lib/chunk-E3FDHGI7.js +0 -36
- package/lib/chunk-E3FDHGI7.js.map +0 -1
- package/lib/chunk-E4DYW6HB.cjs +0 -42
- package/lib/chunk-E4DYW6HB.cjs.map +0 -1
- package/lib/chunk-E6TBQVLK.cjs +0 -39
- package/lib/chunk-E6TBQVLK.cjs.map +0 -1
- package/lib/chunk-EADFDBOR.cjs +0 -46
- package/lib/chunk-EADFDBOR.cjs.map +0 -1
- package/lib/chunk-ECMCBU3N.js +0 -53
- package/lib/chunk-ECMCBU3N.js.map +0 -1
- package/lib/chunk-EEFOL62K.js +0 -36
- package/lib/chunk-EEFOL62K.js.map +0 -1
- package/lib/chunk-EHWAGYNX.js +0 -68
- package/lib/chunk-EHWAGYNX.js.map +0 -1
- package/lib/chunk-EKGR3EB3.js +0 -82
- package/lib/chunk-EKGR3EB3.js.map +0 -1
- package/lib/chunk-ELBOXOTA.js +0 -28
- package/lib/chunk-ELBOXOTA.js.map +0 -1
- package/lib/chunk-EP22KKHR.js +0 -48
- package/lib/chunk-EP22KKHR.js.map +0 -1
- package/lib/chunk-EP7MAEQH.cjs +0 -47
- package/lib/chunk-EP7MAEQH.cjs.map +0 -1
- package/lib/chunk-EQD223JW.cjs +0 -95
- package/lib/chunk-EQD223JW.cjs.map +0 -1
- package/lib/chunk-F6MSHDB7.cjs +0 -47
- package/lib/chunk-F6MSHDB7.cjs.map +0 -1
- package/lib/chunk-FAU5EILL.js +0 -61
- package/lib/chunk-FAU5EILL.js.map +0 -1
- package/lib/chunk-FSFXOZ35.cjs +0 -47
- package/lib/chunk-FSFXOZ35.cjs.map +0 -1
- package/lib/chunk-FTAZDUH6.js +0 -99
- package/lib/chunk-FTAZDUH6.js.map +0 -1
- package/lib/chunk-FVJDRHG7.js +0 -48
- package/lib/chunk-FVJDRHG7.js.map +0 -1
- package/lib/chunk-FXE62CPP.cjs +0 -46
- package/lib/chunk-FXE62CPP.cjs.map +0 -1
- package/lib/chunk-FYKIHWAM.cjs +0 -77
- package/lib/chunk-FYKIHWAM.cjs.map +0 -1
- package/lib/chunk-G74OZ4M6.js +0 -45
- package/lib/chunk-G74OZ4M6.js.map +0 -1
- package/lib/chunk-GD4WRDF2.js +0 -644
- package/lib/chunk-GD4WRDF2.js.map +0 -1
- package/lib/chunk-GE6OHQR6.cjs +0 -89
- package/lib/chunk-GE6OHQR6.cjs.map +0 -1
- package/lib/chunk-GHLCA7BX.js +0 -53
- package/lib/chunk-GHLCA7BX.js.map +0 -1
- package/lib/chunk-GLSPCG3M.cjs +0 -46
- package/lib/chunk-GLSPCG3M.cjs.map +0 -1
- package/lib/chunk-H2USYPU6.js +0 -49
- package/lib/chunk-H2USYPU6.js.map +0 -1
- package/lib/chunk-H4PUXGNI.cjs +0 -47
- package/lib/chunk-H4PUXGNI.cjs.map +0 -1
- package/lib/chunk-H4SVEI6E.js +0 -151
- package/lib/chunk-H4SVEI6E.js.map +0 -1
- package/lib/chunk-HAAE23MQ.js +0 -93
- package/lib/chunk-HAAE23MQ.js.map +0 -1
- package/lib/chunk-HBUDZOK7.cjs +0 -55
- package/lib/chunk-HBUDZOK7.cjs.map +0 -1
- package/lib/chunk-HCBXRHD7.js +0 -45
- package/lib/chunk-HCBXRHD7.js.map +0 -1
- package/lib/chunk-HDYENVKD.js +0 -45
- package/lib/chunk-HDYENVKD.js.map +0 -1
- package/lib/chunk-HLCGKY7R.js +0 -59
- package/lib/chunk-HLCGKY7R.js.map +0 -1
- package/lib/chunk-HNHF6T2I.cjs +0 -54
- package/lib/chunk-HNHF6T2I.cjs.map +0 -1
- package/lib/chunk-HQ35KQFG.cjs +0 -86
- package/lib/chunk-HQ35KQFG.cjs.map +0 -1
- package/lib/chunk-HQ5STEMD.js +0 -55
- package/lib/chunk-HQ5STEMD.js.map +0 -1
- package/lib/chunk-HQ6TJSB7.cjs +0 -51
- package/lib/chunk-HQ6TJSB7.cjs.map +0 -1
- package/lib/chunk-HSILJQCD.js +0 -93
- package/lib/chunk-HSILJQCD.js.map +0 -1
- package/lib/chunk-I3SKGXTB.cjs +0 -26
- package/lib/chunk-I3SKGXTB.cjs.map +0 -1
- package/lib/chunk-IDAOX5RB.cjs +0 -95
- package/lib/chunk-IDAOX5RB.cjs.map +0 -1
- package/lib/chunk-IITNQS6D.js +0 -49
- package/lib/chunk-IITNQS6D.js.map +0 -1
- package/lib/chunk-IKENWSRH.cjs +0 -126
- package/lib/chunk-IKENWSRH.cjs.map +0 -1
- package/lib/chunk-INJ7FRDA.cjs +0 -55
- package/lib/chunk-INJ7FRDA.cjs.map +0 -1
- package/lib/chunk-INZD34YD.cjs +0 -91
- package/lib/chunk-INZD34YD.cjs.map +0 -1
- package/lib/chunk-J4CTOHX6.cjs +0 -68
- package/lib/chunk-J4CTOHX6.cjs.map +0 -1
- package/lib/chunk-J6NBJHWL.cjs +0 -101
- package/lib/chunk-J6NBJHWL.cjs.map +0 -1
- package/lib/chunk-J6PTNG3D.js +0 -280
- package/lib/chunk-J6PTNG3D.js.map +0 -1
- package/lib/chunk-J7ZSBB35.js +0 -45
- package/lib/chunk-J7ZSBB35.js.map +0 -1
- package/lib/chunk-JAQECLCE.js +0 -41
- package/lib/chunk-JAQECLCE.js.map +0 -1
- package/lib/chunk-JECYKPCC.cjs +0 -30
- package/lib/chunk-JECYKPCC.cjs.map +0 -1
- package/lib/chunk-JENLN6VJ.js +0 -51
- package/lib/chunk-JENLN6VJ.js.map +0 -1
- package/lib/chunk-JN4JL4WT.cjs +0 -75
- package/lib/chunk-JN4JL4WT.cjs.map +0 -1
- package/lib/chunk-JPUF5YXX.js +0 -37
- package/lib/chunk-JPUF5YXX.js.map +0 -1
- package/lib/chunk-JRTJ6LWK.js +0 -53
- package/lib/chunk-JRTJ6LWK.js.map +0 -1
- package/lib/chunk-JT7HVLLW.cjs +0 -57
- package/lib/chunk-JT7HVLLW.cjs.map +0 -1
- package/lib/chunk-JWC2GSYH.cjs +0 -47
- package/lib/chunk-JWC2GSYH.cjs.map +0 -1
- package/lib/chunk-JYOFP6BM.js +0 -87
- package/lib/chunk-JYOFP6BM.js.map +0 -1
- package/lib/chunk-JYXAF775.js +0 -49
- package/lib/chunk-JYXAF775.js.map +0 -1
- package/lib/chunk-K2CU5HIV.js +0 -66
- package/lib/chunk-K2CU5HIV.js.map +0 -1
- package/lib/chunk-K6WSCQKS.cjs +0 -53
- package/lib/chunk-K6WSCQKS.cjs.map +0 -1
- package/lib/chunk-KH5OQRQL.js +0 -38
- package/lib/chunk-KH5OQRQL.js.map +0 -1
- package/lib/chunk-KHMCPH47.cjs +0 -53
- package/lib/chunk-KHMCPH47.cjs.map +0 -1
- package/lib/chunk-KWRDUU7K.js +0 -45
- package/lib/chunk-KWRDUU7K.js.map +0 -1
- package/lib/chunk-L4LPS3DV.cjs +0 -47
- package/lib/chunk-L4LPS3DV.cjs.map +0 -1
- package/lib/chunk-L4TDKOAC.js +0 -32
- package/lib/chunk-L4TDKOAC.js.map +0 -1
- package/lib/chunk-L5NEDGXK.js +0 -124
- package/lib/chunk-L5NEDGXK.js.map +0 -1
- package/lib/chunk-L6IGO47T.js +0 -59
- package/lib/chunk-L6IGO47T.js.map +0 -1
- package/lib/chunk-LCLXLB2R.cjs +0 -53
- package/lib/chunk-LCLXLB2R.cjs.map +0 -1
- package/lib/chunk-LCNT6GY3.js +0 -45
- package/lib/chunk-LCNT6GY3.js.map +0 -1
- package/lib/chunk-LEWK7QET.cjs +0 -61
- package/lib/chunk-LEWK7QET.cjs.map +0 -1
- package/lib/chunk-LIT4FEIU.cjs +0 -47
- package/lib/chunk-LIT4FEIU.cjs.map +0 -1
- package/lib/chunk-LJ2EP6AL.cjs +0 -42
- package/lib/chunk-LJ2EP6AL.cjs.map +0 -1
- package/lib/chunk-LNMY5BDT.js +0 -33
- package/lib/chunk-LNMY5BDT.js.map +0 -1
- package/lib/chunk-LTLMRGB7.js +0 -45
- package/lib/chunk-LTLMRGB7.js.map +0 -1
- package/lib/chunk-M2ZERG2X.cjs +0 -95
- package/lib/chunk-M2ZERG2X.cjs.map +0 -1
- package/lib/chunk-MADGMICB.js +0 -45
- package/lib/chunk-MADGMICB.js.map +0 -1
- package/lib/chunk-MJRMRWP3.js +0 -67
- package/lib/chunk-MJRMRWP3.js.map +0 -1
- package/lib/chunk-MPSHBMZS.js +0 -93
- package/lib/chunk-MPSHBMZS.js.map +0 -1
- package/lib/chunk-MQZSDICO.cjs +0 -38
- package/lib/chunk-MQZSDICO.cjs.map +0 -1
- package/lib/chunk-MUPRLXGP.js +0 -48
- package/lib/chunk-MUPRLXGP.js.map +0 -1
- package/lib/chunk-MWYBER5I.cjs +0 -50
- package/lib/chunk-MWYBER5I.cjs.map +0 -1
- package/lib/chunk-MZNHRIXE.js +0 -41
- package/lib/chunk-MZNHRIXE.js.map +0 -1
- package/lib/chunk-N4P7A3RY.js +0 -64
- package/lib/chunk-N4P7A3RY.js.map +0 -1
- package/lib/chunk-N6MHUHGE.cjs +0 -95
- package/lib/chunk-N6MHUHGE.cjs.map +0 -1
- package/lib/chunk-N753UD4K.cjs +0 -22
- package/lib/chunk-N753UD4K.cjs.map +0 -1
- package/lib/chunk-NAWKHFBZ.js +0 -274
- package/lib/chunk-NAWKHFBZ.js.map +0 -1
- package/lib/chunk-NBYV35R4.cjs +0 -47
- package/lib/chunk-NBYV35R4.cjs.map +0 -1
- package/lib/chunk-NDPDO54G.js +0 -45
- package/lib/chunk-NDPDO54G.js.map +0 -1
- package/lib/chunk-NEC22ZSI.cjs +0 -47
- package/lib/chunk-NEC22ZSI.cjs.map +0 -1
- package/lib/chunk-NJQDJCFB.cjs +0 -71
- package/lib/chunk-NJQDJCFB.cjs.map +0 -1
- package/lib/chunk-NJYMO7FP.cjs +0 -51
- package/lib/chunk-NJYMO7FP.cjs.map +0 -1
- package/lib/chunk-NKJBVNTV.cjs +0 -103
- package/lib/chunk-NKJBVNTV.cjs.map +0 -1
- package/lib/chunk-NMVACSMG.js +0 -84
- package/lib/chunk-NMVACSMG.js.map +0 -1
- package/lib/chunk-NODKE6P4.js +0 -154
- package/lib/chunk-NODKE6P4.js.map +0 -1
- package/lib/chunk-OGLS27LJ.js +0 -45
- package/lib/chunk-OGLS27LJ.js.map +0 -1
- package/lib/chunk-OPQJPXLM.cjs +0 -43
- package/lib/chunk-OPQJPXLM.cjs.map +0 -1
- package/lib/chunk-OYFNK2SE.cjs +0 -38
- package/lib/chunk-OYFNK2SE.cjs.map +0 -1
- package/lib/chunk-P3NADEGE.cjs +0 -29
- package/lib/chunk-P3NADEGE.cjs.map +0 -1
- package/lib/chunk-PEU5GGGE.js +0 -52
- package/lib/chunk-PEU5GGGE.js.map +0 -1
- package/lib/chunk-PNSVP3KP.cjs +0 -54
- package/lib/chunk-PNSVP3KP.cjs.map +0 -1
- package/lib/chunk-PQS6KXZ2.cjs +0 -35
- package/lib/chunk-PQS6KXZ2.cjs.map +0 -1
- package/lib/chunk-PV7MUP5Z.js +0 -44
- package/lib/chunk-PV7MUP5Z.js.map +0 -1
- package/lib/chunk-PZZLLHJP.js +0 -41
- package/lib/chunk-PZZLLHJP.js.map +0 -1
- package/lib/chunk-Q2ZSQM7I.js +0 -45
- package/lib/chunk-Q2ZSQM7I.js.map +0 -1
- package/lib/chunk-Q66HILUF.js +0 -40
- package/lib/chunk-Q66HILUF.js.map +0 -1
- package/lib/chunk-Q66JEOCJ.cjs +0 -50
- package/lib/chunk-Q66JEOCJ.cjs.map +0 -1
- package/lib/chunk-Q7YHSPJL.js +0 -53
- package/lib/chunk-Q7YHSPJL.js.map +0 -1
- package/lib/chunk-QGE4ELJO.cjs +0 -47
- package/lib/chunk-QGE4ELJO.cjs.map +0 -1
- package/lib/chunk-QHRQCFDB.js +0 -41
- package/lib/chunk-QHRQCFDB.js.map +0 -1
- package/lib/chunk-QK5MFD4L.js +0 -45
- package/lib/chunk-QK5MFD4L.js.map +0 -1
- package/lib/chunk-QK7D6L3W.js +0 -51
- package/lib/chunk-QK7D6L3W.js.map +0 -1
- package/lib/chunk-QYDOENWU.cjs +0 -282
- package/lib/chunk-QYDOENWU.cjs.map +0 -1
- package/lib/chunk-QZTNLPOD.cjs +0 -51
- package/lib/chunk-QZTNLPOD.cjs.map +0 -1
- package/lib/chunk-QZWQNPKC.js +0 -45
- package/lib/chunk-QZWQNPKC.js.map +0 -1
- package/lib/chunk-R755X3AG.cjs +0 -47
- package/lib/chunk-R755X3AG.cjs.map +0 -1
- package/lib/chunk-RHARO4TQ.cjs +0 -47
- package/lib/chunk-RHARO4TQ.cjs.map +0 -1
- package/lib/chunk-ROPOLXIV.js +0 -96
- package/lib/chunk-ROPOLXIV.js.map +0 -1
- package/lib/chunk-RT7XLEV6.js +0 -49
- package/lib/chunk-RT7XLEV6.js.map +0 -1
- package/lib/chunk-RTDD2NRL.cjs +0 -39
- package/lib/chunk-RTDD2NRL.cjs.map +0 -1
- package/lib/chunk-RTGW34KX.cjs +0 -40
- package/lib/chunk-RTGW34KX.cjs.map +0 -1
- package/lib/chunk-RWPFE3LF.cjs +0 -51
- package/lib/chunk-RWPFE3LF.cjs.map +0 -1
- package/lib/chunk-SGOUEVJ3.cjs +0 -67
- package/lib/chunk-SGOUEVJ3.cjs.map +0 -1
- package/lib/chunk-SGWRNEJB.cjs +0 -35
- package/lib/chunk-SGWRNEJB.cjs.map +0 -1
- package/lib/chunk-SKFA2ZIK.js +0 -36
- package/lib/chunk-SKFA2ZIK.js.map +0 -1
- package/lib/chunk-SN6BP777.js +0 -89
- package/lib/chunk-SN6BP777.js.map +0 -1
- package/lib/chunk-SOXJJRL2.js +0 -44
- package/lib/chunk-SOXJJRL2.js.map +0 -1
- package/lib/chunk-SPLHKBWG.cjs +0 -51
- package/lib/chunk-SPLHKBWG.cjs.map +0 -1
- package/lib/chunk-SUJCEUOZ.cjs +0 -47
- package/lib/chunk-SUJCEUOZ.cjs.map +0 -1
- package/lib/chunk-SWWPX4V4.cjs +0 -34
- package/lib/chunk-SWWPX4V4.cjs.map +0 -1
- package/lib/chunk-THO6KQJZ.js +0 -50
- package/lib/chunk-THO6KQJZ.js.map +0 -1
- package/lib/chunk-THVPSJTK.cjs +0 -47
- package/lib/chunk-THVPSJTK.cjs.map +0 -1
- package/lib/chunk-TIJIXGNJ.cjs +0 -26
- package/lib/chunk-TIJIXGNJ.cjs.map +0 -1
- package/lib/chunk-TM5OCFYV.cjs +0 -61
- package/lib/chunk-TM5OCFYV.cjs.map +0 -1
- package/lib/chunk-TQFODT4D.cjs +0 -35
- package/lib/chunk-TQFODT4D.cjs.map +0 -1
- package/lib/chunk-TSD2PK6H.js +0 -32
- package/lib/chunk-TSD2PK6H.js.map +0 -1
- package/lib/chunk-TSLXKI72.js +0 -60
- package/lib/chunk-TSLXKI72.js.map +0 -1
- package/lib/chunk-U5FTZYJJ.js +0 -45
- package/lib/chunk-U5FTZYJJ.js.map +0 -1
- package/lib/chunk-U6PW4AZV.js +0 -24
- package/lib/chunk-U6PW4AZV.js.map +0 -1
- package/lib/chunk-UB4WKBUO.js +0 -48
- package/lib/chunk-UB4WKBUO.js.map +0 -1
- package/lib/chunk-UB6JC3W7.js +0 -49
- package/lib/chunk-UB6JC3W7.js.map +0 -1
- package/lib/chunk-UBXNH6J3.js +0 -57
- package/lib/chunk-UBXNH6J3.js.map +0 -1
- package/lib/chunk-UP7FR6HD.cjs +0 -66
- package/lib/chunk-UP7FR6HD.cjs.map +0 -1
- package/lib/chunk-VDZUWCIN.cjs +0 -51
- package/lib/chunk-VDZUWCIN.cjs.map +0 -1
- package/lib/chunk-VLLLEX5J.js +0 -101
- package/lib/chunk-VLLLEX5J.js.map +0 -1
- package/lib/chunk-VMJUXZ67.cjs +0 -84
- package/lib/chunk-VMJUXZ67.cjs.map +0 -1
- package/lib/chunk-VNWOCO65.cjs +0 -68
- package/lib/chunk-VNWOCO65.cjs.map +0 -1
- package/lib/chunk-VPXMI42G.cjs +0 -51
- package/lib/chunk-VPXMI42G.cjs.map +0 -1
- package/lib/chunk-VRFSITD3.js +0 -73
- package/lib/chunk-VRFSITD3.js.map +0 -1
- package/lib/chunk-VUCYIRSC.cjs +0 -47
- package/lib/chunk-VUCYIRSC.cjs.map +0 -1
- package/lib/chunk-WAL76UPE.cjs +0 -153
- package/lib/chunk-WAL76UPE.cjs.map +0 -1
- package/lib/chunk-WBPEFNL7.cjs +0 -29
- package/lib/chunk-WBPEFNL7.cjs.map +0 -1
- package/lib/chunk-WKN5RLNR.js +0 -45
- package/lib/chunk-WKN5RLNR.js.map +0 -1
- package/lib/chunk-WP3L72CW.js +0 -55
- package/lib/chunk-WP3L72CW.js.map +0 -1
- package/lib/chunk-WTHX574O.js +0 -66
- package/lib/chunk-WTHX574O.js.map +0 -1
- package/lib/chunk-WXD4O4UY.js +0 -36
- package/lib/chunk-WXD4O4UY.js.map +0 -1
- package/lib/chunk-X2D47UM7.cjs +0 -63
- package/lib/chunk-X2D47UM7.cjs.map +0 -1
- package/lib/chunk-X6PHZA6P.cjs +0 -660
- package/lib/chunk-X6PHZA6P.cjs.map +0 -1
- package/lib/chunk-XMDDYWH5.js +0 -48
- package/lib/chunk-XMDDYWH5.js.map +0 -1
- package/lib/chunk-XPF5Z2WY.js +0 -75
- package/lib/chunk-XPF5Z2WY.js.map +0 -1
- package/lib/chunk-XR3KEV7U.js +0 -49
- package/lib/chunk-XR3KEV7U.js.map +0 -1
- package/lib/chunk-XUC3BYL2.cjs +0 -43
- package/lib/chunk-XUC3BYL2.cjs.map +0 -1
- package/lib/chunk-Y2IGLW5N.js +0 -40
- package/lib/chunk-Y2IGLW5N.js.map +0 -1
- package/lib/chunk-Y3BFYVWA.js +0 -37
- package/lib/chunk-Y3BFYVWA.js.map +0 -1
- package/lib/chunk-YAKNUPNE.cjs +0 -51
- package/lib/chunk-YAKNUPNE.cjs.map +0 -1
- package/lib/chunk-YAVHAWTZ.js +0 -41
- package/lib/chunk-YAVHAWTZ.js.map +0 -1
- package/lib/chunk-YBXRC6MC.js +0 -49
- package/lib/chunk-YBXRC6MC.js.map +0 -1
- package/lib/chunk-YHYBOXVX.cjs +0 -30
- package/lib/chunk-YHYBOXVX.cjs.map +0 -1
- package/lib/chunk-YIDX7HVR.cjs +0 -50
- package/lib/chunk-YIDX7HVR.cjs.map +0 -1
- package/lib/chunk-YN4M5CNJ.js +0 -50
- package/lib/chunk-YN4M5CNJ.js.map +0 -1
- package/lib/chunk-YOHBJHTH.cjs +0 -57
- package/lib/chunk-YOHBJHTH.cjs.map +0 -1
- package/lib/chunk-YUGZUUAU.js +0 -27
- package/lib/chunk-YUGZUUAU.js.map +0 -1
- package/lib/chunk-Z2QVXW6T.cjs +0 -105
- package/lib/chunk-Z2QVXW6T.cjs.map +0 -1
- package/lib/chunk-Z667GAZJ.js +0 -37
- package/lib/chunk-Z667GAZJ.js.map +0 -1
- package/lib/chunk-Z7DKPFKZ.js +0 -40
- package/lib/chunk-Z7DKPFKZ.js.map +0 -1
- package/lib/chunk-ZAISVVBE.cjs +0 -55
- package/lib/chunk-ZAISVVBE.cjs.map +0 -1
- package/lib/chunk-ZASD6IUL.js +0 -103
- package/lib/chunk-ZASD6IUL.js.map +0 -1
- package/lib/chunk-ZEEB5YAU.js +0 -45
- package/lib/chunk-ZEEB5YAU.js.map +0 -1
- package/lib/chunk-ZFG533LP.js +0 -49
- package/lib/chunk-ZFG533LP.js.map +0 -1
- package/lib/chunk-ZLHZGR5I.cjs +0 -110
- package/lib/chunk-ZLHZGR5I.cjs.map +0 -1
- package/lib/chunk-ZQSCFH5J.cjs +0 -43
- package/lib/chunk-ZQSCFH5J.cjs.map +0 -1
- package/lib/chunk-ZTVQSWSD.cjs +0 -47
- package/lib/chunk-ZTVQSWSD.cjs.map +0 -1
- package/lib/chunk-ZZF34M2E.cjs +0 -47
- package/lib/chunk-ZZF34M2E.cjs.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/parcels.ts"],"names":["ApiResource"],"mappings":";;;;;AA0ZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC/F;AAAA,EAEA,MAAM,QAAA,CAAS,QAAA,EAA2B,MAAA,EAAwC,OAAA,EAA8C;AAC/H,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C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Q;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-6STKOQR7.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(parcelId: string | Parcel, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `parcels/${_parcelId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(parcelId: string | Parcel, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `parcels/${_parcelId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcels, Parcel, ParcelCreate, ParcelUpdate, ParcelType }\n"]}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ApiResource } from './chunk-XKERR6OR.js';
|
2
|
+
|
3
|
+
// src/resources/transactions.ts
|
4
|
+
var Transactions = class _Transactions extends ApiResource {
|
5
|
+
static TYPE = "transactions";
|
6
|
+
async order(transactionId, params, options) {
|
7
|
+
const _transactionId = transactionId.id || transactionId;
|
8
|
+
return this.resources.fetch({ type: "orders" }, `transactions/${_transactionId}/order`, params, options);
|
9
|
+
}
|
10
|
+
async attachments(transactionId, params, options) {
|
11
|
+
const _transactionId = transactionId.id || transactionId;
|
12
|
+
return this.resources.fetch({ type: "attachments" }, `transactions/${_transactionId}/attachments`, params, options);
|
13
|
+
}
|
14
|
+
async events(transactionId, params, options) {
|
15
|
+
const _transactionId = transactionId.id || transactionId;
|
16
|
+
return this.resources.fetch({ type: "events" }, `transactions/${_transactionId}/events`, params, options);
|
17
|
+
}
|
18
|
+
async versions(transactionId, params, options) {
|
19
|
+
const _transactionId = transactionId.id || transactionId;
|
20
|
+
return this.resources.fetch({ type: "versions" }, `transactions/${_transactionId}/versions`, params, options);
|
21
|
+
}
|
22
|
+
async event_stores(transactionId, params, options) {
|
23
|
+
const _transactionId = transactionId.id || transactionId;
|
24
|
+
return this.resources.fetch({ type: "event_stores" }, `transactions/${_transactionId}/event_stores`, params, options);
|
25
|
+
}
|
26
|
+
isTransaction(resource) {
|
27
|
+
return resource.type && resource.type === _Transactions.TYPE;
|
28
|
+
}
|
29
|
+
relationship(id) {
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
34
|
+
}
|
35
|
+
type() {
|
36
|
+
return _Transactions.TYPE;
|
37
|
+
}
|
38
|
+
};
|
39
|
+
var instance = new Transactions();
|
40
|
+
var transactions_default = instance;
|
41
|
+
|
42
|
+
export { transactions_default };
|
43
|
+
//# sourceMappingURL=chunk-6ZJMVQ7T.js.map
|
44
|
+
//# sourceMappingURL=chunk-6ZJMVQ7T.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/transactions.ts"],"names":[],"mappings":";;;AAkGA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,WAAA,CAAyB;AAAA,EAEnD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAExC,MAAM,KAAA,CAAM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,EAAqC,MAAA,EAAsC,OAAA,EAA8D;AAC3J,IAAA,MAAM,cAAA,GAAkB,cAA8B,EAAA,IAAM,aAAA;AAC5D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,aAAA,EAAgB,cAAc,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjI;AAAA,EAGA,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-6ZJMVQ7T.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype TransactionType = 'transactions'\ntype TransactionRel = ResourceRel & { type: TransactionType }\n\n\nexport type TransactionSort = Pick<Transaction, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type TransactionFilter = Pick<Transaction, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Transaction extends Resource {\n\t\n\treadonly type: TransactionType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Transactions extends ApiResource<Transaction> {\n\n\tstatic readonly TYPE: TransactionType = 'transactions' as const\n\n\tasync order(transactionId: string | Transaction, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `transactions/${_transactionId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(transactionId: string | Transaction, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `transactions/${_transactionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(transactionId: string | Transaction, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `transactions/${_transactionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(transactionId: string | Transaction, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `transactions/${_transactionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(transactionId: string | Transaction, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `transactions/${_transactionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisTransaction(resource: any): resource is Transaction {\n\t\treturn resource.type && (resource.type === Transactions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TransactionRel {\n\t\treturn super.relationshipOneToOne<TransactionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TransactionRel[] {\n\t\treturn super.relationshipOneToMany<TransactionRel>(...ids)\n\t}\n\n\n\ttype(): TransactionType {\n\t\treturn Transactions.TYPE\n\t}\n\n}\n\n\nconst instance = new Transactions()\nexport default instance\n\nexport type { Transactions, Transaction, TransactionType }\n"]}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
|
4
|
+
|
5
|
+
// src/resources/manual_gateways.ts
|
6
|
+
var ManualGateways = class _ManualGateways extends chunkU22VLCMN_cjs.ApiResource {
|
7
|
+
static TYPE = "manual_gateways";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _ManualGateways.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _ManualGateways.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ManualGateways.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async payment_methods(manualGatewayId, params, options) {
|
18
|
+
const _manualGatewayId = manualGatewayId.id || manualGatewayId;
|
19
|
+
return this.resources.fetch({ type: "payment_methods" }, `manual_gateways/${_manualGatewayId}/payment_methods`, params, options);
|
20
|
+
}
|
21
|
+
async versions(manualGatewayId, params, options) {
|
22
|
+
const _manualGatewayId = manualGatewayId.id || manualGatewayId;
|
23
|
+
return this.resources.fetch({ type: "versions" }, `manual_gateways/${_manualGatewayId}/versions`, params, options);
|
24
|
+
}
|
25
|
+
async event_stores(manualGatewayId, params, options) {
|
26
|
+
const _manualGatewayId = manualGatewayId.id || manualGatewayId;
|
27
|
+
return this.resources.fetch({ type: "event_stores" }, `manual_gateways/${_manualGatewayId}/event_stores`, params, options);
|
28
|
+
}
|
29
|
+
isManualGateway(resource) {
|
30
|
+
return resource.type && resource.type === _ManualGateways.TYPE;
|
31
|
+
}
|
32
|
+
relationship(id) {
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
37
|
+
}
|
38
|
+
type() {
|
39
|
+
return _ManualGateways.TYPE;
|
40
|
+
}
|
41
|
+
};
|
42
|
+
var instance = new ManualGateways();
|
43
|
+
var manual_gateways_default = instance;
|
44
|
+
|
45
|
+
exports.manual_gateways_default = manual_gateways_default;
|
46
|
+
//# sourceMappingURL=chunk-6ZUGJHNV.cjs.map
|
47
|
+
//# sourceMappingURL=chunk-6ZUGJHNV.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/manual_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAwDA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM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S,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-6ZUGJHNV.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype ManualGatewayType = 'manual_gateways'\ntype ManualGatewayRel = ResourceRel & { type: ManualGatewayType }\n\n\nexport type ManualGatewaySort = Pick<ManualGateway, 'id' | 'name'> & ResourceSort\n// export type ManualGatewayFilter = Pick<ManualGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface ManualGateway extends Resource {\n\t\n\treadonly type: ManualGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ManualGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t\n}\n\n\ninterface ManualGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t\n}\n\n\nclass ManualGateways extends ApiResource<ManualGateway> {\n\n\tstatic readonly TYPE: ManualGatewayType = 'manual_gateways' as const\n\n\tasync create(resource: ManualGatewayCreate, params?: QueryParamsRetrieve<ManualGateway>, options?: ResourcesConfig): Promise<ManualGateway> {\n\t\treturn this.resources.create<ManualGatewayCreate, ManualGateway>({ ...resource, type: ManualGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve<ManualGateway>, options?: ResourcesConfig): Promise<ManualGateway> {\n\t\treturn this.resources.update<ManualGatewayUpdate, ManualGateway>({ ...resource, type: ManualGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ManualGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(manualGatewayId: string | ManualGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _manualGatewayId = (manualGatewayId as ManualGateway).id || manualGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `manual_gateways/${_manualGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(manualGatewayId: string | ManualGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _manualGatewayId = (manualGatewayId as ManualGateway).id || manualGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `manual_gateways/${_manualGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(manualGatewayId: string | ManualGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _manualGatewayId = (manualGatewayId as ManualGateway).id || manualGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `manual_gateways/${_manualGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisManualGateway(resource: any): resource is ManualGateway {\n\t\treturn resource.type && (resource.type === ManualGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ManualGatewayRel {\n\t\treturn super.relationshipOneToOne<ManualGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ManualGatewayRel[] {\n\t\treturn super.relationshipOneToMany<ManualGatewayRel>(...ids)\n\t}\n\n\n\ttype(): ManualGatewayType {\n\t\treturn ManualGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new ManualGateways()\nexport default instance\n\nexport type { ManualGateways, ManualGateway, ManualGatewayCreate, ManualGatewayUpdate, ManualGatewayType }\n"]}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
|
4
|
+
|
5
|
+
// src/resources/stripe_gateways.ts
|
6
|
+
var StripeGateways = class _StripeGateways extends chunkU22VLCMN_cjs.ApiResource {
|
7
|
+
static TYPE = "stripe_gateways";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _StripeGateways.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _StripeGateways.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StripeGateways.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async payment_methods(stripeGatewayId, params, options) {
|
18
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
19
|
+
return this.resources.fetch({ type: "payment_methods" }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options);
|
20
|
+
}
|
21
|
+
async versions(stripeGatewayId, params, options) {
|
22
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
23
|
+
return this.resources.fetch({ type: "versions" }, `stripe_gateways/${_stripeGatewayId}/versions`, params, options);
|
24
|
+
}
|
25
|
+
async event_stores(stripeGatewayId, params, options) {
|
26
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
27
|
+
return this.resources.fetch({ type: "event_stores" }, `stripe_gateways/${_stripeGatewayId}/event_stores`, params, options);
|
28
|
+
}
|
29
|
+
async stripe_payments(stripeGatewayId, params, options) {
|
30
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
31
|
+
return this.resources.fetch({ type: "stripe_payments" }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options);
|
32
|
+
}
|
33
|
+
isStripeGateway(resource) {
|
34
|
+
return resource.type && resource.type === _StripeGateways.TYPE;
|
35
|
+
}
|
36
|
+
relationship(id) {
|
37
|
+
return super.relationshipOneToOne(id);
|
38
|
+
}
|
39
|
+
relationshipToMany(...ids) {
|
40
|
+
return super.relationshipOneToMany(...ids);
|
41
|
+
}
|
42
|
+
type() {
|
43
|
+
return _StripeGateways.TYPE;
|
44
|
+
}
|
45
|
+
};
|
46
|
+
var instance = new StripeGateways();
|
47
|
+
var stripe_gateways_default = instance;
|
48
|
+
|
49
|
+
exports.stripe_gateways_default = stripe_gateways_default;
|
50
|
+
//# sourceMappingURL=chunk-73VR2FML.cjs.map
|
51
|
+
//# sourceMappingURL=chunk-73VR2FML.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/stripe_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAgIA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QA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,EAAsC,OAAA,EAA8D;AAC/J,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtI;AAAA,EAEA,MAAM,eAAA,CAAgB,eAAA,EAAyC,MAAA,EAAyC,OAAA,EAAiE;AACxK,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,gBAAA,CAAA,EAAoB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/I;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-73VR2FML.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { StripePayment } from './stripe_payments'\n\n\ntype StripeGatewayType = 'stripe_gateways'\ntype StripeGatewayRel = ResourceRel & { type: StripeGatewayType }\n\n\nexport type StripeGatewaySort = Pick<StripeGateway, 'id' | 'name'> & ResourceSort\n// export type StripeGatewayFilter = Pick<StripeGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface StripeGateway extends Resource {\n\t\n\treadonly type: StripeGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from Stripe.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * The gateway webhook endpoint ID, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_id?: string | null\n\t/** \n\t * The gateway webhook endpoint secret, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/stripe_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tstripe_payments?: StripePayment[] | null\n\n}\n\n\ninterface StripeGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The gateway login.\n\t * @example ```\"sk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The gateway publishable API key.\n\t * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tpublishable_key?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from Stripe.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t\n}\n\n\ninterface StripeGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from Stripe.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t\n}\n\n\nclass StripeGateways extends ApiResource<StripeGateway> {\n\n\tstatic readonly TYPE: StripeGatewayType = 'stripe_gateways' as const\n\n\tasync create(resource: StripeGatewayCreate, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.create<StripeGatewayCreate, StripeGateway>({ ...resource, type: StripeGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ ...resource, type: StripeGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: StripeGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stripe_gateways/${_stripeGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stripe_gateways/${_stripeGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<StripePayment>, options?: ResourcesConfig): Promise<ListResponse<StripePayment>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<StripePayment>({ type: 'stripe_payments' }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options) as unknown as ListResponse<StripePayment>\n\t}\n\n\n\tisStripeGateway(resource: any): resource is StripeGateway {\n\t\treturn resource.type && (resource.type === StripeGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StripeGatewayRel {\n\t\treturn super.relationshipOneToOne<StripeGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StripeGatewayRel[] {\n\t\treturn super.relationshipOneToMany<StripeGatewayRel>(...ids)\n\t}\n\n\n\ttype(): StripeGatewayType {\n\t\treturn StripeGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new StripeGateways()\nexport default instance\n\nexport type { StripeGateways, StripeGateway, StripeGatewayCreate, StripeGatewayUpdate, StripeGatewayType }\n"]}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { ApiResource } from './chunk-XKERR6OR.js';
|
2
|
+
|
3
|
+
// src/resources/payment_gateways.ts
|
4
|
+
var PaymentGateways = class _PaymentGateways extends ApiResource {
|
5
|
+
static TYPE = "payment_gateways";
|
6
|
+
async payment_methods(paymentGatewayId, params, options) {
|
7
|
+
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
8
|
+
return this.resources.fetch({ type: "payment_methods" }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options);
|
9
|
+
}
|
10
|
+
async versions(paymentGatewayId, params, options) {
|
11
|
+
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
12
|
+
return this.resources.fetch({ type: "versions" }, `payment_gateways/${_paymentGatewayId}/versions`, params, options);
|
13
|
+
}
|
14
|
+
async event_stores(paymentGatewayId, params, options) {
|
15
|
+
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
16
|
+
return this.resources.fetch({ type: "event_stores" }, `payment_gateways/${_paymentGatewayId}/event_stores`, params, options);
|
17
|
+
}
|
18
|
+
isPaymentGateway(resource) {
|
19
|
+
return resource.type && resource.type === _PaymentGateways.TYPE;
|
20
|
+
}
|
21
|
+
relationship(id) {
|
22
|
+
return super.relationshipOneToOne(id);
|
23
|
+
}
|
24
|
+
relationshipToMany(...ids) {
|
25
|
+
return super.relationshipOneToMany(...ids);
|
26
|
+
}
|
27
|
+
type() {
|
28
|
+
return _PaymentGateways.TYPE;
|
29
|
+
}
|
30
|
+
};
|
31
|
+
var instance = new PaymentGateways();
|
32
|
+
var payment_gateways_default = instance;
|
33
|
+
|
34
|
+
export { payment_gateways_default };
|
35
|
+
//# sourceMappingURL=chunk-7AHYBTEX.js.map
|
36
|
+
//# sourceMappingURL=chunk-7AHYBTEX.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":[],"mappings":";;;AAkCA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,eAAA,CAAgB,gBAAA,EAA2C,MAAA,EAAyC,OAAA,EAAiE;AAC1K,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,gBAAA,CAAA,EAAoB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjJ;AAAA,EAEA,MAAM,QAAA,CAAS,gBAAA,EAA2C,MAAA,EAAmC,OAAA,EAA2D;AACvJ,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,YAAA,CAAa,gBAAA,EAA2C,MAAA,EAAsC,OAAA,EAA8D;AACjK,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxI;AAAA,EAGA,iBAAiB,QAAA,EAA2C;AAC3D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,gBAAA,CAAgB,IAAA;AAAA,EAC5D;AAAA,EAGA,aAAa,EAAA,EAAmD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA,EACxD;AAAA,EAEA,sBAAsB,GAAA,EAAoC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA,EAC7D;AAAA,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACxB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-7AHYBTEX.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype PaymentGatewayType = 'payment_gateways'\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\n\n\nexport type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name'> & ResourceSort\n// export type PaymentGatewayFilter = Pick<PaymentGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface PaymentGateway extends Resource {\n\t\n\treadonly type: PaymentGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass PaymentGateways extends ApiResource<PaymentGateway> {\n\n\tstatic readonly TYPE: PaymentGatewayType = 'payment_gateways' as const\n\n\tasync payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `payment_gateways/${_paymentGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `payment_gateways/${_paymentGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPaymentGateway(resource: any): resource is PaymentGateway {\n\t\treturn resource.type && (resource.type === PaymentGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentGatewayRel {\n\t\treturn super.relationshipOneToOne<PaymentGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaymentGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaymentGatewayType {\n\t\treturn PaymentGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentGateways()\nexport default instance\n\nexport type { PaymentGateways, PaymentGateway, PaymentGatewayType }\n"]}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
|
4
|
+
|
5
|
+
// src/resources/external_promotions.ts
|
6
|
+
var ExternalPromotions = class _ExternalPromotions extends chunkU22VLCMN_cjs.ApiResource {
|
7
|
+
static TYPE = "external_promotions";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async market(externalPromotionId, params, options) {
|
18
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
19
|
+
return this.resources.fetch({ type: "markets" }, `external_promotions/${_externalPromotionId}/market`, params, options);
|
20
|
+
}
|
21
|
+
async order_amount_promotion_rule(externalPromotionId, params, options) {
|
22
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
23
|
+
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options);
|
24
|
+
}
|
25
|
+
async sku_list_promotion_rule(externalPromotionId, params, options) {
|
26
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
27
|
+
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options);
|
28
|
+
}
|
29
|
+
async coupon_codes_promotion_rule(externalPromotionId, params, options) {
|
30
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
31
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
|
32
|
+
}
|
33
|
+
async custom_promotion_rule(externalPromotionId, params, options) {
|
34
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
35
|
+
return this.resources.fetch({ type: "custom_promotion_rules" }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
|
36
|
+
}
|
37
|
+
async sku_list(externalPromotionId, params, options) {
|
38
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
39
|
+
return this.resources.fetch({ type: "sku_lists" }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
|
40
|
+
}
|
41
|
+
async coupons(externalPromotionId, params, options) {
|
42
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
43
|
+
return this.resources.fetch({ type: "coupons" }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
|
44
|
+
}
|
45
|
+
async attachments(externalPromotionId, params, options) {
|
46
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
47
|
+
return this.resources.fetch({ type: "attachments" }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
|
48
|
+
}
|
49
|
+
async events(externalPromotionId, params, options) {
|
50
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
51
|
+
return this.resources.fetch({ type: "events" }, `external_promotions/${_externalPromotionId}/events`, params, options);
|
52
|
+
}
|
53
|
+
async tags(externalPromotionId, params, options) {
|
54
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
55
|
+
return this.resources.fetch({ type: "tags" }, `external_promotions/${_externalPromotionId}/tags`, params, options);
|
56
|
+
}
|
57
|
+
async versions(externalPromotionId, params, options) {
|
58
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
59
|
+
return this.resources.fetch({ type: "versions" }, `external_promotions/${_externalPromotionId}/versions`, params, options);
|
60
|
+
}
|
61
|
+
async event_stores(externalPromotionId, params, options) {
|
62
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
63
|
+
return this.resources.fetch({ type: "event_stores" }, `external_promotions/${_externalPromotionId}/event_stores`, params, options);
|
64
|
+
}
|
65
|
+
async skus(externalPromotionId, params, options) {
|
66
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
67
|
+
return this.resources.fetch({ type: "skus" }, `external_promotions/${_externalPromotionId}/skus`, params, options);
|
68
|
+
}
|
69
|
+
async _disable(id, params, options) {
|
70
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true }, params, options);
|
71
|
+
}
|
72
|
+
async _enable(id, params, options) {
|
73
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true }, params, options);
|
74
|
+
}
|
75
|
+
async _add_tags(id, triggerValue, params, options) {
|
76
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
77
|
+
}
|
78
|
+
async _remove_tags(id, triggerValue, params, options) {
|
79
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
80
|
+
}
|
81
|
+
async _reset_circuit(id, params, options) {
|
82
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true }, params, options);
|
83
|
+
}
|
84
|
+
isExternalPromotion(resource) {
|
85
|
+
return resource.type && resource.type === _ExternalPromotions.TYPE;
|
86
|
+
}
|
87
|
+
relationship(id) {
|
88
|
+
return super.relationshipOneToOne(id);
|
89
|
+
}
|
90
|
+
relationshipToMany(...ids) {
|
91
|
+
return super.relationshipOneToMany(...ids);
|
92
|
+
}
|
93
|
+
type() {
|
94
|
+
return _ExternalPromotions.TYPE;
|
95
|
+
}
|
96
|
+
};
|
97
|
+
var instance = new ExternalPromotions();
|
98
|
+
var external_promotions_default = instance;
|
99
|
+
|
100
|
+
exports.external_promotions_default = external_promotions_default;
|
101
|
+
//# sourceMappingURL=chunk-7AOVIJP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A,CAAmB,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACjM;AAAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAAgC,MAAA,EAAiD,OAAA,EAAuD;AAC5J,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,mBAAA,CAAmB,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC3L;AAAA,EAGA,oBAAoB,QAAA,EAA8C;AACjE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,mBAAA,CAAmB,IAAA;AAAA,EAC/D;AAAA,EAGA,aAAa,EAAA,EAAsD;AAClE,IAAA,OAAO,KAAA,CAAM,qBAA2C,EAAE,CAAA;AAAA,EAC3D;AAAA,EAEA,sBAAsB,GAAA,EAAuC;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA4C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAGA,IAAA,GAA8B;AAC7B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC3B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-7AOVIJPK.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Coupon } from './coupons'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { Sku } from './skus'\nimport type { PromotionRule } from './promotion_rules'\n\n\ntype ExternalPromotionType = 'external_promotions'\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalPromotionFilter = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalPromotion extends Resource {\n\t\n\treadonly type: ExternalPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface ExternalPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface ExternalPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass ExternalPromotions extends ApiResource<ExternalPromotion> {\n\n\tstatic readonly TYPE: ExternalPromotionType = 'external_promotions' as const\n\n\tasync create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.create<ExternalPromotionCreate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ExternalPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_promotions/${_externalPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `external_promotions/${_externalPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_promotions/${_externalPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_promotions/${_externalPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `external_promotions/${_externalPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `external_promotions/${_externalPromotionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_promotions/${_externalPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `external_promotions/${_externalPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalPromotion(resource: any): resource is ExternalPromotion {\n\t\treturn resource.type && (resource.type === ExternalPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPromotionRel {\n\t\treturn super.relationshipOneToOne<ExternalPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPromotionRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPromotionRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPromotionType {\n\t\treturn ExternalPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPromotions()\nexport default instance\n\nexport type { ExternalPromotions, ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate, ExternalPromotionType }\n"]}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ApiResource } from './chunk-XKERR6OR.js';
|
2
|
+
|
3
|
+
// src/resources/imports.ts
|
4
|
+
var Imports = class _Imports extends ApiResource {
|
5
|
+
static TYPE = "imports";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _Imports.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _Imports.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Imports.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async events(importId, params, options) {
|
16
|
+
const _importId = importId.id || importId;
|
17
|
+
return this.resources.fetch({ type: "events" }, `imports/${_importId}/events`, params, options);
|
18
|
+
}
|
19
|
+
async event_stores(importId, params, options) {
|
20
|
+
const _importId = importId.id || importId;
|
21
|
+
return this.resources.fetch({ type: "event_stores" }, `imports/${_importId}/event_stores`, params, options);
|
22
|
+
}
|
23
|
+
async _interrupt(id, params, options) {
|
24
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Imports.TYPE, _interrupt: true }, params, options);
|
25
|
+
}
|
26
|
+
isImport(resource) {
|
27
|
+
return resource.type && resource.type === _Imports.TYPE;
|
28
|
+
}
|
29
|
+
relationship(id) {
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
34
|
+
}
|
35
|
+
type() {
|
36
|
+
return _Imports.TYPE;
|
37
|
+
}
|
38
|
+
};
|
39
|
+
var instance = new Imports();
|
40
|
+
var imports_default = instance;
|
41
|
+
|
42
|
+
export { imports_default };
|
43
|
+
//# sourceMappingURL=chunk-7LH7NNTW.js.map
|
44
|
+
//# sourceMappingURL=chunk-7LH7NNTW.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/imports.ts"],"names":[],"mappings":";;;AA2IA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IA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AG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-7LH7NNTW.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Event } from './events'\nimport type { EventStore } from './event_stores'\n\n\ntype ImportType = 'imports'\ntype ImportRel = ResourceRel & { type: ImportType }\n\n\nexport type ImportSort = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ImportFilter = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'processed_count' | 'errors_log' | 'warnings_log' | 'attachment_url'> & ResourceFilter\n\n\ninterface Import extends Resource {\n\t\n\treadonly type: ImportType\n\n\t/** \n\t * The type of resource being imported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the import inputs one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the import was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the import was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the import was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Indicates the size of the objects to be imported.\n\t * @example ```300```\n\t */\n\tinputs_size?: number | null\n\t/** \n\t * Indicates the number of import errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of import warnings, if any.\n\t * @example ```1```\n\t */\n\twarnings_count?: number | null\n\t/** \n\t * Indicates the number of records that have been processed (created or updated).\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the import errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\t/** \n\t * Contains the import warnings, if any.\n\t * @example ```{\"ABC\":[\"could not be deleted\"]}```\n\t */\n\twarnings_log?: Record<string, any> | null\n\t/** \n\t * The URL the the raw inputs file, which will be generated at import start.\n\t * @example ```\"http://cl_imports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ImportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being imported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the import inputs one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t\n}\n\n\ninterface ImportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Imports extends ApiResource<Import> {\n\n\tstatic readonly TYPE: ImportType = 'imports' as const\n\n\tasync create(resource: ImportCreate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.create<ImportCreate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ImportUpdate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Imports.TYPE } : id, options)\n\t}\n\n\tasync events(importId: string | Import, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `imports/${_importId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(importId: string | Import, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `imports/${_importId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Import, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ id: (typeof id === 'string')? id: id.id, type: Imports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisImport(resource: any): resource is Import {\n\t\treturn resource.type && (resource.type === Imports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ImportRel {\n\t\treturn super.relationshipOneToOne<ImportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ImportRel[] {\n\t\treturn super.relationshipOneToMany<ImportRel>(...ids)\n\t}\n\n\n\ttype(): ImportType {\n\t\treturn Imports.TYPE\n\t}\n\n}\n\n\nconst instance = new Imports()\nexport default instance\n\nexport type { Imports, Import, ImportCreate, ImportUpdate, ImportType }\n"]}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
|
4
|
+
|
5
|
+
// src/resources/external_gateways.ts
|
6
|
+
var ExternalGateways = class _ExternalGateways extends chunkU22VLCMN_cjs.ApiResource {
|
7
|
+
static TYPE = "external_gateways";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _ExternalGateways.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _ExternalGateways.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalGateways.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async payment_methods(externalGatewayId, params, options) {
|
18
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
19
|
+
return this.resources.fetch({ type: "payment_methods" }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options);
|
20
|
+
}
|
21
|
+
async versions(externalGatewayId, params, options) {
|
22
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
23
|
+
return this.resources.fetch({ type: "versions" }, `external_gateways/${_externalGatewayId}/versions`, params, options);
|
24
|
+
}
|
25
|
+
async event_stores(externalGatewayId, params, options) {
|
26
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
27
|
+
return this.resources.fetch({ type: "event_stores" }, `external_gateways/${_externalGatewayId}/event_stores`, params, options);
|
28
|
+
}
|
29
|
+
async external_payments(externalGatewayId, params, options) {
|
30
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
31
|
+
return this.resources.fetch({ type: "external_payments" }, `external_gateways/${_externalGatewayId}/external_payments`, params, options);
|
32
|
+
}
|
33
|
+
async _reset_circuit(id, params, options) {
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _reset_circuit: true }, params, options);
|
35
|
+
}
|
36
|
+
isExternalGateway(resource) {
|
37
|
+
return resource.type && resource.type === _ExternalGateways.TYPE;
|
38
|
+
}
|
39
|
+
relationship(id) {
|
40
|
+
return super.relationshipOneToOne(id);
|
41
|
+
}
|
42
|
+
relationshipToMany(...ids) {
|
43
|
+
return super.relationshipOneToMany(...ids);
|
44
|
+
}
|
45
|
+
type() {
|
46
|
+
return _ExternalGateways.TYPE;
|
47
|
+
}
|
48
|
+
};
|
49
|
+
var instance = new ExternalGateways();
|
50
|
+
var external_gateways_default = instance;
|
51
|
+
|
52
|
+
exports.external_gateways_default = external_gateways_default;
|
53
|
+
//# sourceMappingURL=chunk-7OLCOMGV.cjs.map
|
54
|
+
//# sourceMappingURL=chunk-7OLCOMGV.cjs.map
|