@wirecat/hubspot-cli 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +75 -54
- package/contracts/wirecat.json +39 -13
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-XB35QVOK.js +40 -0
- package/dist/bundle/{all-profiles-JVEE4PXX.js → all-profiles-HFVXPMF6.js} +11 -11
- package/dist/bundle/{anthropic-6HT57GNF.js → anthropic-VE6WR6IN.js} +5 -5
- package/dist/bundle/{app-server-FOBFF6G6.js → app-server-GZ4DCQK7.js} +68 -68
- package/dist/bundle/{bun-GW443QB3.js → bun-2DHMKD34.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGIAICDN.js → bun-sqlite-T5XTYL7L.js} +6 -6
- package/dist/bundle/{chunk-FK4LEJZM.js → chunk-24HPBWKZ.js} +63 -4
- package/dist/bundle/{chunk-4OPN3KCN.js → chunk-2I2KBCS6.js} +5 -5
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-2K5BAY32.js} +19 -19
- package/dist/bundle/{chunk-6ULR7N3T.js → chunk-2VUIJ5XB.js} +2 -2
- package/dist/bundle/{chunk-UHHXZKB2.js → chunk-3HS7JTPI.js} +27 -177
- package/dist/bundle/{chunk-3SRGN5MQ.js → chunk-3TLNO3VM.js} +2 -2
- package/dist/bundle/{chunk-ATGD64VO.js → chunk-3W5R3XAH.js} +8 -8
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/{chunk-NL3RKJR6.js → chunk-3YTTWJKL.js} +1 -1
- package/dist/bundle/{chunk-5WKJFMC3.js → chunk-4UEYVM46.js} +4 -4
- package/dist/bundle/{chunk-5G4L6NQJ.js → chunk-5ILCAAY4.js} +35 -35
- package/dist/bundle/{chunk-ETKLP4VE.js → chunk-5IPB5WLB.js} +14 -14
- package/dist/bundle/{chunk-N4EIJ53V.js → chunk-5NIIXJV3.js} +2 -2
- package/dist/bundle/{chunk-QIFCH5DZ.js → chunk-5O5WYSSO.js} +1967 -654
- package/dist/bundle/{chunk-XMWMA2N5.js → chunk-5VTKBGPW.js} +90 -33
- package/dist/bundle/{chunk-M25KVDHA.js → chunk-5WDNG4QE.js} +7 -7
- package/dist/bundle/{chunk-WATDMTDC.js → chunk-67YPTVGP.js} +3 -3
- package/dist/bundle/{chunk-3MUHCLRY.js → chunk-6DABKZYH.js} +143 -8
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-5KLNBGPU.js → chunk-AKSWXRIU.js} +1 -1
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-HPRKSL5S.js → chunk-BM5F2ZNI.js} +2 -2
- package/dist/bundle/{chunk-FOLKK6FW.js → chunk-BU5CEMUH.js} +20 -14
- package/dist/bundle/{chunk-DBPFHJXX.js → chunk-CTN4DW2F.js} +4 -4
- package/dist/bundle/{chunk-QJHRRJKD.js → chunk-CU76ZACK.js} +3 -3
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-DIKUPU3T.js} +3 -3
- package/dist/bundle/{chunk-JWO3PB5Z.js → chunk-E27NRLJZ.js} +18 -18
- package/dist/bundle/{chunk-EU7AVWSX.js → chunk-EB53G4HO.js} +2 -2
- package/dist/bundle/{chunk-GJSHLF43.js → chunk-EJZIEBAR.js} +8 -8
- package/dist/bundle/{chunk-HQYJ66ZX.js → chunk-G6LDK6DJ.js} +18 -8
- package/dist/bundle/{chunk-VDAYIXV4.js → chunk-GEJI27GN.js} +6 -6
- package/dist/bundle/{chunk-XJVFXHDI.js → chunk-GHXTNKX2.js} +2 -2
- package/dist/bundle/{chunk-W5X37TBC.js → chunk-GR4HZBWO.js} +2 -2
- package/dist/bundle/{chunk-WBUVNKHJ.js → chunk-GWXTVO43.js} +7 -7
- package/dist/bundle/{chunk-2Q2XIXDL.js → chunk-H4W2OO35.js} +1 -1
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-H5HBZCEJ.js} +21 -8
- package/dist/bundle/{chunk-JKNUCEII.js → chunk-HX2BE7DO.js} +1 -1
- package/dist/bundle/{chunk-PQUZ2YDC.js → chunk-HYDXA624.js} +6 -6
- package/dist/bundle/{chunk-Z3YOKGVZ.js → chunk-HZIGGAC7.js} +2 -2
- package/dist/bundle/{chunk-AT43MYQL.js → chunk-I75ON7VM.js} +8 -8
- package/dist/bundle/{chunk-PKFLSX5F.js → chunk-ID4GJFE7.js} +8 -8
- package/dist/bundle/{chunk-A6PVEUGN.js → chunk-J2SCELII.js} +17 -17
- package/dist/bundle/{chunk-PMJCZIV4.js → chunk-J4FXBF44.js} +1 -1
- package/dist/bundle/{chunk-DG4RBKIV.js → chunk-J76CMNWQ.js} +1 -1
- package/dist/bundle/{chunk-MQACXJLG.js → chunk-JDCFHZNU.js} +10 -10
- package/dist/bundle/{chunk-K4DWBOO6.js → chunk-JFLKTYH5.js} +6 -6
- package/dist/bundle/{chunk-LS4S7PAP.js → chunk-K4Y2ZWOO.js} +3 -3
- package/dist/bundle/{chunk-5ZVYIA56.js → chunk-KDW7B7AR.js} +5 -5
- package/dist/bundle/{chunk-BXZRSXBL.js → chunk-KKMOKSS5.js} +3 -3
- package/dist/bundle/{chunk-EBJYK7UM.js → chunk-LHY5XGIR.js} +78 -63
- package/dist/bundle/{chunk-V23OHBGM.js → chunk-LTU4BQ4S.js} +3 -3
- package/dist/bundle/{chunk-LX7QMRRG.js → chunk-M3LRSN6J.js} +13 -13
- package/dist/bundle/{chunk-UIWWAT3C.js → chunk-MJ24YFXZ.js} +7 -7
- package/dist/bundle/{chunk-YYYRE4AV.js → chunk-MSQGZHKM.js} +32 -28
- package/dist/bundle/{chunk-6NUXFVJQ.js → chunk-NQOQG7L3.js} +1 -1
- package/dist/bundle/{chunk-WLFYEAZ6.js → chunk-PDVMYIBP.js} +1516 -745
- package/dist/bundle/{chunk-QODPEZC5.js → chunk-PR7ZDMGF.js} +10 -3
- package/dist/bundle/{chunk-2BCWK5BF.js → chunk-PZ3QJDTD.js} +8 -8
- package/dist/bundle/{chunk-OLDIP4CV.js → chunk-Q6AC7WLD.js} +3 -3
- package/dist/bundle/{chunk-X5U7GLHD.js → chunk-QH47G73D.js} +16 -3
- package/dist/bundle/{chunk-RFGIUCKU.js → chunk-QK5HQUHB.js} +3 -3
- package/dist/bundle/{chunk-3MPMYAII.js → chunk-R26OEZOL.js} +1 -1
- package/dist/bundle/{chunk-T3GZKV5A.js → chunk-RLK2EGQD.js} +21 -15
- package/dist/bundle/{chunk-Z4PY5BDP.js → chunk-RLNPTES2.js} +4 -4
- package/dist/bundle/{chunk-XCDRFC6G.js → chunk-T4MZJMEJ.js} +17 -17
- package/dist/bundle/{chunk-TAF4PKDS.js → chunk-TAPQZYXY.js} +1 -1
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-E33KM3DB.js → chunk-THGAVPRA.js} +11 -11
- package/dist/bundle/{chunk-XDDTJYGA.js → chunk-TRLV5NWZ.js} +2477 -2140
- package/dist/bundle/{chunk-5OBVICFK.js → chunk-TT75CEYZ.js} +22 -1
- package/dist/bundle/{chunk-7OJ43BAH.js → chunk-TXO4CJW3.js} +7 -7
- package/dist/bundle/{chunk-F4ZLRS4B.js → chunk-UCGZRZJA.js} +1 -1
- package/dist/bundle/{chunk-NLZADZ4F.js → chunk-UVGJL753.js} +61 -61
- package/dist/bundle/{chunk-VMF2UIQI.js → chunk-UZ2CL435.js} +3 -4
- package/dist/bundle/{chunk-IED6MKPU.js → chunk-V7N2K5OT.js} +33 -30
- package/dist/bundle/{chunk-QV4GDVBN.js → chunk-VR2CJFVL.js} +8 -8
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-F3HJ2E3P.js → chunk-WE4JSHIG.js} +6 -6
- package/dist/bundle/{chunk-FWW2CUXH.js → chunk-X2QRCFGJ.js} +4 -4
- package/dist/bundle/{chunk-V2B2OWTC.js → chunk-XRFYVVFU.js} +2 -2
- package/dist/bundle/{chunk-Q7DIEU6L.js → chunk-YDG5FIQB.js} +7 -9
- package/dist/bundle/{chunk-GOOXUCJW.js → chunk-YIH2A2PQ.js} +2 -2
- package/dist/bundle/{chunk-HM72O37C.js → chunk-ZERQSELP.js} +207 -163
- package/dist/bundle/{chunk-QNQ4V4UT.js → chunk-ZKTYTOF4.js} +8 -8
- package/dist/bundle/command-contract-5FXCYQUS.js +40 -0
- package/dist/bundle/{command-server-entry-OJQ55UA2.js → command-server-entry-H6IAJNOF.js} +28 -28
- package/dist/bundle/{decode-CDQDRPRJ.js → decode-TR2EC46M.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-B2EP6DDT.js} +8 -8
- package/dist/bundle/{echarts-GJ5JJG2A.js → echarts-7OP7I5B2.js} +2 -2
- package/dist/bundle/{embed-BUQXGMKR.js → embed-FLGS4LN7.js} +6 -6
- package/dist/bundle/{embedder-FCX6LE4O.js → embedder-JIXQXCP3.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-AOACEURF.js} +2 -2
- package/dist/bundle/{first-run-RPYEXXQK.js → first-run-XJ2NWIK2.js} +12 -12
- package/dist/bundle/first-screen-U73G5CMM.js +40 -0
- package/dist/bundle/hubspot.js +27 -25
- package/dist/bundle/{instructions-LPVTPERS.js → instructions-PYCYV6QE.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-IHTM5H5B.js +25 -0
- package/dist/bundle/{meeting-model-TRGBEWCY.js → meeting-model-2PA5WJY5.js} +11 -11
- package/dist/bundle/{meeting-semantic-RSF5KNKD.js → meeting-semantic-5IH63QFV.js} +6 -6
- package/dist/bundle/{node-UAT3EIAP.js → node-6GTNIVBM.js} +2 -2
- package/dist/bundle/{node-sqlite-3HKDQNFD.js → node-sqlite-FBCEHPNT.js} +7 -7
- package/dist/bundle/{oauth-DYW2NSZP.js → oauth-BFP4SCL5.js} +7 -7
- package/dist/bundle/{open-KBRXJ5BC.js → open-MLU4MHGO.js} +5 -5
- package/dist/bundle/{openai-YNCLRTSK.js → openai-R7WJI6SO.js} +15 -15
- package/dist/bundle/{process-63BB7LKP.js → process-NMNQLJHZ.js} +1 -1
- package/dist/bundle/{program-VX52OB3O.js → program-Z735HPFG.js} +517 -343
- package/dist/bundle/{prompt-TWLJ3M2O.js → prompt-A6RM55Q4.js} +5 -5
- package/dist/bundle/{recognize-GQ6DLGE7.js → recognize-ORRDV45M.js} +4 -4
- package/dist/bundle/{remote-RKNSF3TT.js → remote-UF3WSC4X.js} +9 -9
- package/dist/bundle/{rerank-H4HSGQUJ.js → rerank-ZSJORUGH.js} +7 -7
- package/dist/bundle/{schemas-LDK7O6VW.js → schemas-EXBNVPMI.js} +1 -1
- package/dist/bundle/{serve-4ZNIAL7H.js → serve-4KBJ6SIA.js} +9 -9
- package/dist/bundle/{server-4G4QB3QN.js → server-IFK4S6LJ.js} +60 -60
- package/dist/bundle/server-MNUAZWTN.js +86 -0
- package/dist/bundle/source-PBCQAG4C.js +426 -0
- package/dist/bundle/{sqlite-runtime-C2JYC7JF.js → sqlite-runtime-XPDUWOPG.js} +6 -6
- package/dist/bundle/{state-3KDXCXHG.js → state-4M26H7NL.js} +6 -6
- package/dist/bundle/{store-LXLG5HTS.js → store-3W4ZOOIB.js} +28 -24
- package/dist/bundle/store-CDY2PW6J.js +34 -0
- package/dist/bundle/{store-J5FQBZYR.js → store-ICTY3RIF.js} +22 -22
- package/dist/bundle/store-maintenance-command-Y7TC3I43.js +73 -0
- package/dist/bundle/surface-4LNDJZD2.js +72 -0
- package/dist/bundle/writer-WGHWQTC2.js +86 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +31 -78
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +4 -31
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +19 -12
- package/dist/config.js.map +1 -1
- package/dist/crm/activities.d.ts +6 -1
- package/dist/crm/activities.d.ts.map +1 -1
- package/dist/crm/activities.js +36 -0
- package/dist/crm/activities.js.map +1 -1
- package/dist/crm/writer.d.ts +1 -1
- package/dist/crm/writer.d.ts.map +1 -1
- package/dist/crm/writer.js +69 -1
- package/dist/crm/writer.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/hubspot-cli/SKILL.md +10 -5
- package/skills/hubspot-cli/references/api/api-basic.md +2 -2
- package/skills/hubspot-cli/references/api/api-batch.md +2 -2
- package/dist/bundle/agent-NST4YXJR.js +0 -40
- package/dist/bundle/command-contract-LYX2QNIA.js +0 -40
- package/dist/bundle/first-screen-Y4EH3HZS.js +0 -40
- package/dist/bundle/meeting-combined-FEEVVUGC.js +0 -25
- package/dist/bundle/server-3IYIZEEQ.js +0 -86
- package/dist/bundle/source-2UCNCCO7.js +0 -917
- package/dist/bundle/store-2MNUHHZC.js +0 -32
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +0 -73
- package/dist/bundle/surface-ZTZANYKC.js +0 -72
- package/dist/bundle/writer-X7PGBLDH.js +0 -86
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
accountDetails
|
|
5
|
+
} from "./chunk-GR4HZBWO.js";
|
|
6
|
+
import {
|
|
7
|
+
OBJECTS,
|
|
8
|
+
OVERLAP_MS,
|
|
9
|
+
SEARCH_PAGE,
|
|
10
|
+
SERVICE,
|
|
11
|
+
associationsOf,
|
|
12
|
+
modifiedSince,
|
|
13
|
+
nextOf,
|
|
14
|
+
nextSpot,
|
|
15
|
+
propertiesOf,
|
|
16
|
+
readActivities,
|
|
17
|
+
resultsOf,
|
|
18
|
+
search,
|
|
19
|
+
segment,
|
|
20
|
+
toDeal,
|
|
21
|
+
toField,
|
|
22
|
+
toLead,
|
|
23
|
+
toOrganization,
|
|
24
|
+
toPerson,
|
|
25
|
+
toPipeline,
|
|
26
|
+
toUser,
|
|
27
|
+
withAssociations
|
|
28
|
+
} from "./chunk-TRLV5NWZ.js";
|
|
29
|
+
import "./chunk-3YTTWJKL.js";
|
|
30
|
+
import "./chunk-UZ2CL435.js";
|
|
31
|
+
import "./chunk-MSQGZHKM.js";
|
|
32
|
+
import "./chunk-WE4JSHIG.js";
|
|
33
|
+
import "./chunk-3W5R3XAH.js";
|
|
34
|
+
import "./chunk-TAPQZYXY.js";
|
|
35
|
+
import "./chunk-LHY5XGIR.js";
|
|
36
|
+
import "./chunk-3HS7JTPI.js";
|
|
37
|
+
import "./chunk-VR2CJFVL.js";
|
|
38
|
+
import "./chunk-TXO4CJW3.js";
|
|
39
|
+
import "./chunk-5IPB5WLB.js";
|
|
40
|
+
import "./chunk-EB53G4HO.js";
|
|
41
|
+
import "./chunk-X2QRCFGJ.js";
|
|
42
|
+
import "./chunk-KDW7B7AR.js";
|
|
43
|
+
import "./chunk-ID4GJFE7.js";
|
|
44
|
+
import {
|
|
45
|
+
crmWindowOf,
|
|
46
|
+
values_exports,
|
|
47
|
+
walk
|
|
48
|
+
} from "./chunk-5O5WYSSO.js";
|
|
49
|
+
import "./chunk-M3LRSN6J.js";
|
|
50
|
+
import "./chunk-HX2BE7DO.js";
|
|
51
|
+
import "./chunk-TT75CEYZ.js";
|
|
52
|
+
import "./chunk-DIKUPU3T.js";
|
|
53
|
+
import "./chunk-3WG4MTQI.js";
|
|
54
|
+
import "./chunk-BU5CEMUH.js";
|
|
55
|
+
import "./chunk-QK5HQUHB.js";
|
|
56
|
+
import "./chunk-GEJI27GN.js";
|
|
57
|
+
import "./chunk-THGAVPRA.js";
|
|
58
|
+
import "./chunk-Q6AC7WLD.js";
|
|
59
|
+
import "./chunk-RLNPTES2.js";
|
|
60
|
+
import "./chunk-QH47G73D.js";
|
|
61
|
+
import "./chunk-2I2KBCS6.js";
|
|
62
|
+
import "./chunk-ZERQSELP.js";
|
|
63
|
+
import "./chunk-I75ON7VM.js";
|
|
64
|
+
import "./chunk-67YPTVGP.js";
|
|
65
|
+
import "./chunk-PZ3QJDTD.js";
|
|
66
|
+
import "./chunk-J4FXBF44.js";
|
|
67
|
+
import "./chunk-T4MZJMEJ.js";
|
|
68
|
+
import "./chunk-KKMOKSS5.js";
|
|
69
|
+
import "./chunk-PDVMYIBP.js";
|
|
70
|
+
import "./chunk-ZKTYTOF4.js";
|
|
71
|
+
import "./chunk-CU76ZACK.js";
|
|
72
|
+
import "./chunk-GWXTVO43.js";
|
|
73
|
+
import "./chunk-V7N2K5OT.js";
|
|
74
|
+
import "./chunk-HZIGGAC7.js";
|
|
75
|
+
import "./chunk-JDCFHZNU.js";
|
|
76
|
+
import "./chunk-5WDNG4QE.js";
|
|
77
|
+
import "./chunk-JFLKTYH5.js";
|
|
78
|
+
import "./chunk-CTN4DW2F.js";
|
|
79
|
+
import "./chunk-YDG5FIQB.js";
|
|
80
|
+
import "./chunk-3TLNO3VM.js";
|
|
81
|
+
import "./chunk-EH6ZEJGT.js";
|
|
82
|
+
import "./chunk-6DABKZYH.js";
|
|
83
|
+
import "./chunk-EJZIEBAR.js";
|
|
84
|
+
import "./chunk-745FMNI5.js";
|
|
85
|
+
import "./chunk-G6LDK6DJ.js";
|
|
86
|
+
import "./chunk-E27NRLJZ.js";
|
|
87
|
+
import "./chunk-PR7ZDMGF.js";
|
|
88
|
+
import "./chunk-AKSWXRIU.js";
|
|
89
|
+
import "./chunk-RLK2EGQD.js";
|
|
90
|
+
import "./chunk-R26OEZOL.js";
|
|
91
|
+
import "./chunk-YIH2A2PQ.js";
|
|
92
|
+
import "./chunk-UVGJL753.js";
|
|
93
|
+
import "./chunk-TCSVW7BA.js";
|
|
94
|
+
import "./chunk-MJ24YFXZ.js";
|
|
95
|
+
import "./chunk-D72URWJE.js";
|
|
96
|
+
import "./chunk-LTU4BQ4S.js";
|
|
97
|
+
import "./chunk-BM5F2ZNI.js";
|
|
98
|
+
import "./chunk-2VUIJ5XB.js";
|
|
99
|
+
import "./chunk-HYDXA624.js";
|
|
100
|
+
import "./chunk-H4W2OO35.js";
|
|
101
|
+
import "./chunk-2K5BAY32.js";
|
|
102
|
+
import "./chunk-H5HBZCEJ.js";
|
|
103
|
+
import "./chunk-S4UUN6LD.js";
|
|
104
|
+
import "./chunk-Y5E2WNWB.js";
|
|
105
|
+
import {
|
|
106
|
+
CliError,
|
|
107
|
+
isCliError
|
|
108
|
+
} from "./chunk-AP3CWDRK.js";
|
|
109
|
+
import "./chunk-J76CMNWQ.js";
|
|
110
|
+
import {
|
|
111
|
+
__name
|
|
112
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
113
|
+
|
|
114
|
+
// dist/crm/source.js
|
|
115
|
+
var { id, text } = values_exports;
|
|
116
|
+
var LIST_PAGE = 100;
|
|
117
|
+
var PIPELINES = { deal: "deals", lead: "leads" };
|
|
118
|
+
var scoped = /* @__PURE__ */ __name((error, scope) => isCliError(error) && error.code === "permission_error" && typeof error.details.scope !== "string" ? new CliError(error.code, error.message, { ...error.details, scope }) : error, "scoped");
|
|
119
|
+
var refused = /* @__PURE__ */ __name((error) => isCliError(error) && error.code === "permission_error", "refused");
|
|
120
|
+
var unseen = /* @__PURE__ */ __name((error) => isCliError(error) && (error.code === "not_found" || refused(error)), "unseen");
|
|
121
|
+
var pageOf = /* @__PURE__ */ __name((page, now) => {
|
|
122
|
+
const cut = (page ?? "").lastIndexOf("@");
|
|
123
|
+
const head = page?.slice(0, cut) ?? "";
|
|
124
|
+
const started = Number(page?.slice(cut + 1));
|
|
125
|
+
if (cut < 0 || !Number.isSafeInteger(started))
|
|
126
|
+
return { after: void 0, spot: void 0, started: now };
|
|
127
|
+
if (head.startsWith("l"))
|
|
128
|
+
return { after: head.slice(1) || void 0, spot: void 0, started };
|
|
129
|
+
const found = /^s(-?\d+)\.(\d+)$/.exec(head);
|
|
130
|
+
if (!found)
|
|
131
|
+
return { after: void 0, spot: void 0, started: now };
|
|
132
|
+
return { after: void 0, spot: { from: Number(found[1]), offset: Number(found[2]) }, started };
|
|
133
|
+
}, "pageOf");
|
|
134
|
+
var asked = /* @__PURE__ */ __name((raw, types) => {
|
|
135
|
+
const held = typeof raw.associations === "object" && raw.associations !== null ? raw.associations : {};
|
|
136
|
+
return {
|
|
137
|
+
...raw,
|
|
138
|
+
associations: { ...Object.fromEntries(types.map((type) => [type, { results: [] }])), ...held }
|
|
139
|
+
};
|
|
140
|
+
}, "asked");
|
|
141
|
+
var liveField = /* @__PURE__ */ __name((kind, field) => ({
|
|
142
|
+
assigned_to: "hubspot_owner_id",
|
|
143
|
+
created_at: OBJECTS[kind].created,
|
|
144
|
+
updated_at: OBJECTS[kind].modified,
|
|
145
|
+
// A company's own `type` property (Prospect, Partner…), as b24 maps `type` to its company type.
|
|
146
|
+
...kind === "organization" ? { type: "type" } : {}
|
|
147
|
+
})[field], "liveField");
|
|
148
|
+
var MAX_PROPERTIES_CHARS = 6e3;
|
|
149
|
+
var fitted = /* @__PURE__ */ __name((own, custom) => {
|
|
150
|
+
const kept = [...own];
|
|
151
|
+
let length = kept.join(",").length;
|
|
152
|
+
const dropped = [];
|
|
153
|
+
for (const name of custom) {
|
|
154
|
+
if (kept.includes(name))
|
|
155
|
+
continue;
|
|
156
|
+
if (length + name.length + 1 > MAX_PROPERTIES_CHARS)
|
|
157
|
+
dropped.push(name);
|
|
158
|
+
else {
|
|
159
|
+
kept.push(name);
|
|
160
|
+
length += name.length + 1;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return { properties: kept.join(","), dropped };
|
|
164
|
+
}, "fitted");
|
|
165
|
+
var OPERATORS = {
|
|
166
|
+
"=": "EQ",
|
|
167
|
+
"!=": "NEQ",
|
|
168
|
+
">": "GT",
|
|
169
|
+
">=": "GTE",
|
|
170
|
+
"<": "LT",
|
|
171
|
+
"<=": "LTE",
|
|
172
|
+
in: "IN"
|
|
173
|
+
};
|
|
174
|
+
var filtersOf = /* @__PURE__ */ __name((kind, conditions, defined) => conditions.map(({ field, op, value }) => {
|
|
175
|
+
const propertyName = liveField(kind, field) ?? defined.find((one) => one.code === field)?.code;
|
|
176
|
+
if (!propertyName)
|
|
177
|
+
throw new CliError("validation_error", `${SERVICE} cannot filter ${OBJECTS[kind].name} by ${field}`, {
|
|
178
|
+
reason: "query.unsupported-field"
|
|
179
|
+
});
|
|
180
|
+
if (Array.isArray(value))
|
|
181
|
+
return { propertyName, operator: op === "!=" ? "NOT_IN" : "IN", values: value.map(String) };
|
|
182
|
+
return { propertyName, operator: OPERATORS[op], value: String(value) };
|
|
183
|
+
}), "filtersOf");
|
|
184
|
+
var hubspotCrmSource = /* @__PURE__ */ __name((hub, options = {}) => {
|
|
185
|
+
const now = options.now ?? Date.now;
|
|
186
|
+
const listPage = options.page ?? LIST_PAGE;
|
|
187
|
+
const searchPage = options.searchPage ?? SEARCH_PAGE;
|
|
188
|
+
const metered = /* @__PURE__ */ __name((context) => {
|
|
189
|
+
let paid = false;
|
|
190
|
+
const pay = /* @__PURE__ */ __name(() => {
|
|
191
|
+
if (paid)
|
|
192
|
+
context?.spend();
|
|
193
|
+
paid = true;
|
|
194
|
+
}, "pay");
|
|
195
|
+
return {
|
|
196
|
+
get: /* @__PURE__ */ __name((path, query) => {
|
|
197
|
+
pay();
|
|
198
|
+
return hub().get(path, query);
|
|
199
|
+
}, "get"),
|
|
200
|
+
post: /* @__PURE__ */ __name((path, body) => {
|
|
201
|
+
pay();
|
|
202
|
+
return hub().post(path, body);
|
|
203
|
+
}, "post")
|
|
204
|
+
};
|
|
205
|
+
}, "metered");
|
|
206
|
+
const loaded = /* @__PURE__ */ new Map();
|
|
207
|
+
const fields = /* @__PURE__ */ __name((kind, caller) => {
|
|
208
|
+
let found = loaded.get(kind);
|
|
209
|
+
if (!found) {
|
|
210
|
+
found = caller.get(`/crm/properties/2026-03/${OBJECTS[kind].name}`).then((body) => resultsOf(body).flatMap((raw) => toField(raw) ?? [])).catch((error) => {
|
|
211
|
+
if (refused(error))
|
|
212
|
+
return [];
|
|
213
|
+
loaded.delete(kind);
|
|
214
|
+
throw error;
|
|
215
|
+
});
|
|
216
|
+
loaded.set(kind, found);
|
|
217
|
+
}
|
|
218
|
+
return found;
|
|
219
|
+
}, "fields");
|
|
220
|
+
let currency;
|
|
221
|
+
const currencyOf = /* @__PURE__ */ __name((caller) => {
|
|
222
|
+
currency ??= accountDetails(caller).then((details) => details.companyCurrency ?? null, (error) => {
|
|
223
|
+
currency = void 0;
|
|
224
|
+
throw error;
|
|
225
|
+
});
|
|
226
|
+
return currency;
|
|
227
|
+
}, "currencyOf");
|
|
228
|
+
const mapped = /* @__PURE__ */ __name(async (kind, rows, defined, caller) => {
|
|
229
|
+
if (kind === "deal") {
|
|
230
|
+
const bare = rows.some((raw) => {
|
|
231
|
+
const properties = propertiesOf(raw);
|
|
232
|
+
return text(properties.amount) !== null && text(properties.deal_currency_code) === null;
|
|
233
|
+
});
|
|
234
|
+
const fallback = bare ? await currencyOf(caller) : null;
|
|
235
|
+
return rows.map((raw) => toDeal(raw, defined, fallback));
|
|
236
|
+
}
|
|
237
|
+
const map = { lead: toLead, person: toPerson, organization: toOrganization }[kind];
|
|
238
|
+
return rows.map((raw) => map(raw, defined));
|
|
239
|
+
}, "mapped");
|
|
240
|
+
const synced = /* @__PURE__ */ __name((kind, caller) => kind === "person" ? Promise.resolve([]) : fields(kind, caller), "synced");
|
|
241
|
+
const propertiesFor = /* @__PURE__ */ __name((type, defined) => [
|
|
242
|
+
.../* @__PURE__ */ new Set([...type.properties, ...defined.map(({ code }) => code)])
|
|
243
|
+
], "propertiesFor");
|
|
244
|
+
const associate = /* @__PURE__ */ __name(async (type, rows, caller, types) => {
|
|
245
|
+
let linked = rows;
|
|
246
|
+
const ids = rows.flatMap((raw) => id(raw.id) ?? []);
|
|
247
|
+
for (const to of types)
|
|
248
|
+
linked = withAssociations(linked, to, await associationsOf(caller.post, type.name, to, ids));
|
|
249
|
+
return linked;
|
|
250
|
+
}, "associate");
|
|
251
|
+
const everyLink = /* @__PURE__ */ __name((type) => [...type.associations, ...type.linked], "everyLink");
|
|
252
|
+
const getProperties = /* @__PURE__ */ __name((kind, defined, context) => {
|
|
253
|
+
const { properties, dropped } = fitted(OBJECTS[kind].properties, defined.map(({ code }) => code));
|
|
254
|
+
if (dropped.length)
|
|
255
|
+
context?.gap({
|
|
256
|
+
kind,
|
|
257
|
+
message: `${dropped.length} of the account's own ${OBJECTS[kind].name} properties do not fit one request and were not read`
|
|
258
|
+
});
|
|
259
|
+
return properties;
|
|
260
|
+
}, "getProperties");
|
|
261
|
+
const readChanges = /* @__PURE__ */ __name(async (kind, cursor, page, caller, context) => {
|
|
262
|
+
const type = OBJECTS[kind];
|
|
263
|
+
const since = cursor === null ? null : Date.parse(cursor);
|
|
264
|
+
if (since !== null && Number.isNaN(since))
|
|
265
|
+
return { reset: true };
|
|
266
|
+
const { after, spot: saved, started } = pageOf(page, now());
|
|
267
|
+
const defined = await synced(kind, caller);
|
|
268
|
+
const properties = propertiesFor(type, defined);
|
|
269
|
+
const ended = { hasMore: false, cursor: new Date(started).toISOString() };
|
|
270
|
+
if (since === null) {
|
|
271
|
+
const query = {
|
|
272
|
+
limit: listPage,
|
|
273
|
+
properties: getProperties(kind, defined, context),
|
|
274
|
+
archived: false,
|
|
275
|
+
...type.associations.length ? { associations: type.associations.join(",") } : {},
|
|
276
|
+
...after ? { after } : {}
|
|
277
|
+
};
|
|
278
|
+
const body = await caller.get(`/crm/objects/2026-03/${type.path}`, query);
|
|
279
|
+
const rows2 = await associate(type, resultsOf(body).map((raw) => asked(raw, type.associations)), caller, type.linked);
|
|
280
|
+
const items2 = await mapped(kind, rows2, defined, caller);
|
|
281
|
+
const next2 = nextOf(body);
|
|
282
|
+
return next2 ? { items: items2, hasMore: true, nextCursor: `l${next2}@${started}` } : { items: items2, ...ended };
|
|
283
|
+
}
|
|
284
|
+
const spot = saved ?? { from: since - OVERLAP_MS, offset: 0 };
|
|
285
|
+
const { rows, more } = await search(caller.post, type.path, modifiedSince(type.modified, spot, searchPage, properties));
|
|
286
|
+
const items = await mapped(kind, await associate(type, rows, caller, everyLink(type)), defined, caller);
|
|
287
|
+
if (!more)
|
|
288
|
+
return { items, ...ended };
|
|
289
|
+
const next = nextSpot(spot, rows, type.modified, searchPage);
|
|
290
|
+
if (next === null)
|
|
291
|
+
return { reset: true };
|
|
292
|
+
return { items, hasMore: true, nextCursor: `s${next.from}.${next.offset}@${started}` };
|
|
293
|
+
}, "readChanges");
|
|
294
|
+
const known = /* @__PURE__ */ __name(async (kind, caller) => fields(kind, caller), "known");
|
|
295
|
+
return {
|
|
296
|
+
provider: "hubspot",
|
|
297
|
+
traits: { kinds: ["organization", "person", "deal", "lead"], removedInChanges: false },
|
|
298
|
+
async pipelines(kind, context) {
|
|
299
|
+
try {
|
|
300
|
+
const body = await metered(context).get(`/crm/pipelines/2026-03/${PIPELINES[kind]}`);
|
|
301
|
+
return resultsOf(body).flatMap((raw) => {
|
|
302
|
+
const pipeline = toPipeline(raw, kind, (stage) => context?.gap({
|
|
303
|
+
kind,
|
|
304
|
+
message: `closed lead stage ${stage}: HubSpot gives no outcome; counted as lost`
|
|
305
|
+
}));
|
|
306
|
+
return pipeline ? [pipeline] : [];
|
|
307
|
+
});
|
|
308
|
+
} catch (error) {
|
|
309
|
+
if (kind === "lead" && refused(error)) {
|
|
310
|
+
context?.gap({ kind: "lead", scope: OBJECTS.lead.scope, message: leadsRefused });
|
|
311
|
+
return [];
|
|
312
|
+
}
|
|
313
|
+
throw scoped(error, OBJECTS[kind].scope);
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
async changes(kind, cursor, page, context) {
|
|
317
|
+
try {
|
|
318
|
+
return await readChanges(kind, cursor, page, metered(context), context);
|
|
319
|
+
} catch (error) {
|
|
320
|
+
if (kind === "lead" && refused(error)) {
|
|
321
|
+
context?.gap({ kind: "lead", scope: OBJECTS.lead.scope, message: leadsRefused });
|
|
322
|
+
return { items: [], hasMore: false, cursor: null };
|
|
323
|
+
}
|
|
324
|
+
throw scoped(error, OBJECTS[kind].scope);
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
// Any other refusal fails the pass rather than answer no ids, which would mark every stored row deleted
|
|
328
|
+
// (WC-DATA-7). Leads are the exception: an account without Sales Hub Pro never has any, and core holds back a pass
|
|
329
|
+
// that would delete most of a kind until --rescan.
|
|
330
|
+
async ids(kind, page, context) {
|
|
331
|
+
const type = OBJECTS[kind];
|
|
332
|
+
try {
|
|
333
|
+
const body = await metered(context).get(`/crm/objects/2026-03/${type.path}`, {
|
|
334
|
+
limit: listPage,
|
|
335
|
+
properties: "hs_object_id",
|
|
336
|
+
archived: false,
|
|
337
|
+
...page ? { after: page } : {}
|
|
338
|
+
});
|
|
339
|
+
const items = resultsOf(body).flatMap((raw) => id(raw.id) ?? []);
|
|
340
|
+
const next = nextOf(body);
|
|
341
|
+
return next ? { items, hasMore: true, nextCursor: next } : { items, hasMore: false };
|
|
342
|
+
} catch (error) {
|
|
343
|
+
if (kind === "lead" && refused(error)) {
|
|
344
|
+
context?.gap({ kind: "lead", scope: type.scope, message: leadsRefused });
|
|
345
|
+
return { items: [], hasMore: false };
|
|
346
|
+
}
|
|
347
|
+
throw scoped(error, type.scope);
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
async fields(kind, context) {
|
|
351
|
+
return fields(kind, metered(context));
|
|
352
|
+
},
|
|
353
|
+
// Active owners, then the deactivated ones, which `archived=true` lists alone (owners guide).
|
|
354
|
+
async users(context) {
|
|
355
|
+
const caller = metered(context);
|
|
356
|
+
const users = [];
|
|
357
|
+
for (const archived of [false, true]) {
|
|
358
|
+
let after = null;
|
|
359
|
+
do {
|
|
360
|
+
const body = await caller.get("/crm/owners/2026-03", { limit: LIST_PAGE, archived, ...after ? { after } : {} }).catch((error) => {
|
|
361
|
+
throw scoped(error, "crm.objects.owners.read");
|
|
362
|
+
});
|
|
363
|
+
for (const raw of resultsOf(body)) {
|
|
364
|
+
const user = toUser(raw);
|
|
365
|
+
if (user)
|
|
366
|
+
users.push(user);
|
|
367
|
+
}
|
|
368
|
+
after = nextOf(body);
|
|
369
|
+
} while (after);
|
|
370
|
+
}
|
|
371
|
+
return [...new Map(users.map((user) => [user.externalId, user])).values()];
|
|
372
|
+
},
|
|
373
|
+
async list(kind, query, context) {
|
|
374
|
+
const caller = metered(context);
|
|
375
|
+
const type = OBJECTS[kind];
|
|
376
|
+
const defined = await known(kind, caller);
|
|
377
|
+
const filters = filtersOf(kind, query.conditions, defined);
|
|
378
|
+
const properties = propertiesFor(type, defined);
|
|
379
|
+
const page = await walk(crmWindowOf(query), SEARCH_PAGE, async (offset, limit) => {
|
|
380
|
+
const { rows, more } = await search(caller.post, type.path, {
|
|
381
|
+
filters,
|
|
382
|
+
sort: { propertyName: type.created, direction: "DESCENDING" },
|
|
383
|
+
properties,
|
|
384
|
+
limit,
|
|
385
|
+
offset,
|
|
386
|
+
...query.text ? { query: query.text } : {}
|
|
387
|
+
});
|
|
388
|
+
return { rows: await associate(type, rows, caller, everyLink(type)), more };
|
|
389
|
+
});
|
|
390
|
+
return { items: await mapped(kind, page.items, defined, caller), hasMore: page.hasMore };
|
|
391
|
+
},
|
|
392
|
+
get: /* @__PURE__ */ __name((kind, externalId, context) => record(kind, externalId, context), "get"),
|
|
393
|
+
record,
|
|
394
|
+
activities: /* @__PURE__ */ __name((since, page, context) => readActivities(metered(context), since, page, context, now, { search: searchPage, list: listPage }), "activities")
|
|
395
|
+
};
|
|
396
|
+
async function record(kind, externalId, context) {
|
|
397
|
+
if (!/^\d{1,20}$/.test(externalId))
|
|
398
|
+
return null;
|
|
399
|
+
const caller = metered(context);
|
|
400
|
+
const type = OBJECTS[kind];
|
|
401
|
+
const defined = await fields(kind, caller);
|
|
402
|
+
let body;
|
|
403
|
+
try {
|
|
404
|
+
body = await caller.get(`/crm/objects/2026-03/${type.path}/${segment(externalId)}`, {
|
|
405
|
+
properties: getProperties(kind, defined, context),
|
|
406
|
+
...type.associations.length ? { associations: type.associations.join(",") } : {}
|
|
407
|
+
});
|
|
408
|
+
} catch (error) {
|
|
409
|
+
if (unseen(error))
|
|
410
|
+
return null;
|
|
411
|
+
throw error;
|
|
412
|
+
}
|
|
413
|
+
if (typeof body !== "object" || body === null)
|
|
414
|
+
return null;
|
|
415
|
+
const rows = await associate(type, [asked(body, type.associations)], caller, type.linked);
|
|
416
|
+
const [found] = await mapped(kind, rows, defined, caller);
|
|
417
|
+
return found ?? null;
|
|
418
|
+
}
|
|
419
|
+
__name(record, "record");
|
|
420
|
+
}, "hubspotCrmSource");
|
|
421
|
+
var leadsRefused = "HubSpot refused the leads: they need Sales Hub Professional or Enterprise and the crm.objects.leads.read scope; deals, contacts and companies are copied without them";
|
|
422
|
+
export {
|
|
423
|
+
MAX_PROPERTIES_CHARS,
|
|
424
|
+
fitted,
|
|
425
|
+
hubspotCrmSource
|
|
426
|
+
};
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
ensureSqlite,
|
|
5
5
|
nodeRuntime,
|
|
6
6
|
relay
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-EB53G4HO.js";
|
|
8
|
+
import "./chunk-HYDXA624.js";
|
|
9
|
+
import "./chunk-H4W2OO35.js";
|
|
10
|
+
import "./chunk-2K5BAY32.js";
|
|
11
|
+
import "./chunk-H5HBZCEJ.js";
|
|
12
12
|
import "./chunk-S4UUN6LD.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-AP3CWDRK.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
ensureSqlite,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
readHttpLock,
|
|
13
13
|
readStored,
|
|
14
14
|
signedInClients
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-RLNPTES2.js";
|
|
16
|
+
import "./chunk-QH47G73D.js";
|
|
17
|
+
import "./chunk-J4FXBF44.js";
|
|
18
|
+
import "./chunk-2K5BAY32.js";
|
|
19
|
+
import "./chunk-H5HBZCEJ.js";
|
|
20
20
|
import "./chunk-S4UUN6LD.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-AP3CWDRK.js";
|
|
23
23
|
import "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
export {
|
|
25
25
|
ACCESS_SECONDS,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
snapshotProjectAnnotations,
|
|
9
9
|
storeDamageReport,
|
|
10
10
|
storeHealth
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T4MZJMEJ.js";
|
|
12
12
|
import {
|
|
13
13
|
note
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KKMOKSS5.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDED_KINDS,
|
|
17
17
|
ALWAYS_SHOWN,
|
|
@@ -25,7 +25,9 @@ import {
|
|
|
25
25
|
DECISION_TTL_MS,
|
|
26
26
|
DEFAULT_DECISION_POLICY,
|
|
27
27
|
DEFAULT_OWNER_LANGUAGES,
|
|
28
|
+
DOCUMENT_EVENTS,
|
|
28
29
|
DOCUMENT_KINDS,
|
|
30
|
+
DOCUMENT_REMOVALS,
|
|
29
31
|
DOUBT_REASONS,
|
|
30
32
|
EVENT_FIELDS,
|
|
31
33
|
EVIDENCE_FINDINGS_KIND,
|
|
@@ -97,10 +99,10 @@ import {
|
|
|
97
99
|
validateEvidenceFindings,
|
|
98
100
|
waitingPointer,
|
|
99
101
|
withoutField
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-PDVMYIBP.js";
|
|
103
|
+
import "./chunk-ZKTYTOF4.js";
|
|
104
|
+
import "./chunk-CU76ZACK.js";
|
|
105
|
+
import "./chunk-GWXTVO43.js";
|
|
104
106
|
import {
|
|
105
107
|
CLOSED_STATES,
|
|
106
108
|
FACT_STATUSES,
|
|
@@ -129,40 +131,40 @@ import {
|
|
|
129
131
|
readJournalMark,
|
|
130
132
|
recordDeepCheck,
|
|
131
133
|
reminder
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-
|
|
136
|
-
import "./chunk-
|
|
137
|
-
import "./chunk-5KLNBGPU.js";
|
|
134
|
+
} from "./chunk-V7N2K5OT.js";
|
|
135
|
+
import "./chunk-HZIGGAC7.js";
|
|
136
|
+
import "./chunk-E27NRLJZ.js";
|
|
137
|
+
import "./chunk-PR7ZDMGF.js";
|
|
138
|
+
import "./chunk-AKSWXRIU.js";
|
|
138
139
|
import {
|
|
139
140
|
BUSINESS_KINDS
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-
|
|
141
|
+
} from "./chunk-RLK2EGQD.js";
|
|
142
|
+
import "./chunk-R26OEZOL.js";
|
|
143
|
+
import "./chunk-YIH2A2PQ.js";
|
|
143
144
|
import {
|
|
144
145
|
FACT_TYPES,
|
|
145
146
|
PAYMENT_DIRECTIONS,
|
|
146
147
|
PAYMENT_STATES,
|
|
147
148
|
paymentTitle,
|
|
148
149
|
validatePayment
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-UVGJL753.js";
|
|
151
|
+
import "./chunk-TCSVW7BA.js";
|
|
152
|
+
import "./chunk-MJ24YFXZ.js";
|
|
151
153
|
import {
|
|
152
154
|
storePath
|
|
153
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-2VUIJ5XB.js";
|
|
154
156
|
import {
|
|
155
157
|
openCache
|
|
156
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-HYDXA624.js";
|
|
157
159
|
import {
|
|
158
160
|
PRAGMAS
|
|
159
|
-
} from "./chunk-
|
|
160
|
-
import "./chunk-
|
|
161
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-H4W2OO35.js";
|
|
162
|
+
import "./chunk-2K5BAY32.js";
|
|
163
|
+
import "./chunk-H5HBZCEJ.js";
|
|
162
164
|
import "./chunk-S4UUN6LD.js";
|
|
163
165
|
import "./chunk-Y5E2WNWB.js";
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-
|
|
166
|
+
import "./chunk-AP3CWDRK.js";
|
|
167
|
+
import "./chunk-J76CMNWQ.js";
|
|
166
168
|
import "./chunk-ZVVMGPBJ.js";
|
|
167
169
|
export {
|
|
168
170
|
ADDED_KINDS,
|
|
@@ -179,7 +181,9 @@ export {
|
|
|
179
181
|
DECISION_TTL_MS,
|
|
180
182
|
DEFAULT_DECISION_POLICY,
|
|
181
183
|
DEFAULT_OWNER_LANGUAGES,
|
|
184
|
+
DOCUMENT_EVENTS,
|
|
182
185
|
DOCUMENT_KINDS,
|
|
186
|
+
DOCUMENT_REMOVALS,
|
|
183
187
|
DOUBT_REASONS,
|
|
184
188
|
EVENT_FIELDS,
|
|
185
189
|
EVIDENCE_FINDINGS_KIND,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PROVIDER,
|
|
5
|
+
openHubspotStore
|
|
6
|
+
} from "./chunk-K4Y2ZWOO.js";
|
|
7
|
+
import "./chunk-YDG5FIQB.js";
|
|
8
|
+
import "./chunk-3TLNO3VM.js";
|
|
9
|
+
import "./chunk-EH6ZEJGT.js";
|
|
10
|
+
import "./chunk-6DABKZYH.js";
|
|
11
|
+
import "./chunk-EJZIEBAR.js";
|
|
12
|
+
import "./chunk-G6LDK6DJ.js";
|
|
13
|
+
import "./chunk-E27NRLJZ.js";
|
|
14
|
+
import "./chunk-PR7ZDMGF.js";
|
|
15
|
+
import "./chunk-AKSWXRIU.js";
|
|
16
|
+
import "./chunk-RLK2EGQD.js";
|
|
17
|
+
import "./chunk-R26OEZOL.js";
|
|
18
|
+
import "./chunk-YIH2A2PQ.js";
|
|
19
|
+
import "./chunk-UVGJL753.js";
|
|
20
|
+
import "./chunk-TCSVW7BA.js";
|
|
21
|
+
import "./chunk-MJ24YFXZ.js";
|
|
22
|
+
import "./chunk-LTU4BQ4S.js";
|
|
23
|
+
import "./chunk-BM5F2ZNI.js";
|
|
24
|
+
import "./chunk-2VUIJ5XB.js";
|
|
25
|
+
import "./chunk-2K5BAY32.js";
|
|
26
|
+
import "./chunk-H5HBZCEJ.js";
|
|
27
|
+
import "./chunk-S4UUN6LD.js";
|
|
28
|
+
import "./chunk-Y5E2WNWB.js";
|
|
29
|
+
import "./chunk-AP3CWDRK.js";
|
|
30
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
31
|
+
export {
|
|
32
|
+
PROVIDER,
|
|
33
|
+
openHubspotStore
|
|
34
|
+
};
|
|
@@ -77,32 +77,32 @@ import {
|
|
|
77
77
|
threadConversation,
|
|
78
78
|
titlePart,
|
|
79
79
|
vectorIndexCounts
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-5KLNBGPU.js";
|
|
80
|
+
} from "./chunk-PDVMYIBP.js";
|
|
81
|
+
import "./chunk-ZKTYTOF4.js";
|
|
82
|
+
import "./chunk-CU76ZACK.js";
|
|
83
|
+
import "./chunk-GWXTVO43.js";
|
|
84
|
+
import "./chunk-V7N2K5OT.js";
|
|
85
|
+
import "./chunk-HZIGGAC7.js";
|
|
86
|
+
import "./chunk-E27NRLJZ.js";
|
|
87
|
+
import "./chunk-PR7ZDMGF.js";
|
|
88
|
+
import "./chunk-AKSWXRIU.js";
|
|
90
89
|
import {
|
|
91
90
|
BUSINESS_KINDS
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
99
|
-
import "./chunk-
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
91
|
+
} from "./chunk-RLK2EGQD.js";
|
|
92
|
+
import "./chunk-R26OEZOL.js";
|
|
93
|
+
import "./chunk-YIH2A2PQ.js";
|
|
94
|
+
import "./chunk-UVGJL753.js";
|
|
95
|
+
import "./chunk-TCSVW7BA.js";
|
|
96
|
+
import "./chunk-MJ24YFXZ.js";
|
|
97
|
+
import "./chunk-2VUIJ5XB.js";
|
|
98
|
+
import "./chunk-HYDXA624.js";
|
|
99
|
+
import "./chunk-H4W2OO35.js";
|
|
100
|
+
import "./chunk-2K5BAY32.js";
|
|
101
|
+
import "./chunk-H5HBZCEJ.js";
|
|
102
102
|
import "./chunk-S4UUN6LD.js";
|
|
103
103
|
import "./chunk-Y5E2WNWB.js";
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-AP3CWDRK.js";
|
|
105
|
+
import "./chunk-J76CMNWQ.js";
|
|
106
106
|
import "./chunk-ZVVMGPBJ.js";
|
|
107
107
|
export {
|
|
108
108
|
AGENDA_COLUMNS,
|