@commercelayer/sdk 7.0.0-rc.9 → 7.0.1
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 +273 -269
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +2 -1
- package/lib/bundle.d.ts +2 -1
- package/lib/bundle.js +141 -137
- 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-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-D4RA67CM.cjs +50 -0
- package/lib/chunk-D4RA67CM.cjs.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-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-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-N54ON7TD.js +102 -0
- package/lib/chunk-N54ON7TD.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-VKNNJ5CS.js +49 -0
- package/lib/chunk-VKNNJ5CS.js.map +1 -0
- package/lib/chunk-VR3ZMKF5.js +48 -0
- package/lib/chunk-VR3ZMKF5.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-Z4QZRC4T.cjs +107 -0
- package/lib/chunk-Z4QZRC4T.cjs.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 +9 -9
- package/lib/commercelayer.d.cts +6 -5
- package/lib/commercelayer.d.ts +3 -4
- 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 +1 -1
- package/lib/static.d.ts +1 -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,88 @@
|
|
1
|
+
import { ApiResource } from './chunk-XKERR6OR.js';
|
2
|
+
|
3
|
+
// src/resources/line_items.ts
|
4
|
+
var LineItems = class _LineItems extends ApiResource {
|
5
|
+
static TYPE = "line_items";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _LineItems.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _LineItems.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _LineItems.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async order(lineItemId, params, options) {
|
16
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
17
|
+
return this.resources.fetch({ type: "orders" }, `line_items/${_lineItemId}/order`, params, options);
|
18
|
+
}
|
19
|
+
async line_item_options(lineItemId, params, options) {
|
20
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
21
|
+
return this.resources.fetch({ type: "line_item_options" }, `line_items/${_lineItemId}/line_item_options`, params, options);
|
22
|
+
}
|
23
|
+
async return_line_items(lineItemId, params, options) {
|
24
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
25
|
+
return this.resources.fetch({ type: "return_line_items" }, `line_items/${_lineItemId}/return_line_items`, params, options);
|
26
|
+
}
|
27
|
+
async stock_reservations(lineItemId, params, options) {
|
28
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
29
|
+
return this.resources.fetch({ type: "stock_reservations" }, `line_items/${_lineItemId}/stock_reservations`, params, options);
|
30
|
+
}
|
31
|
+
async stock_line_items(lineItemId, params, options) {
|
32
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
33
|
+
return this.resources.fetch({ type: "stock_line_items" }, `line_items/${_lineItemId}/stock_line_items`, params, options);
|
34
|
+
}
|
35
|
+
async stock_transfers(lineItemId, params, options) {
|
36
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
37
|
+
return this.resources.fetch({ type: "stock_transfers" }, `line_items/${_lineItemId}/stock_transfers`, params, options);
|
38
|
+
}
|
39
|
+
async notifications(lineItemId, params, options) {
|
40
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
41
|
+
return this.resources.fetch({ type: "notifications" }, `line_items/${_lineItemId}/notifications`, params, options);
|
42
|
+
}
|
43
|
+
async events(lineItemId, params, options) {
|
44
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
45
|
+
return this.resources.fetch({ type: "events" }, `line_items/${_lineItemId}/events`, params, options);
|
46
|
+
}
|
47
|
+
async tags(lineItemId, params, options) {
|
48
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
49
|
+
return this.resources.fetch({ type: "tags" }, `line_items/${_lineItemId}/tags`, params, options);
|
50
|
+
}
|
51
|
+
async event_stores(lineItemId, params, options) {
|
52
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
53
|
+
return this.resources.fetch({ type: "event_stores" }, `line_items/${_lineItemId}/event_stores`, params, options);
|
54
|
+
}
|
55
|
+
async _external_price(id, params, options) {
|
56
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _external_price: true }, params, options);
|
57
|
+
}
|
58
|
+
async _reserve_stock(id, params, options) {
|
59
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reserve_stock: true }, params, options);
|
60
|
+
}
|
61
|
+
async _reset_circuit(id, params, options) {
|
62
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_circuit: true }, params, options);
|
63
|
+
}
|
64
|
+
async _add_tags(id, triggerValue, params, options) {
|
65
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _add_tags: triggerValue }, params, options);
|
66
|
+
}
|
67
|
+
async _remove_tags(id, triggerValue, params, options) {
|
68
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _remove_tags: triggerValue }, params, options);
|
69
|
+
}
|
70
|
+
isLineItem(resource) {
|
71
|
+
return resource.type && resource.type === _LineItems.TYPE;
|
72
|
+
}
|
73
|
+
relationship(id) {
|
74
|
+
return super.relationshipOneToOne(id);
|
75
|
+
}
|
76
|
+
relationshipToMany(...ids) {
|
77
|
+
return super.relationshipOneToMany(...ids);
|
78
|
+
}
|
79
|
+
type() {
|
80
|
+
return _LineItems.TYPE;
|
81
|
+
}
|
82
|
+
};
|
83
|
+
var instance = new LineItems();
|
84
|
+
var line_items_default = instance;
|
85
|
+
|
86
|
+
export { line_items_default };
|
87
|
+
//# sourceMappingURL=chunk-CRPD5Q5Y.js.map
|
88
|
+
//# sourceMappingURL=chunk-CRPD5Q5Y.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/line_items.ts"],"names":[],"mappings":";;;AA8YA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,YAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UA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A,EACtD;AAAA,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,kBAAA,GAAQ","file":"chunk-CRPD5Q5Y.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 { Order, OrderType } from './orders'\nimport type { LineItemOption } from './line_item_options'\nimport type { ReturnLineItem } from './return_line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Notification } from './notifications'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { EventStore } from './event_stores'\nimport type { Sku, SkuType } from './skus'\nimport type { Bundle, BundleType } from './bundles'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { Adjustment, AdjustmentType } from './adjustments'\nimport type { DiscountEngineItem, DiscountEngineItemType } from './discount_engine_items'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\n\n\ntype LineItemType = 'line_items'\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\ntype DiscountEngineItemRel = ResourceRel & { type: DiscountEngineItemType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemSort = Pick<LineItem, 'id' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type LineItemFilter = Pick<LineItem, 'id' | 'sku_code' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'image_url' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface LineItem extends Resource {\n\t\n\treadonly type: LineItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```100```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The compared price amount, float.\n\t * @example ```130```\n\t */\n\tcompare_at_amount_float?: number | null\n\t/** \n\t * The compared price amount, formatted.\n\t * @example ```\"€130,00\"```\n\t */\n\tformatted_compare_at_amount?: string | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, float.\n\t * @example ```10```\n\t */\n\toptions_amount_float?: number | null\n\t/** \n\t * The options amount of the line item, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_options_amount?: string | null\n\t/** \n\t * The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```-1000```\n\t */\n\tdiscount_cents?: number | null\n\t/** \n\t * The discount applied to the line item, float. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```10```\n\t */\n\tdiscount_float?: number | null\n\t/** \n\t * The discount applied to the line item, fromatted. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_discount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity + options amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, in cents.\n\t * @example ```1880```\n\t */\n\ttax_amount_cents?: number | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, float.\n\t * @example ```18.8```\n\t */\n\ttax_amount_float: number\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, formatted.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_tax_amount?: string | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The discount breakdown for this line item (if calculated).\n\t * @example ```{\"41\":{\"name\":\"10% ALL\",\"cents\":-900,\"weight\":0.416,\"coupon_code\":\"XXXXXXXX\"}}```\n\t */\n\tdiscount_breakdown?: Record<string, any> | null\n\t/** \n\t * The tax rate for this line item (if calculated).\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * The tax breakdown for this line item (if calculated).\n\t * @example ```{\"id\":\"1234\",\"city_amount\":\"0.0\",\"state_amount\":6.6,\"city_tax_rate\":0,\"county_amount\":2.78,\"taxable_amount\":139,\"county_tax_rate\":0.02,\"tax_collectable\":10.08,\"special_tax_rate\":0.005,\"combined_tax_rate\":0.0725,\"city_taxable_amount\":0,\"state_sales_tax_rate\":0.0475,\"state_taxable_amount\":139,\"county_taxable_amount\":139,\"special_district_amount\":0.7,\"special_district_taxable_amount\":139}```\n\t */\n\ttax_breakdown?: Record<string, any> | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The rule outcomes.\n\t * @example ```[]```\n\t */\n\trule_outcomes?: Record<string, any> | null\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\n\torder?: Order | null\n\titem?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | DiscountEngineItem | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tgift_card?: GiftCard | null\n\tshipment?: Shipment | null\n\tpayment_method?: PaymentMethod | null\n\tline_item_options?: LineItemOption[] | null\n\treturn_line_items?: ReturnLineItem[] | null\n\tstock_reservations?: StockReservation[] | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tnotifications?: Notification[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LineItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU.\n\t * @example ```true```\n\t */\n\t_update_quantity?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\n\torder: OrderRel\n\titem?: SkuRel | BundleRel | GiftCardRel | ShipmentRel | PaymentMethodRel | AdjustmentRel | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: 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\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\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItems extends ApiResource<LineItem> {\n\n\tstatic readonly TYPE: LineItemType = 'line_items' as const\n\n\tasync create(resource: LineItemCreate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.create<LineItemCreate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemUpdate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ ...resource, type: LineItems.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: LineItems.TYPE } : id, options)\n\t}\n\n\tasync order(lineItemId: string | LineItem, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `line_items/${_lineItemId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync line_item_options(lineItemId: string | LineItem, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<LineItemOption>({ type: 'line_item_options' }, `line_items/${_lineItemId}/line_item_options`, params, options) as unknown as ListResponse<LineItemOption>\n\t}\n\n\tasync return_line_items(lineItemId: string | LineItem, params?: QueryParamsList<ReturnLineItem>, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<ReturnLineItem>({ type: 'return_line_items' }, `line_items/${_lineItemId}/return_line_items`, params, options) as unknown as ListResponse<ReturnLineItem>\n\t}\n\n\tasync stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `line_items/${_lineItemId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `line_items/${_lineItemId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `line_items/${_lineItemId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync notifications(lineItemId: string | LineItem, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `line_items/${_lineItemId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync events(lineItemId: string | LineItem, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_items/${_lineItemId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemId: string | LineItem, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_items/${_lineItemId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(lineItemId: string | LineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `line_items/${_lineItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _external_price: true }, params, options)\n\t}\n\n\tasync _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItem(resource: any): resource is LineItem {\n\t\treturn resource.type && (resource.type === LineItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemRel {\n\t\treturn super.relationshipOneToOne<LineItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemRel[] {\n\t\treturn super.relationshipOneToMany<LineItemRel>(...ids)\n\t}\n\n\n\ttype(): LineItemType {\n\t\treturn LineItems.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItems()\nexport default instance\n\nexport type { LineItems, LineItem, LineItemCreate, LineItemUpdate, LineItemType }\n"]}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import { ApiResource } from './chunk-XKERR6OR.js';
|
2
|
+
|
3
|
+
// src/resources/external_promotions.ts
|
4
|
+
var ExternalPromotions = class _ExternalPromotions extends ApiResource {
|
5
|
+
static TYPE = "external_promotions";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async market(externalPromotionId, params, options) {
|
16
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
17
|
+
return this.resources.fetch({ type: "markets" }, `external_promotions/${_externalPromotionId}/market`, params, options);
|
18
|
+
}
|
19
|
+
async order_amount_promotion_rule(externalPromotionId, params, options) {
|
20
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
21
|
+
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options);
|
22
|
+
}
|
23
|
+
async sku_list_promotion_rule(externalPromotionId, params, options) {
|
24
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
25
|
+
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options);
|
26
|
+
}
|
27
|
+
async coupon_codes_promotion_rule(externalPromotionId, params, options) {
|
28
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
29
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
|
30
|
+
}
|
31
|
+
async custom_promotion_rule(externalPromotionId, params, options) {
|
32
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
33
|
+
return this.resources.fetch({ type: "custom_promotion_rules" }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
|
34
|
+
}
|
35
|
+
async sku_list(externalPromotionId, params, options) {
|
36
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
37
|
+
return this.resources.fetch({ type: "sku_lists" }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
|
38
|
+
}
|
39
|
+
async coupons(externalPromotionId, params, options) {
|
40
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
41
|
+
return this.resources.fetch({ type: "coupons" }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
|
42
|
+
}
|
43
|
+
async attachments(externalPromotionId, params, options) {
|
44
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
45
|
+
return this.resources.fetch({ type: "attachments" }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
|
46
|
+
}
|
47
|
+
async events(externalPromotionId, params, options) {
|
48
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
49
|
+
return this.resources.fetch({ type: "events" }, `external_promotions/${_externalPromotionId}/events`, params, options);
|
50
|
+
}
|
51
|
+
async tags(externalPromotionId, params, options) {
|
52
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
53
|
+
return this.resources.fetch({ type: "tags" }, `external_promotions/${_externalPromotionId}/tags`, params, options);
|
54
|
+
}
|
55
|
+
async versions(externalPromotionId, params, options) {
|
56
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
57
|
+
return this.resources.fetch({ type: "versions" }, `external_promotions/${_externalPromotionId}/versions`, params, options);
|
58
|
+
}
|
59
|
+
async event_stores(externalPromotionId, params, options) {
|
60
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
61
|
+
return this.resources.fetch({ type: "event_stores" }, `external_promotions/${_externalPromotionId}/event_stores`, params, options);
|
62
|
+
}
|
63
|
+
async skus(externalPromotionId, params, options) {
|
64
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
65
|
+
return this.resources.fetch({ type: "skus" }, `external_promotions/${_externalPromotionId}/skus`, params, options);
|
66
|
+
}
|
67
|
+
async _disable(id, params, options) {
|
68
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true }, params, options);
|
69
|
+
}
|
70
|
+
async _enable(id, params, options) {
|
71
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true }, params, options);
|
72
|
+
}
|
73
|
+
async _add_tags(id, triggerValue, params, options) {
|
74
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
75
|
+
}
|
76
|
+
async _remove_tags(id, triggerValue, params, options) {
|
77
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
78
|
+
}
|
79
|
+
async _reset_circuit(id, params, options) {
|
80
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true }, params, options);
|
81
|
+
}
|
82
|
+
isExternalPromotion(resource) {
|
83
|
+
return resource.type && resource.type === _ExternalPromotions.TYPE;
|
84
|
+
}
|
85
|
+
relationship(id) {
|
86
|
+
return super.relationshipOneToOne(id);
|
87
|
+
}
|
88
|
+
relationshipToMany(...ids) {
|
89
|
+
return super.relationshipOneToMany(...ids);
|
90
|
+
}
|
91
|
+
type() {
|
92
|
+
return _ExternalPromotions.TYPE;
|
93
|
+
}
|
94
|
+
};
|
95
|
+
var instance = new ExternalPromotions();
|
96
|
+
var external_promotions_default = instance;
|
97
|
+
|
98
|
+
export { external_promotions_default };
|
99
|
+
//# sourceMappingURL=chunk-CYEVBUIW.js.map
|
100
|
+
//# sourceMappingURL=chunk-CYEVBUIW.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/external_promotions.ts"],"names":[],"mappings":";;;AAuRA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2B,WAAA,CAA+B;AAAA,EAE/D,OAAgB,IAAA,GAA8B,qBAAA;AAAA,EAE9C,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,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AAA,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-CYEVBUIW.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 { 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,50 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkZ4QZRC4T_cjs = require('./chunk-Z4QZRC4T.cjs');
|
4
|
+
var chunkSRW7OWVS_cjs = require('./chunk-SRW7OWVS.cjs');
|
5
|
+
var chunk7Z7FQA33_cjs = require('./chunk-7Z7FQA33.cjs');
|
6
|
+
var chunkIKHD5UQP_cjs = require('./chunk-IKHD5UQP.cjs');
|
7
|
+
|
8
|
+
// src/static.ts
|
9
|
+
var CommerceLayerStatic = {
|
10
|
+
resources: (sort) => {
|
11
|
+
return chunk7Z7FQA33_cjs.getResources(sort);
|
12
|
+
},
|
13
|
+
singletons: (sort) => {
|
14
|
+
return chunk7Z7FQA33_cjs.getSingletons(sort);
|
15
|
+
},
|
16
|
+
isSingleton: (resource) => {
|
17
|
+
return chunk7Z7FQA33_cjs.isSingleton(resource);
|
18
|
+
},
|
19
|
+
isCreatable: (resource) => {
|
20
|
+
return chunk7Z7FQA33_cjs.isCreatable(resource);
|
21
|
+
},
|
22
|
+
isUpdatable: (resource) => {
|
23
|
+
return chunk7Z7FQA33_cjs.isUpdatable(resource);
|
24
|
+
},
|
25
|
+
isDeletable: (resource) => {
|
26
|
+
return chunk7Z7FQA33_cjs.isDeletable(resource);
|
27
|
+
},
|
28
|
+
isTaggable: (resource) => {
|
29
|
+
return chunk7Z7FQA33_cjs.isTaggable(resource);
|
30
|
+
},
|
31
|
+
isVersionable: (resource) => {
|
32
|
+
return chunk7Z7FQA33_cjs.isVersionable(resource);
|
33
|
+
},
|
34
|
+
isSdkError: (error) => {
|
35
|
+
return chunkIKHD5UQP_cjs.isSdkError(error);
|
36
|
+
},
|
37
|
+
isApiError: (error) => {
|
38
|
+
return chunkIKHD5UQP_cjs.isApiError(error);
|
39
|
+
},
|
40
|
+
isTokenExpired: (token) => {
|
41
|
+
return chunkSRW7OWVS_cjs.isTokenExpired(token);
|
42
|
+
},
|
43
|
+
get schemaVersion() {
|
44
|
+
return chunkZ4QZRC4T_cjs.OPEN_API_SCHEMA_VERSION;
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
exports.CommerceLayerStatic = CommerceLayerStatic;
|
49
|
+
//# sourceMappingURL=chunk-D4RA67CM.cjs.map
|
50
|
+
//# sourceMappingURL=chunk-D4RA67CM.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,aAAA,EAAe,CAAC,QAAA,KAAwC;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,EAC9B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAOC,yCAAA;AAAA,EAAwB;AAE9D","file":"chunk-D4RA67CM.cjs","sourcesContent":["\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable } from './enum'\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport { type SdkError, type ApiError, isSdkError, isApiError} from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisVersionable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isVersionable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
|
4
|
+
|
5
|
+
// src/resources/applications.ts
|
6
|
+
var Applications = class _Applications extends chunkU22VLCMN_cjs.ApiSingleton {
|
7
|
+
static TYPE = "applications";
|
8
|
+
isApplication(resource) {
|
9
|
+
return resource.type && resource.type === _Applications.TYPE;
|
10
|
+
}
|
11
|
+
relationship(id) {
|
12
|
+
return super.relationshipOneToOne(id);
|
13
|
+
}
|
14
|
+
relationshipToMany(...ids) {
|
15
|
+
return super.relationshipOneToMany(...ids);
|
16
|
+
}
|
17
|
+
type() {
|
18
|
+
return _Applications.TYPE;
|
19
|
+
}
|
20
|
+
path() {
|
21
|
+
return "application";
|
22
|
+
}
|
23
|
+
};
|
24
|
+
var instance = new Applications();
|
25
|
+
var applications_default = instance;
|
26
|
+
|
27
|
+
exports.applications_default = applications_default;
|
28
|
+
//# sourceMappingURL=chunk-D7SALAS2.cjs.map
|
29
|
+
//# sourceMappingURL=chunk-D7SALAS2.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/applications.ts"],"names":["ApiSingleton"],"mappings":";;;;;AA+CA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,8BAAA,CAA0B;AAAA,EAEpD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAKxC,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;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,aAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-D7SALAS2.cjs","sourcesContent":["import { ApiSingleton } from '../resource'\nimport type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\n\n\n\n\ntype ApplicationType = 'applications'\ntype ApplicationRel = ResourceRel & { type: ApplicationType }\n\n\nexport type ApplicationSort = Pick<Application, 'id'> & ResourceSort\n// export type ApplicationFilter = Pick<Application, 'id' | 'name' | 'kind' | 'public_access' | 'scopes'> & ResourceFilter\n\n\ninterface Application extends Resource {\n\t\n\treadonly type: ApplicationType\n\n\t/** \n\t * The application's internal name.\n\t * @example ```\"My app\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The application's kind. One of 'sales_channel', 'integration', or 'webapp'.\n\t * @example ```\"sales-channel\"```\n\t */\n\tkind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null\n\t/** \n\t * Indicates if the application has public access.\n\t * @example ```true```\n\t */\n\tpublic_access?: boolean | null\n\t/** \n\t * The application's redirect URI.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tredirect_uri?: string | null\n\t/** \n\t * The application's scopes.\n\t * @example ```\"market:all market:9 market:122 market:6 stock_location:6 stock_location:33\"```\n\t */\n\tscopes?: string | null\n\t\n}\n\n\nclass Applications extends ApiSingleton<Application> {\n\n\tstatic readonly TYPE: ApplicationType = 'applications' as const\n\n\t\n\n\n\tisApplication(resource: any): resource is Application {\n\t\treturn resource.type && (resource.type === Applications.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ApplicationRel {\n\t\treturn super.relationshipOneToOne<ApplicationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ApplicationRel[] {\n\t\treturn super.relationshipOneToMany<ApplicationRel>(...ids)\n\t}\n\n\n\ttype(): ApplicationType {\n\t\treturn Applications.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'application'\n\t}\n\n}\n\n\nconst instance = new Applications()\nexport default instance\n\nexport type { Applications, Application, ApplicationType }\n"]}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
|
4
|
+
|
5
|
+
// src/resources/order_subscription_items.ts
|
6
|
+
var OrderSubscriptionItems = class _OrderSubscriptionItems extends chunkU22VLCMN_cjs.ApiResource {
|
7
|
+
static TYPE = "order_subscription_items";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _OrderSubscriptionItems.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _OrderSubscriptionItems.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _OrderSubscriptionItems.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async order_subscription(orderSubscriptionItemId, params, options) {
|
18
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
19
|
+
return this.resources.fetch({ type: "order_subscriptions" }, `order_subscription_items/${_orderSubscriptionItemId}/order_subscription`, params, options);
|
20
|
+
}
|
21
|
+
async source_line_item(orderSubscriptionItemId, params, options) {
|
22
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
23
|
+
return this.resources.fetch({ type: "line_items" }, `order_subscription_items/${_orderSubscriptionItemId}/source_line_item`, params, options);
|
24
|
+
}
|
25
|
+
async event_stores(orderSubscriptionItemId, params, options) {
|
26
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
27
|
+
return this.resources.fetch({ type: "event_stores" }, `order_subscription_items/${_orderSubscriptionItemId}/event_stores`, params, options);
|
28
|
+
}
|
29
|
+
isOrderSubscriptionItem(resource) {
|
30
|
+
return resource.type && resource.type === _OrderSubscriptionItems.TYPE;
|
31
|
+
}
|
32
|
+
relationship(id) {
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
37
|
+
}
|
38
|
+
type() {
|
39
|
+
return _OrderSubscriptionItems.TYPE;
|
40
|
+
}
|
41
|
+
};
|
42
|
+
var instance = new OrderSubscriptionItems();
|
43
|
+
var order_subscription_items_default = instance;
|
44
|
+
|
45
|
+
exports.order_subscription_items_default = order_subscription_items_default;
|
46
|
+
//# sourceMappingURL=chunk-D7VHCT5M.cjs.map
|
47
|
+
//# sourceMappingURL=chunk-D7VHCT5M.cjs.map
|
@@ -0,0 +1 @@
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uBAAA,EAAyD,MAAA,EAAwC,OAAA,EAA8C;AACrK,IAAA,MAAM,wBAAA,GAA4B,wBAAkD,EAAA,IAAM,uBAAA;AAC1F,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAgB,EAAE,IAAA,EAAM,YAAA,EAAa,EAAG,CAAA,yBAAA,EAA4B,wBAAwB,CAAA,iBAAA,CAAA,EAAqB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvJ;AAAA,EAEA,MAAM,YAAA,CAAa,uBAAA,EAAyD,MAAA,EAAsC,OAAA,EAA8D;AAC/K,IAAA,MAAM,wBAAA,GAA4B,wBAAkD,EAAA,IAAM,uBAAA;AAC1F,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,yBAAA,EAA4B,wBAAwB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvJ;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-D7VHCT5M.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 { OrderSubscription, OrderSubscriptionType } from './order_subscriptions'\nimport type { LineItem } from './line_items'\nimport type { EventStore } from './event_stores'\nimport type { Sku, SkuType } from './skus'\nimport type { Bundle, BundleType } from './bundles'\nimport type { Adjustment, AdjustmentType } from './adjustments'\n\n\ntype OrderSubscriptionItemType = 'order_subscription_items'\ntype OrderSubscriptionItemRel = ResourceRel & { type: OrderSubscriptionItemType }\ntype OrderSubscriptionRel = ResourceRel & { type: OrderSubscriptionType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\n\n\nexport type OrderSubscriptionItemSort = Pick<OrderSubscriptionItem, 'id' | 'quantity' | 'unit_amount_cents'> & ResourceSort\n// export type OrderSubscriptionItemFilter = Pick<OrderSubscriptionItem, 'id' | 'quantity' | 'unit_amount_cents'> & ResourceFilter\n\n\ninterface OrderSubscriptionItem extends Resource {\n\t\n\treadonly type: OrderSubscriptionItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The subscription item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The unit amount of the subscription item, in cents.\n\t * @example ```9900```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the subscription item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```99```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the subscription item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€99,00\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\n\torder_subscription?: OrderSubscription | null\n\titem?: Sku | Bundle | Adjustment | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tsource_line_item?: LineItem | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface OrderSubscriptionItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The subscription item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The unit amount of the subscription item, in cents.\n\t * @example ```9900```\n\t */\n\tunit_amount_cents?: number | null\n\n\torder_subscription: OrderSubscriptionRel\n\titem: SkuRel | BundleRel | AdjustmentRel\n\tsku?: SkuRel | null\n\tbundle?: BundleRel | null\n\tadjustment?: AdjustmentRel | null\n\n}\n\n\ninterface OrderSubscriptionItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The subscription item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * The unit amount of the subscription item, in cents.\n\t * @example ```9900```\n\t */\n\tunit_amount_cents?: number | null\n\t\n}\n\n\nclass OrderSubscriptionItems extends ApiResource<OrderSubscriptionItem> {\n\n\tstatic readonly TYPE: OrderSubscriptionItemType = 'order_subscription_items' as const\n\n\tasync create(resource: OrderSubscriptionItemCreate, params?: QueryParamsRetrieve<OrderSubscriptionItem>, options?: ResourcesConfig): Promise<OrderSubscriptionItem> {\n\t\treturn this.resources.create<OrderSubscriptionItemCreate, OrderSubscriptionItem>({ ...resource, type: OrderSubscriptionItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: OrderSubscriptionItemUpdate, params?: QueryParamsRetrieve<OrderSubscriptionItem>, options?: ResourcesConfig): Promise<OrderSubscriptionItem> {\n\t\treturn this.resources.update<OrderSubscriptionItemUpdate, OrderSubscriptionItem>({ ...resource, type: OrderSubscriptionItems.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: OrderSubscriptionItems.TYPE } : id, options)\n\t}\n\n\tasync order_subscription(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve<OrderSubscription>, options?: ResourcesConfig): Promise<OrderSubscription> {\n\t\tconst _orderSubscriptionItemId = (orderSubscriptionItemId as OrderSubscriptionItem).id || orderSubscriptionItemId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `order_subscription_items/${_orderSubscriptionItemId}/order_subscription`, params, options) as unknown as OrderSubscription\n\t}\n\n\tasync source_line_item(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _orderSubscriptionItemId = (orderSubscriptionItemId as OrderSubscriptionItem).id || orderSubscriptionItemId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `order_subscription_items/${_orderSubscriptionItemId}/source_line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync event_stores(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _orderSubscriptionItemId = (orderSubscriptionItemId as OrderSubscriptionItem).id || orderSubscriptionItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `order_subscription_items/${_orderSubscriptionItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem {\n\t\treturn resource.type && (resource.type === OrderSubscriptionItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrderSubscriptionItemRel {\n\t\treturn super.relationshipOneToOne<OrderSubscriptionItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrderSubscriptionItemRel[] {\n\t\treturn super.relationshipOneToMany<OrderSubscriptionItemRel>(...ids)\n\t}\n\n\n\ttype(): OrderSubscriptionItemType {\n\t\treturn OrderSubscriptionItems.TYPE\n\t}\n\n}\n\n\nconst instance = new OrderSubscriptionItems()\nexport default instance\n\nexport type { OrderSubscriptionItems, OrderSubscriptionItem, OrderSubscriptionItemCreate, OrderSubscriptionItemUpdate, OrderSubscriptionItemType }\n"]}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { ApiResource } from './chunk-XKERR6OR.js';
|
2
|
+
|
3
|
+
// src/resources/klarna_gateways.ts
|
4
|
+
var KlarnaGateways = class _KlarnaGateways extends ApiResource {
|
5
|
+
static TYPE = "klarna_gateways";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _KlarnaGateways.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _KlarnaGateways.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _KlarnaGateways.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async payment_methods(klarnaGatewayId, params, options) {
|
16
|
+
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
17
|
+
return this.resources.fetch({ type: "payment_methods" }, `klarna_gateways/${_klarnaGatewayId}/payment_methods`, params, options);
|
18
|
+
}
|
19
|
+
async versions(klarnaGatewayId, params, options) {
|
20
|
+
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
21
|
+
return this.resources.fetch({ type: "versions" }, `klarna_gateways/${_klarnaGatewayId}/versions`, params, options);
|
22
|
+
}
|
23
|
+
async event_stores(klarnaGatewayId, params, options) {
|
24
|
+
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
25
|
+
return this.resources.fetch({ type: "event_stores" }, `klarna_gateways/${_klarnaGatewayId}/event_stores`, params, options);
|
26
|
+
}
|
27
|
+
async klarna_payments(klarnaGatewayId, params, options) {
|
28
|
+
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
29
|
+
return this.resources.fetch({ type: "klarna_payments" }, `klarna_gateways/${_klarnaGatewayId}/klarna_payments`, params, options);
|
30
|
+
}
|
31
|
+
isKlarnaGateway(resource) {
|
32
|
+
return resource.type && resource.type === _KlarnaGateways.TYPE;
|
33
|
+
}
|
34
|
+
relationship(id) {
|
35
|
+
return super.relationshipOneToOne(id);
|
36
|
+
}
|
37
|
+
relationshipToMany(...ids) {
|
38
|
+
return super.relationshipOneToMany(...ids);
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return _KlarnaGateways.TYPE;
|
42
|
+
}
|
43
|
+
};
|
44
|
+
var instance = new KlarnaGateways();
|
45
|
+
var klarna_gateways_default = instance;
|
46
|
+
|
47
|
+
export { klarna_gateways_default };
|
48
|
+
//# sourceMappingURL=chunk-DEYOBMM5.js.map
|
49
|
+
//# sourceMappingURL=chunk-DEYOBMM5.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/klarna_gateways.ts"],"names":[],"m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,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-DEYOBMM5.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 { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { KlarnaPayment, KlarnaPaymentType } from './klarna_payments'\n\n\ntype KlarnaGatewayType = 'klarna_gateways'\ntype KlarnaGatewayRel = ResourceRel & { type: KlarnaGatewayType }\ntype KlarnaPaymentRel = ResourceRel & { type: KlarnaPaymentType }\n\n\nexport type KlarnaGatewaySort = Pick<KlarnaGateway, 'id' | 'name'> & ResourceSort\n// export type KlarnaGatewayFilter = Pick<KlarnaGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface KlarnaGateway extends Resource {\n\t\n\treadonly type: KlarnaGatewayType\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\tklarna_payments?: KlarnaPayment[] | null\n\n}\n\n\ninterface KlarnaGatewayCreate 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 country code one of EU, US, or OC.\n\t * @example ```\"EU\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_secret: string\n\n\tklarna_payments?: KlarnaPaymentRel[] | null\n\n}\n\n\ninterface KlarnaGatewayUpdate 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 gateway country code one of EU, US, or OC.\n\t * @example ```\"EU\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_secret?: string | null\n\n\tklarna_payments?: KlarnaPaymentRel[] | null\n\n}\n\n\nclass KlarnaGateways extends ApiResource<KlarnaGateway> {\n\n\tstatic readonly TYPE: KlarnaGatewayType = 'klarna_gateways' as const\n\n\tasync create(resource: KlarnaGatewayCreate, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway> {\n\t\treturn this.resources.create<KlarnaGatewayCreate, KlarnaGateway>({ ...resource, type: KlarnaGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway> {\n\t\treturn this.resources.update<KlarnaGatewayUpdate, KlarnaGateway>({ ...resource, type: KlarnaGateways.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: KlarnaGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `klarna_gateways/${_klarnaGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `klarna_gateways/${_klarnaGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `klarna_gateways/${_klarnaGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<KlarnaPayment>, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<KlarnaPayment>({ type: 'klarna_payments' }, `klarna_gateways/${_klarnaGatewayId}/klarna_payments`, params, options) as unknown as ListResponse<KlarnaPayment>\n\t}\n\n\n\tisKlarnaGateway(resource: any): resource is KlarnaGateway {\n\t\treturn resource.type && (resource.type === KlarnaGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): KlarnaGatewayRel {\n\t\treturn super.relationshipOneToOne<KlarnaGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): KlarnaGatewayRel[] {\n\t\treturn super.relationshipOneToMany<KlarnaGatewayRel>(...ids)\n\t}\n\n\n\ttype(): KlarnaGatewayType {\n\t\treturn KlarnaGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new KlarnaGateways()\nexport default instance\n\nexport type { KlarnaGateways, KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate, KlarnaGatewayType }\n"]}
|