@curviate/cli 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/dist/{account-VB52GIUA.js → account-FM473HEK.js} +6 -4
- package/dist/{chunk-DNTRQZBT.js → chunk-EEMJDJ4W.js} +24 -1
- package/dist/{chunk-JXF47TRY.js → chunk-M33MI53G.js} +33 -1
- package/dist/{chunk-4JHGVY7R.js → chunk-TMU3CSPR.js} +4 -0
- package/dist/cli.js +65 -16
- package/dist/{comment-Y5IU42CR.js → comment-NCDXERSI.js} +13 -8
- package/dist/{company-LGID3SK3.js → company-IYTMW64G.js} +10 -6
- package/dist/{config-Q2AEWSEC.js → config-P5CPF5WC.js} +1 -1
- package/dist/{connect-A7HEKKEE.js → connect-TTJHMBUP.js} +10 -7
- package/dist/{inbox-44JRTJAP.js → inbox-EOOGJ3ZN.js} +9 -6
- package/dist/{job-TFTTCP5B.js → job-YARGTHUY.js} +80 -10
- package/dist/{login-BBVQLXM7.js → login-MFB45PVZ.js} +1 -1
- package/dist/{message-FOJTDPW3.js → message-2DLIQIE6.js} +15 -5
- package/dist/{post-FC6NZXM5.js → post-GRIJ7X52.js} +21 -12
- package/dist/{profile-I6YMVXSS.js → profile-57RJEL7H.js} +38 -28
- package/dist/{recruiter-BHT5OJD7.js → recruiter-CTYH7AYG.js} +16 -9
- package/dist/{sales-nav-6IYKQ4TC.js → sales-nav-NUMEYOEO.js} +18 -10
- package/dist/{search-6C72M563.js → search-RD4TXNV7.js} +14 -8
- package/dist/{webhook-NSXEIU44.js → webhook-CEP7SGP5.js} +6 -4
- package/package.json +1 -1
|
@@ -17,20 +17,21 @@ import {
|
|
|
17
17
|
resolveIdentifier
|
|
18
18
|
} from "./chunk-DMQZEPQE.js";
|
|
19
19
|
import {
|
|
20
|
+
pageDelayFromFlags,
|
|
20
21
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EEMJDJ4W.js";
|
|
22
23
|
import {
|
|
23
24
|
createClient,
|
|
24
25
|
renderError,
|
|
25
26
|
renderSuccess,
|
|
26
27
|
renderUnexpectedError,
|
|
27
28
|
resolveEffectiveConfig
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-M33MI53G.js";
|
|
29
30
|
import {
|
|
30
31
|
GLOBAL_FLAGS,
|
|
31
32
|
READ_SINGLE_FLAGS,
|
|
32
33
|
WRITE_FLAGS
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TMU3CSPR.js";
|
|
34
35
|
|
|
35
36
|
// src/commands/sales-nav.ts
|
|
36
37
|
import { defineCommand } from "citty";
|
|
@@ -111,7 +112,8 @@ async function runSalesNavSearchPeople(client, flags, out, readers = DEFAULT_FIL
|
|
|
111
112
|
};
|
|
112
113
|
for await (const item of streamAll(fn, params, {
|
|
113
114
|
maxPages,
|
|
114
|
-
out
|
|
115
|
+
out,
|
|
116
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
115
117
|
})) {
|
|
116
118
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
117
119
|
}
|
|
@@ -159,7 +161,8 @@ async function runSalesNavSearchCompanies(client, flags, out, readers = DEFAULT_
|
|
|
159
161
|
};
|
|
160
162
|
for await (const item of streamAll(fn, params, {
|
|
161
163
|
maxPages,
|
|
162
|
-
out
|
|
164
|
+
out,
|
|
165
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
163
166
|
})) {
|
|
164
167
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
165
168
|
}
|
|
@@ -216,7 +219,8 @@ async function runSalesNavSearchFromUrl(client, flags, out) {
|
|
|
216
219
|
};
|
|
217
220
|
for await (const item of streamAll(fn, params, {
|
|
218
221
|
maxPages,
|
|
219
|
-
out
|
|
222
|
+
out,
|
|
223
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
220
224
|
})) {
|
|
221
225
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
222
226
|
}
|
|
@@ -346,7 +350,8 @@ async function runSalesNavAccountLists(client, flags, out) {
|
|
|
346
350
|
const fn = (p) => ns.salesNavigator.accountLists(p);
|
|
347
351
|
for await (const item of streamAll(fn, params, {
|
|
348
352
|
maxPages,
|
|
349
|
-
out
|
|
353
|
+
out,
|
|
354
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
350
355
|
})) {
|
|
351
356
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
352
357
|
}
|
|
@@ -373,7 +378,8 @@ async function runSalesNavLeadLists(client, flags, out) {
|
|
|
373
378
|
const fn = (p) => ns.salesNavigator.leadLists(p);
|
|
374
379
|
for await (const item of streamAll(fn, params, {
|
|
375
380
|
maxPages,
|
|
376
|
-
out
|
|
381
|
+
out,
|
|
382
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
377
383
|
})) {
|
|
378
384
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
379
385
|
}
|
|
@@ -405,7 +411,8 @@ async function runSalesNavBrowseAccountList(client, flags, out) {
|
|
|
405
411
|
const fn = (p) => ns.salesNavigator.browseAccountList(listId, body, p);
|
|
406
412
|
for await (const item of streamAll(fn, params, {
|
|
407
413
|
maxPages,
|
|
408
|
-
out
|
|
414
|
+
out,
|
|
415
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
409
416
|
})) {
|
|
410
417
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
411
418
|
}
|
|
@@ -437,7 +444,8 @@ async function runSalesNavBrowseLeadList(client, flags, out) {
|
|
|
437
444
|
const fn = (p) => ns.salesNavigator.browseLeadList(listId, body, p);
|
|
438
445
|
for await (const item of streamAll(fn, params, {
|
|
439
446
|
maxPages,
|
|
440
|
-
out
|
|
447
|
+
out,
|
|
448
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
441
449
|
})) {
|
|
442
450
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
443
451
|
}
|
|
@@ -16,18 +16,19 @@ import {
|
|
|
16
16
|
slimSearchPostsItem
|
|
17
17
|
} from "./chunk-45KHSWCV.js";
|
|
18
18
|
import {
|
|
19
|
+
pageDelayFromFlags,
|
|
19
20
|
streamAll
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EEMJDJ4W.js";
|
|
21
22
|
import {
|
|
22
23
|
createClient,
|
|
23
24
|
renderError,
|
|
24
25
|
renderSuccess,
|
|
25
26
|
renderUnexpectedError,
|
|
26
27
|
resolveEffectiveConfig
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-M33MI53G.js";
|
|
28
29
|
import {
|
|
29
30
|
GLOBAL_FLAGS
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TMU3CSPR.js";
|
|
31
32
|
|
|
32
33
|
// src/commands/search.ts
|
|
33
34
|
import { defineCommand } from "citty";
|
|
@@ -206,7 +207,8 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
206
207
|
const fn = (p) => ns.search.people(p);
|
|
207
208
|
for await (const item of streamAll(fn, body, {
|
|
208
209
|
maxPages,
|
|
209
|
-
out
|
|
210
|
+
out,
|
|
211
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
210
212
|
})) {
|
|
211
213
|
const projected = verbose ? item : slimSearchPeopleItem(item);
|
|
212
214
|
out.stdout.write(JSON.stringify(projected) + "\n");
|
|
@@ -246,7 +248,8 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
246
248
|
const fn = (p) => ns.search.companies(p);
|
|
247
249
|
for await (const item of streamAll(fn, body, {
|
|
248
250
|
maxPages,
|
|
249
|
-
out
|
|
251
|
+
out,
|
|
252
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
250
253
|
})) {
|
|
251
254
|
const projected = verbose ? item : slimSearchCompaniesItem(item);
|
|
252
255
|
out.stdout.write(JSON.stringify(projected) + "\n");
|
|
@@ -286,7 +289,8 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
286
289
|
const fn = (p) => ns.search.posts(p);
|
|
287
290
|
for await (const item of streamAll(fn, body, {
|
|
288
291
|
maxPages,
|
|
289
|
-
out
|
|
292
|
+
out,
|
|
293
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
290
294
|
})) {
|
|
291
295
|
const projected = verbose ? item : slimSearchPostsItem(item);
|
|
292
296
|
out.stdout.write(JSON.stringify(projected) + "\n");
|
|
@@ -326,7 +330,8 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
326
330
|
const fn = (p) => ns.search.jobs(p);
|
|
327
331
|
for await (const item of streamAll(fn, body, {
|
|
328
332
|
maxPages,
|
|
329
|
-
out
|
|
333
|
+
out,
|
|
334
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
330
335
|
})) {
|
|
331
336
|
const projected = verbose ? item : slimSearchJobsItem(item);
|
|
332
337
|
out.stdout.write(JSON.stringify(projected) + "\n");
|
|
@@ -396,7 +401,8 @@ async function runSearchFromUrl(client, flags, out) {
|
|
|
396
401
|
const fn = (p) => ns.search.fromUrl(p);
|
|
397
402
|
for await (const item of streamAll(fn, body, {
|
|
398
403
|
maxPages,
|
|
399
|
-
out
|
|
404
|
+
out,
|
|
405
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
400
406
|
})) {
|
|
401
407
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
402
408
|
}
|
|
@@ -3,18 +3,19 @@ import {
|
|
|
3
3
|
buildPreviewOutput
|
|
4
4
|
} from "./chunk-R3VLWLVV.js";
|
|
5
5
|
import {
|
|
6
|
+
pageDelayFromFlags,
|
|
6
7
|
streamAll
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EEMJDJ4W.js";
|
|
8
9
|
import {
|
|
9
10
|
createClient,
|
|
10
11
|
renderError,
|
|
11
12
|
renderSuccess,
|
|
12
13
|
renderUnexpectedError,
|
|
13
14
|
resolveEffectiveConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M33MI53G.js";
|
|
15
16
|
import {
|
|
16
17
|
GLOBAL_FLAGS
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TMU3CSPR.js";
|
|
18
19
|
|
|
19
20
|
// src/commands/webhook.ts
|
|
20
21
|
import { defineCommand } from "citty";
|
|
@@ -110,7 +111,8 @@ async function runWebhookList(client, flags, out) {
|
|
|
110
111
|
const fn = (p) => client.webhooks.list(p);
|
|
111
112
|
for await (const item of streamAll(fn, params, {
|
|
112
113
|
maxPages,
|
|
113
|
-
out
|
|
114
|
+
out,
|
|
115
|
+
pageDelayMs: pageDelayFromFlags(flags)
|
|
114
116
|
})) {
|
|
115
117
|
out.stdout.write(JSON.stringify(item) + "\n");
|
|
116
118
|
}
|