@curviate/cli 0.64.0 → 0.65.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 +10 -0
- package/dist/{account-55QRBRX2.js → account-6IKQAGAX.js} +8 -8
- package/dist/{analytics-DOGKBULH.js → analytics-5LYWN4RF.js} +5 -5
- package/dist/{beta-consent-3EPBXPPQ.js → beta-consent-PPI5IUSD.js} +4 -4
- package/dist/{billing-2A7EZWZX.js → billing-R6TDVSMZ.js} +5 -5
- package/dist/{chunk-FUPVALUL.js → chunk-3RACWVSE.js} +2 -2
- package/dist/{chunk-PITCPTWX.js → chunk-4K34FHE5.js} +3 -3
- package/dist/{chunk-YE2WKE3R.js → chunk-6EKWHAEH.js} +6 -6
- package/dist/{chunk-AFP5F3I6.js → chunk-76OVMT7O.js} +1 -1
- package/dist/{chunk-WISP4QXZ.js → chunk-AR34Y3V6.js} +2 -2
- package/dist/{chunk-3M52GHII.js → chunk-CCBUB6WM.js} +5 -5
- package/dist/{chunk-2JL554FW.js → chunk-EGNU7GKL.js} +11 -11
- package/dist/{chunk-KSRNDK2N.js → chunk-KAMKNMDR.js} +9 -9
- package/dist/{chunk-DLYVUDNF.js → chunk-KU6ORZ5Z.js} +3 -1
- package/dist/{chunk-YW6CYOX6.js → chunk-P5TGPTBV.js} +7 -7
- package/dist/{chunk-QFG3DRHY.js → chunk-U55AXO2J.js} +1 -1
- package/dist/{chunk-33GDPBLY.js → chunk-W524FTEO.js} +2 -2
- package/dist/{chunk-66HEPUAX.js → chunk-Z67TWG6W.js} +2 -0
- package/dist/cli.js +28 -28
- package/dist/{comment-CERAB2Z5.js → comment-FDZMRASJ.js} +7 -7
- package/dist/{company-WC6SGDTE.js → company-6ZUDLEGL.js} +7 -7
- package/dist/{company-record-GVOCKW7U.js → company-record-WAY2ASK6.js} +10 -10
- package/dist/{config-RC377EZ7.js → config-GJX2WLRX.js} +1 -1
- package/dist/{connect-V63CQIO7.js → connect-VV5BEFAE.js} +11 -11
- package/dist/{contact-4OH5AVMI.js → contact-LFXH5ROE.js} +8 -8
- package/dist/{contact-groups-OILNTYGH.js → contact-groups-AKCTZSAC.js} +10 -10
- package/dist/{contact-import-X5EUG77K.js → contact-import-FBASQAJ4.js} +9 -9
- package/dist/{core-FM222KR6.js → core-7XJG4ISF.js} +17 -17
- package/dist/{do-not-contact-SA6IXJIE.js → do-not-contact-2RKGOFIQ.js} +10 -10
- package/dist/{doctor-6XQRPRBT.js → doctor-CUQZXWSI.js} +4 -4
- package/dist/{domain-N7BBT5WI.js → domain-2SRQNEK7.js} +5 -5
- package/dist/{draft-6KPWHEPU.js → draft-IVPVFA5U.js} +4 -4
- package/dist/{enrollment-PCE6OGCV.js → enrollment-2NG5M63J.js} +6 -6
- package/dist/{examples-G4IC5TJU.js → examples-FGF6HIAN.js} +1 -1
- package/dist/{exit-codes-MMGNZCJ5.js → exit-codes-MSUALZX5.js} +1 -1
- package/dist/{export-WC64TMKR.js → export-DZLAEWWL.js} +4 -4
- package/dist/{feed-WC2UCUSC.js → feed-6DXIJPPF.js} +6 -6
- package/dist/{group-FSZU62CS.js → group-WVITK4FF.js} +6 -6
- package/dist/{inbox-O422BPE5.js → inbox-OLW6KMF7.js} +6 -6
- package/dist/{inboxes-NBLCSHHK.js → inboxes-HV6PXICA.js} +6 -6
- package/dist/{incoming-S5Q7YJM3.js → incoming-EF3LZGZA.js} +5 -5
- package/dist/{job-CJUFB5DB.js → job-T5LNQACM.js} +6 -6
- package/dist/{login-5A4KOIBU.js → login-GDCPVZKK.js} +1 -1
- package/dist/{mailbox-OZI2NREM.js → mailbox-CVM5QZ7E.js} +36 -17
- package/dist/{message-WAHQQHTF.js → message-OWRSYEOB.js} +6 -6
- package/dist/{motion-SZSJ4WZI.js → motion-SVE2L5WD.js} +8 -8
- package/dist/{network-3CQGZMQF.js → network-4CZJH4YY.js} +5 -5
- package/dist/{notification-OUZ44XYA.js → notification-VMN4OPZ7.js} +6 -6
- package/dist/{notifications-BNLH3ESH.js → notifications-76EAPG5B.js} +6 -6
- package/dist/{post-2IABIGUC.js → post-3QLWHDU6.js} +7 -7
- package/dist/{profile-FTNWMCKB.js → profile-PCBKCXLO.js} +11 -11
- package/dist/{recruiter-OZSLGPYO.js → recruiter-JNVHS64B.js} +6 -6
- package/dist/{sales-nav-RZF65ZRA.js → sales-nav-53AJYUUW.js} +6 -6
- package/dist/{search-YTZQ4XUN.js → search-DMWKN7TD.js} +15 -15
- package/dist/{setup-67FMKDKO.js → setup-2ZIFAXKZ.js} +4 -4
- package/dist/{signal-XCCCE434.js → signal-XI3V5TM3.js} +5 -5
- package/dist/{team-EC5CFT7D.js → team-D4BGYY2L.js} +5 -5
- package/dist/{tier-M6LZVGH3.js → tier-SOYZZJBA.js} +4 -4
- package/dist/{unibox-U3RPEUJI.js → unibox-7TESM34K.js} +8 -8
- package/dist/{webhook-EAXWPNQZ.js → webhook-WS5TOVSN.js} +5 -5
- package/package.json +2 -2
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4K34FHE5.js";
|
|
11
11
|
import {
|
|
12
12
|
renderSuccess
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Z67TWG6W.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U55AXO2J.js";
|
|
17
17
|
import {
|
|
18
18
|
GLOBAL_FLAGS,
|
|
19
19
|
READ_SINGLE_FLAGS,
|
|
@@ -87,7 +87,7 @@ var exportCommand = defineCommand({
|
|
|
87
87
|
meta: { name: "export", description: DESCRIPTIONS.export },
|
|
88
88
|
subCommands: { get: getCmd, download: downloadCmd },
|
|
89
89
|
async run() {
|
|
90
|
-
const { showHelp } = await import("./examples-
|
|
90
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
91
91
|
await showHelp(exportCommand, ["curviate", "export"]);
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AR34Y3V6.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
readablePage,
|
|
10
10
|
rejectPaginationModifiersWithoutAll,
|
|
11
11
|
streamAll
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3RACWVSE.js";
|
|
13
13
|
import {
|
|
14
14
|
renderError,
|
|
15
15
|
renderSuccess,
|
|
16
16
|
renderUnexpectedError,
|
|
17
17
|
writeNdjsonItem
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Z67TWG6W.js";
|
|
19
19
|
import {
|
|
20
20
|
createClient,
|
|
21
21
|
resolveEffectiveConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-U55AXO2J.js";
|
|
23
23
|
import {
|
|
24
24
|
GLOBAL_FLAGS,
|
|
25
25
|
readOnly
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
DESCRIPTIONS
|
|
29
29
|
} from "./chunk-Z647LR4F.js";
|
|
30
30
|
import "./chunk-ZYURL5VK.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
32
32
|
|
|
33
33
|
// src/commands/feed.ts
|
|
34
34
|
import { defineCommand } from "citty";
|
|
@@ -49,7 +49,7 @@ function resolveOutputOpts(flags) {
|
|
|
49
49
|
async function handleSdkError(err, outOpts, out) {
|
|
50
50
|
const { CurviateError } = await import("@curviate/sdk");
|
|
51
51
|
if (err instanceof CurviateError) {
|
|
52
|
-
const { getExitCode } = await import("./exit-codes-
|
|
52
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
53
53
|
renderError(err, outOpts, out);
|
|
54
54
|
process.exit(getExitCode(err));
|
|
55
55
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AR34Y3V6.js";
|
|
8
8
|
import {
|
|
9
9
|
pageDelayFromFlags,
|
|
10
10
|
readCursorFlag,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
readablePage,
|
|
14
14
|
rejectPaginationModifiersWithoutAll,
|
|
15
15
|
streamAll
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3RACWVSE.js";
|
|
17
17
|
import {
|
|
18
18
|
renderError,
|
|
19
19
|
renderSuccess,
|
|
20
20
|
renderUnexpectedError,
|
|
21
21
|
writeNdjsonItem
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z67TWG6W.js";
|
|
23
23
|
import {
|
|
24
24
|
createClient,
|
|
25
25
|
resolveEffectiveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-U55AXO2J.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
DESCRIPTIONS
|
|
34
34
|
} from "./chunk-Z647LR4F.js";
|
|
35
35
|
import "./chunk-ZYURL5VK.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/group.ts
|
|
39
39
|
import { defineCommand } from "citty";
|
|
@@ -60,7 +60,7 @@ function resolveOutputOpts(flags) {
|
|
|
60
60
|
async function handleSdkError(err, outOpts, out) {
|
|
61
61
|
const { CurviateError } = await import("@curviate/sdk");
|
|
62
62
|
if (err instanceof CurviateError) {
|
|
63
|
-
const { getExitCode } = await import("./exit-codes-
|
|
63
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
64
64
|
renderError(err, outOpts, out);
|
|
65
65
|
process.exit(getExitCode(err));
|
|
66
66
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-Q3ZPRFUX.js";
|
|
13
13
|
import {
|
|
14
14
|
requireAccount
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AR34Y3V6.js";
|
|
16
16
|
import {
|
|
17
17
|
buildPreviewOutput
|
|
18
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -24,17 +24,17 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3RACWVSE.js";
|
|
28
28
|
import {
|
|
29
29
|
renderError,
|
|
30
30
|
renderSuccess,
|
|
31
31
|
renderUnexpectedError,
|
|
32
32
|
writeNdjsonItem
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z67TWG6W.js";
|
|
34
34
|
import {
|
|
35
35
|
createClient,
|
|
36
36
|
resolveEffectiveConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-U55AXO2J.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
DESCRIPTIONS
|
|
46
46
|
} from "./chunk-Z647LR4F.js";
|
|
47
47
|
import "./chunk-ZYURL5VK.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/inbox.ts
|
|
51
51
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function validateInboxFolder(raw, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AR34Y3V6.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
readablePage,
|
|
11
11
|
rejectPaginationModifiersWithoutAll,
|
|
12
12
|
streamAll
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3RACWVSE.js";
|
|
14
14
|
import {
|
|
15
15
|
renderError,
|
|
16
16
|
renderSuccess,
|
|
17
17
|
renderUnexpectedError,
|
|
18
18
|
writeNdjsonItem
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z67TWG6W.js";
|
|
20
20
|
import {
|
|
21
21
|
createClient,
|
|
22
22
|
resolveEffectiveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U55AXO2J.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
26
26
|
READ_SINGLE_FLAGS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
DESCRIPTIONS
|
|
31
31
|
} from "./chunk-Z647LR4F.js";
|
|
32
32
|
import "./chunk-ZYURL5VK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/inboxes.ts
|
|
36
36
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4K34FHE5.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3RACWVSE.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-Z67TWG6W.js";
|
|
26
|
+
import "./chunk-U55AXO2J.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
|
|
|
209
209
|
meta: { name: "incoming", description: DESCRIPTIONS.incoming },
|
|
210
210
|
subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
|
|
211
211
|
async run() {
|
|
212
|
-
const { showHelp } = await import("./examples-
|
|
212
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
213
213
|
await showHelp(incomingCommand, ["curviate", "incoming"]);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-EIPQUQK2.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AR34Y3V6.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,18 +29,18 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3RACWVSE.js";
|
|
33
33
|
import {
|
|
34
34
|
renderError,
|
|
35
35
|
renderSuccess,
|
|
36
36
|
renderUnexpectedError,
|
|
37
37
|
writeNdjsonItem
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Z67TWG6W.js";
|
|
39
39
|
import {
|
|
40
40
|
createClient,
|
|
41
41
|
downloadBinary,
|
|
42
42
|
resolveEffectiveConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-U55AXO2J.js";
|
|
44
44
|
import {
|
|
45
45
|
GLOBAL_FLAGS,
|
|
46
46
|
READ_SINGLE_FLAGS,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
DESCRIPTIONS
|
|
52
52
|
} from "./chunk-Z647LR4F.js";
|
|
53
53
|
import "./chunk-ZYURL5VK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/job.ts
|
|
57
57
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function requireEnum(value, allowed, flag, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
confirmMoney
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P5TGPTBV.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveSecret
|
|
7
7
|
} from "./chunk-DENWYJK2.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
outputOpts,
|
|
12
12
|
rootClient,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4K34FHE5.js";
|
|
15
15
|
import {
|
|
16
16
|
buildPreviewOutput
|
|
17
17
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
readablePage,
|
|
27
27
|
rejectPaginationModifiersWithoutAll,
|
|
28
28
|
streamAll
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3RACWVSE.js";
|
|
30
30
|
import {
|
|
31
31
|
renderSuccess,
|
|
32
32
|
writeNdjsonItem
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z67TWG6W.js";
|
|
34
34
|
import "./chunk-IB6ARI3R.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-U55AXO2J.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
READ_SINGLE_FLAGS,
|
|
@@ -49,7 +49,7 @@ import "./chunk-FDJMAF7D.js";
|
|
|
49
49
|
import "./chunk-ZYURL5VK.js";
|
|
50
50
|
import {
|
|
51
51
|
getExitCode
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KU6ORZ5Z.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/mailbox.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -165,15 +165,17 @@ function parseMailboxSpec(raw) {
|
|
|
165
165
|
}
|
|
166
166
|
var BUY_PAST_CAP = "This order would take your Team past its cap on Mailboxes from Curviate. Nothing was ordered. Only a Team Owner raises the cap, in the dashboard.";
|
|
167
167
|
var money = (minor, currency) => new Intl.NumberFormat("en-US", { style: "currency", currency: currency.toUpperCase() }).format(minor / 100);
|
|
168
|
+
var BILLING = "app.curviate.com/settings/billing";
|
|
169
|
+
var PAYMENT_OUTSTANDING = `Your Team has a payment outstanding. Update the payment method in Billing (${BILLING}), then order.`;
|
|
170
|
+
var NO_ROOM = "Curviate has no room for this many new Mailboxes at the moment and is adding more. Order fewer, or order again later.";
|
|
168
171
|
function priceLine(p) {
|
|
169
172
|
const n = p.mailboxes ?? 0;
|
|
170
173
|
const cur = p.currency ?? "usd";
|
|
171
174
|
const per = p.billing_period === "annual" ? "a year" : "a month";
|
|
172
175
|
const head = p.charged === "never" ? `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: nothing is charged for your Team.` : `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: ${money(p.amount ?? 0, cur)} ${per} (${money(p.unit_amount ?? 0, cur)} each)${p.plus_tax ? ", plus tax where it applies" : ""}.`;
|
|
173
176
|
const when = p.charged === "when_records_found" ? ` Charged the day the records are found at your domain${p.prorated ? ", for the rest of your billing year" : ""}, then each year.` : p.charged === "with_next_invoice" ? ` Added to your next invoice${p.prorated ? ", prorated for the rest of this month" : ""}, then each month.` : "";
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
return head + when + waits + closed;
|
|
177
|
+
const closed = p.orderable !== false ? "" : p.not_orderable_reason === "payment" ? ` ${PAYMENT_OUTSTANDING}` : p.not_orderable_reason === "capacity" ? ` ${NO_ROOM}` : ` It cannot be ordered now: ${p.not_orderable_reason === "trial" ? "available once your Team pays (a Team on a trial or without a paid plan)" : p.not_orderable_reason === "currency" ? "your subscription is billed in another currency than Mailboxes from Curviate (US dollars). Contact support to move it to the current price, then order" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.`;
|
|
178
|
+
return head + when + closed;
|
|
177
179
|
}
|
|
178
180
|
async function runQuote(c, f) {
|
|
179
181
|
const n = /^\d+$/.test(f.count ?? "") ? Number(f.count) : NaN;
|
|
@@ -207,6 +209,8 @@ async function runBuy(c, f) {
|
|
|
207
209
|
}
|
|
208
210
|
const order = await c.mailboxes.purchases.create(body);
|
|
209
211
|
renderSuccess(readableObject(order), outputOpts(f), process);
|
|
212
|
+
const note = purchaseNote(order);
|
|
213
|
+
if (note && (agreed === void 0 || order.price?.amount === agreed)) process.stderr.write(note + "\n");
|
|
210
214
|
if (agreed !== void 0 && order.price?.amount !== agreed) {
|
|
211
215
|
process.stderr.write(`error [PRICE_CHANGED] This order costs ${order.price ? priceLine(order.price) : "an unstated price"} That is not the ${agreed} (minor units) agreed to, so the order is being cancelled.
|
|
212
216
|
`);
|
|
@@ -232,6 +236,20 @@ async function runBuy(c, f) {
|
|
|
232
236
|
}
|
|
233
237
|
function purchaseNote(order) {
|
|
234
238
|
if (order.charge_unknown === true) return "We are checking whether this order was charged. If it was, the charge is given back in full.";
|
|
239
|
+
const by = typeof order.expires_at === "string" && !Number.isNaN(Date.parse(order.expires_at)) ? new Intl.DateTimeFormat("en-US", { month: "long", day: "numeric" }).format(new Date(order.expires_at)) : "its end date";
|
|
240
|
+
if (order.state === "awaiting_dns") switch (order.waiting_for) {
|
|
241
|
+
case "records":
|
|
242
|
+
return `Add each record where your domain's DNS is managed. Curviate checks every 15 minutes for 2 hours, then every hour. If they are not all found by ${by}, the order ends with nothing charged.`;
|
|
243
|
+
case "payment":
|
|
244
|
+
return `Your records are found. The charge waits for your Team's outstanding payment: update the payment method in Billing (${BILLING}) and the order continues by itself. If it is still outstanding on ${by}, the order ends with nothing charged.`;
|
|
245
|
+
case "curviate":
|
|
246
|
+
return `Your records are found. The order waits on Curviate's side and continues by itself; there is nothing to do on yours. If the Mailboxes cannot be created by ${by}, the order ends with nothing charged.`;
|
|
247
|
+
case "charge":
|
|
248
|
+
return "Your records are found and the order is being charged. The Mailboxes are created next; this can take a few minutes.";
|
|
249
|
+
}
|
|
250
|
+
if (order.state === "cancelled" && order.reason === "payment_outstanding") return `Your records were found, but your Team's payment stayed outstanding for 14 days, so the order ended. Nothing was charged. Update the payment method in Billing (${BILLING}), then order again.`;
|
|
251
|
+
if (order.state === "cancelled" && order.reason === "held_by_curviate") return "Your records were found, but Curviate could not create the Mailboxes within 14 days, so the order ended. Nothing was charged. You can order again.";
|
|
252
|
+
if (order.state === "cancelled" && order.reason === "domain_taken") return "Another order of Mailboxes from Curviate for this domain was confirmed first, so this order ended. Nothing was charged. Name another domain.";
|
|
235
253
|
if (order.state === "provisioning") return `The Mailboxes are being set up. If that fails, the charge is undone in full and the order ends cancelled (host_failed). Read it again later: curviate mailbox purchase get ${String(order.id ?? "<id>")}. Do not order again meanwhile.`;
|
|
236
254
|
if (order.state === "cancelled" && order.reason === "host_failed") return "Setting up these Mailboxes failed, so the charge was undone in full. Nothing to retry.";
|
|
237
255
|
if (order.state === "cancelled" && order.reason === "currency") return "Your subscription is billed in another currency than Mailboxes from Curviate (US dollars), so the order ended. Nothing was charged. Contact support to move it to the current price, then order.";
|
|
@@ -629,14 +647,15 @@ var buyCmd = defineCommand({
|
|
|
629
647
|
errors: {
|
|
630
648
|
SPENDING_CAP_REACHED: "the order would pass the Team's cap on Mailboxes from Curviate; only an Owner raises it, in the dashboard. Nothing was ordered.",
|
|
631
649
|
INSUFFICIENT_ROLE: "only a Team Owner orders.",
|
|
632
|
-
MAILBOX_PURCHASE_TRIAL: "a Team without a paid plan cannot order: on a trial, after a trial that ended without a purchase, never subscribed
|
|
650
|
+
MAILBOX_PURCHASE_TRIAL: "a Team without a paid plan cannot order: on a trial, after a trial that ended without a purchase, or never subscribed (buy a seat, then order); or a Team with a payment outstanding (update the payment method in Billing, then order). Nothing was charged.",
|
|
633
651
|
MAILBOX_PURCHASE_PENDING: "this domain already has an order waiting for its records.",
|
|
634
|
-
DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or
|
|
652
|
+
DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or a confirmed order, of your Team or another; name another domain.",
|
|
635
653
|
DOMAIN_IS_COMPANY_EMAIL: "the domain your company email runs on; use a separate domain.",
|
|
636
654
|
INVALID_REQUEST: "among others, a subdomain (mail.acme.com): Mailboxes from Curviate go on a domain of your own, such as acme-mail.com.",
|
|
637
|
-
MAILBOX_SALES_PAUSED: "orders cannot be placed at the moment."
|
|
655
|
+
MAILBOX_SALES_PAUSED: "orders cannot be placed at the moment.",
|
|
656
|
+
MAILBOX_NO_ROOM: "Curviate has no room for this many new Mailboxes at the moment (exit 1, as orders paused). Order fewer, or order again later; never in a loop. Nothing was ordered or charged."
|
|
638
657
|
},
|
|
639
|
-
output: ["The order: id, domain, state (awaiting_dns), mailboxes[], records[] (mx, spf, dkim, dmarc, verify, tracking), price (as `curviate mailbox quote`), amount_monthly (the monthly equivalent), expires_at."],
|
|
658
|
+
output: ["The order: id, domain, state (awaiting_dns), waiting_for (records), mailboxes[], records[] (mx, spf, dkim, dmarc, verify, tracking), price (as `curviate mailbox quote`), amount_monthly (the monthly equivalent), expires_at. What to do next, in one line on stderr."],
|
|
640
659
|
seeAlso: ["curviate mailbox purchase list", "curviate domain check"],
|
|
641
660
|
examples: [
|
|
642
661
|
"curviate mailbox buy --domain acme-mail.example --mailbox 'anna:Anna Weber:shared' --yes",
|
|
@@ -660,7 +679,7 @@ var quoteCmd = defineCommand({
|
|
|
660
679
|
risk: "read",
|
|
661
680
|
errors: { INSUFFICIENT_ROLE: "only a Team Owner reads the price of Mailboxes from Curviate." },
|
|
662
681
|
output: [
|
|
663
|
-
"`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial: no paid plan
|
|
682
|
+
"`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial: no paid plan, buy a seat first; payment: a payment outstanding, update the payment method in Billing, then order; currency: the subscription is billed in another currency than US dollars, contact support; sales_paused; capacity: Curviate has no room for this many new Mailboxes now, order fewer or later). The same in one sentence on stderr."
|
|
664
683
|
],
|
|
665
684
|
seeAlso: ["curviate mailbox buy", "curviate billing cap"],
|
|
666
685
|
examples: ["curviate mailbox quote 3", "curviate mailbox quote 3 --json"]
|
|
@@ -687,7 +706,7 @@ var purchaseListCmd = defineCommand({
|
|
|
687
706
|
var purchaseGetCmd = defineCommand({
|
|
688
707
|
meta: {
|
|
689
708
|
name: "get",
|
|
690
|
-
description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits for the records;
|
|
709
|
+
description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits, and waiting_for says for what: records (add them before expires_at), payment (the records are found; the charge waits for your Team's outstanding payment: update the payment method in Billing and it continues by itself), curviate (the records are found; it waits on Curviate's side, nothing to do) or charge (being charged, read it again in a few minutes). cancelled carries its reason (requested, expired: the records were not found in 14 days, subscription_ended, payment_failed, spending_cap_reached, currency: the subscription is billed in another currency than US dollars, nothing was charged, contact support; payment_outstanding: the records were found but the payment stayed outstanding for 14 days, nothing charged, update the payment method then order again; held_by_curviate: the records were found but Curviate could not create the Mailboxes in 14 days, nothing charged, order again; domain_taken: another order for this domain was confirmed first, nothing charged; host_failed: setting up failed and the charge was undone in full). What to do next, in one line on stderr. charge_unknown is true while Curviate cannot tell whether the order's charge was made: it is being checked, and a charge that was made is given back in full; do not order again. Every role reads. One API call.",
|
|
691
710
|
risk: "read",
|
|
692
711
|
errors: { MAILBOX_PURCHASE_NOT_FOUND: "no order of your Team has this id (another Team's id answers the same)." },
|
|
693
712
|
seeAlso: ["curviate mailbox purchase list", "curviate mailbox list"],
|
|
@@ -751,7 +770,7 @@ var purchaseCmd = defineCommand({
|
|
|
751
770
|
meta: { name: "purchase", description: "Your Team's orders of Mailboxes from Curviate: list, get, check (look the records up now), cancel (an order still waiting for its records)." },
|
|
752
771
|
subCommands: { list: purchaseListCmd, get: purchaseGetCmd, check: purchaseCheckCmd, cancel: purchaseCancelCmd },
|
|
753
772
|
async run() {
|
|
754
|
-
const { showHelp } = await import("./examples-
|
|
773
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
755
774
|
await showHelp(purchaseCmd, ["curviate", "mailbox", "purchase"]);
|
|
756
775
|
}
|
|
757
776
|
});
|
|
@@ -759,7 +778,7 @@ var mailboxCommand = defineCommand({
|
|
|
759
778
|
meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
|
|
760
779
|
subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd, test: testCmd, tests: testsCmd, quote: quoteCmd, buy: buyCmd, purchase: purchaseCmd },
|
|
761
780
|
async run() {
|
|
762
|
-
const { showHelp } = await import("./examples-
|
|
781
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
763
782
|
await showHelp(mailboxCommand, ["curviate", "mailbox"]);
|
|
764
783
|
}
|
|
765
784
|
});
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CCBUB6WM.js";
|
|
17
17
|
import "./chunk-UWO2D4HW.js";
|
|
18
18
|
import "./chunk-UEAX6KUB.js";
|
|
19
19
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
20
|
import "./chunk-JY26SUNH.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-AR34Y3V6.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-3RACWVSE.js";
|
|
24
|
+
import "./chunk-Z67TWG6W.js";
|
|
25
|
+
import "./chunk-U55AXO2J.js";
|
|
26
26
|
import "./chunk-65UYYCWD.js";
|
|
27
27
|
import "./chunk-Z647LR4F.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
29
29
|
import "./chunk-ZYURL5VK.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
31
31
|
export {
|
|
32
32
|
guardBareMessageForm,
|
|
33
33
|
messageCommand,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-JY26SUNH.js";
|
|
7
7
|
import {
|
|
8
8
|
sendInChunks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W524FTEO.js";
|
|
10
10
|
import {
|
|
11
11
|
fail,
|
|
12
12
|
listFlag,
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4K34FHE5.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3RACWVSE.js";
|
|
33
33
|
import {
|
|
34
34
|
renderSuccess,
|
|
35
35
|
writeNdjsonItem
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-Z67TWG6W.js";
|
|
37
|
+
import "./chunk-U55AXO2J.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -1056,7 +1056,7 @@ var voiceClipCommand = defineCommand({
|
|
|
1056
1056
|
meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
|
|
1057
1057
|
subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
|
|
1058
1058
|
async run() {
|
|
1059
|
-
const { showHelp } = await import("./examples-
|
|
1059
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
1060
1060
|
await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
@@ -1106,7 +1106,7 @@ var attachmentCommand = defineCommand({
|
|
|
1106
1106
|
meta: { name: "attachment", description: DESCRIPTIONS.campaignAttachment },
|
|
1107
1107
|
subCommands: { upload: attachmentUploadCmd, get: attachmentGetCmd },
|
|
1108
1108
|
async run() {
|
|
1109
|
-
const { showHelp } = await import("./examples-
|
|
1109
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
1110
1110
|
await showHelp(attachmentCommand, ["curviate", "campaign", "attachment"]);
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
@@ -1133,7 +1133,7 @@ var campaignCommand = defineCommand({
|
|
|
1133
1133
|
attachment: attachmentCommand
|
|
1134
1134
|
},
|
|
1135
1135
|
async run() {
|
|
1136
|
-
const { showHelp } = await import("./examples-
|
|
1136
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
1137
1137
|
await showHelp(campaignCommand, ["curviate", "campaign"]);
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4K34FHE5.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3RACWVSE.js";
|
|
31
31
|
import {
|
|
32
32
|
renderSuccess,
|
|
33
33
|
writeNdjsonItem
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-Z67TWG6W.js";
|
|
35
|
+
import "./chunk-U55AXO2J.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
WRITE_SINGLE_FLAGS,
|
|
@@ -225,7 +225,7 @@ var networkCommand = defineCommand({
|
|
|
225
225
|
meta: { name: "network", description: DESCRIPTIONS.network },
|
|
226
226
|
subCommands: { list: listCmd, status: statusCmd, export: exportCmd, resync: resyncCmd },
|
|
227
227
|
async run() {
|
|
228
|
-
const { showHelp } = await import("./examples-
|
|
228
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
229
229
|
await showHelp(networkCommand, ["curviate", "network"]);
|
|
230
230
|
}
|
|
231
231
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-Q3ZPRFUX.js";
|
|
6
6
|
import {
|
|
7
7
|
requireAccount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AR34Y3V6.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
readablePage,
|
|
17
17
|
rejectPaginationModifiersWithoutAll,
|
|
18
18
|
streamAll
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3RACWVSE.js";
|
|
20
20
|
import {
|
|
21
21
|
renderError,
|
|
22
22
|
renderSuccess,
|
|
23
23
|
renderUnexpectedError,
|
|
24
24
|
writeNdjsonItem
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Z67TWG6W.js";
|
|
26
26
|
import {
|
|
27
27
|
createClient,
|
|
28
28
|
resolveEffectiveConfig
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-U55AXO2J.js";
|
|
30
30
|
import {
|
|
31
31
|
GLOBAL_FLAGS,
|
|
32
32
|
WRITE_SINGLE_FLAGS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
DESCRIPTIONS
|
|
37
37
|
} from "./chunk-Z647LR4F.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-KU6ORZ5Z.js";
|
|
40
40
|
|
|
41
41
|
// src/commands/notification.ts
|
|
42
42
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|