bereach 1.4.0-beta.9 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/esm/funcs/contacts-campaign-status-transition.d.ts +18 -0
- package/esm/funcs/contacts-campaign-status-transition.d.ts.map +1 -0
- package/esm/funcs/contacts-campaign-status-transition.js +103 -0
- package/esm/funcs/contacts-campaign-status-transition.js.map +1 -0
- package/esm/funcs/contacts-delete-campaign.d.ts +18 -0
- package/esm/funcs/contacts-delete-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-delete-campaign.js +102 -0
- package/esm/funcs/contacts-delete-campaign.js.map +1 -0
- package/esm/funcs/contacts-get-campaign.d.ts +18 -0
- package/esm/funcs/contacts-get-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-get-campaign.js +102 -0
- package/esm/funcs/contacts-get-campaign.js.map +1 -0
- package/esm/funcs/contacts-list-agent-states.d.ts +2 -2
- package/esm/funcs/contacts-list-agent-states.d.ts.map +1 -1
- package/esm/funcs/contacts-list-agent-states.js +18 -4
- package/esm/funcs/contacts-list-agent-states.js.map +1 -1
- package/esm/funcs/profile-list-connections.js +2 -0
- package/esm/funcs/profile-list-connections.js.map +1 -1
- package/esm/funcs/scrapers-bulk-visit-batch-status.d.ts +18 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.d.ts.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.js +102 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.js.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-profile.d.ts +18 -0
- package/esm/funcs/scrapers-bulk-visit-profile.d.ts.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-profile.js +97 -0
- package/esm/funcs/scrapers-bulk-visit-profile.js.map +1 -0
- package/esm/funcs/scrapers-visit-profile.d.ts +1 -1
- package/esm/funcs/scrapers-visit-profile.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/operations/index.d.ts +3 -3
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +3 -3
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/{search-jobs-type.d.ts → search-companies-response.d.ts} +159 -129
- package/esm/models/operations/search-companies-response.d.ts.map +1 -0
- package/esm/models/operations/{search-jobs-type.js → search-companies-response.js} +91 -74
- package/esm/models/operations/search-companies-response.js.map +1 -0
- package/esm/models/operations/{update-outreach-status.d.ts → search-contacts-campaign.d.ts} +125 -188
- package/esm/models/operations/search-contacts-campaign.d.ts.map +1 -0
- package/esm/models/operations/{update-outreach-status.js → search-contacts-campaign.js} +104 -153
- package/esm/models/operations/search-contacts-campaign.js.map +1 -0
- package/esm/models/operations/{refresh-type.d.ts → update-account-response.d.ts} +156 -71
- package/esm/models/operations/update-account-response.d.ts.map +1 -0
- package/esm/models/operations/{refresh-type.js → update-account-response.js} +81 -75
- package/esm/models/operations/update-account-response.js.map +1 -0
- package/esm/models/operations/update-schedule-response.d.ts +663 -34
- package/esm/models/operations/update-schedule-response.d.ts.map +1 -1
- package/esm/models/operations/update-schedule-response.js +362 -32
- package/esm/models/operations/update-schedule-response.js.map +1 -1
- package/esm/sdk/contacts.d.ts +23 -2
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +33 -3
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/scrapers.d.ts +15 -1
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +21 -1
- package/esm/sdk/scrapers.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +4 -2
- package/src/funcs/contacts-campaign-status-transition.ts +233 -0
- package/src/funcs/contacts-delete-campaign.ts +229 -0
- package/src/funcs/contacts-get-campaign.ts +229 -0
- package/src/funcs/contacts-list-agent-states.ts +28 -1
- package/src/funcs/profile-list-connections.ts +2 -0
- package/src/funcs/scrapers-bulk-visit-batch-status.ts +230 -0
- package/src/funcs/scrapers-bulk-visit-profile.ts +225 -0
- package/src/funcs/scrapers-visit-profile.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/index.ts +3 -3
- package/src/models/operations/{search-jobs-type.ts → search-companies-response.ts} +288 -186
- package/src/models/operations/{update-outreach-status.ts → search-contacts-campaign.ts} +288 -387
- package/src/models/operations/{refresh-type.ts → update-account-response.ts} +212 -203
- package/src/models/operations/update-schedule-response.ts +1246 -152
- package/src/sdk/contacts.ts +57 -1
- package/src/sdk/scrapers.ts +37 -1
- package/esm/models/operations/refresh-type.d.ts.map +0 -1
- package/esm/models/operations/refresh-type.js.map +0 -1
- package/esm/models/operations/search-jobs-type.d.ts.map +0 -1
- package/esm/models/operations/search-jobs-type.js.map +0 -1
- package/esm/models/operations/update-outreach-status.d.ts.map +0 -1
- package/esm/models/operations/update-outreach-status.js.map +0 -1
- package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/examples/node_modules/@types/node/assert.d.ts +0 -1062
- package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
- package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
- package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
- package/examples/node_modules/@types/node/cluster.d.ts +0 -577
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/examples/node_modules/@types/node/console.d.ts +0 -452
- package/examples/node_modules/@types/node/constants.d.ts +0 -21
- package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
- package/examples/node_modules/@types/node/dgram.d.ts +0 -597
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/examples/node_modules/@types/node/dns.d.ts +0 -871
- package/examples/node_modules/@types/node/domain.d.ts +0 -170
- package/examples/node_modules/@types/node/events.d.ts +0 -977
- package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
- package/examples/node_modules/@types/node/fs.d.ts +0 -4375
- package/examples/node_modules/@types/node/globals.d.ts +0 -172
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/examples/node_modules/@types/node/http.d.ts +0 -2049
- package/examples/node_modules/@types/node/http2.d.ts +0 -2631
- package/examples/node_modules/@types/node/https.d.ts +0 -578
- package/examples/node_modules/@types/node/index.d.ts +0 -93
- package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/examples/node_modules/@types/node/module.d.ts +0 -539
- package/examples/node_modules/@types/node/net.d.ts +0 -1012
- package/examples/node_modules/@types/node/os.d.ts +0 -506
- package/examples/node_modules/@types/node/path.d.ts +0 -200
- package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/examples/node_modules/@types/node/process.d.ts +0 -1961
- package/examples/node_modules/@types/node/punycode.d.ts +0 -117
- package/examples/node_modules/@types/node/querystring.d.ts +0 -152
- package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/examples/node_modules/@types/node/readline.d.ts +0 -589
- package/examples/node_modules/@types/node/repl.d.ts +0 -430
- package/examples/node_modules/@types/node/sea.d.ts +0 -153
- package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
- package/examples/node_modules/@types/node/stream.d.ts +0 -1675
- package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/examples/node_modules/@types/node/test.d.ts +0 -1787
- package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/examples/node_modules/@types/node/timers.d.ts +0 -286
- package/examples/node_modules/@types/node/tls.d.ts +0 -1259
- package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/examples/node_modules/@types/node/tty.d.ts +0 -208
- package/examples/node_modules/@types/node/url.d.ts +0 -964
- package/examples/node_modules/@types/node/util.d.ts +0 -2331
- package/examples/node_modules/@types/node/v8.d.ts +0 -809
- package/examples/node_modules/@types/node/vm.d.ts +0 -1001
- package/examples/node_modules/@types/node/wasi.d.ts +0 -181
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/examples/node_modules/@types/node/zlib.d.ts +0 -598
- package/examples/node_modules/dotenv/config.d.ts +0 -1
- package/examples/node_modules/dotenv/config.js +0 -9
- package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
- package/examples/node_modules/dotenv/lib/env-options.js +0 -28
- package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
- package/examples/node_modules/dotenv/lib/main.js +0 -386
- package/examples/node_modules/esbuild/install.js +0 -289
- package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
- package/examples/node_modules/esbuild/lib/main.js +0 -2242
- package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -7
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cli.mjs +0 -55
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +0 -2
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +0 -14
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
- package/examples/node_modules/tsx/dist/loader.mjs +0 -1
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +0 -1
- package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
- package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +0 -4
- package/examples/node_modules/tsx/dist/repl.mjs +0 -3
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +0 -1
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
- package/examples/node_modules/undici-types/agent.d.ts +0 -31
- package/examples/node_modules/undici-types/api.d.ts +0 -43
- package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/examples/node_modules/undici-types/cache.d.ts +0 -36
- package/examples/node_modules/undici-types/client.d.ts +0 -108
- package/examples/node_modules/undici-types/connector.d.ts +0 -34
- package/examples/node_modules/undici-types/content-type.d.ts +0 -21
- package/examples/node_modules/undici-types/cookies.d.ts +0 -28
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/examples/node_modules/undici-types/errors.d.ts +0 -149
- package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
- package/examples/node_modules/undici-types/fetch.d.ts +0 -209
- package/examples/node_modules/undici-types/file.d.ts +0 -39
- package/examples/node_modules/undici-types/filereader.d.ts +0 -54
- package/examples/node_modules/undici-types/formdata.d.ts +0 -108
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
- package/examples/node_modules/undici-types/handlers.d.ts +0 -15
- package/examples/node_modules/undici-types/header.d.ts +0 -4
- package/examples/node_modules/undici-types/index.d.ts +0 -71
- package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
- package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
- package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/examples/node_modules/undici-types/patch.d.ts +0 -33
- package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/examples/node_modules/undici-types/pool.d.ts +0 -39
- package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/examples/node_modules/undici-types/readable.d.ts +0 -65
- package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/examples/node_modules/undici-types/util.d.ts +0 -18
- package/examples/node_modules/undici-types/webidl.d.ts +0 -228
- package/examples/node_modules/undici-types/websocket.d.ts +0 -150
package/README.md
CHANGED
|
@@ -220,7 +220,10 @@ run();
|
|
|
220
220
|
* [patchAgentState](docs/sdks/contacts/README.md#patchagentstate) - Merge-update agent state by key
|
|
221
221
|
* [listCampaigns](docs/sdks/contacts/README.md#listcampaigns) - List campaigns
|
|
222
222
|
* [createCampaign](docs/sdks/contacts/README.md#createcampaign) - Create a lead-gen campaign
|
|
223
|
+
* [getCampaign](docs/sdks/contacts/README.md#getcampaign) - Get a single campaign
|
|
224
|
+
* [deleteCampaign](docs/sdks/contacts/README.md#deletecampaign) - Delete a campaign
|
|
223
225
|
* [updateCampaign](docs/sdks/contacts/README.md#updatecampaign) - Update campaign settings
|
|
226
|
+
* [campaignStatusTransition](docs/sdks/contacts/README.md#campaignstatustransition) - Campaign state transition
|
|
224
227
|
* [listByCampaign](docs/sdks/contacts/README.md#listbycampaign) - List contacts in a campaign
|
|
225
228
|
* [addToCampaign](docs/sdks/contacts/README.md#addtocampaign) - Add contacts to a campaign
|
|
226
229
|
* [getByUrl](docs/sdks/contacts/README.md#getbyurl) - Look up contact by LinkedIn URL
|
|
@@ -273,6 +276,8 @@ run();
|
|
|
273
276
|
* [collectCommentReplies](docs/sdks/scrapers/README.md#collectcommentreplies) - Scrape replies to a LinkedIn comment
|
|
274
277
|
* [collectPosts](docs/sdks/scrapers/README.md#collectposts) - Scrape LinkedIn profile posts
|
|
275
278
|
* [visitProfile](docs/sdks/scrapers/README.md#visitprofile) - Visit LinkedIn profile and extract contact data
|
|
279
|
+
* [bulkVisitProfile](docs/sdks/scrapers/README.md#bulkvisitprofile) - Queue bulk LinkedIn profile visits (fire-and-forget)
|
|
280
|
+
* [bulkVisitBatchStatus](docs/sdks/scrapers/README.md#bulkvisitbatchstatus) - Get bulk visit batch status
|
|
276
281
|
* [visitCompany](docs/sdks/scrapers/README.md#visitcompany) - Visit LinkedIn company page and extract profile data
|
|
277
282
|
* [listSavedPosts](docs/sdks/scrapers/README.md#listsavedposts) - List saved posts
|
|
278
283
|
* [getFeed](docs/sdks/scrapers/README.md#getfeed) - Get home feed
|
|
@@ -355,11 +360,14 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
355
360
|
- [`contactsAddActivities`](docs/sdks/contacts/README.md#addactivities) - Log activities for a contact
|
|
356
361
|
- [`contactsAddToCampaign`](docs/sdks/contacts/README.md#addtocampaign) - Add contacts to a campaign
|
|
357
362
|
- [`contactsBulkUpdate`](docs/sdks/contacts/README.md#bulkupdate) - Bulk update contacts
|
|
363
|
+
- [`contactsCampaignStatusTransition`](docs/sdks/contacts/README.md#campaignstatustransition) - Campaign state transition
|
|
358
364
|
- [`contactsCreateCampaign`](docs/sdks/contacts/README.md#createcampaign) - Create a lead-gen campaign
|
|
359
365
|
- [`contactsDeleteAgentState`](docs/sdks/contacts/README.md#deleteagentstate) - Delete agent state by key
|
|
366
|
+
- [`contactsDeleteCampaign`](docs/sdks/contacts/README.md#deletecampaign) - Delete a campaign
|
|
360
367
|
- [`contactsGet`](docs/sdks/contacts/README.md#get) - Get a single contact with activities and campaigns
|
|
361
368
|
- [`contactsGetAgentState`](docs/sdks/contacts/README.md#getagentstate) - Get agent state by key
|
|
362
369
|
- [`contactsGetByUrl`](docs/sdks/contacts/README.md#getbyurl) - Look up contact by LinkedIn URL
|
|
370
|
+
- [`contactsGetCampaign`](docs/sdks/contacts/README.md#getcampaign) - Get a single campaign
|
|
363
371
|
- [`contactsListActivities`](docs/sdks/contacts/README.md#listactivities) - List activities for a contact
|
|
364
372
|
- [`contactsListAgentStates`](docs/sdks/contacts/README.md#listagentstates) - List all agent state entries
|
|
365
373
|
- [`contactsListByCampaign`](docs/sdks/contacts/README.md#listbycampaign) - List contacts in a campaign
|
|
@@ -397,6 +405,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
397
405
|
- [`scheduledMessagesCancel`](docs/sdks/scheduledmessages/README.md#cancel) - Cancel scheduled or draft messages
|
|
398
406
|
- [`scheduledMessagesCreate`](docs/sdks/scheduledmessages/README.md#create) - Create a draft DM
|
|
399
407
|
- [`scheduledMessagesList`](docs/sdks/scheduledmessages/README.md#list) - List scheduled messages
|
|
408
|
+
- [`scrapersBulkVisitBatchStatus`](docs/sdks/scrapers/README.md#bulkvisitbatchstatus) - Get bulk visit batch status
|
|
409
|
+
- [`scrapersBulkVisitProfile`](docs/sdks/scrapers/README.md#bulkvisitprofile) - Queue bulk LinkedIn profile visits (fire-and-forget)
|
|
400
410
|
- [`scrapersCollectCommentReplies`](docs/sdks/scrapers/README.md#collectcommentreplies) - Scrape replies to a LinkedIn comment
|
|
401
411
|
- [`scrapersCollectComments`](docs/sdks/scrapers/README.md#collectcomments) - Scrape LinkedIn post comments
|
|
402
412
|
- [`scrapersCollectHashtagPosts`](docs/sdks/scrapers/README.md#collecthashtagposts) - Collect posts from a hashtag
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BereachCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Campaign state transition
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Transition a campaign between states: activate, start, pause, resume, complete, reset. 0 credits.
|
|
16
|
+
*/
|
|
17
|
+
export declare function contactsCampaignStatusTransition(client: BereachCore, request: operations.CampaignStatusTransitionRequest, options?: RequestOptions): APIPromise<Result<operations.CampaignStatusTransitionResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | errors.BadGatewayError | errors.ServiceUnavailableError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=contacts-campaign-status-transition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-campaign-status-transition.d.ts","sourceRoot":"","sources":["../../src/funcs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|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Campaign state transition
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Transition a campaign between states: activate, start, pause, resume, complete, reset. 0 credits.
|
|
19
|
+
*/
|
|
20
|
+
export function contactsCampaignStatusTransition(client, request, options) {
|
|
21
|
+
return new APIPromise($do(client, request, options));
|
|
22
|
+
}
|
|
23
|
+
async function $do(client, request, options) {
|
|
24
|
+
const parsed = safeParse(request, (value) => z.parse(operations.CampaignStatusTransitionRequest$outboundSchema, value), "Input validation failed");
|
|
25
|
+
if (!parsed.ok) {
|
|
26
|
+
return [parsed, { status: "invalid" }];
|
|
27
|
+
}
|
|
28
|
+
const payload = parsed.value;
|
|
29
|
+
const body = encodeJSON("body", payload.body, { explode: true });
|
|
30
|
+
const pathParams = {
|
|
31
|
+
campaignId: encodeSimple("campaignId", payload.campaignId, {
|
|
32
|
+
explode: false,
|
|
33
|
+
charEncoding: "percent",
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
const path = pathToFunc("/contacts/campaigns/{campaignId}/status")(pathParams);
|
|
37
|
+
const headers = new Headers(compactMap({
|
|
38
|
+
"Content-Type": "application/json",
|
|
39
|
+
Accept: "application/json",
|
|
40
|
+
}));
|
|
41
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
42
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
43
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44
|
+
const context = {
|
|
45
|
+
options: client._options,
|
|
46
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47
|
+
operationID: "campaignStatusTransition",
|
|
48
|
+
oAuth2Scopes: null,
|
|
49
|
+
resolvedSecurity: requestSecurity,
|
|
50
|
+
securitySource: client._options.token,
|
|
51
|
+
retryConfig: options?.retries
|
|
52
|
+
|| client._options.retryConfig
|
|
53
|
+
|| { strategy: "none" },
|
|
54
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
55
|
+
};
|
|
56
|
+
const requestRes = client._createRequest(context, {
|
|
57
|
+
security: requestSecurity,
|
|
58
|
+
method: "POST",
|
|
59
|
+
baseURL: options?.serverURL,
|
|
60
|
+
path: path,
|
|
61
|
+
headers: headers,
|
|
62
|
+
body: body,
|
|
63
|
+
userAgent: client._options.userAgent,
|
|
64
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
65
|
+
}, options);
|
|
66
|
+
if (!requestRes.ok) {
|
|
67
|
+
return [requestRes, { status: "invalid" }];
|
|
68
|
+
}
|
|
69
|
+
const req = requestRes.value;
|
|
70
|
+
const doResult = await client._do(req, {
|
|
71
|
+
context,
|
|
72
|
+
errorCodes: [
|
|
73
|
+
"400",
|
|
74
|
+
"401",
|
|
75
|
+
"403",
|
|
76
|
+
"404",
|
|
77
|
+
"409",
|
|
78
|
+
"410",
|
|
79
|
+
"422",
|
|
80
|
+
"429",
|
|
81
|
+
"4XX",
|
|
82
|
+
"500",
|
|
83
|
+
"502",
|
|
84
|
+
"503",
|
|
85
|
+
"5XX",
|
|
86
|
+
],
|
|
87
|
+
retryConfig: context.retryConfig,
|
|
88
|
+
retryCodes: context.retryCodes,
|
|
89
|
+
});
|
|
90
|
+
if (!doResult.ok) {
|
|
91
|
+
return [doResult, { status: "request-error", request: req }];
|
|
92
|
+
}
|
|
93
|
+
const response = doResult.value;
|
|
94
|
+
const responseFields = {
|
|
95
|
+
HttpMeta: { Response: response, Request: req },
|
|
96
|
+
};
|
|
97
|
+
const [result] = await M.match(M.json(200, operations.CampaignStatusTransitionResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthorizedError$inboundSchema), M.jsonErr(403, errors.ForbiddenError$inboundSchema), M.jsonErr(404, errors.NotFoundError$inboundSchema), M.jsonErr(409, errors.ConflictError$inboundSchema), M.jsonErr(410, errors.GoneError$inboundSchema), M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.jsonErr(502, errors.BadGatewayError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
98
|
+
if (!result.ok) {
|
|
99
|
+
return [result, { status: "complete", request: req, response }];
|
|
100
|
+
}
|
|
101
|
+
return [result, { status: "complete", request: req, response }];
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=contacts-campaign-status-transition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-campaign-status-transition.js","sourceRoot":"","sources":["../../src/funcs/contacts-campaign-status-transition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E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AAE,MAAM,CAAC,2BAA2B,CAAC,EAClD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sCAAsC,CAAC,EAC7D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kCAAkC,CAAC,EACzD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,6BAA6B,CAAC,EACpD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BereachCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Delete a campaign
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Delete a campaign. Campaign contacts are cascade-deleted but contacts themselves survive. 0 credits.
|
|
16
|
+
*/
|
|
17
|
+
export declare function contactsDeleteCampaign(client: BereachCore, request: operations.DeleteCampaignRequest, options?: RequestOptions): APIPromise<Result<operations.DeleteCampaignResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | errors.BadGatewayError | errors.ServiceUnavailableError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=contacts-delete-campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-delete-campaign.d.ts","sourceRoot":"","sources":["../../src/funcs/contacts-delete-campaign.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,cAAc,GACrB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,uBAAuB,GAC9B,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Delete a campaign
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Delete a campaign. Campaign contacts are cascade-deleted but contacts themselves survive. 0 credits.
|
|
19
|
+
*/
|
|
20
|
+
export function contactsDeleteCampaign(client, request, options) {
|
|
21
|
+
return new APIPromise($do(client, request, options));
|
|
22
|
+
}
|
|
23
|
+
async function $do(client, request, options) {
|
|
24
|
+
const parsed = safeParse(request, (value) => z.parse(operations.DeleteCampaignRequest$outboundSchema, value), "Input validation failed");
|
|
25
|
+
if (!parsed.ok) {
|
|
26
|
+
return [parsed, { status: "invalid" }];
|
|
27
|
+
}
|
|
28
|
+
const payload = parsed.value;
|
|
29
|
+
const body = null;
|
|
30
|
+
const pathParams = {
|
|
31
|
+
campaignId: encodeSimple("campaignId", payload.campaignId, {
|
|
32
|
+
explode: false,
|
|
33
|
+
charEncoding: "percent",
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
const path = pathToFunc("/contacts/campaigns/{campaignId}")(pathParams);
|
|
37
|
+
const headers = new Headers(compactMap({
|
|
38
|
+
Accept: "application/json",
|
|
39
|
+
}));
|
|
40
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
41
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
42
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43
|
+
const context = {
|
|
44
|
+
options: client._options,
|
|
45
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46
|
+
operationID: "deleteCampaign",
|
|
47
|
+
oAuth2Scopes: null,
|
|
48
|
+
resolvedSecurity: requestSecurity,
|
|
49
|
+
securitySource: client._options.token,
|
|
50
|
+
retryConfig: options?.retries
|
|
51
|
+
|| client._options.retryConfig
|
|
52
|
+
|| { strategy: "none" },
|
|
53
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
54
|
+
};
|
|
55
|
+
const requestRes = client._createRequest(context, {
|
|
56
|
+
security: requestSecurity,
|
|
57
|
+
method: "DELETE",
|
|
58
|
+
baseURL: options?.serverURL,
|
|
59
|
+
path: path,
|
|
60
|
+
headers: headers,
|
|
61
|
+
body: body,
|
|
62
|
+
userAgent: client._options.userAgent,
|
|
63
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
64
|
+
}, options);
|
|
65
|
+
if (!requestRes.ok) {
|
|
66
|
+
return [requestRes, { status: "invalid" }];
|
|
67
|
+
}
|
|
68
|
+
const req = requestRes.value;
|
|
69
|
+
const doResult = await client._do(req, {
|
|
70
|
+
context,
|
|
71
|
+
errorCodes: [
|
|
72
|
+
"400",
|
|
73
|
+
"401",
|
|
74
|
+
"403",
|
|
75
|
+
"404",
|
|
76
|
+
"409",
|
|
77
|
+
"410",
|
|
78
|
+
"422",
|
|
79
|
+
"429",
|
|
80
|
+
"4XX",
|
|
81
|
+
"500",
|
|
82
|
+
"502",
|
|
83
|
+
"503",
|
|
84
|
+
"5XX",
|
|
85
|
+
],
|
|
86
|
+
retryConfig: context.retryConfig,
|
|
87
|
+
retryCodes: context.retryCodes,
|
|
88
|
+
});
|
|
89
|
+
if (!doResult.ok) {
|
|
90
|
+
return [doResult, { status: "request-error", request: req }];
|
|
91
|
+
}
|
|
92
|
+
const response = doResult.value;
|
|
93
|
+
const responseFields = {
|
|
94
|
+
HttpMeta: { Response: response, Request: req },
|
|
95
|
+
};
|
|
96
|
+
const [result] = await M.match(M.json(200, operations.DeleteCampaignResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthorizedError$inboundSchema), M.jsonErr(403, errors.ForbiddenError$inboundSchema), M.jsonErr(404, errors.NotFoundError$inboundSchema), M.jsonErr(409, errors.ConflictError$inboundSchema), M.jsonErr(410, errors.GoneError$inboundSchema), M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.jsonErr(502, errors.BadGatewayError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97
|
+
if (!result.ok) {
|
|
98
|
+
return [result, { status: "complete", request: req, response }];
|
|
99
|
+
}
|
|
100
|
+
return [result, { status: "complete", request: req, response }];
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=contacts-delete-campaign.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-delete-campaign.js","sourceRoot":"","sources":["../../src/funcs/contacts-delete-campaign.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAmB,EACnB,OAAyC,EACzC,OAAwB,EAwBxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAmB,EACnB,OAAyC,EACzC,OAAwB,EA2BxB;IACA,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,oCAAoC,EAAE,KA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AM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BereachCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Get a single campaign
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Get a campaign by ID with full details. 0 credits.
|
|
16
|
+
*/
|
|
17
|
+
export declare function contactsGetCampaign(client: BereachCore, request: operations.GetCampaignRequest, options?: RequestOptions): APIPromise<Result<operations.GetCampaignResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | errors.BadGatewayError | errors.ServiceUnavailableError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=contacts-get-campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-get-camp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 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Get a single campaign
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Get a campaign by ID with full details. 0 credits.
|
|
19
|
+
*/
|
|
20
|
+
export function contactsGetCampaign(client, request, options) {
|
|
21
|
+
return new APIPromise($do(client, request, options));
|
|
22
|
+
}
|
|
23
|
+
async function $do(client, request, options) {
|
|
24
|
+
const parsed = safeParse(request, (value) => z.parse(operations.GetCampaignRequest$outboundSchema, value), "Input validation failed");
|
|
25
|
+
if (!parsed.ok) {
|
|
26
|
+
return [parsed, { status: "invalid" }];
|
|
27
|
+
}
|
|
28
|
+
const payload = parsed.value;
|
|
29
|
+
const body = null;
|
|
30
|
+
const pathParams = {
|
|
31
|
+
campaignId: encodeSimple("campaignId", payload.campaignId, {
|
|
32
|
+
explode: false,
|
|
33
|
+
charEncoding: "percent",
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
const path = pathToFunc("/contacts/campaigns/{campaignId}")(pathParams);
|
|
37
|
+
const headers = new Headers(compactMap({
|
|
38
|
+
Accept: "application/json",
|
|
39
|
+
}));
|
|
40
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
41
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
42
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43
|
+
const context = {
|
|
44
|
+
options: client._options,
|
|
45
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46
|
+
operationID: "getCampaign",
|
|
47
|
+
oAuth2Scopes: null,
|
|
48
|
+
resolvedSecurity: requestSecurity,
|
|
49
|
+
securitySource: client._options.token,
|
|
50
|
+
retryConfig: options?.retries
|
|
51
|
+
|| client._options.retryConfig
|
|
52
|
+
|| { strategy: "none" },
|
|
53
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
54
|
+
};
|
|
55
|
+
const requestRes = client._createRequest(context, {
|
|
56
|
+
security: requestSecurity,
|
|
57
|
+
method: "GET",
|
|
58
|
+
baseURL: options?.serverURL,
|
|
59
|
+
path: path,
|
|
60
|
+
headers: headers,
|
|
61
|
+
body: body,
|
|
62
|
+
userAgent: client._options.userAgent,
|
|
63
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
64
|
+
}, options);
|
|
65
|
+
if (!requestRes.ok) {
|
|
66
|
+
return [requestRes, { status: "invalid" }];
|
|
67
|
+
}
|
|
68
|
+
const req = requestRes.value;
|
|
69
|
+
const doResult = await client._do(req, {
|
|
70
|
+
context,
|
|
71
|
+
errorCodes: [
|
|
72
|
+
"400",
|
|
73
|
+
"401",
|
|
74
|
+
"403",
|
|
75
|
+
"404",
|
|
76
|
+
"409",
|
|
77
|
+
"410",
|
|
78
|
+
"422",
|
|
79
|
+
"429",
|
|
80
|
+
"4XX",
|
|
81
|
+
"500",
|
|
82
|
+
"502",
|
|
83
|
+
"503",
|
|
84
|
+
"5XX",
|
|
85
|
+
],
|
|
86
|
+
retryConfig: context.retryConfig,
|
|
87
|
+
retryCodes: context.retryCodes,
|
|
88
|
+
});
|
|
89
|
+
if (!doResult.ok) {
|
|
90
|
+
return [doResult, { status: "request-error", request: req }];
|
|
91
|
+
}
|
|
92
|
+
const response = doResult.value;
|
|
93
|
+
const responseFields = {
|
|
94
|
+
HttpMeta: { Response: response, Request: req },
|
|
95
|
+
};
|
|
96
|
+
const [result] = await M.match(M.json(200, operations.GetCampaignResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthorizedError$inboundSchema), M.jsonErr(403, errors.ForbiddenError$inboundSchema), M.jsonErr(404, errors.NotFoundError$inboundSchema), M.jsonErr(409, errors.ConflictError$inboundSchema), M.jsonErr(410, errors.GoneError$inboundSchema), M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.jsonErr(502, errors.BadGatewayError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97
|
+
if (!result.ok) {
|
|
98
|
+
return [result, { status: "complete", request: req, response }];
|
|
99
|
+
}
|
|
100
|
+
return [result, { status: "complete", request: req, response }];
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=contacts-get-campaign.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-get-campaign.js","sourceRoot":"","sources":["../../src/funcs/contacts-get-campaign.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAG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,GAAG,EAAE,MAAM,CAAC,kCAAkC,CAAC,EACzD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,6BAA6B,CAAC,EACpD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* List all agent state entries
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* List all key-value state entries for the current workspace. 0 credits.
|
|
15
|
+
* List all key-value state entries for the current workspace. Pass keysOnly=true to return only keys and timestamps without the data payload. 0 credits.
|
|
16
16
|
*/
|
|
17
|
-
export declare function contactsListAgentStates(client: BereachCore, options?: RequestOptions): APIPromise<Result<operations.ListAgentStatesResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | errors.BadGatewayError | errors.ServiceUnavailableError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
export declare function contactsListAgentStates(client: BereachCore, request?: operations.ListAgentStatesRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.ListAgentStatesResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | errors.BadGatewayError | errors.ServiceUnavailableError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=contacts-list-agent-states.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-list-agent-states.d.ts","sourceRoot":"","sources":["../../src/funcs/contacts-list-agent-states.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contacts-list-agent-states.d.ts","sourceRoot":"","sources":["../../src/funcs/contacts-list-agent-states.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,cAAc,GACrB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,uBAAuB,GAC9B,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
4
6
|
import * as M from "../lib/matchers.js";
|
|
5
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
9
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
7
10
|
import { pathToFunc } from "../lib/url.js";
|
|
8
11
|
import * as errors from "../models/errors/index.js";
|
|
@@ -12,13 +15,22 @@ import { APIPromise } from "../types/async.js";
|
|
|
12
15
|
* List all agent state entries
|
|
13
16
|
*
|
|
14
17
|
* @remarks
|
|
15
|
-
* List all key-value state entries for the current workspace. 0 credits.
|
|
18
|
+
* List all key-value state entries for the current workspace. Pass keysOnly=true to return only keys and timestamps without the data payload. 0 credits.
|
|
16
19
|
*/
|
|
17
|
-
export function contactsListAgentStates(client, options) {
|
|
18
|
-
return new APIPromise($do(client, options));
|
|
20
|
+
export function contactsListAgentStates(client, request, options) {
|
|
21
|
+
return new APIPromise($do(client, request, options));
|
|
19
22
|
}
|
|
20
|
-
async function $do(client, options) {
|
|
23
|
+
async function $do(client, request, options) {
|
|
24
|
+
const parsed = safeParse(request, (value) => z.parse(z.optional(operations.ListAgentStatesRequest$outboundSchema), value), "Input validation failed");
|
|
25
|
+
if (!parsed.ok) {
|
|
26
|
+
return [parsed, { status: "invalid" }];
|
|
27
|
+
}
|
|
28
|
+
const payload = parsed.value;
|
|
29
|
+
const body = null;
|
|
21
30
|
const path = pathToFunc("/agent-state")();
|
|
31
|
+
const query = encodeFormQuery({
|
|
32
|
+
"keysOnly": payload?.keysOnly,
|
|
33
|
+
});
|
|
22
34
|
const headers = new Headers(compactMap({
|
|
23
35
|
Accept: "application/json",
|
|
24
36
|
}));
|
|
@@ -43,6 +55,8 @@ async function $do(client, options) {
|
|
|
43
55
|
baseURL: options?.serverURL,
|
|
44
56
|
path: path,
|
|
45
57
|
headers: headers,
|
|
58
|
+
query: query,
|
|
59
|
+
body: body,
|
|
46
60
|
userAgent: client._options.userAgent,
|
|
47
61
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
48
62
|
}, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-list-agent-states.js","sourceRoot":"","sources":["../../src/funcs/contacts-list-agent-states.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"contacts-list-agent-states.js","sourceRoot":"","sources":["../../src/funcs/contacts-list-agent-states.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAA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D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sCAAsC,CAAC,EAC7D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kCAAkC,CAAC,EACzD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,6BAA6B,CAAC,EACpD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -30,6 +30,8 @@ async function $do(client, request, options) {
|
|
|
30
30
|
const path = pathToFunc("/me/linkedin/connections")();
|
|
31
31
|
const query = encodeFormQuery({
|
|
32
32
|
"count": payload?.count,
|
|
33
|
+
"keywords": payload?.keywords,
|
|
34
|
+
"sortType": payload?.sortType,
|
|
33
35
|
"start": payload?.start,
|
|
34
36
|
});
|
|
35
37
|
const headers = new Headers(compactMap({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-list-connections.js","sourceRoot":"","sources":["../../src/funcs/profile-list-connections.ts"],"names":[],"mappings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+
import { BereachCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Get bulk visit batch status
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieve the status and results of a bulk visit batch. Returns progress, per-profile results, and credits used.
|
|
16
|
+
*/
|
|
17
|
+
export declare function scrapersBulkVisitBatchStatus(client: BereachCore, request: operations.BulkVisitBatchStatusRequest, options?: RequestOptions): APIPromise<Result<operations.BulkVisitBatchStatusResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | errors.BadGatewayError | errors.ServiceUnavailableError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=scrapers-bulk-visit-batch-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrapers-bulk-visit-batch-status.d.ts","sourceRoot":"","sources":["../../src/funcs/scrapers-bulk-visit-batch-status.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAA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