@wirecat/hubspot-cli 0.0.0-stage → 0.2.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 +53 -0
- package/LICENSE +204 -0
- package/README.md +280 -2
- package/contracts/wirecat.json +3270 -0
- package/dist/bin/hubspot.d.ts +3 -0
- package/dist/bin/hubspot.d.ts.map +1 -0
- package/dist/bin/hubspot.js +40 -0
- package/dist/bin/hubspot.js.map +1 -0
- package/dist/bundle/all-profiles-64JAUYW4.js +279 -0
- package/dist/bundle/anthropic-VJOS4OUM.js +91 -0
- package/dist/bundle/app-server-GXV2OFML.js +245 -0
- package/dist/bundle/bun-M3J2QTR3.js +169 -0
- package/dist/bundle/bun-sqlite-IX3XYA5F.js +76 -0
- package/dist/bundle/chunk-24ERVFJP.js +73 -0
- package/dist/bundle/chunk-2QZK5BEP.js +392 -0
- package/dist/bundle/chunk-2UOJ7DLZ.js +46 -0
- package/dist/bundle/chunk-2VGD63G6.js +604 -0
- package/dist/bundle/chunk-2VGZRYEH.js +334 -0
- package/dist/bundle/chunk-36ITRDYY.js +63116 -0
- package/dist/bundle/chunk-3WLYWRGG.js +1395 -0
- package/dist/bundle/chunk-43EKCUBJ.js +72 -0
- package/dist/bundle/chunk-4W6BMH45.js +731 -0
- package/dist/bundle/chunk-5A6ZYNAQ.js +2003 -0
- package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
- package/dist/bundle/chunk-5GBUCHRU.js +274 -0
- package/dist/bundle/chunk-5K7QLJMM.js +4072 -0
- package/dist/bundle/chunk-65TWQ7BV.js +54 -0
- package/dist/bundle/chunk-7ELMWE3P.js +12066 -0
- package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
- package/dist/bundle/chunk-B3MANLNK.js +602 -0
- package/dist/bundle/chunk-C32AKHTY.js +2310 -0
- package/dist/bundle/chunk-CLAN3FES.js +1246 -0
- package/dist/bundle/chunk-CWXOXIWS.js +46 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-DB2XKHI4.js +72 -0
- package/dist/bundle/chunk-DBEQI5YM.js +100 -0
- package/dist/bundle/chunk-DFCHHR5M.js +38 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DRWWJLI6.js +188 -0
- package/dist/bundle/chunk-DSP36YHQ.js +29 -0
- package/dist/bundle/chunk-E52JAS35.js +1028 -0
- package/dist/bundle/chunk-E5WLE7BM.js +78 -0
- package/dist/bundle/chunk-ECEZOLOD.js +230 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-FBCCBCFH.js +288 -0
- package/dist/bundle/chunk-FKA7DOCK.js +53 -0
- package/dist/bundle/chunk-FOZYMDRL.js +259 -0
- package/dist/bundle/chunk-FPUGMDJV.js +7 -0
- package/dist/bundle/chunk-FTFV3HFW.js +721 -0
- package/dist/bundle/chunk-GPYCBYX5.js +218 -0
- package/dist/bundle/chunk-H3TNVEQX.js +782 -0
- package/dist/bundle/chunk-HC5ZWE5X.js +193 -0
- package/dist/bundle/chunk-HCAZV5NP.js +95 -0
- package/dist/bundle/chunk-HZRQLAHO.js +16 -0
- package/dist/bundle/chunk-IJADZW42.js +195 -0
- package/dist/bundle/chunk-IMJQRPLN.js +92 -0
- package/dist/bundle/chunk-JLDBMEKZ.js +106 -0
- package/dist/bundle/chunk-LOBVOGOE.js +66 -0
- package/dist/bundle/chunk-LXZ66MCH.js +1328 -0
- package/dist/bundle/chunk-MFNMKHML.js +26462 -0
- package/dist/bundle/chunk-MVA5HVKL.js +1392 -0
- package/dist/bundle/chunk-N2XADGL4.js +76 -0
- package/dist/bundle/chunk-NHHJHXMQ.js +58 -0
- package/dist/bundle/chunk-NUU4WZVL.js +52 -0
- package/dist/bundle/chunk-NWHEHV3K.js +133 -0
- package/dist/bundle/chunk-NXERIDPJ.js +319 -0
- package/dist/bundle/chunk-O3DYRCIT.js +23 -0
- package/dist/bundle/chunk-O55RWNSH.js +161 -0
- package/dist/bundle/chunk-P5BHKKBI.js +206 -0
- package/dist/bundle/chunk-PPHBRESD.js +82 -0
- package/dist/bundle/chunk-PVKF24ZW.js +364 -0
- package/dist/bundle/chunk-Q2OLOMHL.js +4045 -0
- package/dist/bundle/chunk-QGFX5MXL.js +460 -0
- package/dist/bundle/chunk-QJW35N5V.js +761 -0
- package/dist/bundle/chunk-QU25DA5N.js +360 -0
- package/dist/bundle/chunk-RMIYKDUL.js +1068 -0
- package/dist/bundle/chunk-RR5MX5TM.js +142 -0
- package/dist/bundle/chunk-SDQGB4KB.js +185 -0
- package/dist/bundle/chunk-TBJYLC5K.js +2788 -0
- package/dist/bundle/chunk-TI46WQXQ.js +1197 -0
- package/dist/bundle/chunk-TKVL2C3B.js +170 -0
- package/dist/bundle/chunk-TLKEPUAV.js +786 -0
- package/dist/bundle/chunk-TOSCB4SO.js +1227 -0
- package/dist/bundle/chunk-TP7GDWVF.js +6848 -0
- package/dist/bundle/chunk-URX6YDUL.js +9393 -0
- package/dist/bundle/chunk-UUMUL4L3.js +72 -0
- package/dist/bundle/chunk-VOH7S5M4.js +40963 -0
- package/dist/bundle/chunk-W53EJOFQ.js +63 -0
- package/dist/bundle/chunk-W7HM2VGO.js +24 -0
- package/dist/bundle/chunk-WE4UFASG.js +88 -0
- package/dist/bundle/chunk-X2M6NIQG.js +18 -0
- package/dist/bundle/chunk-XRREFEIW.js +372 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-YMCY7VRE.js +1846 -0
- package/dist/bundle/chunk-Z73OL5HV.js +41 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-C6CBFXZF.js +40 -0
- package/dist/bundle/command-server-entry-DJKVVZCQ.js +169 -0
- package/dist/bundle/decode-FC65Y4IV.js +297 -0
- package/dist/bundle/definitions-MVPICAWV.js +2991 -0
- package/dist/bundle/dispatch-KOISQ5QJ.js +411 -0
- package/dist/bundle/dist-7TGU56B2.js +7577 -0
- package/dist/bundle/echarts-FVTUDXDU.js +42501 -0
- package/dist/bundle/embed-VNBZFPYH.js +38 -0
- package/dist/bundle/embedder-6U4NOFRO.js +111 -0
- package/dist/bundle/failure-FZ6VYKEQ.js +25 -0
- package/dist/bundle/first-run-UWAFSINQ.js +29 -0
- package/dist/bundle/first-screen-RTVMGHAE.js +40 -0
- package/dist/bundle/hubspot.js +198 -0
- package/dist/bundle/instructions-HET7BCYK.js +11 -0
- package/dist/bundle/mcp-RGNRW77S.js +167 -0
- package/dist/bundle/meeting-combined-L5AGBPYX.js +25 -0
- package/dist/bundle/meeting-model-NTB4RK3F.js +25 -0
- package/dist/bundle/meeting-semantic-JY3OGCBS.js +22 -0
- package/dist/bundle/node-CXZIFHZC.js +176 -0
- package/dist/bundle/node-P4E63KXA.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-sqlite-P3O7XN7Q.js +74 -0
- package/dist/bundle/oauth-HNCY4B2S.js +20 -0
- package/dist/bundle/open-F4P6YV54.js +23 -0
- package/dist/bundle/openai-4AICLIK3.js +238 -0
- package/dist/bundle/process-5RUXWGYS.js +91 -0
- package/dist/bundle/program-XA4C44Z4.js +9374 -0
- package/dist/bundle/prompt-NFMDVBZ4.js +17 -0
- package/dist/bundle/recognize-DKN3RY4V.js +26 -0
- package/dist/bundle/remote-6QHAGQWY.js +31 -0
- package/dist/bundle/rerank-M4KHEHUZ.js +52 -0
- package/dist/bundle/schemas-JRL3DLMP.js +952 -0
- package/dist/bundle/serve-DNU43ND6.js +199 -0
- package/dist/bundle/server-ATG5KY7K.js +207 -0
- package/dist/bundle/server-VNWVVH7A.js +77 -0
- package/dist/bundle/source-54HR4IWG.js +661 -0
- package/dist/bundle/sqlite-runtime-EMQAC63N.js +20 -0
- package/dist/bundle/state-T45CX7VY.js +36 -0
- package/dist/bundle/store-6LCEVBAZ.js +176 -0
- package/dist/bundle/store-6TZ2FCVA.js +295 -0
- package/dist/bundle/store-DXWYNVVB.js +32 -0
- package/dist/bundle/store-maintenance-command-J57HCJYY.js +68 -0
- package/dist/bundle/writer-NLLI5YRM.js +79 -0
- package/dist/commands/account.d.ts +3 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +87 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/api.d.ts +9 -0
- package/dist/commands/api.d.ts.map +1 -0
- package/dist/commands/api.js +70 -0
- package/dist/commands/api.js.map +1 -0
- package/dist/commands/crm-shared.d.ts +8 -0
- package/dist/commands/crm-shared.d.ts.map +1 -0
- package/dist/commands/crm-shared.js +109 -0
- package/dist/commands/crm-shared.js.map +1 -0
- package/dist/commands/schedule.d.ts +3 -0
- package/dist/commands/schedule.d.ts.map +1 -0
- package/dist/commands/schedule.js +9 -0
- package/dist/commands/schedule.js.map +1 -0
- package/dist/commands/session.d.ts +14 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +164 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/config.d.ts +60 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +153 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +88 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +137 -0
- package/dist/context.js.map +1 -0
- package/dist/crm/activities.d.ts +24 -0
- package/dist/crm/activities.d.ts.map +1 -0
- package/dist/crm/activities.js +214 -0
- package/dist/crm/activities.js.map +1 -0
- package/dist/crm/associations.d.ts +20 -0
- package/dist/crm/associations.d.ts.map +1 -0
- package/dist/crm/associations.js +47 -0
- package/dist/crm/associations.js.map +1 -0
- package/dist/crm/records.d.ts +63 -0
- package/dist/crm/records.d.ts.map +1 -0
- package/dist/crm/records.js +333 -0
- package/dist/crm/records.js.map +1 -0
- package/dist/crm/search.d.ts +57 -0
- package/dist/crm/search.d.ts.map +1 -0
- package/dist/crm/search.js +47 -0
- package/dist/crm/search.js.map +1 -0
- package/dist/crm/source.d.ts +37 -0
- package/dist/crm/source.d.ts.map +1 -0
- package/dist/crm/source.js +366 -0
- package/dist/crm/source.js.map +1 -0
- package/dist/crm/writer.d.ts +15 -0
- package/dist/crm/writer.d.ts.map +1 -0
- package/dist/crm/writer.js +199 -0
- package/dist/crm/writer.js.map +1 -0
- package/dist/generated/definitions.d.ts +3 -0
- package/dist/generated/definitions.d.ts.map +1 -0
- package/dist/generated/definitions.js +2987 -0
- package/dist/generated/definitions.js.map +1 -0
- package/dist/generated/manifest.d.ts +6 -0
- package/dist/generated/manifest.d.ts.map +1 -0
- package/dist/generated/manifest.js +6504 -0
- package/dist/generated/manifest.js.map +1 -0
- package/dist/generated/schemas.d.ts +205 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +810 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +1114 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +5 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/hubspot/account.d.ts +12 -0
- package/dist/hubspot/account.d.ts.map +1 -0
- package/dist/hubspot/account.js +23 -0
- package/dist/hubspot/account.js.map +1 -0
- package/dist/hubspot/transport.d.ts +81 -0
- package/dist/hubspot/transport.d.ts.map +1 -0
- package/dist/hubspot/transport.js +354 -0
- package/dist/hubspot/transport.js.map +1 -0
- package/dist/identity.d.ts +7 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +32 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/program.d.ts +6 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +78 -0
- package/dist/program.js.map +1 -0
- package/dist/reasons.d.ts +10 -0
- package/dist/reasons.d.ts.map +1 -0
- package/dist/reasons.js +33 -0
- package/dist/reasons.js.map +1 -0
- package/dist/setup/flow.d.ts +2 -0
- package/dist/setup/flow.d.ts.map +1 -0
- package/dist/setup/flow.js +97 -0
- package/dist/setup/flow.js.map +1 -0
- package/dist/setup/texts.en.json +19 -0
- package/dist/setup/texts.es.json +19 -0
- package/dist/setup/texts.ru.json +19 -0
- package/dist/store.d.ts +16 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +34 -0
- package/dist/store.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/dist/whoami.d.ts +19 -0
- package/dist/whoami.d.ts.map +1 -0
- package/dist/whoami.js +15 -0
- package/dist/whoami.js.map +1 -0
- package/package.json +98 -4
- package/skills/hubspot-cli/SKILL.md +102 -0
- package/skills/hubspot-cli/references/api/api-advanced.md +51 -0
- package/skills/hubspot-cli/references/api/api-basic.md +1064 -0
- package/skills/hubspot-cli/references/api/api-batch.md +724 -0
- package/skills/hubspot-cli/references/api/api-search.md +147 -0
- package/skills/hubspot-cli/references/api.md +16 -0
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
formatMeetingReference,
|
|
5
|
+
parseMeetingReference
|
|
6
|
+
} from "./chunk-5K7QLJMM.js";
|
|
7
|
+
import {
|
|
8
|
+
CliError,
|
|
9
|
+
singleLine
|
|
10
|
+
} from "./chunk-DB2XKHI4.js";
|
|
11
|
+
import {
|
|
12
|
+
__name
|
|
13
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
14
|
+
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
16
|
+
var CURRENCY_SCALES = {
|
|
17
|
+
AED: 2,
|
|
18
|
+
AMD: 2,
|
|
19
|
+
AUD: 2,
|
|
20
|
+
BHD: 3,
|
|
21
|
+
BYN: 2,
|
|
22
|
+
CAD: 2,
|
|
23
|
+
CHF: 2,
|
|
24
|
+
CLP: 0,
|
|
25
|
+
CNY: 2,
|
|
26
|
+
CZK: 2,
|
|
27
|
+
DKK: 2,
|
|
28
|
+
EUR: 2,
|
|
29
|
+
GBP: 2,
|
|
30
|
+
GEL: 2,
|
|
31
|
+
HUF: 2,
|
|
32
|
+
ILS: 2,
|
|
33
|
+
INR: 2,
|
|
34
|
+
ISK: 0,
|
|
35
|
+
JPY: 0,
|
|
36
|
+
KGS: 2,
|
|
37
|
+
KRW: 0,
|
|
38
|
+
KWD: 3,
|
|
39
|
+
KZT: 2,
|
|
40
|
+
NOK: 2,
|
|
41
|
+
PLN: 2,
|
|
42
|
+
RSD: 2,
|
|
43
|
+
RUB: 2,
|
|
44
|
+
SEK: 2,
|
|
45
|
+
THB: 2,
|
|
46
|
+
TRY: 2,
|
|
47
|
+
UAH: 2,
|
|
48
|
+
USD: 2,
|
|
49
|
+
UZS: 2,
|
|
50
|
+
VND: 0
|
|
51
|
+
};
|
|
52
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
53
|
+
throw new CliError("validation_error", message, { reason });
|
|
54
|
+
}, "refuse");
|
|
55
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
56
|
+
var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
|
|
57
|
+
const match = DECIMAL.exec(text.trim());
|
|
58
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
59
|
+
return void 0;
|
|
60
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
61
|
+
}, "parseDecimal");
|
|
62
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
63
|
+
const value = BigInt(units);
|
|
64
|
+
if (value < 0n)
|
|
65
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
66
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
67
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
68
|
+
}, "formatDecimal");
|
|
69
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
70
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
71
|
+
const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
72
|
+
return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
|
|
73
|
+
}, "groupDigits");
|
|
74
|
+
var currencyOf = /* @__PURE__ */ __name((text) => {
|
|
75
|
+
const code = typeof text === "string" ? text.trim().toUpperCase() : "";
|
|
76
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
77
|
+
return refuse(`${typeof text === "string" && text.trim() ? text.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
78
|
+
return code;
|
|
79
|
+
}, "currencyOf");
|
|
80
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
81
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
82
|
+
const scale = scaleOf(currency);
|
|
83
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
84
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
85
|
+
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
86
|
+
return Number(units);
|
|
87
|
+
}, "minorUnits");
|
|
88
|
+
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
89
|
+
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
90
|
+
return minorUnits(amount, currency, what);
|
|
91
|
+
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
92
|
+
return units === 0 ? 0 : -units;
|
|
93
|
+
}, "signedMinorUnits");
|
|
94
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
95
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
96
|
+
currency
|
|
97
|
+
}), "moneyOf");
|
|
98
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
99
|
+
var QUANTITY_SCALE = 3;
|
|
100
|
+
var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
101
|
+
const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
|
|
102
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
103
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
104
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
105
|
+
return { text: plain, thousandths };
|
|
106
|
+
}, "quantityOf");
|
|
107
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
108
|
+
|
|
109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
110
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
111
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
112
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
113
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
114
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
115
|
+
if (current === "draft" || current === "void")
|
|
116
|
+
return current;
|
|
117
|
+
if (paid <= 0)
|
|
118
|
+
return "issued";
|
|
119
|
+
return paid < total ? "partly_paid" : "paid";
|
|
120
|
+
}, "settledStatus");
|
|
121
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
122
|
+
var notes = /* @__PURE__ */ __name((...words) => {
|
|
123
|
+
const kept = words.filter((word) => word !== null);
|
|
124
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
125
|
+
}, "notes");
|
|
126
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
127
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
128
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
129
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
130
|
+
}, "invoiceLine");
|
|
131
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
132
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
133
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
134
|
+
}, "paymentLine");
|
|
135
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
136
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
137
|
+
|
|
138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
139
|
+
var CATALOG_KINDS = ["product", "service"];
|
|
140
|
+
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
141
|
+
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
142
|
+
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
143
|
+
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
144
|
+
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
145
|
+
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
146
|
+
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
147
|
+
var intervalOf = /* @__PURE__ */ __name((text, reason = "subscription.interval") => {
|
|
148
|
+
const match = typeof text === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text.trim()) : null;
|
|
149
|
+
if (!match)
|
|
150
|
+
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
151
|
+
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
152
|
+
}, "intervalOf");
|
|
153
|
+
var intervalText = /* @__PURE__ */ __name(({ count, unit }) => `${count}-${unit}`, "intervalText");
|
|
154
|
+
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
155
|
+
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
156
|
+
var productLine = /* @__PURE__ */ __name((product) => {
|
|
157
|
+
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
158
|
+
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
159
|
+
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
160
|
+
}, "productLine");
|
|
161
|
+
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
162
|
+
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
163
|
+
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
164
|
+
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
165
|
+
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
167
|
+
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
168
|
+
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
169
|
+
var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
|
|
170
|
+
var normalCrmUserId = /* @__PURE__ */ __name((id) => {
|
|
171
|
+
const text = id.trim();
|
|
172
|
+
return /^\d+$/.test(text) ? text.replace(/^0+(?=\d)/, "") : text;
|
|
173
|
+
}, "normalCrmUserId");
|
|
174
|
+
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
175
|
+
|
|
176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
177
|
+
var DEAL_KINDS = ["deal", "lead"];
|
|
178
|
+
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
179
|
+
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
180
|
+
var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
|
|
181
|
+
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
182
|
+
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
183
|
+
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
184
|
+
}, "dealLine");
|
|
185
|
+
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
187
|
+
var SCHEME = "msg:";
|
|
188
|
+
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
189
|
+
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
190
|
+
var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
191
|
+
const trimmed = reference.trim();
|
|
192
|
+
const parts2 = trimmed.startsWith(SCHEME) ? trimmed.slice(SCHEME.length).split("/") : [];
|
|
193
|
+
const malformed2 = /* @__PURE__ */ __name(() => new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`), "malformed");
|
|
194
|
+
if (parts2.length !== 4 || parts2.some((part) => part === ""))
|
|
195
|
+
throw malformed2();
|
|
196
|
+
const decoded2 = /* @__PURE__ */ __name((part) => {
|
|
197
|
+
try {
|
|
198
|
+
return decodeURIComponent(part);
|
|
199
|
+
} catch {
|
|
200
|
+
throw malformed2();
|
|
201
|
+
}
|
|
202
|
+
}, "decoded");
|
|
203
|
+
const [provider, account, chat, message] = parts2.map(decoded2);
|
|
204
|
+
return { provider, account, chat, message };
|
|
205
|
+
}, "parseLocator");
|
|
206
|
+
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
208
|
+
var SIMPLE_REFERENCES = [
|
|
209
|
+
"note",
|
|
210
|
+
"document",
|
|
211
|
+
"person",
|
|
212
|
+
"organization",
|
|
213
|
+
"project",
|
|
214
|
+
"task",
|
|
215
|
+
"memory",
|
|
216
|
+
"fact",
|
|
217
|
+
"bot",
|
|
218
|
+
"event",
|
|
219
|
+
"invoice",
|
|
220
|
+
"payment",
|
|
221
|
+
"order",
|
|
222
|
+
"deal",
|
|
223
|
+
"lead",
|
|
224
|
+
"pipeline",
|
|
225
|
+
"product",
|
|
226
|
+
"contract",
|
|
227
|
+
"subscription",
|
|
228
|
+
"wallet",
|
|
229
|
+
"transaction",
|
|
230
|
+
"entity"
|
|
231
|
+
];
|
|
232
|
+
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
233
|
+
reason: "ref.malformed"
|
|
234
|
+
}), "malformed");
|
|
235
|
+
var decoded = /* @__PURE__ */ __name((part, text, shape) => {
|
|
236
|
+
try {
|
|
237
|
+
return decodeURIComponent(part);
|
|
238
|
+
} catch {
|
|
239
|
+
throw malformed(text, shape);
|
|
240
|
+
}
|
|
241
|
+
}, "decoded");
|
|
242
|
+
var parts = /* @__PURE__ */ __name((rest, count, text, shape) => {
|
|
243
|
+
const split = rest.split("/");
|
|
244
|
+
if (split.length !== count || split.some((part) => part === ""))
|
|
245
|
+
throw malformed(text, shape);
|
|
246
|
+
return split.map((part) => decoded(part, text, shape));
|
|
247
|
+
}, "parts");
|
|
248
|
+
var encoded = /* @__PURE__ */ __name((...values) => values.map(encodeURIComponent).join("/"), "encoded");
|
|
249
|
+
var folderPath = /* @__PURE__ */ __name((path) => {
|
|
250
|
+
const clean = path.split("/").filter((part) => part !== "" && part !== ".").join("/");
|
|
251
|
+
return clean === "" ? path.trim() === "" ? "" : null : clean;
|
|
252
|
+
}, "folderPath");
|
|
253
|
+
var MEETING_SHAPE = "meeting:<account>/<meeting>[/<transcript>[/<cue>]] with safe integer ids";
|
|
254
|
+
var kind = /* @__PURE__ */ __name((spec) => spec, "kind");
|
|
255
|
+
var simple = /* @__PURE__ */ __name((prefix) => kind({
|
|
256
|
+
prefix,
|
|
257
|
+
type: prefix,
|
|
258
|
+
shape: `${prefix}:<id>`,
|
|
259
|
+
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
260
|
+
if (!rest.trim())
|
|
261
|
+
throw new CliError("validation_error", `"${singleLine(text)}" names no ${prefix}`, {
|
|
262
|
+
reason: "ref.malformed"
|
|
263
|
+
});
|
|
264
|
+
return { type: prefix, id: rest };
|
|
265
|
+
}, "parse"),
|
|
266
|
+
format: /* @__PURE__ */ __name((reference) => `${reference.type}:${reference.id}`, "format")
|
|
267
|
+
}), "simple");
|
|
268
|
+
var REF_KINDS = [
|
|
269
|
+
kind({
|
|
270
|
+
prefix: "msg",
|
|
271
|
+
type: "message",
|
|
272
|
+
shape: "msg:<provider>/<account>/<chat>/<message>",
|
|
273
|
+
parse: /* @__PURE__ */ __name((_, text) => {
|
|
274
|
+
try {
|
|
275
|
+
return { type: "message", ...parseLocator(text) };
|
|
276
|
+
} catch {
|
|
277
|
+
throw malformed(text, "msg:<provider>/<account>/<chat>/<message>");
|
|
278
|
+
}
|
|
279
|
+
}, "parse"),
|
|
280
|
+
format: formatLocator
|
|
281
|
+
}),
|
|
282
|
+
kind({
|
|
283
|
+
prefix: "chat",
|
|
284
|
+
type: "chat",
|
|
285
|
+
shape: "chat:<provider>/<account>/<chat>",
|
|
286
|
+
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
287
|
+
const [provider, account, chat] = parts(rest, 3, text, "chat:<provider>/<account>/<chat>");
|
|
288
|
+
return { type: "chat", provider, account, chat };
|
|
289
|
+
}, "parse"),
|
|
290
|
+
format: /* @__PURE__ */ __name(({ provider, account, chat }) => `chat:${encoded(provider, account, chat)}`, "format")
|
|
291
|
+
}),
|
|
292
|
+
kind({
|
|
293
|
+
prefix: "contact",
|
|
294
|
+
type: "contact",
|
|
295
|
+
shape: "contact:<provider>/<id>",
|
|
296
|
+
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
297
|
+
const [provider, id] = parts(rest, 2, text, "contact:<provider>/<id>");
|
|
298
|
+
return { type: "contact", provider, id };
|
|
299
|
+
}, "parse"),
|
|
300
|
+
format: /* @__PURE__ */ __name(({ provider, id }) => `contact:${encoded(provider, id)}`, "format")
|
|
301
|
+
}),
|
|
302
|
+
kind({
|
|
303
|
+
prefix: "folder",
|
|
304
|
+
type: "folder",
|
|
305
|
+
shape: "folder:<id>[/<path>]",
|
|
306
|
+
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
307
|
+
const slash = rest.indexOf("/");
|
|
308
|
+
const id = decoded(slash < 0 ? rest : rest.slice(0, slash), text, "folder:<id>[/<path>]");
|
|
309
|
+
const path = slash < 0 ? null : folderPath(decoded(rest.slice(slash + 1), text, "folder:<id>[/<path>]"));
|
|
310
|
+
if (!id.trim() || path === "")
|
|
311
|
+
throw malformed(text, "folder:<id>[/<path>]");
|
|
312
|
+
return { type: "folder", id, path };
|
|
313
|
+
}, "parse"),
|
|
314
|
+
format: /* @__PURE__ */ __name(({ id, path }) => path === null ? `folder:${encodeURIComponent(id)}` : `folder:${encoded(id, path)}`, "format")
|
|
315
|
+
}),
|
|
316
|
+
kind({
|
|
317
|
+
prefix: "meeting",
|
|
318
|
+
type: "meeting",
|
|
319
|
+
shape: MEETING_SHAPE,
|
|
320
|
+
parse: /* @__PURE__ */ __name((_, text) => {
|
|
321
|
+
try {
|
|
322
|
+
return parseMeetingReference(text);
|
|
323
|
+
} catch {
|
|
324
|
+
throw malformed(text, MEETING_SHAPE);
|
|
325
|
+
}
|
|
326
|
+
}, "parse"),
|
|
327
|
+
format: formatMeetingReference
|
|
328
|
+
}),
|
|
329
|
+
...SIMPLE_REFERENCES.map(simple)
|
|
330
|
+
];
|
|
331
|
+
var byPrefix = new Map(REF_KINDS.map((spec) => [spec.prefix, spec]));
|
|
332
|
+
var byType = new Map(REF_KINDS.map((spec) => [spec.type, spec]));
|
|
333
|
+
var offered = REF_KINDS.map(({ prefix }) => prefix).filter((prefix) => prefix !== "entity");
|
|
334
|
+
var distance = /* @__PURE__ */ __name((a, b) => {
|
|
335
|
+
let row = Array.from({ length: b.length + 1 }, (_, at) => at);
|
|
336
|
+
for (const [i, x] of [...a].entries()) {
|
|
337
|
+
const next = [i + 1];
|
|
338
|
+
for (const [j, y] of [...b].entries())
|
|
339
|
+
next.push(Math.min(row[j + 1] + 1, next[j] + 1, row[j] + (x === y ? 0 : 1)));
|
|
340
|
+
row = next;
|
|
341
|
+
}
|
|
342
|
+
return row[b.length];
|
|
343
|
+
}, "distance");
|
|
344
|
+
var nearest = /* @__PURE__ */ __name((typed) => offered.find((prefix) => typed.length >= 2 && prefix.startsWith(typed)) ?? offered.map((prefix) => ({ prefix, far: distance(typed, prefix) })).filter(({ far }) => far <= 2).sort((a, b) => a.far - b.far)[0]?.prefix, "nearest");
|
|
345
|
+
var unknownKind = /* @__PURE__ */ __name((text, prefix, rest) => {
|
|
346
|
+
const near = prefix === "" ? void 0 : nearest(prefix);
|
|
347
|
+
const kinds = offered.map((one) => `${one}:`).join(", ");
|
|
348
|
+
const hint = near === void 0 ? `; kinds: ${kinds}` : `; did you mean ${near}:${singleLine(rest)}? Kinds: ${kinds}`;
|
|
349
|
+
return new CliError("validation_error", `"${singleLine(text)}" is no kind of reference${hint}`, {
|
|
350
|
+
reason: "ref.unknown-kind"
|
|
351
|
+
});
|
|
352
|
+
}, "unknownKind");
|
|
353
|
+
var formatReference = /* @__PURE__ */ __name((reference) => byType.get(reference.type).format(reference), "formatReference");
|
|
354
|
+
var parseReference = /* @__PURE__ */ __name((text) => {
|
|
355
|
+
const reference = text.trim();
|
|
356
|
+
const colon = reference.indexOf(":");
|
|
357
|
+
const prefix = colon < 0 ? "" : reference.slice(0, colon);
|
|
358
|
+
const rest = reference.slice(colon + 1);
|
|
359
|
+
const spec = byPrefix.get(prefix);
|
|
360
|
+
if (!spec)
|
|
361
|
+
throw unknownKind(reference, prefix, rest);
|
|
362
|
+
return spec.parse(rest, reference);
|
|
363
|
+
}, "parseReference");
|
|
364
|
+
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
365
|
+
var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
366
|
+
const match = /^([a-z]+):\S+$/.exec(text.trim());
|
|
367
|
+
return match !== null && byPrefix.has(match[1]);
|
|
368
|
+
}, "looksLikeReference");
|
|
369
|
+
|
|
370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
371
|
+
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
372
|
+
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
373
|
+
var PROVIDERS = [
|
|
374
|
+
{ name: "telegram", kind: "messages", aliases: ["tg"], command: "tg", opens: MESSENGER_OPENS },
|
|
375
|
+
{ name: "telegram-bot", kind: "messages", aliases: ["tg-bot"] },
|
|
376
|
+
{ name: "max", kind: "messages", aliases: [], command: "max", opens: MESSENGER_OPENS },
|
|
377
|
+
{ name: "max-bot", kind: "messages", aliases: [] },
|
|
378
|
+
{ name: "whatsapp", kind: "messages", aliases: ["wa"], command: "wa", opens: MESSENGER_OPENS },
|
|
379
|
+
{ name: "whatsapp-bot", kind: "messages", aliases: ["wa-bot"] },
|
|
380
|
+
{ name: "email", kind: "mail", aliases: [] },
|
|
381
|
+
{ name: "notes", kind: "notes", aliases: [] },
|
|
382
|
+
{ name: "local", kind: "notes", aliases: [] },
|
|
383
|
+
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
384
|
+
{ name: "added", kind: "notes", aliases: [] },
|
|
385
|
+
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
386
|
+
// Google Meet has no tool of its own: its meetings are gcal's, since every meeting is on the calendar.
|
|
387
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "gcal" },
|
|
388
|
+
{ name: "google-drive", kind: "documents", aliases: [] },
|
|
389
|
+
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
390
|
+
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
391
|
+
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
392
|
+
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
393
|
+
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
394
|
+
{ name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
|
|
395
|
+
];
|
|
396
|
+
var LABELS = {
|
|
397
|
+
telegram: "Telegram",
|
|
398
|
+
"telegram-bot": "Telegram bot",
|
|
399
|
+
max: "MAX",
|
|
400
|
+
"max-bot": "MAX bot",
|
|
401
|
+
whatsapp: "WhatsApp",
|
|
402
|
+
"whatsapp-bot": "WhatsApp bot",
|
|
403
|
+
"google-drive": "Google Drive",
|
|
404
|
+
"google-meet": "Google Meet",
|
|
405
|
+
added: "added by hand",
|
|
406
|
+
email: "mail",
|
|
407
|
+
telemost: "Telemost"
|
|
408
|
+
};
|
|
409
|
+
var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
|
|
410
|
+
var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
|
|
411
|
+
var isFolderProvider = /* @__PURE__ */ __name((provider) => FOLDER_PROVIDERS.includes(provider), "isFolderProvider");
|
|
412
|
+
var folderProviderSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${FOLDER_PROVIDERS.map((name) => `'${name}'`).join(", ")})`, "folderProviderSql");
|
|
413
|
+
var folderProviderOf = /* @__PURE__ */ __name((format) => format === "markdown" ? "local" : "obsidian", "folderProviderOf");
|
|
414
|
+
var documentAccountProviders = /* @__PURE__ */ __name(() => registry.filter((entry) => entry.kind === "documents" && entry.imported !== true).map(({ name }) => name), "documentAccountProviders");
|
|
415
|
+
var isDocumentAccountProvider = /* @__PURE__ */ __name((provider) => typeof provider === "string" && documentAccountProviders().includes(provider), "isDocumentAccountProvider");
|
|
416
|
+
var documentAccountProvidersSql = /* @__PURE__ */ __name(() => documentAccountProviders().map((name) => `'${name}'`).join(", ") || "NULL", "documentAccountProvidersSql");
|
|
417
|
+
var ADDED_PROVIDER = "added";
|
|
418
|
+
var ADDED_ACCOUNT = "owner";
|
|
419
|
+
var notAdded = `d.account_id NOT IN (SELECT id FROM accounts WHERE provider = '${ADDED_PROVIDER}')`;
|
|
420
|
+
var filesAccountSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${[...FOLDER_PROVIDERS, ...documentAccountProviders(), ADDED_PROVIDER].map((name) => `'${name}'`).join(", ")})`, "filesAccountSql");
|
|
421
|
+
var INTERNAL_NOTES = "internal";
|
|
422
|
+
var UNKNOWN_PROVIDER = "unknown provider \u2014 run its CLI once";
|
|
423
|
+
var WORD = /^[a-z0-9][a-z0-9_-]*$/;
|
|
424
|
+
var invalid = /* @__PURE__ */ __name((message) => {
|
|
425
|
+
throw new CliError("validation_error", message);
|
|
426
|
+
}, "invalid");
|
|
427
|
+
var wordOf = /* @__PURE__ */ __name((value, what) => typeof value === "string" && WORD.test(value) ? value : invalid(`${what} is lowercase letters, digits, - and _ \u2014 not ${JSON.stringify(value)}`), "wordOf");
|
|
428
|
+
var OPEN_KINDS = new Set(REF_KINDS.map(({ type }) => type).filter((type) => type !== "entity"));
|
|
429
|
+
var COMMAND_WORDS = /^[a-z0-9][a-z0-9_-]*( [a-z0-9][a-z0-9_-]*)*$/;
|
|
430
|
+
var opensOf = /* @__PURE__ */ __name((value, named) => {
|
|
431
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
432
|
+
return invalid(`provider ${named}'s opens maps a kind of reference to a command`);
|
|
433
|
+
const known = Object.entries(value).filter(([kind2]) => OPEN_KINDS.has(kind2));
|
|
434
|
+
for (const [kind2, command] of known)
|
|
435
|
+
if (typeof command !== "string" || !COMMAND_WORDS.test(command))
|
|
436
|
+
invalid(`provider ${named} opens a ${kind2} with command words, not ${JSON.stringify(command)}`);
|
|
437
|
+
return Object.fromEntries(known);
|
|
438
|
+
}, "opensOf");
|
|
439
|
+
var providerEntryOf = /* @__PURE__ */ __name((value) => {
|
|
440
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
441
|
+
return invalid("a provider entry is an object");
|
|
442
|
+
const { name, kind: kind2, kinds, aliases = [], command, opens, imported } = value;
|
|
443
|
+
const named = wordOf(name, "a provider's name");
|
|
444
|
+
const isKindWord = /* @__PURE__ */ __name((one) => typeof one === "string" && KINDS.includes(one), "isKindWord");
|
|
445
|
+
const given = kinds === void 0 ? [kind2] : Array.isArray(kinds) && kinds.length > 0 ? kinds : [void 0];
|
|
446
|
+
for (const one of given)
|
|
447
|
+
if (!isKindWord(one))
|
|
448
|
+
invalid(`provider ${named}'s kind is one of ${KINDS.join(", ")} \u2014 not ${JSON.stringify(one)}`);
|
|
449
|
+
const list = [...new Set(given)];
|
|
450
|
+
if (kind2 !== void 0 && kind2 !== list[0])
|
|
451
|
+
invalid(`provider ${named}'s kind is the first of its kinds`);
|
|
452
|
+
if (!Array.isArray(aliases))
|
|
453
|
+
invalid(`provider ${named}'s aliases are a list`);
|
|
454
|
+
if (imported !== void 0 && typeof imported !== "boolean")
|
|
455
|
+
invalid(`provider ${named}'s imported is true or false`);
|
|
456
|
+
return {
|
|
457
|
+
name: named,
|
|
458
|
+
kind: list[0],
|
|
459
|
+
...list.length > 1 ? { kinds: list } : {},
|
|
460
|
+
...imported === true ? { imported: true } : {},
|
|
461
|
+
aliases: [...new Set(aliases.map((alias) => wordOf(alias, `an alias of ${named}`)))],
|
|
462
|
+
...command === void 0 ? {} : { command: wordOf(command, `the command of ${named}`) },
|
|
463
|
+
...opens === void 0 ? {} : { opens: opensOf(opens, named) }
|
|
464
|
+
};
|
|
465
|
+
}, "providerEntryOf");
|
|
466
|
+
var kindsOfEntry = /* @__PURE__ */ __name((entry) => entry.kinds ?? [entry.kind], "kindsOfEntry");
|
|
467
|
+
var describe = /* @__PURE__ */ __name((entry) => `${entry.name} (${kindsOfEntry(entry).join(", ")}${entry.command ? `, from ${entry.command}` : ""})`, "describe");
|
|
468
|
+
var unitedKinds = /* @__PURE__ */ __name((known, entry) => [
|
|
469
|
+
.../* @__PURE__ */ new Set([...known, ...entry])
|
|
470
|
+
], "unitedKinds");
|
|
471
|
+
var wordsOf = /* @__PURE__ */ __name(({ name, aliases }) => [name, ...aliases], "wordsOf");
|
|
472
|
+
var joined = /* @__PURE__ */ __name((known, entry) => {
|
|
473
|
+
const same = known.find(({ name }) => name === entry.name);
|
|
474
|
+
const kinds = same ? unitedKinds(kindsOfEntry(same), kindsOfEntry(entry)) : kindsOfEntry(entry);
|
|
475
|
+
if (same && same.kind !== entry.kind)
|
|
476
|
+
invalid(`two provider entries disagree on the kind: ${describe(same)} and ${describe(entry)}`);
|
|
477
|
+
if (same && entry.imported === true && same.imported !== true)
|
|
478
|
+
invalid(`provider ${entry.name} is synced, so an entry cannot make it import-only`);
|
|
479
|
+
const merged = same ? {
|
|
480
|
+
...same,
|
|
481
|
+
...kinds.length > 1 ? { kinds } : {},
|
|
482
|
+
aliases: [.../* @__PURE__ */ new Set([...same.aliases, ...entry.aliases])],
|
|
483
|
+
...entry.command ? { command: entry.command } : {},
|
|
484
|
+
...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {}
|
|
485
|
+
} : entry;
|
|
486
|
+
const others = known.filter((one) => one !== same);
|
|
487
|
+
for (const word of wordsOf(merged)) {
|
|
488
|
+
const owner = others.find((one) => wordsOf(one).includes(word));
|
|
489
|
+
if (owner)
|
|
490
|
+
invalid(`"${word}" names two providers: ${describe(owner)} and ${describe(merged)}`);
|
|
491
|
+
}
|
|
492
|
+
return same ? known.map((one) => one === same ? merged : one) : [...known, merged];
|
|
493
|
+
}, "joined");
|
|
494
|
+
var registry = PROVIDERS;
|
|
495
|
+
var providers = /* @__PURE__ */ __name(() => registry, "providers");
|
|
496
|
+
var useStoredProviders = /* @__PURE__ */ __name((entries) => {
|
|
497
|
+
const left = [];
|
|
498
|
+
registry = entries.reduce((known, entry) => {
|
|
499
|
+
try {
|
|
500
|
+
return joined(known, providerEntryOf(entry));
|
|
501
|
+
} catch (error) {
|
|
502
|
+
if (!(error instanceof CliError))
|
|
503
|
+
throw error;
|
|
504
|
+
left.push(entry);
|
|
505
|
+
return known;
|
|
506
|
+
}
|
|
507
|
+
}, PROVIDERS);
|
|
508
|
+
return left;
|
|
509
|
+
}, "useStoredProviders");
|
|
510
|
+
var addProvider = /* @__PURE__ */ __name((entry) => {
|
|
511
|
+
registry = joined(registry, providerEntryOf(entry));
|
|
512
|
+
}, "addProvider");
|
|
513
|
+
var isKind = /* @__PURE__ */ __name((word) => KINDS.includes(word.toLowerCase()), "isKind");
|
|
514
|
+
var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
515
|
+
const wanted = word.toLowerCase();
|
|
516
|
+
return registry.find((entry) => wordsOf(entry).includes(wanted));
|
|
517
|
+
}, "providerNamed");
|
|
518
|
+
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
519
|
+
var kindsIn = /* @__PURE__ */ __name((provider) => {
|
|
520
|
+
if (isFolderProvider(provider))
|
|
521
|
+
return ["notes"];
|
|
522
|
+
const entry = registry.find(({ name }) => name === provider);
|
|
523
|
+
if (!entry)
|
|
524
|
+
return [];
|
|
525
|
+
return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
|
|
526
|
+
}, "kindsIn");
|
|
527
|
+
var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
528
|
+
const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
|
|
529
|
+
if (builtIn) {
|
|
530
|
+
if (entry.imported === true && builtIn.imported !== true)
|
|
531
|
+
invalid(`provider ${entry.name} is synced, so an entry cannot make it import-only`);
|
|
532
|
+
return builtIn.imported === true;
|
|
533
|
+
}
|
|
534
|
+
if (held === void 0)
|
|
535
|
+
return entry.imported === true;
|
|
536
|
+
if (entry.imported === true && held.imported !== true)
|
|
537
|
+
invalid(`provider ${entry.name} was registered without imported: an entry cannot make it import-only later`);
|
|
538
|
+
return held.imported === true;
|
|
539
|
+
}, "importedOf");
|
|
540
|
+
var isImportedProvider = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.imported === true, "isImportedProvider");
|
|
541
|
+
var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).includes(kind2), "holdsKind");
|
|
542
|
+
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
543
|
+
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
544
|
+
|
|
545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
546
|
+
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
547
|
+
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
548
|
+
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
549
|
+
const party = order.direction === "sale" && order.customerName !== null ? `to ${order.customerName}` : order.supplierName;
|
|
550
|
+
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
551
|
+
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
552
|
+
return `${order.number ?? `#${order.id}`} \xB7 ${party}${money} (${notes2})`;
|
|
553
|
+
}, "orderLine");
|
|
554
|
+
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
555
|
+
|
|
556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
557
|
+
var ORGANIZATION_ROLES = [
|
|
558
|
+
"employee",
|
|
559
|
+
"contractor",
|
|
560
|
+
"founder",
|
|
561
|
+
"owner",
|
|
562
|
+
"manager",
|
|
563
|
+
"adviser",
|
|
564
|
+
"contact"
|
|
565
|
+
];
|
|
566
|
+
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
567
|
+
var CONTRACT_ROLES = ["customer", "supplier", "signatory", "guarantor"];
|
|
568
|
+
var RELATED_ROLES = ["colleague", "adviser", "investor", "mentor", "family", "friend"];
|
|
569
|
+
var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
|
|
570
|
+
var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
|
|
571
|
+
var checkEngagement = /* @__PURE__ */ __name((kind2, from, to, level) => {
|
|
572
|
+
if (kind2 !== "member-of" || from !== "person" || to !== "project")
|
|
573
|
+
throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
|
|
574
|
+
reason: "relationship.engagement-ends"
|
|
575
|
+
});
|
|
576
|
+
if (!isEngagement(level))
|
|
577
|
+
throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
|
|
578
|
+
reason: "relationship.engagement-unknown"
|
|
579
|
+
});
|
|
580
|
+
return level;
|
|
581
|
+
}, "checkEngagement");
|
|
582
|
+
var RELATIONS = {
|
|
583
|
+
"member-of": {
|
|
584
|
+
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
585
|
+
to: ["organization", "project"],
|
|
586
|
+
roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
|
|
587
|
+
},
|
|
588
|
+
"reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
|
|
589
|
+
"customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
|
|
590
|
+
"partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
|
|
591
|
+
"related-to": {
|
|
592
|
+
from: ["person", "organization", "project", "task", "deal", "lead", "contract"],
|
|
593
|
+
to: ["person", "organization", "project", "task"],
|
|
594
|
+
roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES, contract: CONTRACT_ROLES } }
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
var RELATION_KINDS = Object.keys(RELATIONS);
|
|
598
|
+
var specOf = /* @__PURE__ */ __name((kind2) => Object.hasOwn(RELATIONS, kind2) ? RELATIONS[kind2] : void 0, "specOf");
|
|
599
|
+
var isRelationKind = /* @__PURE__ */ __name((kind2) => specOf(kind2) !== void 0, "isRelationKind");
|
|
600
|
+
var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
|
|
601
|
+
var partyOnly = /* @__PURE__ */ __name((from, to) => from === "contract" && to !== "person" && to !== "organization", "partyOnly");
|
|
602
|
+
var checkEnds = /* @__PURE__ */ __name((kind2, from, to) => {
|
|
603
|
+
const spec = specOf(kind2);
|
|
604
|
+
if (!spec)
|
|
605
|
+
throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
|
|
606
|
+
if (memberOnly(from) && (kind2 !== "member-of" || to !== "project"))
|
|
607
|
+
throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
|
|
608
|
+
if (partyOnly(from, to))
|
|
609
|
+
throw new CliError("validation_error", "a contract is related only to a person or an organization");
|
|
610
|
+
if (!spec.from.includes(from) || !spec.to.includes(to))
|
|
611
|
+
throw new CliError("validation_error", `${kind2} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
|
|
612
|
+
return spec;
|
|
613
|
+
}, "checkEnds");
|
|
614
|
+
var isParty = /* @__PURE__ */ __name((type) => type === "person" || type === "organization", "isParty");
|
|
615
|
+
var rolesOf = /* @__PURE__ */ __name((kind2, from, to) => {
|
|
616
|
+
const spec = specOf(kind2);
|
|
617
|
+
if (kind2 === "member-of" && from !== "person")
|
|
618
|
+
return void 0;
|
|
619
|
+
return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
|
|
620
|
+
}, "rolesOf");
|
|
621
|
+
var ROLE_LISTS = {
|
|
622
|
+
organization: ORGANIZATION_ROLES,
|
|
623
|
+
project: PROJECT_ROLES,
|
|
624
|
+
deal: DEAL_ROLES,
|
|
625
|
+
contract: CONTRACT_ROLES,
|
|
626
|
+
related: RELATED_ROLES
|
|
627
|
+
};
|
|
628
|
+
var roleListOf = /* @__PURE__ */ __name((kind2, from, to) => {
|
|
629
|
+
if (kind2 === "related-to" && isParty(from) && isParty(to))
|
|
630
|
+
return "related";
|
|
631
|
+
const roles = rolesOf(kind2, from, to);
|
|
632
|
+
return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
|
|
633
|
+
}, "roleListOf");
|
|
634
|
+
var checkRole = /* @__PURE__ */ __name((kind2, from, to, role, extra = []) => {
|
|
635
|
+
const roles = rolesOf(kind2, from, to)?.concat(extra);
|
|
636
|
+
if (roles && !roles.includes(role))
|
|
637
|
+
throw new CliError("validation_error", `a ${from}'s role on ${kind2} ${to} is one of ${roles.join(", ")}`, {
|
|
638
|
+
reason: "relationship.role-unknown"
|
|
639
|
+
});
|
|
640
|
+
return role;
|
|
641
|
+
}, "checkRole");
|
|
642
|
+
var isSymmetric = /* @__PURE__ */ __name((kind2) => specOf(kind2)?.symmetric === true, "isSymmetric");
|
|
643
|
+
var inverseOf = /* @__PURE__ */ __name((kind2) => specOf(kind2)?.symmetric ? kind2 : specOf(kind2)?.inverse ?? null, "inverseOf");
|
|
644
|
+
var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
|
|
645
|
+
var standingOf = /* @__PURE__ */ __name((link, now) => {
|
|
646
|
+
if (link.endsAt != null && link.endsAt <= now)
|
|
647
|
+
return "ended";
|
|
648
|
+
if (link.confirmed)
|
|
649
|
+
return "confirmed";
|
|
650
|
+
if (link.deletedAt != null)
|
|
651
|
+
return "ended";
|
|
652
|
+
return link.accountId != null ? "reported" : "proposed";
|
|
653
|
+
}, "standingOf");
|
|
654
|
+
var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
|
|
655
|
+
var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
|
|
656
|
+
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
657
|
+
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
658
|
+
|
|
659
|
+
export {
|
|
660
|
+
parseDecimal,
|
|
661
|
+
formatDecimal,
|
|
662
|
+
groupDigits,
|
|
663
|
+
currencyOf,
|
|
664
|
+
scaleOf,
|
|
665
|
+
minorUnits,
|
|
666
|
+
signedMinorUnits,
|
|
667
|
+
moneyOf,
|
|
668
|
+
moneyLabel,
|
|
669
|
+
quantityOf,
|
|
670
|
+
lineUnits,
|
|
671
|
+
INVOICE_DIRECTIONS,
|
|
672
|
+
INVOICE_STATUSES,
|
|
673
|
+
MONEY_DIRECTIONS,
|
|
674
|
+
FINANCE_REVIEWS,
|
|
675
|
+
settledStatus,
|
|
676
|
+
invoiceLine,
|
|
677
|
+
paymentLine,
|
|
678
|
+
invoiceTitle,
|
|
679
|
+
paymentEntryTitle,
|
|
680
|
+
CATALOG_KINDS,
|
|
681
|
+
BUSINESS_KINDS,
|
|
682
|
+
CONTRACT_KINDS,
|
|
683
|
+
CONTRACT_STATUSES,
|
|
684
|
+
SUBSCRIPTION_STATUSES,
|
|
685
|
+
WALLET_KINDS,
|
|
686
|
+
TRANSACTION_STATUSES,
|
|
687
|
+
ORDER_DIRECTIONS,
|
|
688
|
+
intervalOf,
|
|
689
|
+
productLine,
|
|
690
|
+
contractLine,
|
|
691
|
+
subscriptionLine,
|
|
692
|
+
walletLine,
|
|
693
|
+
transactionLine,
|
|
694
|
+
CRM_KINDS,
|
|
695
|
+
CRM_ACTIVITY_KINDS,
|
|
696
|
+
isCrmUserId,
|
|
697
|
+
normalCrmUserId,
|
|
698
|
+
isItemKind,
|
|
699
|
+
DEAL_KINDS,
|
|
700
|
+
DEAL_STATUSES,
|
|
701
|
+
STAGE_OUTCOMES,
|
|
702
|
+
DEAL_ROLES,
|
|
703
|
+
dealLine,
|
|
704
|
+
formatLocator,
|
|
705
|
+
isLocator,
|
|
706
|
+
parseLocator,
|
|
707
|
+
SIMPLE_REFERENCES,
|
|
708
|
+
formatReference,
|
|
709
|
+
parseReference,
|
|
710
|
+
canonicalReference,
|
|
711
|
+
looksLikeReference,
|
|
712
|
+
providerLabel,
|
|
713
|
+
isFolderProvider,
|
|
714
|
+
folderProviderSql,
|
|
715
|
+
folderProviderOf,
|
|
716
|
+
documentAccountProviders,
|
|
717
|
+
isDocumentAccountProvider,
|
|
718
|
+
documentAccountProvidersSql,
|
|
719
|
+
ADDED_PROVIDER,
|
|
720
|
+
ADDED_ACCOUNT,
|
|
721
|
+
notAdded,
|
|
722
|
+
filesAccountSql,
|
|
723
|
+
INTERNAL_NOTES,
|
|
724
|
+
UNKNOWN_PROVIDER,
|
|
725
|
+
providerEntryOf,
|
|
726
|
+
kindsOfEntry,
|
|
727
|
+
unitedKinds,
|
|
728
|
+
providers,
|
|
729
|
+
useStoredProviders,
|
|
730
|
+
addProvider,
|
|
731
|
+
isKind,
|
|
732
|
+
providerNamed,
|
|
733
|
+
kindIn,
|
|
734
|
+
kindsIn,
|
|
735
|
+
importedOf,
|
|
736
|
+
isImportedProvider,
|
|
737
|
+
holdsKind,
|
|
738
|
+
holdsKindOf,
|
|
739
|
+
kindOf,
|
|
740
|
+
ORDER_STATUSES,
|
|
741
|
+
ORDER_PURPOSES,
|
|
742
|
+
orderLine,
|
|
743
|
+
orderTitle,
|
|
744
|
+
isEngagement,
|
|
745
|
+
checkEngagement,
|
|
746
|
+
RELATION_KINDS,
|
|
747
|
+
isRelationKind,
|
|
748
|
+
checkEnds,
|
|
749
|
+
rolesOf,
|
|
750
|
+
ROLE_LISTS,
|
|
751
|
+
roleListOf,
|
|
752
|
+
checkRole,
|
|
753
|
+
isSymmetric,
|
|
754
|
+
inverseOf,
|
|
755
|
+
STANDINGS,
|
|
756
|
+
standingOf,
|
|
757
|
+
isUsable,
|
|
758
|
+
KEYED,
|
|
759
|
+
notOverriddenSql,
|
|
760
|
+
usableLinkSql
|
|
761
|
+
};
|