@postrun/js 2.19.0 → 2.21.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/dist/{chunk-EBCBBXLX.js → chunk-B3QMJNLV.js} +305 -62
- package/dist/chunk-B3QMJNLV.js.map +1 -0
- package/dist/{chunk-UAOUZR6K.js → chunk-Z24YOZBU.js} +77 -64
- package/dist/chunk-Z24YOZBU.js.map +1 -0
- package/dist/index.cjs +382 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -57
- package/dist/index.d.ts +86 -57
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +155 -127
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +8772 -631
- package/dist/query.d.ts +8772 -631
- package/dist/query.js +147 -121
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +374 -80
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +498 -86
- package/dist/schemas/index.d.ts +498 -86
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +278 -36
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-D7d6RVzh.d.cts → types.gen-DebHd_dS.d.cts} +8682 -562
- package/dist/{types.gen-D7d6RVzh.d.ts → types.gen-DebHd_dS.d.ts} +8682 -562
- package/package.json +1 -1
- package/dist/chunk-EBCBBXLX.js.map +0 -1
- package/dist/chunk-UAOUZR6K.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as ConnectionsListAccountsData, l as ConnectionsListAccountsResponses, m as ConnectionsListAccountsErrors, n as ConnectionsListByProfileData, o as ConnectionsListByProfileResponses, p as ConnectionsListByProfileErrors, q as ConnectionsSelectData, r as ConnectionsSelectResponses, s as ConnectionsSelectErrors, G as GoogleCreateAdData, t as GoogleCreateAdResponses, u as GoogleCreateAdErrors, v as GoogleCreateAdGroupData, w as GoogleCreateAdGroupResponses, x as GoogleCreateAdGroupErrors, y as GoogleCreateAdGroupCriterionData, z as GoogleCreateAdGroupCriterionResponses, A as GoogleCreateAdGroupCriterionErrors, B as GoogleCreateBudgetData, D as GoogleCreateBudgetResponses, E as GoogleCreateBudgetErrors, F as GoogleCreateCampaignData, H as GoogleCreateCampaignResponses, I as GoogleCreateCampaignErrors, J as GoogleCreateCampaignCriterionData, K as GoogleCreateCampaignCriterionResponses, L as GoogleCreateCampaignCriterionErrors, M as GoogleCreateConversionActionData, N as GoogleCreateConversionActionResponses, P as GoogleCreateConversionActionErrors, Q as GoogleCreateDisplayAdData, S as GoogleCreateDisplayAdResponses, U as GoogleCreateDisplayAdErrors, V as GoogleCreateKeywordData, W as GoogleCreateKeywordResponses, X as GoogleCreateKeywordErrors, Y as
|
|
2
|
-
export {
|
|
1
|
+
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as ConnectionsListAccountsData, l as ConnectionsListAccountsResponses, m as ConnectionsListAccountsErrors, n as ConnectionsListByProfileData, o as ConnectionsListByProfileResponses, p as ConnectionsListByProfileErrors, q as ConnectionsSelectData, r as ConnectionsSelectResponses, s as ConnectionsSelectErrors, G as GoogleCreateAdData, t as GoogleCreateAdResponses, u as GoogleCreateAdErrors, v as GoogleCreateAdGroupData, w as GoogleCreateAdGroupResponses, x as GoogleCreateAdGroupErrors, y as GoogleCreateAdGroupCriterionData, z as GoogleCreateAdGroupCriterionResponses, A as GoogleCreateAdGroupCriterionErrors, B as GoogleCreateBudgetData, D as GoogleCreateBudgetResponses, E as GoogleCreateBudgetErrors, F as GoogleCreateCampaignData, H as GoogleCreateCampaignResponses, I as GoogleCreateCampaignErrors, J as GoogleCreateCampaignCriterionData, K as GoogleCreateCampaignCriterionResponses, L as GoogleCreateCampaignCriterionErrors, M as GoogleCreateConversionActionData, N as GoogleCreateConversionActionResponses, P as GoogleCreateConversionActionErrors, Q as GoogleCreateDisplayAdData, S as GoogleCreateDisplayAdResponses, U as GoogleCreateDisplayAdErrors, V as GoogleCreateKeywordData, W as GoogleCreateKeywordResponses, X as GoogleCreateKeywordErrors, Y as GoogleEditAdGroupData, Z as GoogleEditAdGroupResponses, _ as GoogleEditAdGroupErrors, $ as GoogleEditBudgetData, a0 as GoogleEditBudgetResponses, a1 as GoogleEditBudgetErrors, a2 as GoogleEditCampaignData, a3 as GoogleEditCampaignResponses, a4 as GoogleEditCampaignErrors, a5 as GoogleEnableAdData, a6 as GoogleEnableAdResponses, a7 as GoogleEnableAdErrors, a8 as GoogleEnableAdGroupData, a9 as GoogleEnableAdGroupResponses, aa as GoogleEnableAdGroupErrors, ab as GoogleEnableCampaignData, ac as GoogleEnableCampaignResponses, ad as GoogleEnableCampaignErrors, ae as GoogleEnableKeywordData, af as GoogleEnableKeywordResponses, ag as GoogleEnableKeywordErrors, ah as GoogleGetAccountData, ai as GoogleGetAccountResponses, aj as GoogleGetAccountErrors, ak as GoogleGetAdData, al as GoogleGetAdResponses, am as GoogleGetAdErrors, an as GoogleGetAdGroupData, ao as GoogleGetAdGroupResponses, ap as GoogleGetAdGroupErrors, aq as GoogleGetAdTreeData, ar as GoogleGetAdTreeResponses, as as GoogleGetAdTreeErrors, at as GoogleGetCampaignData, au as GoogleGetCampaignResponses, av as GoogleGetCampaignErrors, aw as GoogleGetConversionActionData, ax as GoogleGetConversionActionResponses, ay as GoogleGetConversionActionErrors, az as GoogleGetInsightsData, aA as GoogleGetInsightsResponses, aB as GoogleGetInsightsErrors, aC as GoogleGetKeywordData, aD as GoogleGetKeywordResponses, aE as GoogleGetKeywordErrors, aF as GoogleListAdGroupCriteriaData, aG as GoogleListAdGroupCriteriaResponses, aH as GoogleListAdGroupCriteriaErrors, aI as GoogleListAdGroupsData, aJ as GoogleListAdGroupsResponses, aK as GoogleListAdGroupsErrors, aL as GoogleListAdsData, aM as GoogleListAdsResponses, aN as GoogleListAdsErrors, aO as GoogleListAudiencesData, aP as GoogleListAudiencesResponses, aQ as GoogleListAudiencesErrors, aR as GoogleListCampaignCriteriaData, aS as GoogleListCampaignCriteriaResponses, aT as GoogleListCampaignCriteriaErrors, aU as GoogleListCampaignsData, aV as GoogleListCampaignsResponses, aW as GoogleListCampaignsErrors, aX as GoogleListConversionActionsData, aY as GoogleListConversionActionsResponses, aZ as GoogleListConversionActionsErrors, a_ as GoogleListConversionGoalsData, a$ as GoogleListConversionGoalsResponses, b0 as GoogleListConversionGoalsErrors, b1 as GoogleListKeywordsData, b2 as GoogleListKeywordsResponses, b3 as GoogleListKeywordsErrors, b4 as GooglePauseAdData, b5 as GooglePauseAdResponses, b6 as GooglePauseAdErrors, b7 as GooglePauseAdGroupData, b8 as GooglePauseAdGroupResponses, b9 as GooglePauseAdGroupErrors, ba as GooglePauseCampaignData, bb as GooglePauseCampaignResponses, bc as GooglePauseCampaignErrors, bd as GooglePauseKeywordData, be as GooglePauseKeywordResponses, bf as GooglePauseKeywordErrors, bg as GoogleRemoveAdData, bh as GoogleRemoveAdResponses, bi as GoogleRemoveAdErrors, bj as GoogleRemoveAdGroupData, bk as GoogleRemoveAdGroupResponses, bl as GoogleRemoveAdGroupErrors, bm as GoogleRemoveAdGroupCriterionData, bn as GoogleRemoveAdGroupCriterionResponses, bo as GoogleRemoveAdGroupCriterionErrors, bp as GoogleRemoveBudgetData, bq as GoogleRemoveBudgetResponses, br as GoogleRemoveBudgetErrors, bs as GoogleRemoveCampaignData, bt as GoogleRemoveCampaignResponses, bu as GoogleRemoveCampaignErrors, bv as GoogleRemoveCampaignCriterionData, bw as GoogleRemoveCampaignCriterionResponses, bx as GoogleRemoveCampaignCriterionErrors, by as GoogleRemoveKeywordData, bz as GoogleRemoveKeywordResponses, bA as GoogleRemoveKeywordErrors, bB as GoogleRunGaqlData, bC as GoogleRunGaqlResponses, bD as GoogleRunGaqlErrors, bE as GoogleSearchGeoTargetsData, bF as GoogleSearchGeoTargetsResponses, bG as GoogleSearchGeoTargetsErrors, bH as GoogleSetAdGroupBidsData, bI as GoogleSetAdGroupBidsResponses, bJ as GoogleSetAdGroupBidsErrors, bK as GoogleSetCampaignGeoSettingsData, bL as GoogleSetCampaignGeoSettingsResponses, bM as GoogleSetCampaignGeoSettingsErrors, bN as GoogleSetCampaignTargetingSettingData, bO as GoogleSetCampaignTargetingSettingResponses, bP as GoogleSetCampaignTargetingSettingErrors, bQ as GoogleSetConversionGoalData, bR as GoogleSetConversionGoalResponses, bS as GoogleSetConversionGoalErrors, bT as GoogleSetKeywordBidData, bU as GoogleSetKeywordBidResponses, bV as GoogleSetKeywordBidErrors, bW as GoogleUploadConversionsData, bX as GoogleUploadConversionsResponses, bY as GoogleUploadConversionsErrors, bZ as GoogleUploadImageAssetData, b_ as GoogleUploadImageAssetResponses, b$ as GoogleUploadImageAssetErrors, c0 as LogsGetData, c1 as LogsGetResponses, c2 as LogsGetErrors, c3 as LogsListData, c4 as LogsListResponses, c5 as LogsListErrors, c6 as MediaAbortData, c7 as MediaAbortResponses, c8 as MediaAbortErrors, c9 as MediaCompleteData, ca as MediaCompleteResponses, cb as MediaCompleteErrors, cc as MediaCreateData, cd as MediaCreateResponses, ce as MediaCreateErrors, cf as MediaDeleteData, cg as MediaDeleteResponses, ch as MediaDeleteErrors, ci as MediaGetData, cj as MediaGetResponses, ck as MediaGetErrors, cl as MediaListData, cm as MediaListResponses, cn as MediaListErrors, co as MediaListPartsData, cp as MediaListPartsResponses, cq as MediaListPartsErrors, cr as MediaSignPartData, cs as MediaSignPartResponses, ct as MediaSignPartErrors, cu as MediaUpdateData, cv as MediaUpdateResponses, cw as MediaUpdateErrors, cx as MetaAccountData, cy as MetaAccountResponses, cz as MetaAccountErrors, cA as MetaAdData, cB as MetaAdResponses, cC as MetaAdErrors, cD as MetaAdsData, cE as MetaAdsResponses, cF as MetaAdsErrors, cG as MetaAdsetData, cH as MetaAdsetResponses, cI as MetaAdsetErrors, cJ as MetaAdsetsData, cK as MetaAdsetsResponses, cL as MetaAdsetsErrors, cM as MetaCampaignData, cN as MetaCampaignResponses, cO as MetaCampaignErrors, cP as MetaCampaignsData, cQ as MetaCampaignsResponses, cR as MetaCampaignsErrors, cS as MetaInsightsData, cT as MetaInsightsResponses, cU as MetaInsightsErrors, cV as PostsCreateData, cW as PostsCreateResponses, cX as PostsCreateErrors, cY as PostsDeleteData, cZ as PostsDeleteResponses, c_ as PostsDeleteErrors, c$ as PostsGetData, d0 as PostsGetResponses, d1 as PostsGetErrors, d2 as PostsListData, d3 as PostsListResponses, d4 as PostsListErrors, d5 as PostsUpdateData, d6 as PostsUpdateResponses, d7 as PostsUpdateErrors, d8 as PostsValidateData, d9 as PostsValidateResponses, da as PostsValidateErrors, db as ProfilesCreateData, dc as ProfilesCreateResponses, dd as ProfilesCreateErrors, de as ProfilesDeleteData, df as ProfilesDeleteResponses, dg as ProfilesDeleteErrors, dh as ProfilesGetData, di as ProfilesGetResponses, dj as ProfilesGetErrors, dk as ProfilesListData, dl as ProfilesListResponses, dm as ProfilesListErrors, dn as ProfilesUpdateData, dp as ProfilesUpdateResponses, dq as ProfilesUpdateErrors, dr as TiktokCreatorInfoData, ds as TiktokCreatorInfoResponses, dt as TiktokCreatorInfoErrors, du as TokensMintData, dv as TokensMintResponses, dw as TokensMintErrors, dx as WebhooksCreateEndpointData, dy as WebhooksCreateEndpointResponses, dz as WebhooksCreateEndpointErrors, dA as WebhooksCreatePortalData, dB as WebhooksCreatePortalResponses, dC as WebhooksCreatePortalErrors, dD as WebhooksDeleteEndpointData, dE as WebhooksDeleteEndpointResponses, dF as WebhooksDeleteEndpointErrors, dG as WebhooksGetEndpointData, dH as WebhooksGetEndpointResponses, dI as WebhooksGetEndpointErrors, dJ as WebhooksListEndpointsData, dK as WebhooksListEndpointsResponses, dL as WebhooksListEndpointsErrors, dM as WebhooksListEventTypesData, dN as WebhooksListEventTypesResponses, dO as WebhooksListEventTypesErrors, dP as WebhooksPingData, dQ as WebhooksPingResponses, dR as WebhooksPingErrors, dS as WebhooksUpdateEndpointData, dT as WebhooksUpdateEndpointResponses, dU as WebhooksUpdateEndpointErrors, dV as ErrorCode, dW as MediaGetResponse, dX as ConnectionsConnectResponse, dY as ConnectionsGetResponse, dZ as ConnectionsListByProfileResponse, d_ as MediaCreateResponse, d$ as ConnectionsListAccountsResponse, e0 as MediaListResponse, e1 as PostsGetResponse, e2 as PostsListResponse, e3 as PostsValidateResponse, e4 as ProfilesGetResponse, e5 as ProfilesListResponse, e6 as TiktokCreatorInfoResponse, e7 as PostrunClient, e8 as GoogleAdTreeNode } from './types.gen-DebHd_dS.js';
|
|
2
|
+
export { e9 as ClientOptions, ea as ConnectionsConnectError, eb as ConnectionsDeleteError, ec as ConnectionsDeleteResponse, ed as ConnectionsGetError, ee as ConnectionsListAccountsError, ef as ConnectionsListByProfileError, eg as ConnectionsSelectError, eh as ConnectionsSelectResponse, ei as CreatePostBody, ej as DiscoverableAccount, ek as GoogleAdTree, el as GoogleAdsAd, em as GoogleAdsAdGroup, en as GoogleAdsAdGroupCriterion, eo as GoogleAdsAudience, ep as GoogleAdsCampaignCriterion, eq as GoogleAdsCreateAdGroupCriterionRequest, er as GoogleAdsCreateCampaignCriterionRequest, es as GoogleAdsCreateResult, et as GoogleAdsDeleteResult, eu as GoogleAdsEditResult, ev as GoogleAdsGeoSettingsRequest, ew as GoogleAdsGeoTargetConstant, ex as GoogleAdsInsightLevel, ey as GoogleAdsInsightMetric, ez as GoogleAdsInsightSegment, eA as GoogleAdsInsights, eB as GoogleAdsInsightsQuery, eC as GoogleAdsInsightsRow, eD as GoogleAdsKeyword, eE as GoogleAdsReadStatusFilter, eF as GoogleCreateAdError, eG as GoogleCreateAdGroupCriterionError, eH as GoogleCreateAdGroupCriterionResponse, eI as GoogleCreateAdGroupError, eJ as GoogleCreateAdGroupResponse, eK as GoogleCreateAdResponse, eL as GoogleCreateBudgetError, eM as GoogleCreateBudgetResponse, eN as GoogleCreateCampaignCriterionError, eO as GoogleCreateCampaignCriterionResponse, eP as GoogleCreateCampaignError, eQ as GoogleCreateCampaignResponse, eR as GoogleCreateConversionActionError, eS as GoogleCreateConversionActionResponse, eT as GoogleCreateDisplayAdError, eU as GoogleCreateDisplayAdResponse, eV as GoogleCreateKeywordError, eW as GoogleCreateKeywordResponse, eX as GoogleEditAdGroupError, eY as GoogleEditAdGroupResponse, eZ as GoogleEditBudgetError, e_ as GoogleEditBudgetResponse, e$ as GoogleEditCampaignError, f0 as GoogleEditCampaignResponse, f1 as GoogleEnableAdError, f2 as GoogleEnableAdGroupError, f3 as GoogleEnableAdGroupResponse, f4 as GoogleEnableAdResponse, f5 as GoogleEnableCampaignError, f6 as GoogleEnableCampaignResponse, f7 as GoogleEnableKeywordError, f8 as GoogleEnableKeywordResponse, f9 as GoogleGetAccountError, fa as GoogleGetAccountResponse, fb as GoogleGetAdError, fc as GoogleGetAdGroupError, fd as GoogleGetAdGroupResponse, fe as GoogleGetAdResponse, ff as GoogleGetAdTreeError, fg as GoogleGetAdTreeResponse, fh as GoogleGetCampaignError, fi as GoogleGetCampaignResponse, fj as GoogleGetConversionActionError, fk as GoogleGetConversionActionResponse, fl as GoogleGetInsightsError, fm as GoogleGetInsightsResponse, fn as GoogleGetKeywordError, fo as GoogleGetKeywordResponse, fp as GoogleListAdGroupCriteriaError, fq as GoogleListAdGroupCriteriaResponse, fr as GoogleListAdGroupsError, fs as GoogleListAdGroupsResponse, ft as GoogleListAdsError, fu as GoogleListAdsResponse, fv as GoogleListAudiencesError, fw as GoogleListAudiencesResponse, fx as GoogleListCampaignCriteriaError, fy as GoogleListCampaignCriteriaResponse, fz as GoogleListCampaignsError, fA as GoogleListCampaignsResponse, fB as GoogleListConversionActionsError, fC as GoogleListConversionActionsResponse, fD as GoogleListConversionGoalsError, fE as GoogleListConversionGoalsResponse, fF as GoogleListKeywordsError, fG as GoogleListKeywordsResponse, fH as GooglePauseAdError, fI as GooglePauseAdGroupError, fJ as GooglePauseAdGroupResponse, fK as GooglePauseAdResponse, fL as GooglePauseCampaignError, fM as GooglePauseCampaignResponse, fN as GooglePauseKeywordError, fO as GooglePauseKeywordResponse, fP as GoogleRemoveAdError, fQ as GoogleRemoveAdGroupCriterionError, fR as GoogleRemoveAdGroupCriterionResponse, fS as GoogleRemoveAdGroupError, fT as GoogleRemoveAdGroupResponse, fU as GoogleRemoveAdResponse, fV as GoogleRemoveBudgetError, fW as GoogleRemoveBudgetResponse, fX as GoogleRemoveCampaignCriterionError, fY as GoogleRemoveCampaignCriterionResponse, fZ as GoogleRemoveCampaignError, f_ as GoogleRemoveCampaignResponse, f$ as GoogleRemoveKeywordError, g0 as GoogleRemoveKeywordResponse, g1 as GoogleRunGaqlError, g2 as GoogleRunGaqlResponse, g3 as GoogleSearchGeoTargetsError, g4 as GoogleSearchGeoTargetsResponse, g5 as GoogleSetAdGroupBidsError, g6 as GoogleSetAdGroupBidsResponse, g7 as GoogleSetCampaignGeoSettingsError, g8 as GoogleSetCampaignGeoSettingsResponse, g9 as GoogleSetCampaignTargetingSettingError, ga as GoogleSetCampaignTargetingSettingResponse, gb as GoogleSetConversionGoalError, gc as GoogleSetConversionGoalResponse, gd as GoogleSetKeywordBidError, ge as GoogleSetKeywordBidResponse, gf as GoogleUploadConversionsError, gg as GoogleUploadConversionsResponse, gh as GoogleUploadImageAssetError, gi as GoogleUploadImageAssetResponse, gj as IdempotencyKey, gk as LogsGetError, gl as LogsGetResponse, gm as LogsListError, gn as LogsListResponse, go as Media, gp as MediaAbortError, gq as MediaAbortResponse, gr as MediaCompleteError, gs as MediaCompleteResponse, gt as MediaCreateError, gu as MediaDeleteError, gv as MediaDeleteResponse, gw as MediaGetError, gx as MediaListError, gy as MediaListPartsError, gz as MediaListPartsResponse, gA as MediaSignPartError, gB as MediaSignPartResponse, gC as MediaStage, gD as MediaUpdateError, gE as MediaUpdateResponse, gF as MetaAccountError, gG as MetaAccountResponse, gH as MetaAdError, gI as MetaAdResponse, gJ as MetaAdsError, gK as MetaAdsResponse, gL as MetaAdsetError, gM as MetaAdsetResponse, gN as MetaAdsetsError, gO as MetaAdsetsResponse, gP as MetaCampaignError, gQ as MetaCampaignResponse, gR as MetaCampaignsError, gS as MetaCampaignsResponse, gT as MetaInsightsError, gU as MetaInsightsResponse, gV as PostType, gW as PostVariantStatus, gX as PostrunClientOptions, gY as PostsCreateError, gZ as PostsCreateResponse, g_ as PostsDeleteError, g$ as PostsDeleteResponse, h0 as PostsGetError, h1 as PostsListError, h2 as PostsUpdateError, h3 as PostsUpdateResponse, h4 as PostsValidateError, h5 as ProfilesCreateError, h6 as ProfilesCreateResponse, h7 as ProfilesDeleteError, h8 as ProfilesDeleteResponse, h9 as ProfilesGetError, ha as ProfilesListError, hb as ProfilesUpdateError, hc as ProfilesUpdateResponse, hd as TiktokCreatorInfoError, he as TokensMintError, hf as TokensMintResponse, hg as WebhooksCreateEndpointError, hh as WebhooksCreateEndpointResponse, hi as WebhooksCreatePortalError, hj as WebhooksCreatePortalResponse, hk as WebhooksDeleteEndpointError, hl as WebhooksDeleteEndpointResponse, hm as WebhooksGetEndpointError, hn as WebhooksGetEndpointResponse, ho as WebhooksListEndpointsError, hp as WebhooksListEndpointsResponse, hq as WebhooksListEventTypesError, hr as WebhooksListEventTypesResponse, hs as WebhooksPingError, ht as WebhooksPingResponse, hu as WebhooksUpdateEndpointError, hv as WebhooksUpdateEndpointResponse, hw as createPostrunClient } from './types.gen-DebHd_dS.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
|
|
5
5
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
@@ -303,6 +303,14 @@ declare const googleGetAccount: <ThrowOnError extends boolean = true>(options: O
|
|
|
303
303
|
* Performance metrics for the connection’s account, at a chosen level (account / campaign / ad group / ad / keyword), for a date range, with optional breakdowns. Leaf levels (ad / keyword) require an `ad_group_id`; campaign / ad group accept an optional `campaign_id`. Each row carries its `parent_id`, so the tree is assemblable. The flagship cross-checked read; use `/gaql` for anything outside this shape.
|
|
304
304
|
*/
|
|
305
305
|
declare const googleGetInsights: <ThrowOnError extends boolean = true>(options: Options<GoogleGetInsightsData, ThrowOnError>) => RequestResult<GoogleGetInsightsResponses, GoogleGetInsightsErrors, ThrowOnError>;
|
|
306
|
+
/**
|
|
307
|
+
* Google Ads campaign tree
|
|
308
|
+
*
|
|
309
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
310
|
+
*
|
|
311
|
+
* The campaign → ad_group → ad/keyword tree as flat, native, typed nodes — group them by `parent_id` to assemble the tree. Without `campaign_id`, returns every campaign (all channel types) with a per-type `child_kind`/`expandable` hint. With `campaign_id`, returns that campaign’s whole supported subtree (ad groups + the type’s leaf — keywords for Search, ads for Display/Video/Demand Gen) in one batched fetch at a single window. By default REMOVED nodes are hidden at every level; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED). Each node carries `budget_micros` (campaign nodes only), Google’s authoritative per-level metrics (no client roll-up), `cost_micros`, and `cost` (account currency).
|
|
312
|
+
*/
|
|
313
|
+
declare const googleGetAdTree: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdTreeData, ThrowOnError>) => RequestResult<GoogleGetAdTreeResponses, GoogleGetAdTreeErrors, ThrowOnError>;
|
|
306
314
|
/**
|
|
307
315
|
* Run a raw GAQL query
|
|
308
316
|
*
|
|
@@ -319,14 +327,6 @@ declare const googleRunGaql: <ThrowOnError extends boolean = true>(options: Opti
|
|
|
319
327
|
* Creates a standalone daily campaign budget (the `campaign_budget` resource) on the connection’s account. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name to chain into a campaign.
|
|
320
328
|
*/
|
|
321
329
|
declare const googleCreateBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateBudgetData, ThrowOnError>) => RequestResult<GoogleCreateBudgetResponses, GoogleCreateBudgetErrors, ThrowOnError>;
|
|
322
|
-
/**
|
|
323
|
-
* Delete a Google Ads campaign budget
|
|
324
|
-
*
|
|
325
|
-
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
326
|
-
*
|
|
327
|
-
* Removes a campaign budget by numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
328
|
-
*/
|
|
329
|
-
declare const googleDeleteBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteBudgetData, ThrowOnError>) => RequestResult<GoogleDeleteBudgetResponses, GoogleDeleteBudgetErrors, ThrowOnError>;
|
|
330
330
|
/**
|
|
331
331
|
* Edit a Google Ads campaign budget
|
|
332
332
|
*
|
|
@@ -335,6 +335,14 @@ declare const googleDeleteBudget: <ThrowOnError extends boolean = true>(options:
|
|
|
335
335
|
* Updates a budget’s daily amount (in micros) by numeric id. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without applying.
|
|
336
336
|
*/
|
|
337
337
|
declare const googleEditBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleEditBudgetData, ThrowOnError>) => RequestResult<GoogleEditBudgetResponses, GoogleEditBudgetErrors, ThrowOnError>;
|
|
338
|
+
/**
|
|
339
|
+
* Remove a Google Ads campaign budget
|
|
340
|
+
*
|
|
341
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
342
|
+
*
|
|
343
|
+
* Removes a campaign budget by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
344
|
+
*/
|
|
345
|
+
declare const googleRemoveBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveBudgetData, ThrowOnError>) => RequestResult<GoogleRemoveBudgetResponses, GoogleRemoveBudgetErrors, ThrowOnError>;
|
|
338
346
|
/**
|
|
339
347
|
* List Google Ads campaigns
|
|
340
348
|
*
|
|
@@ -351,14 +359,6 @@ declare const googleListCampaigns: <ThrowOnError extends boolean = true>(options
|
|
|
351
359
|
* Creates a Search or Display campaign (the `campaign` resource) on the connection’s account, attached to an existing budget. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
352
360
|
*/
|
|
353
361
|
declare const googleCreateCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateCampaignData, ThrowOnError>) => RequestResult<GoogleCreateCampaignResponses, GoogleCreateCampaignErrors, ThrowOnError>;
|
|
354
|
-
/**
|
|
355
|
-
* Delete a Google Ads campaign
|
|
356
|
-
*
|
|
357
|
-
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
358
|
-
*
|
|
359
|
-
* Removes a campaign by numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
360
|
-
*/
|
|
361
|
-
declare const googleDeleteCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteCampaignData, ThrowOnError>) => RequestResult<GoogleDeleteCampaignResponses, GoogleDeleteCampaignErrors, ThrowOnError>;
|
|
362
362
|
/**
|
|
363
363
|
* Retrieve a Google Ads campaign
|
|
364
364
|
*
|
|
@@ -375,6 +375,14 @@ declare const googleGetCampaign: <ThrowOnError extends boolean = true>(options:
|
|
|
375
375
|
* Updates a campaign’s non-money fields (its name) by numeric id. Status has its own pause/enable endpoints; bids are a separate money write. Pass `dry_run: true` to validate against Google without applying.
|
|
376
376
|
*/
|
|
377
377
|
declare const googleEditCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleEditCampaignData, ThrowOnError>) => RequestResult<GoogleEditCampaignResponses, GoogleEditCampaignErrors, ThrowOnError>;
|
|
378
|
+
/**
|
|
379
|
+
* Remove a Google Ads campaign
|
|
380
|
+
*
|
|
381
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
382
|
+
*
|
|
383
|
+
* Removes a campaign by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
384
|
+
*/
|
|
385
|
+
declare const googleRemoveCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveCampaignData, ThrowOnError>) => RequestResult<GoogleRemoveCampaignResponses, GoogleRemoveCampaignErrors, ThrowOnError>;
|
|
378
386
|
/**
|
|
379
387
|
* Pause a Google Ads campaign
|
|
380
388
|
*
|
|
@@ -420,9 +428,9 @@ declare const googleCreateCampaignCriterion: <ThrowOnError extends boolean = tru
|
|
|
420
428
|
*
|
|
421
429
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
422
430
|
*
|
|
423
|
-
* Removes a campaign targeting criterion by its criterion id (Google’s native remove).
|
|
431
|
+
* Removes a campaign targeting criterion by its criterion id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
424
432
|
*/
|
|
425
|
-
declare const
|
|
433
|
+
declare const googleRemoveCampaignCriterion: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveCampaignCriterionData, ThrowOnError>) => RequestResult<GoogleRemoveCampaignCriterionResponses, GoogleRemoveCampaignCriterionErrors, ThrowOnError>;
|
|
426
434
|
/**
|
|
427
435
|
* Set a Google Ads campaign’s geo target type
|
|
428
436
|
*
|
|
@@ -436,7 +444,7 @@ declare const googleSetCampaignGeoSettings: <ThrowOnError extends boolean = true
|
|
|
436
444
|
*
|
|
437
445
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
438
446
|
*
|
|
439
|
-
* Lists the ad groups (Google’s equivalent of an ad set) in the Google Ads account backing this connection — id, name, status, type, and parent campaign. Pass `campaign_id` to return only the ad groups under one campaign.
|
|
447
|
+
* Lists the ad groups (Google’s equivalent of an ad set) in the Google Ads account backing this connection — id, name, status, type, and parent campaign. Pass `campaign_id` to return only the ad groups under one campaign. By default REMOVED ad groups are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
|
|
440
448
|
*/
|
|
441
449
|
declare const googleListAdGroups: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdGroupsData, ThrowOnError>) => RequestResult<GoogleListAdGroupsResponses, GoogleListAdGroupsErrors, ThrowOnError>;
|
|
442
450
|
/**
|
|
@@ -447,14 +455,6 @@ declare const googleListAdGroups: <ThrowOnError extends boolean = true>(options:
|
|
|
447
455
|
* Creates an ad group (the `ad_group` resource) under a campaign on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name to chain into ads and keywords.
|
|
448
456
|
*/
|
|
449
457
|
declare const googleCreateAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdGroupData, ThrowOnError>) => RequestResult<GoogleCreateAdGroupResponses, GoogleCreateAdGroupErrors, ThrowOnError>;
|
|
450
|
-
/**
|
|
451
|
-
* Delete a Google Ads ad group
|
|
452
|
-
*
|
|
453
|
-
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
454
|
-
*
|
|
455
|
-
* Removes an ad group by numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
456
|
-
*/
|
|
457
|
-
declare const googleDeleteAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteAdGroupData, ThrowOnError>) => RequestResult<GoogleDeleteAdGroupResponses, GoogleDeleteAdGroupErrors, ThrowOnError>;
|
|
458
458
|
/**
|
|
459
459
|
* Retrieve a Google Ads ad group
|
|
460
460
|
*
|
|
@@ -479,6 +479,14 @@ declare const googleEditAdGroup: <ThrowOnError extends boolean = true>(options:
|
|
|
479
479
|
* Sets an ad group’s manual bids (cpc/cpm/target CPA in micros, target ROAS as a ratio) by numeric id. Money write — secret-key-only. Pass `dry_run: true` to validate without applying.
|
|
480
480
|
*/
|
|
481
481
|
declare const googleSetAdGroupBids: <ThrowOnError extends boolean = true>(options: Options<GoogleSetAdGroupBidsData, ThrowOnError>) => RequestResult<GoogleSetAdGroupBidsResponses, GoogleSetAdGroupBidsErrors, ThrowOnError>;
|
|
482
|
+
/**
|
|
483
|
+
* Remove a Google Ads ad group
|
|
484
|
+
*
|
|
485
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
486
|
+
*
|
|
487
|
+
* Removes an ad group by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
488
|
+
*/
|
|
489
|
+
declare const googleRemoveAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAdGroupData, ThrowOnError>) => RequestResult<GoogleRemoveAdGroupResponses, GoogleRemoveAdGroupErrors, ThrowOnError>;
|
|
482
490
|
/**
|
|
483
491
|
* Pause a Google Ads ad group
|
|
484
492
|
*
|
|
@@ -516,9 +524,9 @@ declare const googleCreateAdGroupCriterion: <ThrowOnError extends boolean = true
|
|
|
516
524
|
*
|
|
517
525
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
518
526
|
*
|
|
519
|
-
* Removes an ad-group targeting criterion by its criterion id (Google’s native remove).
|
|
527
|
+
* Removes an ad-group targeting criterion by its criterion id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
520
528
|
*/
|
|
521
|
-
declare const
|
|
529
|
+
declare const googleRemoveAdGroupCriterion: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAdGroupCriterionData, ThrowOnError>) => RequestResult<GoogleRemoveAdGroupCriterionResponses, GoogleRemoveAdGroupCriterionErrors, ThrowOnError>;
|
|
522
530
|
/**
|
|
523
531
|
* List Google Ads audiences available to target
|
|
524
532
|
*
|
|
@@ -540,7 +548,7 @@ declare const googleSetCampaignTargetingSetting: <ThrowOnError extends boolean =
|
|
|
540
548
|
*
|
|
541
549
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
542
550
|
*
|
|
543
|
-
* Returns the ads (the `ad_group_ad` resource) on the connection’s account — id, name, creative type, serving status, and the owning ad group. Pass `ad_group_id` to return only the ads under one ad group.
|
|
551
|
+
* Returns the ads (the `ad_group_ad` resource) on the connection’s account — id, name, creative type, serving status, and the owning ad group. Pass `ad_group_id` to return only the ads under one ad group. By default REMOVED ads are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
|
|
544
552
|
*/
|
|
545
553
|
declare const googleListAds: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdsData, ThrowOnError>) => RequestResult<GoogleListAdsResponses, GoogleListAdsErrors, ThrowOnError>;
|
|
546
554
|
/**
|
|
@@ -551,20 +559,12 @@ declare const googleListAds: <ThrowOnError extends boolean = true>(options: Opti
|
|
|
551
559
|
* Creates a Responsive Search Ad (the `ad_group_ad` resource, inline text — no image assets) under an ad group on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
552
560
|
*/
|
|
553
561
|
declare const googleCreateAd: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdData, ThrowOnError>) => RequestResult<GoogleCreateAdResponses, GoogleCreateAdErrors, ThrowOnError>;
|
|
554
|
-
/**
|
|
555
|
-
* Delete a Google Ads ad
|
|
556
|
-
*
|
|
557
|
-
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
558
|
-
*
|
|
559
|
-
* Removes an ad (an `ad_group_ad`) by its numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
560
|
-
*/
|
|
561
|
-
declare const googleDeleteAd: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteAdData, ThrowOnError>) => RequestResult<GoogleDeleteAdResponses, GoogleDeleteAdErrors, ThrowOnError>;
|
|
562
562
|
/**
|
|
563
563
|
* Retrieve a Google Ads ad
|
|
564
564
|
*
|
|
565
565
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
566
566
|
*
|
|
567
|
-
* Returns a single ad (the `ad_group_ad` resource) by its
|
|
567
|
+
* Returns a single ad (the `ad_group_ad` resource) by its composite id ({ad_group_id}~{ad_id}) on the connection’s account — id, name, creative type, serving status, and the owning ad group.
|
|
568
568
|
*/
|
|
569
569
|
declare const googleGetAd: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdData, ThrowOnError>) => RequestResult<GoogleGetAdResponses, GoogleGetAdErrors, ThrowOnError>;
|
|
570
570
|
/**
|
|
@@ -575,12 +575,20 @@ declare const googleGetAd: <ThrowOnError extends boolean = true>(options: Option
|
|
|
575
575
|
* Creates a Responsive Display Ad (the `ad_group_ad` resource) under a Display ad group on the connection’s account, assembled from already-uploaded image-asset resource_names (upload them first via POST /v1/google/{connection_id}/assets). Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
576
576
|
*/
|
|
577
577
|
declare const googleCreateDisplayAd: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateDisplayAdData, ThrowOnError>) => RequestResult<GoogleCreateDisplayAdResponses, GoogleCreateDisplayAdErrors, ThrowOnError>;
|
|
578
|
+
/**
|
|
579
|
+
* Remove a Google Ads ad
|
|
580
|
+
*
|
|
581
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
582
|
+
*
|
|
583
|
+
* Removes an ad (an `ad_group_ad`) by its composite id ({ad_group_id}~{ad_id}) (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
584
|
+
*/
|
|
585
|
+
declare const googleRemoveAd: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAdData, ThrowOnError>) => RequestResult<GoogleRemoveAdResponses, GoogleRemoveAdErrors, ThrowOnError>;
|
|
578
586
|
/**
|
|
579
587
|
* Pause a Google Ads ad
|
|
580
588
|
*
|
|
581
589
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
582
590
|
*
|
|
583
|
-
* Pauses an ad by its
|
|
591
|
+
* Pauses an ad by its composite id ({ad_group_id}~{ad_id}) (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
584
592
|
*/
|
|
585
593
|
declare const googlePauseAd: <ThrowOnError extends boolean = true>(options: Options<GooglePauseAdData, ThrowOnError>) => RequestResult<GooglePauseAdResponses, GooglePauseAdErrors, ThrowOnError>;
|
|
586
594
|
/**
|
|
@@ -588,7 +596,7 @@ declare const googlePauseAd: <ThrowOnError extends boolean = true>(options: Opti
|
|
|
588
596
|
*
|
|
589
597
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
590
598
|
*
|
|
591
|
-
* Enables (resumes) an ad by its
|
|
599
|
+
* Enables (resumes) an ad by its composite id ({ad_group_id}~{ad_id}). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
592
600
|
*/
|
|
593
601
|
declare const googleEnableAd: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableAdData, ThrowOnError>) => RequestResult<GoogleEnableAdResponses, GoogleEnableAdErrors, ThrowOnError>;
|
|
594
602
|
/**
|
|
@@ -596,7 +604,7 @@ declare const googleEnableAd: <ThrowOnError extends boolean = true>(options: Opt
|
|
|
596
604
|
*
|
|
597
605
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
598
606
|
*
|
|
599
|
-
* Lists the keywords (`ad_group_criterion` of type KEYWORD) in the connection’s account — each with its criterion id, text, match type, status, negative flag, and owning ad group. Pass `ad_group_id` to return only the keywords under one ad group.
|
|
607
|
+
* Lists the keywords (`ad_group_criterion` of type KEYWORD) in the connection’s account — each with its criterion id, text, match type, status, negative flag, and owning ad group. Pass `ad_group_id` to return only the keywords under one ad group. By default REMOVED keywords are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
|
|
600
608
|
*/
|
|
601
609
|
declare const googleListKeywords: <ThrowOnError extends boolean = true>(options: Options<GoogleListKeywordsData, ThrowOnError>) => RequestResult<GoogleListKeywordsResponses, GoogleListKeywordsErrors, ThrowOnError>;
|
|
602
610
|
/**
|
|
@@ -607,20 +615,12 @@ declare const googleListKeywords: <ThrowOnError extends boolean = true>(options:
|
|
|
607
615
|
* Creates a keyword (an `ad_group_criterion` of type KEYWORD) under an ad group on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
608
616
|
*/
|
|
609
617
|
declare const googleCreateKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateKeywordData, ThrowOnError>) => RequestResult<GoogleCreateKeywordResponses, GoogleCreateKeywordErrors, ThrowOnError>;
|
|
610
|
-
/**
|
|
611
|
-
* Delete a Google Ads keyword
|
|
612
|
-
*
|
|
613
|
-
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
614
|
-
*
|
|
615
|
-
* Removes a keyword (an `ad_group_criterion`) by its criterion id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
616
|
-
*/
|
|
617
|
-
declare const googleDeleteKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteKeywordData, ThrowOnError>) => RequestResult<GoogleDeleteKeywordResponses, GoogleDeleteKeywordErrors, ThrowOnError>;
|
|
618
618
|
/**
|
|
619
619
|
* Retrieve a Google Ads keyword
|
|
620
620
|
*
|
|
621
621
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
622
622
|
*
|
|
623
|
-
* Returns one keyword (`ad_group_criterion` of type KEYWORD) by its
|
|
623
|
+
* Returns one keyword (`ad_group_criterion` of type KEYWORD) by its composite id ({ad_group_id}~{criterion_id}), from the connection’s account — text, match type, status, negative flag, and owning ad group.
|
|
624
624
|
*/
|
|
625
625
|
declare const googleGetKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleGetKeywordData, ThrowOnError>) => RequestResult<GoogleGetKeywordResponses, GoogleGetKeywordErrors, ThrowOnError>;
|
|
626
626
|
/**
|
|
@@ -628,15 +628,23 @@ declare const googleGetKeyword: <ThrowOnError extends boolean = true>(options: O
|
|
|
628
628
|
*
|
|
629
629
|
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
630
630
|
*
|
|
631
|
-
* Sets a keyword’s manual CPC bid (in micros) by
|
|
631
|
+
* Sets a keyword’s manual CPC bid (in micros) by its composite id ({ad_group_id}~{criterion_id}). Money write — secret-key-only. Pass `dry_run: true` to validate without applying.
|
|
632
632
|
*/
|
|
633
633
|
declare const googleSetKeywordBid: <ThrowOnError extends boolean = true>(options: Options<GoogleSetKeywordBidData, ThrowOnError>) => RequestResult<GoogleSetKeywordBidResponses, GoogleSetKeywordBidErrors, ThrowOnError>;
|
|
634
|
+
/**
|
|
635
|
+
* Remove a Google Ads keyword
|
|
636
|
+
*
|
|
637
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
638
|
+
*
|
|
639
|
+
* Removes a keyword (an `ad_group_criterion`) by its composite id ({ad_group_id}~{criterion_id}) (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
640
|
+
*/
|
|
641
|
+
declare const googleRemoveKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveKeywordData, ThrowOnError>) => RequestResult<GoogleRemoveKeywordResponses, GoogleRemoveKeywordErrors, ThrowOnError>;
|
|
634
642
|
/**
|
|
635
643
|
* Pause a Google Ads keyword
|
|
636
644
|
*
|
|
637
645
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
638
646
|
*
|
|
639
|
-
* Pauses a keyword (`ad_group_criterion`) by its
|
|
647
|
+
* Pauses a keyword (`ad_group_criterion`) by its composite id ({ad_group_id}~{criterion_id}) (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
640
648
|
*/
|
|
641
649
|
declare const googlePauseKeyword: <ThrowOnError extends boolean = true>(options: Options<GooglePauseKeywordData, ThrowOnError>) => RequestResult<GooglePauseKeywordResponses, GooglePauseKeywordErrors, ThrowOnError>;
|
|
642
650
|
/**
|
|
@@ -644,7 +652,7 @@ declare const googlePauseKeyword: <ThrowOnError extends boolean = true>(options:
|
|
|
644
652
|
*
|
|
645
653
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
646
654
|
*
|
|
647
|
-
* Enables (resumes) a keyword (`ad_group_criterion`) by its
|
|
655
|
+
* Enables (resumes) a keyword (`ad_group_criterion`) by its composite id ({ad_group_id}~{criterion_id}). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
648
656
|
*/
|
|
649
657
|
declare const googleEnableKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableKeywordData, ThrowOnError>) => RequestResult<GoogleEnableKeywordResponses, GoogleEnableKeywordErrors, ThrowOnError>;
|
|
650
658
|
/**
|
|
@@ -1133,6 +1141,27 @@ type XPoll = NonNullable<NonNullable<XPostVariant['settings']>['poll']>;
|
|
|
1133
1141
|
*/
|
|
1134
1142
|
declare function xPollDurationLabel(durationMinutes: number): string;
|
|
1135
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
* The Google Ads tree, assembled. `GET /v1/google/{conn}/ads/tree` returns FLAT,
|
|
1146
|
+
* native `GoogleAdTreeNode`s with Google's authoritative per-level metrics (no
|
|
1147
|
+
* client roll-up) keyed by `parent_id`; turning that into a nested tree is generic,
|
|
1148
|
+
* so it lives here rather than in every consumer.
|
|
1149
|
+
*/
|
|
1150
|
+
/** A flat tree node with its children attached. Extends the generated node — never
|
|
1151
|
+
* a redeclared shape, so it can't drift from the API. */
|
|
1152
|
+
interface AdTreeNode extends GoogleAdTreeNode {
|
|
1153
|
+
children: AdTreeNode[];
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Group flat tree nodes into a nested tree by `parent_id`. A node whose parent is
|
|
1157
|
+
* NOT in the set is a root — so a campaign-level page (campaigns have
|
|
1158
|
+
* `parent_id: null`) and a per-campaign subtree page (ad groups whose campaign is
|
|
1159
|
+
* absent) each group correctly on their own, and concatenating a campaign page with
|
|
1160
|
+
* an expanded campaign's subtree page nests the subtree under that campaign. Input
|
|
1161
|
+
* order is preserved within every level. Pure — the input is not mutated.
|
|
1162
|
+
*/
|
|
1163
|
+
declare function groupAdTree(nodes: GoogleAdTreeNode[]): AdTreeNode[];
|
|
1164
|
+
|
|
1136
1165
|
/**
|
|
1137
1166
|
* TikTok's mandatory publish-options model — the framework-agnostic glue between
|
|
1138
1167
|
* the live `creator-info` payload and a TikTok post's settings. This is the
|
|
@@ -1347,4 +1376,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
|
|
|
1347
1376
|
*/
|
|
1348
1377
|
declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
|
|
1349
1378
|
|
|
1350
|
-
export { type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionKind, type ConnectionList, type ConnectionRef, type ConnectionStatus, ConnectionsConnectData, ConnectionsConnectErrors, ConnectionsConnectResponse, ConnectionsConnectResponses, ConnectionsDeleteData, ConnectionsDeleteErrors, ConnectionsDeleteResponses, ConnectionsGetData, ConnectionsGetErrors, ConnectionsGetResponse, ConnectionsGetResponses, ConnectionsListAccountsData, ConnectionsListAccountsErrors, ConnectionsListAccountsResponse, ConnectionsListAccountsResponses, ConnectionsListByProfileData, ConnectionsListByProfileErrors, ConnectionsListByProfileResponse, ConnectionsListByProfileResponses, ConnectionsSelectData, ConnectionsSelectErrors, ConnectionsSelectResponses, type CreateMediaInput, type CreateMediaResult, type CreatePostInput, type CreateProfileInput, type DiscoverableAccountList, ErrorCode, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupCriterionData, GoogleCreateAdGroupCriterionErrors, GoogleCreateAdGroupCriterionResponses, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignCriterionData, GoogleCreateCampaignCriterionErrors, GoogleCreateCampaignCriterionResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleDeleteAdData, GoogleDeleteAdErrors, GoogleDeleteAdGroupCriterionData, GoogleDeleteAdGroupCriterionErrors, GoogleDeleteAdGroupCriterionResponses, GoogleDeleteAdGroupData, GoogleDeleteAdGroupErrors, GoogleDeleteAdGroupResponses, GoogleDeleteAdResponses, GoogleDeleteBudgetData, GoogleDeleteBudgetErrors, GoogleDeleteBudgetResponses, GoogleDeleteCampaignCriterionData, GoogleDeleteCampaignCriterionErrors, GoogleDeleteCampaignCriterionResponses, GoogleDeleteCampaignData, GoogleDeleteCampaignErrors, GoogleDeleteCampaignResponses, GoogleDeleteKeywordData, GoogleDeleteKeywordErrors, GoogleDeleteKeywordResponses, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupCriteriaData, GoogleListAdGroupCriteriaErrors, GoogleListAdGroupCriteriaResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListAudiencesData, GoogleListAudiencesErrors, GoogleListAudiencesResponses, GoogleListCampaignCriteriaData, GoogleListCampaignCriteriaErrors, GoogleListCampaignCriteriaResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSearchGeoTargetsData, GoogleSearchGeoTargetsErrors, GoogleSearchGeoTargetsResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetCampaignGeoSettingsData, GoogleSetCampaignGeoSettingsErrors, GoogleSetCampaignGeoSettingsResponses, GoogleSetCampaignTargetingSettingData, GoogleSetCampaignTargetingSettingErrors, GoogleSetCampaignTargetingSettingResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUploadConversionsData, GoogleUploadConversionsErrors, GoogleUploadConversionsResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaAbortData, MediaAbortErrors, MediaAbortResponses, MediaCompleteData, MediaCompleteErrors, MediaCompleteResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListPartsData, MediaListPartsErrors, MediaListPartsResponses, MediaListResponse, MediaListResponses, type MediaResource, MediaSignPartData, MediaSignPartErrors, MediaSignPartResponses, type MediaStatus, type MediaTarget, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, MetaAccountData, MetaAccountErrors, MetaAccountResponses, MetaAdData, MetaAdErrors, MetaAdResponses, MetaAdsData, MetaAdsErrors, MetaAdsResponses, MetaAdsetData, MetaAdsetErrors, MetaAdsetResponses, MetaAdsetsData, MetaAdsetsErrors, MetaAdsetsResponses, MetaCampaignData, MetaCampaignErrors, MetaCampaignResponses, MetaCampaignsData, MetaCampaignsErrors, MetaCampaignsResponses, MetaInsightsData, MetaInsightsErrors, MetaInsightsResponses, type Metadata, type MetadataFilter, type MultipartSession, type Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, PostrunClient, PostrunError, type PostrunErrorCode, type PostrunFieldError, type PostrunProblem, PostsCreateData, PostsCreateErrors, PostsCreateResponses, PostsDeleteData, PostsDeleteErrors, PostsDeleteResponses, PostsGetData, PostsGetErrors, PostsGetResponse, PostsGetResponses, PostsListData, PostsListErrors, PostsListResponse, PostsListResponses, PostsUpdateData, PostsUpdateErrors, PostsUpdateResponses, PostsValidateData, PostsValidateErrors, PostsValidateResponse, PostsValidateResponses, type Profile, type ProfileList, ProfilesCreateData, ProfilesCreateErrors, ProfilesCreateResponses, ProfilesDeleteData, ProfilesDeleteErrors, ProfilesDeleteResponses, ProfilesGetData, ProfilesGetErrors, ProfilesGetResponse, ProfilesGetResponses, ProfilesListData, ProfilesListErrors, ProfilesListResponse, ProfilesListResponses, ProfilesUpdateData, ProfilesUpdateErrors, ProfilesUpdateResponses, type PublishMode, type SelectAccountInput, type SettingsFor, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, type TikTokBrandKind, type TikTokCreatorInfo, type TikTokInteractionKey, type TikTokInteractionRow, type TikTokOptionsValue, type TikTokPostVariant, type TikTokPrivacyChoice, type TikTokPrivacyLevel, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadFileOptions, type ValidatePostInput, type ValidationIssue, WebhooksCreateEndpointData, WebhooksCreateEndpointErrors, WebhooksCreateEndpointResponses, WebhooksCreatePortalData, WebhooksCreatePortalErrors, WebhooksCreatePortalResponses, WebhooksDeleteEndpointData, WebhooksDeleteEndpointErrors, WebhooksDeleteEndpointResponses, WebhooksGetEndpointData, WebhooksGetEndpointErrors, WebhooksGetEndpointResponses, WebhooksListEndpointsData, WebhooksListEndpointsErrors, WebhooksListEndpointsResponses, WebhooksListEventTypesData, WebhooksListEventTypesErrors, WebhooksListEventTypesResponses, WebhooksPingData, WebhooksPingErrors, WebhooksPingResponses, WebhooksUpdateEndpointData, WebhooksUpdateEndpointErrors, WebhooksUpdateEndpointResponses, type XPoll, type XPostVariant, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteAdGroupCriterion, googleDeleteBudget, googleDeleteCampaign, googleDeleteCampaignCriterion, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSearchGeoTargets, googleSetAdGroupBids, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
|
1379
|
+
export { type AdTreeNode, type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionKind, type ConnectionList, type ConnectionRef, type ConnectionStatus, ConnectionsConnectData, ConnectionsConnectErrors, ConnectionsConnectResponse, ConnectionsConnectResponses, ConnectionsDeleteData, ConnectionsDeleteErrors, ConnectionsDeleteResponses, ConnectionsGetData, ConnectionsGetErrors, ConnectionsGetResponse, ConnectionsGetResponses, ConnectionsListAccountsData, ConnectionsListAccountsErrors, ConnectionsListAccountsResponse, ConnectionsListAccountsResponses, ConnectionsListByProfileData, ConnectionsListByProfileErrors, ConnectionsListByProfileResponse, ConnectionsListByProfileResponses, ConnectionsSelectData, ConnectionsSelectErrors, ConnectionsSelectResponses, type CreateMediaInput, type CreateMediaResult, type CreatePostInput, type CreateProfileInput, type DiscoverableAccountList, ErrorCode, GoogleAdTreeNode, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupCriterionData, GoogleCreateAdGroupCriterionErrors, GoogleCreateAdGroupCriterionResponses, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignCriterionData, GoogleCreateCampaignCriterionErrors, GoogleCreateCampaignCriterionResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetAdTreeData, GoogleGetAdTreeErrors, GoogleGetAdTreeResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupCriteriaData, GoogleListAdGroupCriteriaErrors, GoogleListAdGroupCriteriaResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListAudiencesData, GoogleListAudiencesErrors, GoogleListAudiencesResponses, GoogleListCampaignCriteriaData, GoogleListCampaignCriteriaErrors, GoogleListCampaignCriteriaResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRemoveAdData, GoogleRemoveAdErrors, GoogleRemoveAdGroupCriterionData, GoogleRemoveAdGroupCriterionErrors, GoogleRemoveAdGroupCriterionResponses, GoogleRemoveAdGroupData, GoogleRemoveAdGroupErrors, GoogleRemoveAdGroupResponses, GoogleRemoveAdResponses, GoogleRemoveBudgetData, GoogleRemoveBudgetErrors, GoogleRemoveBudgetResponses, GoogleRemoveCampaignCriterionData, GoogleRemoveCampaignCriterionErrors, GoogleRemoveCampaignCriterionResponses, GoogleRemoveCampaignData, GoogleRemoveCampaignErrors, GoogleRemoveCampaignResponses, GoogleRemoveKeywordData, GoogleRemoveKeywordErrors, GoogleRemoveKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSearchGeoTargetsData, GoogleSearchGeoTargetsErrors, GoogleSearchGeoTargetsResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetCampaignGeoSettingsData, GoogleSetCampaignGeoSettingsErrors, GoogleSetCampaignGeoSettingsResponses, GoogleSetCampaignTargetingSettingData, GoogleSetCampaignTargetingSettingErrors, GoogleSetCampaignTargetingSettingResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUploadConversionsData, GoogleUploadConversionsErrors, GoogleUploadConversionsResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaAbortData, MediaAbortErrors, MediaAbortResponses, MediaCompleteData, MediaCompleteErrors, MediaCompleteResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListPartsData, MediaListPartsErrors, MediaListPartsResponses, MediaListResponse, MediaListResponses, type MediaResource, MediaSignPartData, MediaSignPartErrors, MediaSignPartResponses, type MediaStatus, type MediaTarget, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, MetaAccountData, MetaAccountErrors, MetaAccountResponses, MetaAdData, MetaAdErrors, MetaAdResponses, MetaAdsData, MetaAdsErrors, MetaAdsResponses, MetaAdsetData, MetaAdsetErrors, MetaAdsetResponses, MetaAdsetsData, MetaAdsetsErrors, MetaAdsetsResponses, MetaCampaignData, MetaCampaignErrors, MetaCampaignResponses, MetaCampaignsData, MetaCampaignsErrors, MetaCampaignsResponses, MetaInsightsData, MetaInsightsErrors, MetaInsightsResponses, type Metadata, type MetadataFilter, type MultipartSession, type Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, PostrunClient, PostrunError, type PostrunErrorCode, type PostrunFieldError, type PostrunProblem, PostsCreateData, PostsCreateErrors, PostsCreateResponses, PostsDeleteData, PostsDeleteErrors, PostsDeleteResponses, PostsGetData, PostsGetErrors, PostsGetResponse, PostsGetResponses, PostsListData, PostsListErrors, PostsListResponse, PostsListResponses, PostsUpdateData, PostsUpdateErrors, PostsUpdateResponses, PostsValidateData, PostsValidateErrors, PostsValidateResponse, PostsValidateResponses, type Profile, type ProfileList, ProfilesCreateData, ProfilesCreateErrors, ProfilesCreateResponses, ProfilesDeleteData, ProfilesDeleteErrors, ProfilesDeleteResponses, ProfilesGetData, ProfilesGetErrors, ProfilesGetResponse, ProfilesGetResponses, ProfilesListData, ProfilesListErrors, ProfilesListResponse, ProfilesListResponses, ProfilesUpdateData, ProfilesUpdateErrors, ProfilesUpdateResponses, type PublishMode, type SelectAccountInput, type SettingsFor, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, type TikTokBrandKind, type TikTokCreatorInfo, type TikTokInteractionKey, type TikTokInteractionRow, type TikTokOptionsValue, type TikTokPostVariant, type TikTokPrivacyChoice, type TikTokPrivacyLevel, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadFileOptions, type ValidatePostInput, type ValidationIssue, WebhooksCreateEndpointData, WebhooksCreateEndpointErrors, WebhooksCreateEndpointResponses, WebhooksCreatePortalData, WebhooksCreatePortalErrors, WebhooksCreatePortalResponses, WebhooksDeleteEndpointData, WebhooksDeleteEndpointErrors, WebhooksDeleteEndpointResponses, WebhooksGetEndpointData, WebhooksGetEndpointErrors, WebhooksGetEndpointResponses, WebhooksListEndpointsData, WebhooksListEndpointsErrors, WebhooksListEndpointsResponses, WebhooksListEventTypesData, WebhooksListEventTypesErrors, WebhooksListEventTypesResponses, WebhooksPingData, WebhooksPingErrors, WebhooksPingResponses, WebhooksUpdateEndpointData, WebhooksUpdateEndpointErrors, WebhooksUpdateEndpointResponses, type XPoll, type XPostVariant, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetAdTree, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRemoveAd, googleRemoveAdGroup, googleRemoveAdGroupCriterion, googleRemoveBudget, googleRemoveCampaign, googleRemoveCampaignCriterion, googleRemoveKeyword, googleRunGaql, googleSearchGeoTargets, googleSetAdGroupBids, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, groupAdTree, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { mediaAbort, mediaComplete, mediaListParts, mediaSignPart } from './chunk-
|
|
2
|
-
export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword,
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { mediaAbort, mediaComplete, mediaListParts, mediaSignPart } from './chunk-Z24YOZBU.js';
|
|
2
|
+
export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetAdTree, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRemoveAd, googleRemoveAdGroup, googleRemoveAdGroupCriterion, googleRemoveBudget, googleRemoveCampaign, googleRemoveCampaignCriterion, googleRemoveKeyword, googleRunGaql, googleSearchGeoTargets, googleSetAdGroupBids, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tiktokCreatorInfo, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint } from './chunk-Z24YOZBU.js';
|
|
3
|
+
import './chunk-B3QMJNLV.js';
|
|
4
4
|
import Uppy from '@uppy/core';
|
|
5
5
|
import AwsS3 from '@uppy/aws-s3';
|
|
6
6
|
|
|
@@ -156,6 +156,28 @@ function xPollDurationLabel(durationMinutes) {
|
|
|
156
156
|
return plural(durationMinutes, "minute");
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
// src/ads-tree.ts
|
|
160
|
+
function groupAdTree(nodes) {
|
|
161
|
+
const byId = /* @__PURE__ */ new Map();
|
|
162
|
+
for (const node of nodes) {
|
|
163
|
+
byId.set(node.id, { ...node, children: [] });
|
|
164
|
+
}
|
|
165
|
+
const roots = [];
|
|
166
|
+
for (const node of nodes) {
|
|
167
|
+
const treeNode = byId.get(node.id);
|
|
168
|
+
if (treeNode === void 0) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const parent = node.parent_id === null ? void 0 : byId.get(node.parent_id);
|
|
172
|
+
if (parent === void 0) {
|
|
173
|
+
roots.push(treeNode);
|
|
174
|
+
} else {
|
|
175
|
+
parent.children.push(treeNode);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return roots;
|
|
179
|
+
}
|
|
180
|
+
|
|
159
181
|
// src/tiktok-options.ts
|
|
160
182
|
var TIKTOK_CAPTION_MAX = { video: 2200, photo: 4e3 };
|
|
161
183
|
function captionMaxFor(postType) {
|
|
@@ -465,6 +487,6 @@ function buildUpdatePost(input, connections = []) {
|
|
|
465
487
|
};
|
|
466
488
|
}
|
|
467
489
|
|
|
468
|
-
export { ComposeError, POST_PLATFORMS, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, UploadError, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, defaultTikTokOptions, failedVariants, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, parsePrivacyLevel, privacyChoices, setBrandKind, setCommercialDisclosure, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, uploadFile, xPollDurationLabel };
|
|
490
|
+
export { ComposeError, POST_PLATFORMS, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, UploadError, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, defaultTikTokOptions, failedVariants, groupAdTree, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, parsePrivacyLevel, privacyChoices, setBrandKind, setCommercialDisclosure, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, uploadFile, xPollDurationLabel };
|
|
469
491
|
//# sourceMappingURL=index.js.map
|
|
470
492
|
//# sourceMappingURL=index.js.map
|