@koda-sl/baker-cli 0.384.0-dev.4699b7308 → 0.384.0-dev.557795bef
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 +1098 -217
- package/canvas/tiktok-captions-composition/index.html +5 -6
- package/canvas/tiktok-captions-composition/meta.json +5 -0
- package/dist/account-4UEZAY5T.js +49 -0
- package/dist/account-4UEZAY5T.js.map +1 -0
- package/dist/account-OINZG6UP.js +80 -0
- package/dist/account-OINZG6UP.js.map +1 -0
- package/dist/account-QMDCUUSG.js +79 -0
- package/dist/account-QMDCUUSG.js.map +1 -0
- package/dist/account-reads-ZKKDYHK5.js +218 -0
- package/dist/account-reads-ZKKDYHK5.js.map +1 -0
- package/dist/account-writes-N4JDIDRB.js +66 -0
- package/dist/account-writes-N4JDIDRB.js.map +1 -0
- package/dist/accounts-AEBQFCNH.js +114 -0
- package/dist/accounts-AEBQFCNH.js.map +1 -0
- package/dist/accounts-EBGJ2YO7.js +611 -0
- package/dist/accounts-EBGJ2YO7.js.map +1 -0
- package/dist/accounts-HP4BLKK5.js +75 -0
- package/dist/accounts-HP4BLKK5.js.map +1 -0
- package/dist/accounts-YE2SQ3UQ.js +77 -0
- package/dist/accounts-YE2SQ3UQ.js.map +1 -0
- package/dist/accounts-Z4CLGQXJ.js +115 -0
- package/dist/accounts-Z4CLGQXJ.js.map +1 -0
- package/dist/actions-ADRIEQZX.js +55 -0
- package/dist/actions-ADRIEQZX.js.map +1 -0
- package/dist/active-entities-YB46ADQN.js +103 -0
- package/dist/active-entities-YB46ADQN.js.map +1 -0
- package/dist/activities-DUAIQJLN.js +74 -0
- package/dist/activities-DUAIQJLN.js.map +1 -0
- package/dist/ad-group-writes-HL3EZ3BT.js +170 -0
- package/dist/ad-group-writes-HL3EZ3BT.js.map +1 -0
- package/dist/ad-groups-FGS5JJGN.js +68 -0
- package/dist/ad-groups-FGS5JJGN.js.map +1 -0
- package/dist/ad-writes-LX4ACUHB.js +174 -0
- package/dist/ad-writes-LX4ACUHB.js.map +1 -0
- package/dist/add-5CUXNOUM.js +97 -0
- package/dist/add-5CUXNOUM.js.map +1 -0
- package/dist/add-6OXOQNET.js +302 -0
- package/dist/add-6OXOQNET.js.map +1 -0
- package/dist/add-E66HBIZV.js +105 -0
- package/dist/add-E66HBIZV.js.map +1 -0
- package/dist/add-ROK3ETQC.js +104 -0
- package/dist/add-ROK3ETQC.js.map +1 -0
- package/dist/add-accounts-YME5SCXD.js +91 -0
- package/dist/add-accounts-YME5SCXD.js.map +1 -0
- package/dist/ads-65R3WMDU.js +128 -0
- package/dist/ads-65R3WMDU.js.map +1 -0
- package/dist/ads-O63J7BDF.js +113 -0
- package/dist/ads-O63J7BDF.js.map +1 -0
- package/dist/ads-TFZ5PXKS.js +77 -0
- package/dist/ads-TFZ5PXKS.js.map +1 -0
- package/dist/ads-XSVRH45E.js +40 -0
- package/dist/ads-XSVRH45E.js.map +1 -0
- package/dist/adsets-Y62JOOTV.js +176 -0
- package/dist/adsets-Y62JOOTV.js.map +1 -0
- package/dist/advertisers-AIC4QPEK.js +120 -0
- package/dist/advertisers-AIC4QPEK.js.map +1 -0
- package/dist/advertisers-LJ2HKJ4W.js +125 -0
- package/dist/advertisers-LJ2HKJ4W.js.map +1 -0
- package/dist/analytics-N4PGXXEQ.js +1976 -0
- package/dist/analytics-N4PGXXEQ.js.map +1 -0
- package/dist/analytics-X3DR3UVG.js +433 -0
- package/dist/analytics-X3DR3UVG.js.map +1 -0
- package/dist/animate-E3SKQ6SI.js +480 -0
- package/dist/animate-E3SKQ6SI.js.map +1 -0
- package/dist/assign-Y7HGSQVJ.js +77 -0
- package/dist/assign-Y7HGSQVJ.js.map +1 -0
- package/dist/audience-size-SWX5YJQF.js +94 -0
- package/dist/audience-size-SWX5YJQF.js.map +1 -0
- package/dist/audiences-5A6BCWSA.js +268 -0
- package/dist/audiences-5A6BCWSA.js.map +1 -0
- package/dist/audiences-6QOCASVV.js +78 -0
- package/dist/audiences-6QOCASVV.js.map +1 -0
- package/dist/audiences-O67NGIP5.js +85 -0
- package/dist/audiences-O67NGIP5.js.map +1 -0
- package/dist/audit-2KVLWSAI.js +151 -0
- package/dist/audit-2KVLWSAI.js.map +1 -0
- package/dist/audit-HWK24VXI.js +88 -0
- package/dist/audit-HWK24VXI.js.map +1 -0
- package/dist/autocomplete-JJSGC5WU.js +111 -0
- package/dist/autocomplete-JJSGC5WU.js.map +1 -0
- package/dist/avatars-XIEKQ77J.js +38 -0
- package/dist/avatars-XIEKQ77J.js.map +1 -0
- package/dist/bid-pricing-D2HGRWZL.js +99 -0
- package/dist/bid-pricing-D2HGRWZL.js.map +1 -0
- package/dist/brand-AYYWRGIE.js +22 -0
- package/dist/brand-AYYWRGIE.js.map +1 -0
- package/dist/brief-3HUIDK5F.js +490 -0
- package/dist/brief-3HUIDK5F.js.map +1 -0
- package/dist/businesses-65EWTK5E.js +53 -0
- package/dist/businesses-65EWTK5E.js.map +1 -0
- package/dist/campaign-groups-6HCYR2JX.js +95 -0
- package/dist/campaign-groups-6HCYR2JX.js.map +1 -0
- package/dist/campaign-writes-M6JLF5AC.js +170 -0
- package/dist/campaign-writes-M6JLF5AC.js.map +1 -0
- package/dist/campaign-writes-Y6QPRQ4E.js +165 -0
- package/dist/campaign-writes-Y6QPRQ4E.js.map +1 -0
- package/dist/campaigns-6SM2ZSIH.js +76 -0
- package/dist/campaigns-6SM2ZSIH.js.map +1 -0
- package/dist/campaigns-7RKJZRY2.js +107 -0
- package/dist/campaigns-7RKJZRY2.js.map +1 -0
- package/dist/campaigns-KRI25JDZ.js +109 -0
- package/dist/campaigns-KRI25JDZ.js.map +1 -0
- package/dist/campaigns-TD7ZB5DG.js +110 -0
- package/dist/campaigns-TD7ZB5DG.js.map +1 -0
- package/dist/canvas-DMYY2DWI.js +46 -0
- package/dist/canvas-DMYY2DWI.js.map +1 -0
- package/dist/capabilities-3WJTXS2O.js +144 -0
- package/dist/capabilities-3WJTXS2O.js.map +1 -0
- package/dist/cards-7HRC4UQQ.js +85 -0
- package/dist/cards-7HRC4UQQ.js.map +1 -0
- package/dist/catalog-N6MDMIVL.js +64 -0
- package/dist/catalog-N6MDMIVL.js.map +1 -0
- package/dist/catalogs-PB46L7FH.js +128 -0
- package/dist/catalogs-PB46L7FH.js.map +1 -0
- package/dist/changes-SASUQK62.js +135 -0
- package/dist/changes-SASUQK62.js.map +1 -0
- package/dist/chatgpt-JKBSAG25.js +47 -0
- package/dist/chatgpt-JKBSAG25.js.map +1 -0
- package/dist/chats-WRVSQQB2.js +262 -0
- package/dist/chats-WRVSQQB2.js.map +1 -0
- package/dist/chunk-2FGKJY63.js +455 -0
- package/dist/chunk-2FGKJY63.js.map +1 -0
- package/dist/chunk-2GVXNKAE.js +42 -0
- package/dist/chunk-2GVXNKAE.js.map +1 -0
- package/dist/chunk-2J3PTIQB.js +479 -0
- package/dist/chunk-2J3PTIQB.js.map +1 -0
- package/dist/chunk-2J7XC2NO.js +346 -0
- package/dist/chunk-2J7XC2NO.js.map +1 -0
- package/dist/{chunk-VLUGGVJL.js → chunk-2UFRHW3T.js} +12 -4
- package/dist/chunk-2UFRHW3T.js.map +1 -0
- package/dist/chunk-2Y5V23PU.js +29 -0
- package/dist/chunk-2Y5V23PU.js.map +1 -0
- package/dist/chunk-3ACMDRSE.js +39 -0
- package/dist/chunk-3ACMDRSE.js.map +1 -0
- package/dist/chunk-3EWF7VII.js +1079 -0
- package/dist/chunk-3EWF7VII.js.map +1 -0
- package/dist/chunk-3LYMIKKN.js +625 -0
- package/dist/chunk-3LYMIKKN.js.map +1 -0
- package/dist/chunk-3M6RNCDD.js +26 -0
- package/dist/chunk-3M6RNCDD.js.map +1 -0
- package/dist/chunk-3MDO4RR2.js +310 -0
- package/dist/chunk-3MDO4RR2.js.map +1 -0
- package/dist/chunk-3NPOIHSX.js +6667 -0
- package/dist/chunk-3NPOIHSX.js.map +1 -0
- package/dist/chunk-3SK7TWGP.js +103 -0
- package/dist/chunk-3SK7TWGP.js.map +1 -0
- package/dist/chunk-3VXQYDJN.js +1743 -0
- package/dist/chunk-3VXQYDJN.js.map +1 -0
- package/dist/chunk-44VXKO65.js +106 -0
- package/dist/chunk-44VXKO65.js.map +1 -0
- package/dist/chunk-4NZ47VXO.js +137 -0
- package/dist/chunk-4NZ47VXO.js.map +1 -0
- package/dist/chunk-4X3UR372.js +225 -0
- package/dist/chunk-4X3UR372.js.map +1 -0
- package/dist/chunk-553XSIFW.js +304 -0
- package/dist/chunk-553XSIFW.js.map +1 -0
- package/dist/chunk-5FEBUCJU.js +25 -0
- package/dist/chunk-5FEBUCJU.js.map +1 -0
- package/dist/chunk-5HYSKH77.js +315 -0
- package/dist/chunk-5HYSKH77.js.map +1 -0
- package/dist/chunk-5MBPIONY.js +29 -0
- package/dist/chunk-5MBPIONY.js.map +1 -0
- package/dist/chunk-5UCP4EEQ.js +111 -0
- package/dist/chunk-5UCP4EEQ.js.map +1 -0
- package/dist/chunk-5VPJNNJL.js +494 -0
- package/dist/chunk-5VPJNNJL.js.map +1 -0
- package/dist/{chunk-VZEDAFAR.js → chunk-6YYSUISH.js} +47 -8
- package/dist/chunk-6YYSUISH.js.map +1 -0
- package/dist/chunk-7OHWEF3I.js +98 -0
- package/dist/chunk-7OHWEF3I.js.map +1 -0
- package/dist/chunk-A636XRD7.js +159 -0
- package/dist/chunk-A636XRD7.js.map +1 -0
- package/dist/chunk-A76FRBSF.js +297 -0
- package/dist/chunk-A76FRBSF.js.map +1 -0
- package/dist/chunk-AADVCEL4.js +817 -0
- package/dist/chunk-AADVCEL4.js.map +1 -0
- package/dist/chunk-AG62YO7C.js +96 -0
- package/dist/chunk-AG62YO7C.js.map +1 -0
- package/dist/chunk-AIRIT4GF.js +75 -0
- package/dist/chunk-AIRIT4GF.js.map +1 -0
- package/dist/chunk-AMCY5YCB.js +206 -0
- package/dist/chunk-AMCY5YCB.js.map +1 -0
- package/dist/chunk-AP3TP6VG.js +139 -0
- package/dist/chunk-AP3TP6VG.js.map +1 -0
- package/dist/chunk-APP475IQ.js +474 -0
- package/dist/chunk-APP475IQ.js.map +1 -0
- package/dist/chunk-AR7PU7BB.js +76 -0
- package/dist/chunk-AR7PU7BB.js.map +1 -0
- package/dist/chunk-B4S72KSS.js +172 -0
- package/dist/chunk-B4S72KSS.js.map +1 -0
- package/dist/chunk-BIPIL4QA.js +486 -0
- package/dist/chunk-BIPIL4QA.js.map +1 -0
- package/dist/chunk-BPUSL5Y2.js +58 -0
- package/dist/chunk-BPUSL5Y2.js.map +1 -0
- package/dist/chunk-BR32GHYD.js +65 -0
- package/dist/chunk-BR32GHYD.js.map +1 -0
- package/dist/chunk-CAMX6OHF.js +3182 -0
- package/dist/chunk-CAMX6OHF.js.map +1 -0
- package/dist/{chunk-MF7YA62W.js → chunk-CUL3VB4L.js} +10 -5
- package/dist/chunk-CUL3VB4L.js.map +1 -0
- package/dist/chunk-CVEY353K.js +66 -0
- package/dist/chunk-CVEY353K.js.map +1 -0
- package/dist/chunk-CWXADUKL.js +1599 -0
- package/dist/chunk-CWXADUKL.js.map +1 -0
- package/dist/chunk-D5FY4FAK.js +24 -0
- package/dist/chunk-D5FY4FAK.js.map +1 -0
- package/dist/chunk-DGCUPJZD.js +39 -0
- package/dist/chunk-DGCUPJZD.js.map +1 -0
- package/dist/chunk-DNCLWSHO.js +41 -0
- package/dist/chunk-DNCLWSHO.js.map +1 -0
- package/dist/chunk-DUPURL26.js +97 -0
- package/dist/chunk-DUPURL26.js.map +1 -0
- package/dist/chunk-E2ZOSNF5.js +96 -0
- package/dist/chunk-E2ZOSNF5.js.map +1 -0
- package/dist/chunk-E3HYHT7C.js +274 -0
- package/dist/chunk-E3HYHT7C.js.map +1 -0
- package/dist/chunk-EDLZGTGN.js +216 -0
- package/dist/chunk-EDLZGTGN.js.map +1 -0
- package/dist/chunk-EI5QN4UO.js +363 -0
- package/dist/chunk-EI5QN4UO.js.map +1 -0
- package/dist/{chunk-XHC4LMK4.js → chunk-EIGXX6KI.js} +16 -8
- package/dist/chunk-EIGXX6KI.js.map +1 -0
- package/dist/chunk-EPDE7ZRU.js +174 -0
- package/dist/chunk-EPDE7ZRU.js.map +1 -0
- package/dist/chunk-ERSX3MKH.js +34 -0
- package/dist/chunk-ERSX3MKH.js.map +1 -0
- package/dist/chunk-EVDRF4CI.js +509 -0
- package/dist/chunk-EVDRF4CI.js.map +1 -0
- package/dist/chunk-F4IEILTR.js +382 -0
- package/dist/chunk-F4IEILTR.js.map +1 -0
- package/dist/chunk-F7HRLPR5.js +67 -0
- package/dist/chunk-F7HRLPR5.js.map +1 -0
- package/dist/chunk-FEG6MN4H.js +84 -0
- package/dist/chunk-FEG6MN4H.js.map +1 -0
- package/dist/chunk-FKOECEVC.js +126 -0
- package/dist/chunk-FKOECEVC.js.map +1 -0
- package/dist/chunk-FMGW2NZI.js +106 -0
- package/dist/chunk-FMGW2NZI.js.map +1 -0
- package/dist/chunk-FPZKKNDK.js +98 -0
- package/dist/chunk-FPZKKNDK.js.map +1 -0
- package/dist/chunk-FUVCY63N.js +169 -0
- package/dist/chunk-FUVCY63N.js.map +1 -0
- package/dist/chunk-GBNJQNDS.js +19 -0
- package/dist/chunk-GBNJQNDS.js.map +1 -0
- package/dist/chunk-GIWHHCD6.js +145 -0
- package/dist/chunk-GIWHHCD6.js.map +1 -0
- package/dist/chunk-GOJXKIFQ.js +1605 -0
- package/dist/chunk-GOJXKIFQ.js.map +1 -0
- package/dist/chunk-GRQ2AXDX.js +9 -0
- package/dist/chunk-GRQ2AXDX.js.map +1 -0
- package/dist/chunk-GXDLWBOY.js +73 -0
- package/dist/chunk-GXDLWBOY.js.map +1 -0
- package/dist/chunk-HAE4WWFQ.js +455 -0
- package/dist/chunk-HAE4WWFQ.js.map +1 -0
- package/dist/chunk-I2DNBEV6.js +4227 -0
- package/dist/chunk-I2DNBEV6.js.map +1 -0
- package/dist/chunk-I4FTS5EE.js +455 -0
- package/dist/chunk-I4FTS5EE.js.map +1 -0
- package/dist/chunk-IELPT4K2.js +74 -0
- package/dist/chunk-IELPT4K2.js.map +1 -0
- package/dist/chunk-IJMWEO4P.js +57 -0
- package/dist/chunk-IJMWEO4P.js.map +1 -0
- package/dist/chunk-IREMSVKW.js +175 -0
- package/dist/chunk-IREMSVKW.js.map +1 -0
- package/dist/chunk-IVIJJXXT.js +62 -0
- package/dist/chunk-IVIJJXXT.js.map +1 -0
- package/dist/chunk-JD3W3ON7.js +188 -0
- package/dist/chunk-JD3W3ON7.js.map +1 -0
- package/dist/chunk-JLWBK3VC.js +5187 -0
- package/dist/chunk-JLWBK3VC.js.map +1 -0
- package/dist/chunk-JPK34QPS.js +134 -0
- package/dist/chunk-JPK34QPS.js.map +1 -0
- package/dist/chunk-JUY47NZ2.js +183 -0
- package/dist/chunk-JUY47NZ2.js.map +1 -0
- package/dist/chunk-JXMZEOHV.js +333 -0
- package/dist/chunk-JXMZEOHV.js.map +1 -0
- package/dist/chunk-K37K447U.js +51 -0
- package/dist/chunk-K37K447U.js.map +1 -0
- package/dist/chunk-K6TDB2KV.js +1442 -0
- package/dist/chunk-K6TDB2KV.js.map +1 -0
- package/dist/chunk-KIGGMKAE.js +66 -0
- package/dist/chunk-KIGGMKAE.js.map +1 -0
- package/dist/chunk-KKJ4KJCW.js +29 -0
- package/dist/chunk-KKJ4KJCW.js.map +1 -0
- package/dist/chunk-KONA5PSR.js +55 -0
- package/dist/chunk-KONA5PSR.js.map +1 -0
- package/dist/chunk-KVHRW7KO.js +60 -0
- package/dist/chunk-KVHRW7KO.js.map +1 -0
- package/dist/chunk-LA6PPSNA.js +65 -0
- package/dist/chunk-LA6PPSNA.js.map +1 -0
- package/dist/chunk-LKPJADL2.js +74 -0
- package/dist/chunk-LKPJADL2.js.map +1 -0
- package/dist/chunk-LWAEHLKV.js +74 -0
- package/dist/chunk-LWAEHLKV.js.map +1 -0
- package/dist/chunk-M6UNISGO.js +66 -0
- package/dist/chunk-M6UNISGO.js.map +1 -0
- package/dist/chunk-MIJAGBEP.js +23992 -0
- package/dist/chunk-MIJAGBEP.js.map +1 -0
- package/dist/chunk-MP4EXZ45.js +3151 -0
- package/dist/chunk-MP4EXZ45.js.map +1 -0
- package/dist/chunk-MYTDK3AL.js +2102 -0
- package/dist/chunk-MYTDK3AL.js.map +1 -0
- package/dist/chunk-MZQ5DX6S.js +125 -0
- package/dist/chunk-MZQ5DX6S.js.map +1 -0
- package/dist/chunk-NFSLRRIE.js +77 -0
- package/dist/chunk-NFSLRRIE.js.map +1 -0
- package/dist/chunk-NOK7MSVJ.js +533 -0
- package/dist/chunk-NOK7MSVJ.js.map +1 -0
- package/dist/chunk-NR5RZDAW.js +592 -0
- package/dist/chunk-NR5RZDAW.js.map +1 -0
- package/dist/chunk-O2EVJALZ.js +133 -0
- package/dist/chunk-O2EVJALZ.js.map +1 -0
- package/dist/chunk-O6UM5WWH.js +275 -0
- package/dist/chunk-O6UM5WWH.js.map +1 -0
- package/dist/chunk-O6XZIQXZ.js +6212 -0
- package/dist/chunk-O6XZIQXZ.js.map +1 -0
- package/dist/chunk-OIL6PU5W.js +35 -0
- package/dist/chunk-OIL6PU5W.js.map +1 -0
- package/dist/chunk-P4NSJS54.js +20 -0
- package/dist/chunk-P4NSJS54.js.map +1 -0
- package/dist/chunk-P5T7OZKV.js +26 -0
- package/dist/chunk-P5T7OZKV.js.map +1 -0
- package/dist/chunk-PFBQERWX.js +10 -0
- package/dist/chunk-PFBQERWX.js.map +1 -0
- package/dist/chunk-PSWVSLJU.js +56 -0
- package/dist/chunk-PSWVSLJU.js.map +1 -0
- package/dist/chunk-PY2NJ6XZ.js +191 -0
- package/dist/chunk-PY2NJ6XZ.js.map +1 -0
- package/dist/chunk-PZ4OM2LK.js +45 -0
- package/dist/chunk-PZ4OM2LK.js.map +1 -0
- package/dist/chunk-PZNOJ76W.js +541 -0
- package/dist/chunk-PZNOJ76W.js.map +1 -0
- package/dist/chunk-Q6ULQMWG.js +41 -0
- package/dist/chunk-Q6ULQMWG.js.map +1 -0
- package/dist/chunk-QKFD6PPX.js +57 -0
- package/dist/chunk-QKFD6PPX.js.map +1 -0
- package/dist/chunk-QMLGJ5OW.js +2891 -0
- package/dist/chunk-QMLGJ5OW.js.map +1 -0
- package/dist/chunk-R4TPDVBD.js +207 -0
- package/dist/chunk-R4TPDVBD.js.map +1 -0
- package/dist/chunk-R7QV5N2S.js +846 -0
- package/dist/chunk-R7QV5N2S.js.map +1 -0
- package/dist/chunk-RR3KT2E7.js +665 -0
- package/dist/chunk-RR3KT2E7.js.map +1 -0
- package/dist/chunk-SEPPFM5S.js +228 -0
- package/dist/chunk-SEPPFM5S.js.map +1 -0
- package/dist/chunk-SQ7DRYCC.js +150 -0
- package/dist/chunk-SQ7DRYCC.js.map +1 -0
- package/dist/chunk-SYULM665.js +610 -0
- package/dist/chunk-SYULM665.js.map +1 -0
- package/dist/chunk-TKT3OHZ6.js +170 -0
- package/dist/chunk-TKT3OHZ6.js.map +1 -0
- package/dist/chunk-TNOSX3PJ.js +136 -0
- package/dist/chunk-TNOSX3PJ.js.map +1 -0
- package/dist/chunk-TTVKI54A.js +160 -0
- package/dist/chunk-TTVKI54A.js.map +1 -0
- package/dist/chunk-U7ZVXFS3.js +23 -0
- package/dist/chunk-U7ZVXFS3.js.map +1 -0
- package/dist/chunk-UI6BKYQD.js +225 -0
- package/dist/chunk-UI6BKYQD.js.map +1 -0
- package/dist/chunk-UKLDW4UW.js +46 -0
- package/dist/chunk-UKLDW4UW.js.map +1 -0
- package/dist/chunk-V6XXXEXZ.js +76 -0
- package/dist/chunk-V6XXXEXZ.js.map +1 -0
- package/dist/chunk-V7BW2CIQ.js +92 -0
- package/dist/chunk-V7BW2CIQ.js.map +1 -0
- package/dist/chunk-VSU5R34H.js +76 -0
- package/dist/chunk-VSU5R34H.js.map +1 -0
- package/dist/chunk-W4SA4CMR.js +296 -0
- package/dist/chunk-W4SA4CMR.js.map +1 -0
- package/dist/chunk-WFUMNDCE.js +111 -0
- package/dist/chunk-WFUMNDCE.js.map +1 -0
- package/dist/chunk-WHWNXLTD.js +166 -0
- package/dist/chunk-WHWNXLTD.js.map +1 -0
- package/dist/chunk-WN4KX7GE.js +25 -0
- package/dist/chunk-WN4KX7GE.js.map +1 -0
- package/dist/chunk-XIY7P54H.js +84 -0
- package/dist/chunk-XIY7P54H.js.map +1 -0
- package/dist/chunk-YFPLNMPZ.js +337 -0
- package/dist/chunk-YFPLNMPZ.js.map +1 -0
- package/dist/chunk-YMBB4JBD.js +1830 -0
- package/dist/chunk-YMBB4JBD.js.map +1 -0
- package/dist/chunk-YQFM2P5W.js +197 -0
- package/dist/chunk-YQFM2P5W.js.map +1 -0
- package/dist/chunk-YQSBHWOI.js +41 -0
- package/dist/chunk-YTF3IVMF.js +149 -0
- package/dist/chunk-YTF3IVMF.js.map +1 -0
- package/dist/chunk-Z3ENMCFE.js +94 -0
- package/dist/chunk-Z3ENMCFE.js.map +1 -0
- package/dist/chunk-Z7MWSXLG.js +94 -0
- package/dist/chunk-Z7MWSXLG.js.map +1 -0
- package/dist/chunk-ZIXHS6AM.js +42 -0
- package/dist/chunk-ZIXHS6AM.js.map +1 -0
- package/dist/chunk-ZJ7TQUCU.js +4410 -0
- package/dist/chunk-ZJ7TQUCU.js.map +1 -0
- package/dist/chunk-ZNQRDLSS.js +52 -0
- package/dist/chunk-ZNQRDLSS.js.map +1 -0
- package/dist/claim-ROWH6JVB.js +197 -0
- package/dist/claim-ROWH6JVB.js.map +1 -0
- package/dist/cli.js +104 -69986
- package/dist/cli.js.map +1 -1
- package/dist/client-EURRWXPW.js +19 -0
- package/dist/code-FKQW7V7N.js +76 -0
- package/dist/code-FKQW7V7N.js.map +1 -0
- package/dist/companies-MD2MZKU6.js +195 -0
- package/dist/companies-MD2MZKU6.js.map +1 -0
- package/dist/complete-FCAJM6Z4.js +81 -0
- package/dist/complete-FCAJM6Z4.js.map +1 -0
- package/dist/config-OZOHIAOJ.js +88 -0
- package/dist/config-OZOHIAOJ.js.map +1 -0
- package/dist/connect-4YXFMXYX.js +42 -0
- package/dist/content-PCGSX2QU.js +85 -0
- package/dist/content-PCGSX2QU.js.map +1 -0
- package/dist/conversation-UX5NZ3IO.js +93 -0
- package/dist/conversation-UX5NZ3IO.js.map +1 -0
- package/dist/conversion-report-7QSWB2FY.js +125 -0
- package/dist/conversion-report-7QSWB2FY.js.map +1 -0
- package/dist/conversion-upload-command-XESIAQPU.js +438 -0
- package/dist/conversion-upload-command-XESIAQPU.js.map +1 -0
- package/dist/conversion-writes-BGOVLBS5.js +120 -0
- package/dist/conversion-writes-BGOVLBS5.js.map +1 -0
- package/dist/conversions-IYIWW4O7.js +76 -0
- package/dist/conversions-IYIWW4O7.js.map +1 -0
- package/dist/conversions-RLIJAE7E.js +135 -0
- package/dist/conversions-RLIJAE7E.js.map +1 -0
- package/dist/countries-5OBUVLLD.js +82 -0
- package/dist/countries-5OBUVLLD.js.map +1 -0
- package/dist/create-CUJLJUAQ.js +138 -0
- package/dist/create-CUJLJUAQ.js.map +1 -0
- package/dist/create-FENOT6DX.js +236 -0
- package/dist/create-FENOT6DX.js.map +1 -0
- package/dist/create-OFZQMOWO.js +59 -0
- package/dist/create-OFZQMOWO.js.map +1 -0
- package/dist/create-Z5SS2AWB.js +207 -0
- package/dist/create-Z5SS2AWB.js.map +1 -0
- package/dist/creatives-UJW2QBLH.js +182 -0
- package/dist/creatives-UJW2QBLH.js.map +1 -0
- package/dist/creatives-XI2DGQUZ.js +87 -0
- package/dist/creatives-XI2DGQUZ.js.map +1 -0
- package/dist/creatives-YLXQSROD.js +51 -0
- package/dist/creatives-YLXQSROD.js.map +1 -0
- package/dist/credentials-CH73QMD2.js +287 -0
- package/dist/credentials-CH73QMD2.js.map +1 -0
- package/dist/critique-C4WRQ4AJ.js +1449 -0
- package/dist/critique-C4WRQ4AJ.js.map +1 -0
- package/dist/critique-ZBNJ6MQ3.js +213 -0
- package/dist/critique-ZBNJ6MQ3.js.map +1 -0
- package/dist/crm-MJTT6GOJ.js +224 -0
- package/dist/crm-MJTT6GOJ.js.map +1 -0
- package/dist/crm-ZXHSEFYI.js +318 -0
- package/dist/crm-ZXHSEFYI.js.map +1 -0
- package/dist/crop-B52KIQ4O.js +113 -0
- package/dist/crop-B52KIQ4O.js.map +1 -0
- package/dist/currency-GGWF5DMU.js +88 -0
- package/dist/currency-GGWF5DMU.js.map +1 -0
- package/dist/custom-conversions-7WDBTC4X.js +125 -0
- package/dist/custom-conversions-7WDBTC4X.js.map +1 -0
- package/dist/customers-7E4HBSEY.js +56 -0
- package/dist/decide-PK7WNSQ2.js +199 -0
- package/dist/decide-PK7WNSQ2.js.map +1 -0
- package/dist/delete-56LKNEGA.js +71 -0
- package/dist/delete-56LKNEGA.js.map +1 -0
- package/dist/delete-DQY4ZSFN.js +54 -0
- package/dist/delete-DQY4ZSFN.js.map +1 -0
- package/dist/delete-EZ7HHOOD.js +69 -0
- package/dist/delete-EZ7HHOOD.js.map +1 -0
- package/dist/delete-JV4KAA6Y.js +66 -0
- package/dist/delete-JV4KAA6Y.js.map +1 -0
- package/dist/delete-YONJW4UZ.js +63 -0
- package/dist/delete-YONJW4UZ.js.map +1 -0
- package/dist/delete-YSYVFL6W.js +71 -0
- package/dist/delete-YSYVFL6W.js.map +1 -0
- package/dist/demographics-6N3TTYWC.js +138 -0
- package/dist/demographics-6N3TTYWC.js.map +1 -0
- package/dist/describe-AAVYIFE3.js +97 -0
- package/dist/describe-AAVYIFE3.js.map +1 -0
- package/dist/describe-UQFLWVFR.js +97 -0
- package/dist/describe-UQFLWVFR.js.map +1 -0
- package/dist/dimensions-QDXBG2XC.js +101 -0
- package/dist/dimensions-QDXBG2XC.js.map +1 -0
- package/dist/discard-S3NGGUSK.js +66 -0
- package/dist/discard-S3NGGUSK.js.map +1 -0
- package/dist/discover-6TEBPVNC.js +93 -0
- package/dist/discover-6TEBPVNC.js.map +1 -0
- package/dist/discover-SBZPB7T2.js +172 -0
- package/dist/discover-SBZPB7T2.js.map +1 -0
- package/dist/domain-AMAR76PB.js +98 -0
- package/dist/domain-AMAR76PB.js.map +1 -0
- package/dist/download-LV3GPOWV.js +299 -0
- package/dist/download-LV3GPOWV.js.map +1 -0
- package/dist/draft-6QZ7WMWM.js +217 -0
- package/dist/draft-6QZ7WMWM.js.map +1 -0
- package/dist/draft-DDFFTZ43.js +233 -0
- package/dist/draft-DDFFTZ43.js.map +1 -0
- package/dist/draft-FIKJXNIQ.js +281 -0
- package/dist/draft-FIKJXNIQ.js.map +1 -0
- package/dist/draft-GYGWTMBU.js +307 -0
- package/dist/draft-GYGWTMBU.js.map +1 -0
- package/dist/draft-KXL62WFS.js +328 -0
- package/dist/draft-KXL62WFS.js.map +1 -0
- package/dist/draft-N4LFPKTA.js +100 -0
- package/dist/draft-N4LFPKTA.js.map +1 -0
- package/dist/draft-POSLJCWG.js +306 -0
- package/dist/draft-POSLJCWG.js.map +1 -0
- package/dist/draft-XPO5RWST.js +103 -0
- package/dist/draft-XPO5RWST.js.map +1 -0
- package/dist/engine/index.d.ts +213 -127
- package/dist/engine/index.js +18 -4
- package/dist/{env-4P5HOGNA.js → env-TQ2XS2KY.js} +12 -2
- package/dist/env-TQ2XS2KY.js.map +1 -0
- package/dist/experiment-FQNKMORZ.js +1397 -0
- package/dist/experiment-FQNKMORZ.js.map +1 -0
- package/dist/export-4IZQZAPF.js +168 -0
- package/dist/export-4IZQZAPF.js.map +1 -0
- package/dist/extract-DZMGVQ7D.js +113 -0
- package/dist/extract-DZMGVQ7D.js.map +1 -0
- package/dist/facets-223V5P47.js +114 -0
- package/dist/facets-223V5P47.js.map +1 -0
- package/dist/favorites-DD2LNSTG.js +178 -0
- package/dist/favorites-DD2LNSTG.js.map +1 -0
- package/dist/feed-TUVFNX2U.js +177 -0
- package/dist/feed-TUVFNX2U.js.map +1 -0
- package/dist/feedback-MIW23MI2.js +66 -0
- package/dist/feedback-MIW23MI2.js.map +1 -0
- package/dist/feedback-record-RGKRKPGZ.js +175 -0
- package/dist/feedback-record-RGKRKPGZ.js.map +1 -0
- package/dist/fetch-O6UHNXWB.js +139 -0
- package/dist/fetch-O6UHNXWB.js.map +1 -0
- package/dist/fetch-TZ4UCMJK.js +176 -0
- package/dist/fetch-TZ4UCMJK.js.map +1 -0
- package/dist/find-4XKIBF4D.js +134 -0
- package/dist/find-4XKIBF4D.js.map +1 -0
- package/dist/fit-ODVVXV2Q.js +45 -0
- package/dist/fit-ODVVXV2Q.js.map +1 -0
- package/dist/flows-HVWBFZ7T.js +247 -0
- package/dist/flows-HVWBFZ7T.js.map +1 -0
- package/dist/follow-RCOXTZGY.js +94 -0
- package/dist/follow-RCOXTZGY.js.map +1 -0
- package/dist/follow-competitors-SQ5XBFTK.js +112 -0
- package/dist/follow-competitors-SQ5XBFTK.js.map +1 -0
- package/dist/following-VDU3BHC4.js +113 -0
- package/dist/following-VDU3BHC4.js.map +1 -0
- package/dist/fonts-NBIQAVQN.js +34 -0
- package/dist/fonts-NBIQAVQN.js.map +1 -0
- package/dist/forecast-2GJKBNBM.js +168 -0
- package/dist/forecast-2GJKBNBM.js.map +1 -0
- package/dist/forecast-76MUJBPO.js +104 -0
- package/dist/forecast-76MUJBPO.js.map +1 -0
- package/dist/funding-HTFVZLLG.js +85 -0
- package/dist/funding-HTFVZLLG.js.map +1 -0
- package/dist/funnel-FE2HIRVQ.js +394 -0
- package/dist/funnel-FE2HIRVQ.js.map +1 -0
- package/dist/ga4-2RC4EH7V.js +55 -0
- package/dist/ga4-2RC4EH7V.js.map +1 -0
- package/dist/generate-TPDOBCKQ.js +262 -0
- package/dist/generate-TPDOBCKQ.js.map +1 -0
- package/dist/get-6JNOVI27.js +56 -0
- package/dist/get-6JNOVI27.js.map +1 -0
- package/dist/get-FH2LIEYL.js +63 -0
- package/dist/get-FH2LIEYL.js.map +1 -0
- package/dist/get-GZLCDXXW.js +61 -0
- package/dist/get-GZLCDXXW.js.map +1 -0
- package/dist/get-KVAOPAQW.js +78 -0
- package/dist/get-KVAOPAQW.js.map +1 -0
- package/dist/get-TSPQYEKC.js +59 -0
- package/dist/get-TSPQYEKC.js.map +1 -0
- package/dist/get-TY3RXYNZ.js +63 -0
- package/dist/get-TY3RXYNZ.js.map +1 -0
- package/dist/get-VPW33XTN.js +92 -0
- package/dist/get-VPW33XTN.js.map +1 -0
- package/dist/gif-JFEYPFFI.js +94 -0
- package/dist/gif-JFEYPFFI.js.map +1 -0
- package/dist/google-R6RD4L6Z.js +136 -0
- package/dist/google-R6RD4L6Z.js.map +1 -0
- package/dist/google-VPQNRVIB.js +3190 -0
- package/dist/google-VPQNRVIB.js.map +1 -0
- package/dist/google-ads-JEQMNNMN.js +195 -0
- package/dist/google-ads-JEQMNNMN.js.map +1 -0
- package/dist/group-7AV6UL26.js +43 -0
- package/dist/group-7AV6UL26.js.map +1 -0
- package/dist/group-BVQZEZIC.js +43 -0
- package/dist/group-BVQZEZIC.js.map +1 -0
- package/dist/gsc-SQ42WAQE.js +30 -0
- package/dist/gsc-SQ42WAQE.js.map +1 -0
- package/dist/history-BNNHFURR.js +67 -0
- package/dist/history-BNNHFURR.js.map +1 -0
- package/dist/history-EHUQG4CE.js +133 -0
- package/dist/history-EHUQG4CE.js.map +1 -0
- package/dist/hubspot-JABE4USC.js +779 -0
- package/dist/hubspot-JABE4USC.js.map +1 -0
- package/dist/icon-OYTTSNSL.js +137 -0
- package/dist/icon-OYTTSNSL.js.map +1 -0
- package/dist/ideas-OD76WOQ3.js +32 -0
- package/dist/ideas-OD76WOQ3.js.map +1 -0
- package/dist/images-LY7AWWBK.js +90 -0
- package/dist/images-LY7AWWBK.js.map +1 -0
- package/dist/improve-W6GZNT2A.js +86 -0
- package/dist/improve-W6GZNT2A.js.map +1 -0
- package/dist/ingest-47WON6HT.js +23 -0
- package/dist/ingest-47WON6HT.js.map +1 -0
- package/dist/ingest-HDGGHBSJ.js +107 -0
- package/dist/ingest-HDGGHBSJ.js.map +1 -0
- package/dist/insights-IW7LGAWU.js +423 -0
- package/dist/insights-IW7LGAWU.js.map +1 -0
- package/dist/insights-QH54F56A.js +122 -0
- package/dist/insights-QH54F56A.js.map +1 -0
- package/dist/inspect-AJLG2HGL.js +189 -0
- package/dist/inspect-AJLG2HGL.js.map +1 -0
- package/dist/inspiration-RDQ3Y3N3.js +53 -0
- package/dist/inspiration-RDQ3Y3N3.js.map +1 -0
- package/dist/intent-5GSSCFZ2.js +95 -0
- package/dist/intent-5GSSCFZ2.js.map +1 -0
- package/dist/job-URVXJP75.js +202 -0
- package/dist/job-URVXJP75.js.map +1 -0
- package/dist/job-create-S4SECUVF.js +109 -0
- package/dist/job-create-S4SECUVF.js.map +1 -0
- package/dist/job-status-253SUCTJ.js +74 -0
- package/dist/job-status-253SUCTJ.js.map +1 -0
- package/dist/keep-GPSYDIGJ.js +78 -0
- package/dist/keep-GPSYDIGJ.js.map +1 -0
- package/dist/keyword-gap-NTFDX43B.js +130 -0
- package/dist/keyword-gap-NTFDX43B.js.map +1 -0
- package/dist/keyword-metrics-XSFLMBZX.js +197 -0
- package/dist/keyword-metrics-XSFLMBZX.js.map +1 -0
- package/dist/keywords-for-site-U4JLYXVE.js +128 -0
- package/dist/keywords-for-site-U4JLYXVE.js.map +1 -0
- package/dist/landing-AO72EGJ6.js +28 -0
- package/dist/landing-AO72EGJ6.js.map +1 -0
- package/dist/landings-NEF4PQL2.js +151 -0
- package/dist/landings-NEF4PQL2.js.map +1 -0
- package/dist/languages-3RDPPPTE.js +55 -0
- package/dist/languages-3RDPPPTE.js.map +1 -0
- package/dist/languages-CQX3YOIT.js +40 -0
- package/dist/languages-CQX3YOIT.js.map +1 -0
- package/dist/launches-GBHLJH5S.js +19 -0
- package/dist/launches-GBHLJH5S.js.map +1 -0
- package/dist/layerize-Q56C6LFG.js +190 -0
- package/dist/layerize-Q56C6LFG.js.map +1 -0
- package/dist/leads-JHUM6FYR.js +293 -0
- package/dist/leads-JHUM6FYR.js.map +1 -0
- package/dist/leads-UYZM2XQX.js +90 -0
- package/dist/leads-UYZM2XQX.js.map +1 -0
- package/dist/learn-D2KBGJHZ.js +203 -0
- package/dist/learn-D2KBGJHZ.js.map +1 -0
- package/dist/library-6VUFHTEK.js +109 -0
- package/dist/library-6VUFHTEK.js.map +1 -0
- package/dist/lighthouse-57U2GMPV.js +75 -0
- package/dist/lighthouse-57U2GMPV.js.map +1 -0
- package/dist/line-item-writes-R5GO6GTL.js +208 -0
- package/dist/line-item-writes-R5GO6GTL.js.map +1 -0
- package/dist/line-items-RBMH6YBZ.js +103 -0
- package/dist/line-items-RBMH6YBZ.js.map +1 -0
- package/dist/link-WS2RMCOP.js +64 -0
- package/dist/link-WS2RMCOP.js.map +1 -0
- package/dist/linkedin-FSIALZTS.js +1008 -0
- package/dist/linkedin-FSIALZTS.js.map +1 -0
- package/dist/list-2AE2Q4ZD.js +151 -0
- package/dist/list-2AE2Q4ZD.js.map +1 -0
- package/dist/list-E635Y6M4.js +303 -0
- package/dist/list-E635Y6M4.js.map +1 -0
- package/dist/list-G57ZO4PG.js +50 -0
- package/dist/list-G57ZO4PG.js.map +1 -0
- package/dist/list-JCSWZWDI.js +57 -0
- package/dist/list-JCSWZWDI.js.map +1 -0
- package/dist/list-KT6NXVLV.js +63 -0
- package/dist/list-KT6NXVLV.js.map +1 -0
- package/dist/list-RINCJOAC.js +76 -0
- package/dist/list-RINCJOAC.js.map +1 -0
- package/dist/list-SRNXHS6L.js +51 -0
- package/dist/list-SRNXHS6L.js.map +1 -0
- package/dist/list-YJSO4M5Q.js +65 -0
- package/dist/list-YJSO4M5Q.js.map +1 -0
- package/dist/locations-HW2Y5OJO.js +67 -0
- package/dist/locations-HW2Y5OJO.js.map +1 -0
- package/dist/locations-XOHI3VWI.js +40 -0
- package/dist/locations-XOHI3VWI.js.map +1 -0
- package/dist/log-3HX5BIO6.js +92 -0
- package/dist/log-3HX5BIO6.js.map +1 -0
- package/dist/logo-KXTGIYBI.js +18 -0
- package/dist/logo-KXTGIYBI.js.map +1 -0
- package/dist/lookup-X6O5UNJH.js +22 -0
- package/dist/lookup-X6O5UNJH.js.map +1 -0
- package/dist/make-QH77XOWM.js +633 -0
- package/dist/make-QH77XOWM.js.map +1 -0
- package/dist/map-QABBPYZM.js +404 -0
- package/dist/map-QABBPYZM.js.map +1 -0
- package/dist/mcp-HSD3W3OB.js +463 -0
- package/dist/mcp-HSD3W3OB.js.map +1 -0
- package/dist/media-MI4EE7L4.js +89 -0
- package/dist/media-MI4EE7L4.js.map +1 -0
- package/dist/media-QUTQOBA7.js +15 -0
- package/dist/media-QUTQOBA7.js.map +1 -0
- package/dist/media-sources-HO4DXRX5.js +32 -0
- package/dist/media-sources-HO4DXRX5.js.map +1 -0
- package/dist/members-YEYYJGY6.js +44 -0
- package/dist/members-YEYYJGY6.js.map +1 -0
- package/dist/meta-E3JOUOSS.js +69 -0
- package/dist/meta-E3JOUOSS.js.map +1 -0
- package/dist/metrics-HQ7XJAYQ.js +152 -0
- package/dist/metrics-HQ7XJAYQ.js.map +1 -0
- package/dist/models-PGX3FBHU.js +155 -0
- package/dist/models-PGX3FBHU.js.map +1 -0
- package/dist/normalize-FPJ6GSOY.js +806 -0
- package/dist/normalize-FPJ6GSOY.js.map +1 -0
- package/dist/normalize-GSQWN77S.js +141 -0
- package/dist/normalize-GSQWN77S.js.map +1 -0
- package/dist/options-F5XZMQLK.js +121 -0
- package/dist/options-F5XZMQLK.js.map +1 -0
- package/dist/output-GQFJ2T5B.js +24 -0
- package/dist/output-GQFJ2T5B.js.map +1 -0
- package/dist/page-VTTSBC6Y.js +105 -0
- package/dist/page-VTTSBC6Y.js.map +1 -0
- package/dist/pages-PMZVNVQM.js +66 -0
- package/dist/pages-PMZVNVQM.js.map +1 -0
- package/dist/performance-G67JQE5J.js +24 -0
- package/dist/performance-G67JQE5J.js.map +1 -0
- package/dist/pinterest-UDNGOWDM.js +96 -0
- package/dist/pinterest-UDNGOWDM.js.map +1 -0
- package/dist/pixels-OYZDGCH3.js +108 -0
- package/dist/pixels-OYZDGCH3.js.map +1 -0
- package/dist/pixels-XKGNTCFX.js +60 -0
- package/dist/pixels-XKGNTCFX.js.map +1 -0
- package/dist/plan-DZS3TVIJ.js +207 -0
- package/dist/plan-DZS3TVIJ.js.map +1 -0
- package/dist/preview-DR6MXOGI.js +169 -0
- package/dist/preview-DR6MXOGI.js.map +1 -0
- package/dist/profile-VOVZG44G.js +159 -0
- package/dist/profile-VOVZG44G.js.map +1 -0
- package/dist/promoted-tweet-writes-VCK2ADVJ.js +180 -0
- package/dist/promoted-tweet-writes-VCK2ADVJ.js.map +1 -0
- package/dist/promoted-tweets-4ACBP2RV.js +119 -0
- package/dist/promoted-tweets-4ACBP2RV.js.map +1 -0
- package/dist/properties-MKVF7MUK.js +101 -0
- package/dist/properties-MKVF7MUK.js.map +1 -0
- package/dist/publish-6XVA35T6.js +322 -0
- package/dist/publish-6XVA35T6.js.map +1 -0
- package/dist/query-CNWQ6STR.js +61 -0
- package/dist/query-CNWQ6STR.js.map +1 -0
- package/dist/query-DBSBZ73C.js +247 -0
- package/dist/query-DBSBZ73C.js.map +1 -0
- package/dist/query-QK4U4TEL.js +236 -0
- package/dist/query-QK4U4TEL.js.map +1 -0
- package/dist/questionnaire-OVJWNUVV.js +93 -0
- package/dist/questionnaire-OVJWNUVV.js.map +1 -0
- package/dist/read-L2QIVJTL.js +141 -0
- package/dist/read-L2QIVJTL.js.map +1 -0
- package/dist/reddit-SCEB2JQL.js +26 -0
- package/dist/reddit-SCEB2JQL.js.map +1 -0
- package/dist/refresh-TIH5Y3NP.js +94 -0
- package/dist/refresh-TIH5Y3NP.js.map +1 -0
- package/dist/release-LKMUKVXM.js +60 -0
- package/dist/release-LKMUKVXM.js.map +1 -0
- package/dist/relevant-pages-CRI2NLWG.js +99 -0
- package/dist/relevant-pages-CRI2NLWG.js.map +1 -0
- package/dist/remove-6ABOB7TZ.js +50 -0
- package/dist/remove-6ABOB7TZ.js.map +1 -0
- package/dist/remove-JKSCGKQG.js +48 -0
- package/dist/remove-JKSCGKQG.js.map +1 -0
- package/dist/reopen-27TDNXFP.js +63 -0
- package/dist/reopen-27TDNXFP.js.map +1 -0
- package/dist/rerun-XHECBJD5.js +84 -0
- package/dist/rerun-XHECBJD5.js.map +1 -0
- package/dist/research-4MOXIMDX.js +62 -0
- package/dist/research-4MOXIMDX.js.map +1 -0
- package/dist/research-XYXP7D4R.js +262 -0
- package/dist/research-XYXP7D4R.js.map +1 -0
- package/dist/reset-NLYEBPLX.js +54 -0
- package/dist/reset-NLYEBPLX.js.map +1 -0
- package/dist/reset-RDQOYBXX.js +54 -0
- package/dist/reset-RDQOYBXX.js.map +1 -0
- package/dist/resolve-VHKWC5KW.js +121 -0
- package/dist/resolve-VHKWC5KW.js.map +1 -0
- package/dist/retry-MTQSHXKH.js +60 -0
- package/dist/retry-MTQSHXKH.js.map +1 -0
- package/dist/retry-ZI5ECSFD.js +62 -0
- package/dist/retry-ZI5ECSFD.js.map +1 -0
- package/dist/retry-failed-2OYMCB55.js +45 -0
- package/dist/retry-failed-2OYMCB55.js.map +1 -0
- package/dist/run-BMJJRJL2.js +65 -0
- package/dist/run-BMJJRJL2.js.map +1 -0
- package/dist/run-IHXS6F5V.js +59 -0
- package/dist/run-IHXS6F5V.js.map +1 -0
- package/dist/scaffold-ad-QEADKYPL.js +1548 -0
- package/dist/scaffold-ad-QEADKYPL.js.map +1 -0
- package/dist/scaffold-static-ad-PTJ73ZNF.js +971 -0
- package/dist/scaffold-static-ad-PTJ73ZNF.js.map +1 -0
- package/dist/scaffold-video-ZQEZRVD6.js +872 -0
- package/dist/scaffold-video-ZQEZRVD6.js.map +1 -0
- package/dist/schedule-JD2EQJCT.js +61 -0
- package/dist/schedule-JD2EQJCT.js.map +1 -0
- package/dist/schedule-TLYT5UXM.js +66 -0
- package/dist/schedule-TLYT5UXM.js.map +1 -0
- package/dist/scheduled-agents-GIVKWTXX.js +49 -0
- package/dist/scheduled-agents-GIVKWTXX.js.map +1 -0
- package/dist/schema-MZTVCNP4.js +63 -0
- package/dist/schema-MZTVCNP4.js.map +1 -0
- package/dist/schema-RYTVKPLZ.js +132 -0
- package/dist/schema-RYTVKPLZ.js.map +1 -0
- package/dist/scrape-T3DA7ER7.js +2241 -0
- package/dist/scrape-T3DA7ER7.js.map +1 -0
- package/dist/screenshot-EIGC6SZB.js +102 -0
- package/dist/screenshot-EIGC6SZB.js.map +1 -0
- package/dist/search-2SVUDZIX.js +224 -0
- package/dist/search-2SVUDZIX.js.map +1 -0
- package/dist/search-34NFJ5F6.js +26 -0
- package/dist/search-34NFJ5F6.js.map +1 -0
- package/dist/search-AOFAN5NB.js +174 -0
- package/dist/search-AOFAN5NB.js.map +1 -0
- package/dist/search-BWE3OPOY.js +91 -0
- package/dist/search-BWE3OPOY.js.map +1 -0
- package/dist/search-EYYAOZND.js +92 -0
- package/dist/search-EYYAOZND.js.map +1 -0
- package/dist/search-copy-VKQ2OOBM.js +168 -0
- package/dist/search-copy-VKQ2OOBM.js.map +1 -0
- package/dist/seeds-HQYSVFIX.js +101 -0
- package/dist/seeds-HQYSVFIX.js.map +1 -0
- package/dist/select-HJMOAWAU.js +94 -0
- package/dist/select-HJMOAWAU.js.map +1 -0
- package/dist/sends-I7VQFE4S.js +309 -0
- package/dist/sends-I7VQFE4S.js.map +1 -0
- package/dist/sequences-JHSEJJGN.js +146 -0
- package/dist/sequences-JHSEJJGN.js.map +1 -0
- package/dist/set-prompt-TSS33JQZ.js +185 -0
- package/dist/set-prompt-TSS33JQZ.js.map +1 -0
- package/dist/setup-links-IW4BUANK.js +141 -0
- package/dist/setup-links-IW4BUANK.js.map +1 -0
- package/dist/{shared-J7DQZ2ED.js → shared-AT3FXPAG.js} +8 -6
- package/dist/shared-AT3FXPAG.js.map +1 -0
- package/dist/shopify-RQKO5TMR.js +3819 -0
- package/dist/shopify-RQKO5TMR.js.map +1 -0
- package/dist/site-3NU2BDAR.js +177 -0
- package/dist/site-3NU2BDAR.js.map +1 -0
- package/dist/sitemaps-FG37N5EB.js +87 -0
- package/dist/sitemaps-FG37N5EB.js.map +1 -0
- package/dist/sites-FIXK4Y3O.js +101 -0
- package/dist/sites-FIXK4Y3O.js.map +1 -0
- package/dist/skills-OKVCVQVD.js +47 -0
- package/dist/skills-OKVCVQVD.js.map +1 -0
- package/dist/sources-SEODRUIC.js +30 -0
- package/dist/sources-SEODRUIC.js.map +1 -0
- package/dist/sources-Z6BGTBGO.js +421 -0
- package/dist/sources-Z6BGTBGO.js.map +1 -0
- package/dist/stale-SWPDWXG7.js +63 -0
- package/dist/stale-SWPDWXG7.js.map +1 -0
- package/dist/stats-ZWZ7BAHV.js +34 -0
- package/dist/stats-ZWZ7BAHV.js.map +1 -0
- package/dist/status-7Y7UNSO6.js +62 -0
- package/dist/status-7Y7UNSO6.js.map +1 -0
- package/dist/sticker-FLRZM3BI.js +94 -0
- package/dist/sticker-FLRZM3BI.js.map +1 -0
- package/dist/stock-2CSMWRWV.js +179 -0
- package/dist/stock-2CSMWRWV.js.map +1 -0
- package/dist/studio-TTTR6N7D.js +49 -0
- package/dist/studio-TTTR6N7D.js.map +1 -0
- package/dist/sync-FH773IFH.js +54 -0
- package/dist/sync-FH773IFH.js.map +1 -0
- package/dist/sync-G5CS2RYV.js +54 -0
- package/dist/sync-G5CS2RYV.js.map +1 -0
- package/dist/sync-UADA6M33.js +265 -0
- package/dist/sync-UADA6M33.js.map +1 -0
- package/dist/sync-definition-77KLGPMA.js +52 -0
- package/dist/sync-definition-77KLGPMA.js.map +1 -0
- package/dist/tag-manager-NK3ZHSJB.js +43 -0
- package/dist/tag-manager-NK3ZHSJB.js.map +1 -0
- package/dist/tags-ANGHHLAC.js +20 -0
- package/dist/tags-ANGHHLAC.js.map +1 -0
- package/dist/tags-DKPUSQTJ.js +20 -0
- package/dist/tags-DKPUSQTJ.js.map +1 -0
- package/dist/tags-HSCV4ZAQ.js +20 -0
- package/dist/tags-HSCV4ZAQ.js.map +1 -0
- package/dist/tags-J3RMQEQM.js +26 -0
- package/dist/tags-J3RMQEQM.js.map +1 -0
- package/dist/tags-VZGTR3VJ.js +224 -0
- package/dist/tags-VZGTR3VJ.js.map +1 -0
- package/dist/targeting-constants-ZGBX3VWU.js +118 -0
- package/dist/targeting-constants-ZGBX3VWU.js.map +1 -0
- package/dist/targeting-criteria-BSG3CLHU.js +113 -0
- package/dist/targeting-criteria-BSG3CLHU.js.map +1 -0
- package/dist/targets-DVOAFYZQ.js +102 -0
- package/dist/targets-DVOAFYZQ.js.map +1 -0
- package/dist/templates-KJ5O44FF.js +178 -0
- package/dist/templates-KJ5O44FF.js.map +1 -0
- package/dist/testimonials-NB7V3DUO.js +32 -0
- package/dist/testimonials-NB7V3DUO.js.map +1 -0
- package/dist/themes-3RV3HNNE.js +94 -0
- package/dist/themes-3RV3HNNE.js.map +1 -0
- package/dist/top-companies-KRB3OZOT.js +108 -0
- package/dist/top-companies-KRB3OZOT.js.map +1 -0
- package/dist/translate-5FP32BIA.js +598 -0
- package/dist/translate-5FP32BIA.js.map +1 -0
- package/dist/triggers-EURHTCYC.js +141 -0
- package/dist/triggers-EURHTCYC.js.map +1 -0
- package/dist/tweets-X64YDEAA.js +123 -0
- package/dist/tweets-X64YDEAA.js.map +1 -0
- package/dist/unfollow-PIONCSBL.js +46 -0
- package/dist/unfollow-PIONCSBL.js.map +1 -0
- package/dist/unlink-HVVTZ3MB.js +67 -0
- package/dist/unlink-HVVTZ3MB.js.map +1 -0
- package/dist/unstage-BJJ5M7MK.js +95 -0
- package/dist/unstage-BJJ5M7MK.js.map +1 -0
- package/dist/unstage-Y7ZE3NUJ.js +84 -0
- package/dist/unstage-Y7ZE3NUJ.js.map +1 -0
- package/dist/update-3IP7FB6Y.js +98 -0
- package/dist/update-3IP7FB6Y.js.map +1 -0
- package/dist/update-CSDSK5NO.js +63 -0
- package/dist/update-CSDSK5NO.js.map +1 -0
- package/dist/update-FGJXVDB7.js +142 -0
- package/dist/update-FGJXVDB7.js.map +1 -0
- package/dist/update-MF7LY2OT.js +155 -0
- package/dist/update-MF7LY2OT.js.map +1 -0
- package/dist/upload-DDPI7KJV.js +126 -0
- package/dist/upload-DDPI7KJV.js.map +1 -0
- package/dist/upload-IWFYKD7A.js +150 -0
- package/dist/upload-IWFYKD7A.js.map +1 -0
- package/dist/upscale-EYCEYRWE.js +109 -0
- package/dist/upscale-EYCEYRWE.js.map +1 -0
- package/dist/url-options-RA3XISLN.js +130 -0
- package/dist/url-options-RA3XISLN.js.map +1 -0
- package/dist/url-params-SN4APXCK.js +98 -0
- package/dist/url-params-SN4APXCK.js.map +1 -0
- package/dist/use-E2TA2K6J.js +95 -0
- package/dist/use-E2TA2K6J.js.map +1 -0
- package/dist/validate-W52JOEXI.js +88 -0
- package/dist/validate-W52JOEXI.js.map +1 -0
- package/dist/variant-ETHB6XUM.js +338 -0
- package/dist/variant-ETHB6XUM.js.map +1 -0
- package/dist/videos-653WAFPG.js +39 -0
- package/dist/videos-653WAFPG.js.map +1 -0
- package/dist/view-BVEZRRV2.js +121 -0
- package/dist/view-BVEZRRV2.js.map +1 -0
- package/dist/viewer-check-W4ICSBHO.js +68 -0
- package/dist/viewer-check-W4ICSBHO.js.map +1 -0
- package/dist/web-JWIGFGIU.js +140 -0
- package/dist/web-JWIGFGIU.js.map +1 -0
- package/dist/winners-MJDKCGEZ.js +113 -0
- package/dist/winners-MJDKCGEZ.js.map +1 -0
- package/dist/winning-ads-O3IMUGGO.js +84 -0
- package/dist/winning-ads-O3IMUGGO.js.map +1 -0
- package/dist/write-commands-DA6FIFAO.js +737 -0
- package/dist/write-commands-DA6FIFAO.js.map +1 -0
- package/dist/write-commands-EMN2WENA.js +1015 -0
- package/dist/write-commands-EMN2WENA.js.map +1 -0
- package/dist/write-commands-KTPISQRE.js +206 -0
- package/dist/write-commands-KTPISQRE.js.map +1 -0
- package/dist/write-commands-QBGIWU27.js +713 -0
- package/dist/write-commands-QBGIWU27.js.map +1 -0
- package/dist/x-BT3SNCTU.js +47 -0
- package/dist/x-BT3SNCTU.js.map +1 -0
- package/package.json +9 -2
- package/dist/chunk-CHJOTJTZ.js +0 -9989
- package/dist/chunk-CHJOTJTZ.js.map +0 -1
- package/dist/chunk-HJEMOSPH.js +0 -1292
- package/dist/chunk-HJEMOSPH.js.map +0 -1
- package/dist/chunk-MF7YA62W.js.map +0 -1
- package/dist/chunk-VLUGGVJL.js.map +0 -1
- package/dist/chunk-VZEDAFAR.js.map +0 -1
- package/dist/chunk-XHC4LMK4.js.map +0 -1
- package/dist/client-GR6YL3YX.js +0 -17
- package/dist/output-NMQXZF3Z.js +0 -18
- /package/dist/{client-GR6YL3YX.js.map → chunk-YQSBHWOI.js.map} +0 -0
- /package/dist/{env-4P5HOGNA.js.map → client-EURRWXPW.js.map} +0 -0
- /package/dist/{output-NMQXZF3Z.js.map → connect-4YXFMXYX.js.map} +0 -0
- /package/dist/{shared-J7DQZ2ED.js.map → customers-7E4HBSEY.js.map} +0 -0
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import {
|
|
2
|
+
flowsDir,
|
|
3
|
+
walkNodes
|
|
4
|
+
} from "./chunk-O6UM5WWH.js";
|
|
5
|
+
|
|
6
|
+
// src/commands/flows/value-expression.ts
|
|
7
|
+
import { existsSync, readFileSync } from "fs";
|
|
8
|
+
import { join } from "path";
|
|
9
|
+
var PREFIXES = ["field", "tracking", "global", "code"];
|
|
10
|
+
function splitParts(raw) {
|
|
11
|
+
const parts = [];
|
|
12
|
+
let current = "";
|
|
13
|
+
let inQuotes = false;
|
|
14
|
+
for (let i = 0; i < raw.length; i++) {
|
|
15
|
+
const char = raw[i];
|
|
16
|
+
if (char === '"') {
|
|
17
|
+
inQuotes = !inQuotes;
|
|
18
|
+
current += char;
|
|
19
|
+
} else if (char === "+" && !inQuotes) {
|
|
20
|
+
parts.push(current);
|
|
21
|
+
current = "";
|
|
22
|
+
} else {
|
|
23
|
+
current += char;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
parts.push(current);
|
|
27
|
+
if (inQuotes) {
|
|
28
|
+
throw new MappingError(`Unclosed quote in value \`${raw}\`.`, 'A literal is written "like this".');
|
|
29
|
+
}
|
|
30
|
+
return parts.map((part) => part.trim()).filter((part) => part.length > 0);
|
|
31
|
+
}
|
|
32
|
+
var TRANSFORM_REFUSAL = "A value cannot run code. Map the field as it is (firstname=full_name), or split it in the step with a codeExecution that exposes first_name and last_name and map code:first_name.";
|
|
33
|
+
var METHOD_CALL = /\.\s*[A-Za-z_$][\w$]*\s*\(/;
|
|
34
|
+
var TRAILING_INDEX = /\[[^\]]*\]$/;
|
|
35
|
+
function mentionPart(inner) {
|
|
36
|
+
if (inner.startsWith("tracking.")) return { kind: "tracking", name: inner.slice("tracking.".length) };
|
|
37
|
+
if (inner.startsWith("global.")) return { kind: "global", name: inner.slice("global.".length) };
|
|
38
|
+
return referencePart(inner);
|
|
39
|
+
}
|
|
40
|
+
function referencePart(ref) {
|
|
41
|
+
return /\.codeExecution\.[^.]+$/.test(ref) ? { kind: "code", ref } : { kind: "field", ref };
|
|
42
|
+
}
|
|
43
|
+
function parsePart(part) {
|
|
44
|
+
if (part.startsWith('"') && part.endsWith('"') && part.length >= 2) {
|
|
45
|
+
return { kind: "text", text: part.slice(1, -1) };
|
|
46
|
+
}
|
|
47
|
+
if (METHOD_CALL.test(part) || TRAILING_INDEX.test(part)) {
|
|
48
|
+
throw new MappingError(TRANSFORM_REFUSAL);
|
|
49
|
+
}
|
|
50
|
+
if (part.startsWith("{{")) {
|
|
51
|
+
const close = part.indexOf("}}");
|
|
52
|
+
if (close < 0) {
|
|
53
|
+
throw new MappingError(
|
|
54
|
+
`Unclosed \`{{\` in value \`${part}\`.`,
|
|
55
|
+
"A mention is written {{<stepId>.customForm.<field>}}."
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
if (part.slice(close + 2).trim()) throw new MappingError(TRANSFORM_REFUSAL);
|
|
59
|
+
return mentionPart(part.slice(2, close).trim());
|
|
60
|
+
}
|
|
61
|
+
const colon = part.indexOf(":");
|
|
62
|
+
if (colon <= 0) return referencePart(part);
|
|
63
|
+
const prefix = part.slice(0, colon);
|
|
64
|
+
const rest = part.slice(colon + 1).trim();
|
|
65
|
+
if (!PREFIXES.includes(prefix)) {
|
|
66
|
+
throw new MappingError(
|
|
67
|
+
`\`${prefix}:\` is not a value kind.`,
|
|
68
|
+
`Use one of ${PREFIXES.map((candidate) => `${candidate}:`).join(" ")}, a bare form field name, or a "quoted literal".`
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
if (!rest) throw new MappingError(`\`${part}\` names no ${prefix}.`);
|
|
72
|
+
switch (prefix) {
|
|
73
|
+
case "tracking":
|
|
74
|
+
return { kind: "tracking", name: rest.replace(/^tracking\./, "") };
|
|
75
|
+
case "global":
|
|
76
|
+
return { kind: "global", name: rest };
|
|
77
|
+
case "code":
|
|
78
|
+
return { kind: "code", ref: rest };
|
|
79
|
+
default:
|
|
80
|
+
return { kind: "field", ref: rest };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function parseValueExpression(raw) {
|
|
84
|
+
const parts = splitParts(raw);
|
|
85
|
+
if (parts.length === 0) {
|
|
86
|
+
throw new MappingError("A --map needs a value on the right of the `=`.");
|
|
87
|
+
}
|
|
88
|
+
return parts.map(parsePart);
|
|
89
|
+
}
|
|
90
|
+
function trackingFieldIds() {
|
|
91
|
+
const path = join(flowsDir(), "..", "tracking.ts");
|
|
92
|
+
if (!existsSync(path)) return null;
|
|
93
|
+
try {
|
|
94
|
+
const source = readFileSync(path, "utf-8");
|
|
95
|
+
const block = source.match(/TRACKING_FIELD_IDS\s*=\s*\[([\s\S]*?)\]\s*as const/)?.[1];
|
|
96
|
+
if (!block) return null;
|
|
97
|
+
const ids = [...block.matchAll(/"(tracking\.[a-z0-9_]+)"/g)].map((match) => match[1]);
|
|
98
|
+
return ids.length > 0 ? new Set(ids) : null;
|
|
99
|
+
} catch {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function externalOf(node) {
|
|
104
|
+
const nodeData = node.nodeData ?? {};
|
|
105
|
+
return nodeData.form?.external ?? {};
|
|
106
|
+
}
|
|
107
|
+
function fieldOwners(tree) {
|
|
108
|
+
return walkNodes(tree).flatMap((node) => {
|
|
109
|
+
const external = externalOf(node);
|
|
110
|
+
if (!Array.isArray(external.fields)) return [];
|
|
111
|
+
return [
|
|
112
|
+
{
|
|
113
|
+
id: String(node.id ?? ""),
|
|
114
|
+
name: typeof node.name === "string" && node.name ? node.name : "Form",
|
|
115
|
+
fields: external.fields.map((field) => field?.fieldName).filter((name) => typeof name === "string")
|
|
116
|
+
}
|
|
117
|
+
];
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function splitRef(ref, segment) {
|
|
121
|
+
const marker = `.${segment}.`;
|
|
122
|
+
const at = ref.lastIndexOf(marker);
|
|
123
|
+
if (at > 0 && !ref.slice(at + marker.length).includes(".")) {
|
|
124
|
+
return { step: ref.slice(0, at), name: ref.slice(at + marker.length) };
|
|
125
|
+
}
|
|
126
|
+
const dot = ref.lastIndexOf(".");
|
|
127
|
+
if (dot <= 0) return { name: ref };
|
|
128
|
+
return { step: ref.slice(0, dot), name: ref.slice(dot + 1) };
|
|
129
|
+
}
|
|
130
|
+
function mention(id, label) {
|
|
131
|
+
return { type: "VariablesMention", attrs: { id, label, mentionSuggestionChar: "{{" } };
|
|
132
|
+
}
|
|
133
|
+
function titleize(value) {
|
|
134
|
+
return value.split(/[_-]+/).filter(Boolean).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
135
|
+
}
|
|
136
|
+
function resolveField(tree, ref) {
|
|
137
|
+
const { step, name } = splitRef(ref, "customForm");
|
|
138
|
+
const owners = fieldOwners(tree);
|
|
139
|
+
const inventory = owners.map((owner2) => ` ${owner2.name} (${owner2.id}): ${owner2.fields.join(", ") || "(no fields)"}`).join("\n");
|
|
140
|
+
const candidates = owners.filter(
|
|
141
|
+
(owner2) => owner2.fields.includes(name) && (!step || owner2.name === step || owner2.id === step)
|
|
142
|
+
);
|
|
143
|
+
if (candidates.length === 0) {
|
|
144
|
+
throw new MappingError(`Form field "${ref}" does not exist in this form.`, inventory);
|
|
145
|
+
}
|
|
146
|
+
if (candidates.length > 1) {
|
|
147
|
+
throw new MappingError(
|
|
148
|
+
`Form field "${name}" exists on ${candidates.length} steps \u2014 say which: field:<step>.${name}`,
|
|
149
|
+
candidates.map((owner2) => ` field:${owner2.name}.${name}`).join("\n")
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
const owner = candidates[0];
|
|
153
|
+
return mention(`${owner.id}.customForm.${name}`, `${owner.name} => ${titleize(name)}`);
|
|
154
|
+
}
|
|
155
|
+
function resolveTracking(name) {
|
|
156
|
+
const id = `tracking.${name}`;
|
|
157
|
+
const known = trackingFieldIds();
|
|
158
|
+
if (known && !known.has(id)) {
|
|
159
|
+
const near = [...known].filter((candidate) => candidate.includes(name.split("_")[0] ?? name)).slice(0, 8);
|
|
160
|
+
throw new MappingError(
|
|
161
|
+
`\`${id}\` is not a tracking variable.`,
|
|
162
|
+
near.length > 0 ? `Close matches: ${near.join(", ")}` : "See references/autofill-and-variables.md \xA7 Built-in Tracking Variables."
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
return mention(id, id);
|
|
166
|
+
}
|
|
167
|
+
function resolveGlobal(tree, name) {
|
|
168
|
+
const globals = tree.globalVariables ?? [];
|
|
169
|
+
const match = globals.find((variable) => variable?.name === name || variable?.id === name);
|
|
170
|
+
if (!match) {
|
|
171
|
+
throw new MappingError(
|
|
172
|
+
`No global variable named "${name}" on this form.`,
|
|
173
|
+
globals.length > 0 ? `Defined: ${globals.map((variable) => String(variable.name)).join(", ")}` : "This form defines none. Globals live on the first node only \u2014 see references/autofill-and-variables.md \xA7 Global Variables."
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
const id = `global.${String(match.id)}`;
|
|
177
|
+
return mention(id, id);
|
|
178
|
+
}
|
|
179
|
+
function resolveCode(tree, ref) {
|
|
180
|
+
const { step, name } = splitRef(ref, "codeExecution");
|
|
181
|
+
const owners = walkNodes(tree).flatMap((node) => {
|
|
182
|
+
const exposed = externalOf(node).codeExecution?.exposedValues ?? [];
|
|
183
|
+
const names = exposed.map((value) => value?.name).filter((value) => typeof value === "string");
|
|
184
|
+
return names.length > 0 ? [{ id: String(node.id ?? ""), name: String(node.name ?? "step"), names }] : [];
|
|
185
|
+
});
|
|
186
|
+
const candidates = owners.filter(
|
|
187
|
+
(owner2) => owner2.names.includes(name) && (!step || owner2.name === step || owner2.id === step)
|
|
188
|
+
);
|
|
189
|
+
if (candidates.length !== 1) {
|
|
190
|
+
throw new MappingError(
|
|
191
|
+
candidates.length === 0 ? `No codeExecution exposes "${ref}" on this form.` : `"${name}" is exposed by ${candidates.length} steps \u2014 say which: code:<step>.${name}`,
|
|
192
|
+
owners.length > 0 ? owners.map((owner2) => ` ${owner2.name} (${owner2.id}): ${owner2.names.join(", ")}`).join("\n") : "No step on this form exposes any codeExecution value."
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
const owner = candidates[0];
|
|
196
|
+
return mention(`${owner.id}.codeExecution.${name}`, `${owner.name} => ${titleize(name)}`);
|
|
197
|
+
}
|
|
198
|
+
function buildValueDoc(tree, expression) {
|
|
199
|
+
const parts = parseValueExpression(expression);
|
|
200
|
+
const content = parts.map((part) => {
|
|
201
|
+
switch (part.kind) {
|
|
202
|
+
case "text":
|
|
203
|
+
return { type: "text", text: part.text };
|
|
204
|
+
case "tracking":
|
|
205
|
+
return resolveTracking(part.name);
|
|
206
|
+
case "global":
|
|
207
|
+
return resolveGlobal(tree, part.name);
|
|
208
|
+
case "code":
|
|
209
|
+
return resolveCode(tree, part.ref);
|
|
210
|
+
default:
|
|
211
|
+
return resolveField(tree, part.ref);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
const single = content.length === 1 && parts[0]?.kind !== "text";
|
|
215
|
+
return {
|
|
216
|
+
type: "doc",
|
|
217
|
+
content: [{ type: "paragraph", content: single ? [...content, { type: "text", text: " " }] : content }]
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// src/commands/flows/mapping.ts
|
|
222
|
+
var MappingError = class extends Error {
|
|
223
|
+
fix;
|
|
224
|
+
constructor(message, fix) {
|
|
225
|
+
super(message);
|
|
226
|
+
this.name = "MappingError";
|
|
227
|
+
this.fix = fix;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
var PAYLOAD = (key) => ({ kind: "list", key, addressedBy: "key" });
|
|
231
|
+
var META_MATCHING = ["em", "fn", "ln", "ph", "external_id", "ge", "db", "ct", "st", "zp", "country"];
|
|
232
|
+
var ADS_MATCHING = [
|
|
233
|
+
"email",
|
|
234
|
+
"phone_number",
|
|
235
|
+
"first_name",
|
|
236
|
+
"last_name",
|
|
237
|
+
"street",
|
|
238
|
+
"city",
|
|
239
|
+
"region",
|
|
240
|
+
"postal_code",
|
|
241
|
+
"country"
|
|
242
|
+
];
|
|
243
|
+
var MAPPING_SLOTS = {
|
|
244
|
+
shopifyCustomer: [
|
|
245
|
+
{ kind: "record", key: "customer", allowed: ["email", "phone", "acceptsEmailMarketing", "acceptsSmsMarketing"] }
|
|
246
|
+
],
|
|
247
|
+
googleSpreadsheet: [{ kind: "list", key: "columnMapping", addressedBy: "column" }],
|
|
248
|
+
hubspotForm: [
|
|
249
|
+
{
|
|
250
|
+
kind: "list",
|
|
251
|
+
key: "fieldMapping",
|
|
252
|
+
addressedBy: "fieldName",
|
|
253
|
+
needsFieldType: true,
|
|
254
|
+
fieldTypeSource: "Pass --hubspot-form <formGuid> and this command reads every property's type off the form itself \u2014 the guid is the `formGuid` in the `destination` request_flow_input returned. `baker hubspot forms view <formGuid>` prints the same list if you want to see it."
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
pipedrive: [
|
|
258
|
+
{
|
|
259
|
+
kind: "list",
|
|
260
|
+
key: "fieldMapping",
|
|
261
|
+
addressedBy: "fieldKey",
|
|
262
|
+
entities: ["person", "organization", "lead"],
|
|
263
|
+
needsFieldType: true,
|
|
264
|
+
needsIsCustom: true
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
goHighlevelContact: [
|
|
268
|
+
{
|
|
269
|
+
kind: "list",
|
|
270
|
+
key: "fieldMapping",
|
|
271
|
+
addressedBy: "fieldKey",
|
|
272
|
+
entities: ["business", "contact", "opportunity"],
|
|
273
|
+
needsFieldType: true,
|
|
274
|
+
needsIsCustom: true
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
crmble: [
|
|
278
|
+
{ kind: "list", key: "fieldMapping", addressedBy: "fieldId", entities: ["contact", "lead"], needsFieldType: true }
|
|
279
|
+
],
|
|
280
|
+
email: [{ ...PAYLOAD("fields"), under: "body" }],
|
|
281
|
+
zapier: [PAYLOAD("payloadKeys")],
|
|
282
|
+
httpWebhook: [PAYLOAD("payloadKeys")],
|
|
283
|
+
googleTagManager: [PAYLOAD("dataLayerParams")],
|
|
284
|
+
googleAnalytics: [PAYLOAD("eventParams")],
|
|
285
|
+
posthog: [PAYLOAD("eventParams")],
|
|
286
|
+
amplitude: [PAYLOAD("eventProperties")],
|
|
287
|
+
hubspot: [PAYLOAD("eventProperties")],
|
|
288
|
+
vwo: [PAYLOAD("eventProperties")],
|
|
289
|
+
code: [PAYLOAD("eventProperties")],
|
|
290
|
+
datafast: [PAYLOAD("goalParams")],
|
|
291
|
+
meta: [PAYLOAD("eventParams"), { kind: "record", key: "advancedMatching", allowed: META_MATCHING }],
|
|
292
|
+
chatgptAds: [
|
|
293
|
+
PAYLOAD("eventParams"),
|
|
294
|
+
{
|
|
295
|
+
kind: "record",
|
|
296
|
+
key: "advancedMatching",
|
|
297
|
+
allowed: ["em", "ph", "fn", "ln", "external_id", "ct", "st", "zp", "country"]
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
tiktok: [
|
|
301
|
+
PAYLOAD("eventParams"),
|
|
302
|
+
{ kind: "record", key: "identify", allowed: ["email", "phone_number", "external_id"] }
|
|
303
|
+
],
|
|
304
|
+
pinterest: [PAYLOAD("eventParams"), { kind: "record", key: "enhancedMatching", allowed: ["em", "hashed_maids"] }],
|
|
305
|
+
googleAds: [
|
|
306
|
+
{ kind: "record", key: "enhancedConversions", allowed: ADS_MATCHING },
|
|
307
|
+
{ kind: "scalar", keys: ["value", "currency", "transactionId"] }
|
|
308
|
+
],
|
|
309
|
+
linkedinInsightTag: [
|
|
310
|
+
{ kind: "record", key: "userMatching", allowed: ["em", "fn", "ln", "title", "companyName", "country"] },
|
|
311
|
+
{ kind: "scalar", keys: ["value", "currency"] }
|
|
312
|
+
],
|
|
313
|
+
twitterAds: [
|
|
314
|
+
{ kind: "record", key: "userMatching", allowed: ["em", "ph"] },
|
|
315
|
+
{ kind: "scalar", keys: ["value", "currency"] }
|
|
316
|
+
]
|
|
317
|
+
};
|
|
318
|
+
var UNMAPPABLE = {
|
|
319
|
+
hotjar: "A Hotjar event carries only its name.",
|
|
320
|
+
clarity: "A Clarity custom tag carries only its name."
|
|
321
|
+
};
|
|
322
|
+
function slotName(shape) {
|
|
323
|
+
if (shape.kind === "scalar") return shape.keys.join("/");
|
|
324
|
+
if (shape.kind === "list" && shape.under) return `${shape.under}.${shape.key}`;
|
|
325
|
+
return shape.key;
|
|
326
|
+
}
|
|
327
|
+
function shapeFor(type, into) {
|
|
328
|
+
const slots = MAPPING_SLOTS[type];
|
|
329
|
+
if (!slots) {
|
|
330
|
+
const why = UNMAPPABLE[type];
|
|
331
|
+
throw new MappingError(
|
|
332
|
+
`Side effect "${type}" has no mappable field.`,
|
|
333
|
+
why ?? `"${type}" is not a side-effect type this workspace's flow engine defines.`
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
if (!into) return slots[0];
|
|
337
|
+
const chosen = slots.find(
|
|
338
|
+
(slot) => slot.kind === "scalar" ? slot.keys.includes(into) || into === "scalar" : slot.key === into || slotName(slot) === into
|
|
339
|
+
);
|
|
340
|
+
if (!chosen) {
|
|
341
|
+
throw new MappingError(
|
|
342
|
+
`"${into}" is not a mappable slot on a ${type} side effect.`,
|
|
343
|
+
`Slots on ${type}: ${slots.map(slotName).join(", ")}`
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
return chosen;
|
|
347
|
+
}
|
|
348
|
+
function namesComeFromAccount(shape) {
|
|
349
|
+
return shape.kind === "list" && shape.addressedBy !== "key";
|
|
350
|
+
}
|
|
351
|
+
function describeSlots(type) {
|
|
352
|
+
return (MAPPING_SLOTS[type] ?? []).map((shape) => {
|
|
353
|
+
if (shape.kind === "record") {
|
|
354
|
+
return {
|
|
355
|
+
slot: shape.key,
|
|
356
|
+
addressedBy: "one of a closed set",
|
|
357
|
+
keysFrom: "closed",
|
|
358
|
+
keys: shape.allowed,
|
|
359
|
+
note: `${type} defines these names; any other is refused.`
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
if (shape.kind === "scalar") {
|
|
363
|
+
return {
|
|
364
|
+
slot: shape.keys.join("/"),
|
|
365
|
+
addressedBy: "the field's own name",
|
|
366
|
+
keysFrom: "closed",
|
|
367
|
+
keys: shape.keys,
|
|
368
|
+
note: "Each is a single value on the side effect, mapped like any other."
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
if (shape.addressedBy === "key") {
|
|
372
|
+
return {
|
|
373
|
+
slot: slotName(shape),
|
|
374
|
+
addressedBy: "key",
|
|
375
|
+
keysFrom: "yours",
|
|
376
|
+
note: "You name these \u2014 they are what the receiving system expects. Ask the user if you do not know them."
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
return {
|
|
380
|
+
slot: slotName(shape),
|
|
381
|
+
addressedBy: shape.addressedBy,
|
|
382
|
+
keysFrom: "account",
|
|
383
|
+
note: "These live in the connected account. Read them off the request_flow_input result; they cannot be guessed.",
|
|
384
|
+
...shape.needsFieldType ? { fieldTypes: shape.fieldTypeSource ?? FIELD_TYPE_FROM_INPUT } : {}
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
var FIELD_TYPE_FROM_INPUT = "Each mapping stores a field type. They come back from request_flow_input with the field list \u2014 write one on the LEFT: <field>:<fieldType>=<value>.";
|
|
389
|
+
function otherSlots(type, used) {
|
|
390
|
+
return (MAPPING_SLOTS[type] ?? []).filter((slot) => slot !== used).map(slotName);
|
|
391
|
+
}
|
|
392
|
+
function parseMapSpec(raw) {
|
|
393
|
+
const eq = raw.indexOf("=");
|
|
394
|
+
if (eq <= 0 || eq === raw.length - 1) {
|
|
395
|
+
throw new MappingError(
|
|
396
|
+
`--map "${raw}" must be <destField>[:<fieldType>]=<value>`,
|
|
397
|
+
'Value: a form field (`nombre`), `tracking:utm_source`, `global:Name`, `code:name`, a "literal", or those joined with `+`.'
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
const left = raw.slice(0, eq).trim();
|
|
401
|
+
const expression = raw.slice(eq + 1).trim();
|
|
402
|
+
const colon = left.indexOf(":");
|
|
403
|
+
const destField = (colon > 0 ? left.slice(0, colon) : left).trim();
|
|
404
|
+
const fieldType = colon > 0 ? left.slice(colon + 1).trim() : "";
|
|
405
|
+
if (!destField) throw new MappingError(`--map "${raw}" names no destination field.`);
|
|
406
|
+
return { raw, destField, fieldType: fieldType || void 0, expression };
|
|
407
|
+
}
|
|
408
|
+
function sheetEntry(spec, value) {
|
|
409
|
+
if (!/^[A-Z]{1,3}$/.test(spec.destField)) {
|
|
410
|
+
throw new MappingError(
|
|
411
|
+
`--map "${spec.raw}": a Google Sheet is addressed by COLUMN, so the left side must be a column letter (A, B, \u2026 AA), got "${spec.destField}".`,
|
|
412
|
+
"Read the real destination back from the configured side effect first \u2014 a column letter is a guess until a spreadsheet is picked."
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
return { column: spec.destField, value };
|
|
416
|
+
}
|
|
417
|
+
function destinationField(spec, options) {
|
|
418
|
+
const catalog = options.destinationFields;
|
|
419
|
+
if (!catalog) return void 0;
|
|
420
|
+
const match = catalog.get(spec.destField);
|
|
421
|
+
if (match) return match;
|
|
422
|
+
throw new MappingError(
|
|
423
|
+
`--map "${spec.raw}": the destination has no field called "${spec.destField}".`,
|
|
424
|
+
`Fields on it: ${[...catalog.keys()].join(", ") || "(none)"}`
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
function fieldTypeFor(type, shape, spec, known) {
|
|
428
|
+
const resolved = spec.fieldType ?? known?.fieldType;
|
|
429
|
+
if (resolved) return resolved;
|
|
430
|
+
throw new MappingError(
|
|
431
|
+
`--map "${spec.raw}": ${type} stores a field type per mapping, and "${spec.destField}" has none \u2014 write it on the left: <field>:<fieldType>=<value>.`,
|
|
432
|
+
shape.fieldTypeSource ?? FIELD_TYPE_FROM_INPUT
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
function assertCrmOptions(type, shape, options) {
|
|
436
|
+
const entities = shape.entities;
|
|
437
|
+
if (entities) {
|
|
438
|
+
if (!options.entity) {
|
|
439
|
+
throw new MappingError(
|
|
440
|
+
`${type} addresses a specific object, so --entity is required (one of: ${entities.join(", ")}).`,
|
|
441
|
+
"Which object a value lands on is a destination-side fact \u2014 read it back from the configured side effect, do not assume."
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
if (!entities.includes(options.entity)) {
|
|
445
|
+
throw new MappingError(
|
|
446
|
+
`--entity "${options.entity}" is not valid for ${type} \u2014 expected one of: ${entities.join(", ")}.`
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (shape.needsIsCustom && options.isCustomField === void 0) {
|
|
451
|
+
throw new MappingError(
|
|
452
|
+
`${type} looks a key up differently for custom and standard fields, so pass --custom or --standard.`,
|
|
453
|
+
"Mapping a custom field as standard (or the reverse) is accepted and then dropped. The field list from request_flow_input says which each one is."
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
function buildEntry(type, shape, spec, value, options) {
|
|
458
|
+
if (shape.key === "columnMapping") {
|
|
459
|
+
return sheetEntry(spec, value);
|
|
460
|
+
}
|
|
461
|
+
if (shape.addressedBy === "key") {
|
|
462
|
+
if (spec.fieldType) {
|
|
463
|
+
throw new MappingError(
|
|
464
|
+
`--map "${spec.raw}": a ${type} ${shape.key} entry is just a name and a value \u2014 it takes no field type.`,
|
|
465
|
+
`Write it as ${spec.destField}=${spec.expression}`
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
return { key: spec.destField, value };
|
|
469
|
+
}
|
|
470
|
+
const known = destinationField(spec, options);
|
|
471
|
+
if (type === "hubspotForm") {
|
|
472
|
+
return {
|
|
473
|
+
objectTypeId: options.objectType ?? known?.objectTypeId ?? "0-1",
|
|
474
|
+
fieldType: fieldTypeFor(type, shape, spec, known),
|
|
475
|
+
fieldName: spec.destField,
|
|
476
|
+
value
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
assertCrmOptions(type, shape, options);
|
|
480
|
+
return {
|
|
481
|
+
entityType: options.entity,
|
|
482
|
+
fieldType: fieldTypeFor(type, shape, spec, known),
|
|
483
|
+
...shape.needsIsCustom ? { isCustomField: options.isCustomField } : {},
|
|
484
|
+
[shape.addressedBy]: spec.destField,
|
|
485
|
+
value
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
function listPatch(shape, sideEffect, entries) {
|
|
489
|
+
if (!shape.under) return { [shape.key]: entries };
|
|
490
|
+
const owner = sideEffect[shape.under] ?? {};
|
|
491
|
+
return { [shape.under]: { ...owner, [shape.key]: entries } };
|
|
492
|
+
}
|
|
493
|
+
function existingEntries(shape, sideEffect) {
|
|
494
|
+
const owner = shape.under ? sideEffect[shape.under] : sideEffect;
|
|
495
|
+
if (!owner || typeof owner !== "object") return [];
|
|
496
|
+
const list = owner[shape.key];
|
|
497
|
+
if (!Array.isArray(list)) return [];
|
|
498
|
+
return list.filter((entry) => Boolean(entry) && typeof entry === "object");
|
|
499
|
+
}
|
|
500
|
+
function mergeEntries(shape, existing, incoming) {
|
|
501
|
+
const address = (entry) => {
|
|
502
|
+
const value = entry[shape.addressedBy];
|
|
503
|
+
return typeof value === "string" ? value : null;
|
|
504
|
+
};
|
|
505
|
+
const entries = [...existing];
|
|
506
|
+
const overwritten = /* @__PURE__ */ new Set();
|
|
507
|
+
for (const entry of incoming) {
|
|
508
|
+
const name = address(entry);
|
|
509
|
+
const at = name === null ? -1 : entries.findIndex((candidate) => address(candidate) === name);
|
|
510
|
+
if (at === -1) {
|
|
511
|
+
entries.push(entry);
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
entries[at] = entry;
|
|
515
|
+
if (at < existing.length) overwritten.add(at);
|
|
516
|
+
}
|
|
517
|
+
const kept = existing.length - overwritten.size;
|
|
518
|
+
return { entries, written: entries.length - kept, kept };
|
|
519
|
+
}
|
|
520
|
+
function assertMappableOwner(type, shape, sideEffect) {
|
|
521
|
+
if (shape.under !== "body") return;
|
|
522
|
+
const format = (sideEffect.body ?? {}).format;
|
|
523
|
+
if (format !== void 0 && format !== "json") {
|
|
524
|
+
throw new MappingError(
|
|
525
|
+
`This ${type} side effect sends \`body.format: "${String(format)}"\`, which is one written message rather than named keys.`,
|
|
526
|
+
'Set `body` to `{ "format": "json", "fields": [] }` first if you want mapped keys, or write the message in `body.content` and map nothing.'
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
function buildList(tree, type, shape, sideEffect, specs, options) {
|
|
531
|
+
assertMappableOwner(type, shape, sideEffect);
|
|
532
|
+
const incoming = specs.map((raw) => {
|
|
533
|
+
const spec = parseMapSpec(raw);
|
|
534
|
+
return buildEntry(type, shape, spec, buildValueDoc(tree, spec.expression), options);
|
|
535
|
+
});
|
|
536
|
+
const present = options.replace === true ? [] : existingEntries(shape, sideEffect);
|
|
537
|
+
const { kept: existing, dropped } = pruneAbsent(shape, present, options);
|
|
538
|
+
const { entries, written, kept } = mergeEntries(shape, existing, incoming);
|
|
539
|
+
return { key: slotName(shape), count: written, kept, dropped, patch: listPatch(shape, sideEffect, entries) };
|
|
540
|
+
}
|
|
541
|
+
function pruneAbsent(shape, existing, options) {
|
|
542
|
+
if (options.pruneMissing !== true) return { kept: existing, dropped: [] };
|
|
543
|
+
const catalog = options.destinationFields;
|
|
544
|
+
if (!catalog) {
|
|
545
|
+
throw new MappingError(
|
|
546
|
+
"--prune-missing needs the destination's own field list, and it could not be read.",
|
|
547
|
+
"Name the destination so its fields can be read \u2014 today that is --hubspot-form <formGuid>, the only destination whose catalog this command can fetch. `baker flows show <slug>` names the side effect and returns the request_flow_input call that carries the guid."
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
const kept = [];
|
|
551
|
+
const dropped = [];
|
|
552
|
+
for (const entry of existing) {
|
|
553
|
+
const name = entry[shape.addressedBy];
|
|
554
|
+
if (typeof name !== "string" || catalog.has(name)) {
|
|
555
|
+
kept.push(entry);
|
|
556
|
+
continue;
|
|
557
|
+
}
|
|
558
|
+
dropped.push(name);
|
|
559
|
+
}
|
|
560
|
+
return { kept, dropped };
|
|
561
|
+
}
|
|
562
|
+
function buildRecord(tree, type, shape, sideEffect, specs, options) {
|
|
563
|
+
const existing = options.replace === true ? {} : sideEffect[shape.key] ?? {};
|
|
564
|
+
const record = Object.fromEntries(shape.allowed.map((slot) => [slot, existing[slot] ?? null]));
|
|
565
|
+
const filledBefore = shape.allowed.filter((slot) => record[slot] != null);
|
|
566
|
+
const written = /* @__PURE__ */ new Set();
|
|
567
|
+
for (const raw of specs) {
|
|
568
|
+
const spec = parseMapSpec(raw);
|
|
569
|
+
if (!shape.allowed.includes(spec.destField)) {
|
|
570
|
+
throw new MappingError(
|
|
571
|
+
`"${spec.destField}" is not a slot in ${shape.key} on a ${type} side effect.`,
|
|
572
|
+
`${shape.key} slots: ${shape.allowed.join(", ")}`
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
if (spec.fieldType) {
|
|
576
|
+
throw new MappingError(`--map "${spec.raw}": a ${shape.key} slot takes no field type.`);
|
|
577
|
+
}
|
|
578
|
+
record[spec.destField] = buildValueDoc(tree, spec.expression);
|
|
579
|
+
written.add(spec.destField);
|
|
580
|
+
}
|
|
581
|
+
return {
|
|
582
|
+
key: shape.key,
|
|
583
|
+
count: written.size,
|
|
584
|
+
kept: filledBefore.filter((slot) => !written.has(slot)).length,
|
|
585
|
+
dropped: [],
|
|
586
|
+
patch: { [shape.key]: record }
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
function buildScalar(tree, type, shape, sideEffect, specs, options) {
|
|
590
|
+
const patch = options.replace === true ? Object.fromEntries(shape.keys.map((key) => [key, null])) : {};
|
|
591
|
+
const written = /* @__PURE__ */ new Set();
|
|
592
|
+
for (const raw of specs) {
|
|
593
|
+
const spec = parseMapSpec(raw);
|
|
594
|
+
if (!shape.keys.includes(spec.destField)) {
|
|
595
|
+
throw new MappingError(
|
|
596
|
+
`"${spec.destField}" is not a mappable field on a ${type} side effect.`,
|
|
597
|
+
`Mappable directly: ${shape.keys.join(", ")}`
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
if (spec.fieldType) {
|
|
601
|
+
throw new MappingError(`--map "${spec.raw}": ${spec.destField} takes no field type.`);
|
|
602
|
+
}
|
|
603
|
+
patch[spec.destField] = buildValueDoc(tree, spec.expression);
|
|
604
|
+
written.add(spec.destField);
|
|
605
|
+
}
|
|
606
|
+
const kept = options.replace === true ? 0 : shape.keys.filter((key) => !written.has(key) && sideEffect[key] != null).length;
|
|
607
|
+
return { key: shape.keys.join("/"), count: written.size, kept, dropped: [], patch };
|
|
608
|
+
}
|
|
609
|
+
function buildFieldMapping(tree, sideEffect, specs, options = {}) {
|
|
610
|
+
const type = String(sideEffect.type ?? "");
|
|
611
|
+
const shape = shapeFor(type, options.into);
|
|
612
|
+
if (shape.kind === "record") return buildRecord(tree, type, shape, sideEffect, specs, options);
|
|
613
|
+
if (shape.kind === "scalar") return buildScalar(tree, type, shape, sideEffect, specs, options);
|
|
614
|
+
return buildList(tree, type, shape, sideEffect, specs, options);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export {
|
|
618
|
+
MappingError,
|
|
619
|
+
shapeFor,
|
|
620
|
+
namesComeFromAccount,
|
|
621
|
+
describeSlots,
|
|
622
|
+
otherSlots,
|
|
623
|
+
buildFieldMapping
|
|
624
|
+
};
|
|
625
|
+
//# sourceMappingURL=chunk-3LYMIKKN.js.map
|