@postrun/js 2.25.0 → 3.0.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.
@@ -1,3 +1,29 @@
1
- export { zConnectSession, zConnection, zConnectionKind, zConnectionStatus, zConnectionsConnectBody, zConnectionsConnectHeaders, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeleteHeaders, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectHeaders, zConnectionsSelectPath, zConnectionsSelectResponse, zCreatePostBody, zDiscoverableAccount, zErrorCode, zErrorSource, zGoogleAdTree, zGoogleAdTreeNode, zGoogleAdsAd, zGoogleAdsAdGroup, zGoogleAdsAdGroupCriterion, zGoogleAdsAudience, zGoogleAdsCampaignCriterion, zGoogleAdsConversionConsent, zGoogleAdsConversionEvent, zGoogleAdsConversionRequest, zGoogleAdsConversionStatus, zGoogleAdsConversionStatusReason, zGoogleAdsConversionUserIdentifier, zGoogleAdsConversionWarning, zGoogleAdsCreateAdGroupCriterionRequest, zGoogleAdsCreateCampaignCriterionRequest, zGoogleAdsCreateResult, zGoogleAdsDeleteResult, zGoogleAdsEditResult, zGoogleAdsGeoSettingsRequest, zGoogleAdsGeoTargetConstant, zGoogleAdsInsightLevel, zGoogleAdsInsightMetric, zGoogleAdsInsightSegment, zGoogleAdsInsights, zGoogleAdsInsightsQuery, zGoogleAdsInsightsRow, zGoogleAdsKeyword, zGoogleAdsReadStatusFilter, zGoogleAdsSendConversionsResult, zGoogleAdsUrlCustomParameter, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupCriterionBody, zGoogleCreateAdGroupCriterionHeaders, zGoogleCreateAdGroupCriterionPath, zGoogleCreateAdGroupCriterionResponse, zGoogleCreateAdGroupHeaders, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdHeaders, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetHeaders, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignCriterionBody, zGoogleCreateCampaignCriterionHeaders, zGoogleCreateCampaignCriterionPath, zGoogleCreateCampaignCriterionResponse, zGoogleCreateCampaignHeaders, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionHeaders, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdHeaders, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordHeaders, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleEditAccountBody, zGoogleEditAccountHeaders, zGoogleEditAccountPath, zGoogleEditAccountResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupHeaders, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetHeaders, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignHeaders, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupHeaders, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdHeaders, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignHeaders, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordHeaders, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetAdTreePath, zGoogleGetAdTreeQuery, zGoogleGetAdTreeResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetConversionStatusPath, zGoogleGetConversionStatusQuery, zGoogleGetConversionStatusResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupCriteriaPath, zGoogleListAdGroupCriteriaResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsQuery, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsQuery, zGoogleListAdsResponse, zGoogleListAudiencesPath, zGoogleListAudiencesQuery, zGoogleListAudiencesResponse, zGoogleListCampaignCriteriaPath, zGoogleListCampaignCriteriaResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListConversionRequestsPath, zGoogleListConversionRequestsQuery, zGoogleListConversionRequestsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsQuery, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupHeaders, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdHeaders, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignHeaders, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordHeaders, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRemoveAdBody, zGoogleRemoveAdGroupBody, zGoogleRemoveAdGroupCriterionBody, zGoogleRemoveAdGroupCriterionHeaders, zGoogleRemoveAdGroupCriterionPath, zGoogleRemoveAdGroupCriterionResponse, zGoogleRemoveAdGroupHeaders, zGoogleRemoveAdGroupPath, zGoogleRemoveAdGroupResponse, zGoogleRemoveAdHeaders, zGoogleRemoveAdPath, zGoogleRemoveAdResponse, zGoogleRemoveBudgetBody, zGoogleRemoveBudgetHeaders, zGoogleRemoveBudgetPath, zGoogleRemoveBudgetResponse, zGoogleRemoveCampaignBody, zGoogleRemoveCampaignCriterionBody, zGoogleRemoveCampaignCriterionHeaders, zGoogleRemoveCampaignCriterionPath, zGoogleRemoveCampaignCriterionResponse, zGoogleRemoveCampaignHeaders, zGoogleRemoveCampaignPath, zGoogleRemoveCampaignResponse, zGoogleRemoveKeywordBody, zGoogleRemoveKeywordHeaders, zGoogleRemoveKeywordPath, zGoogleRemoveKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSearchGeoTargetsPath, zGoogleSearchGeoTargetsQuery, zGoogleSearchGeoTargetsResponse, zGoogleSendConversionsBody, zGoogleSendConversionsHeaders, zGoogleSendConversionsPath, zGoogleSendConversionsResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsHeaders, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetCampaignGeoSettingsBody, zGoogleSetCampaignGeoSettingsHeaders, zGoogleSetCampaignGeoSettingsPath, zGoogleSetCampaignGeoSettingsResponse, zGoogleSetCampaignTargetingSettingBody, zGoogleSetCampaignTargetingSettingHeaders, zGoogleSetCampaignTargetingSettingPath, zGoogleSetCampaignTargetingSettingResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalHeaders, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidHeaders, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetHeaders, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zIdempotencyKey, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMedia, zMediaAbortPath, zMediaAbortResponse, zMediaCompleteBody, zMediaCompletePath, zMediaCompleteResponse, zMediaCreateBody, zMediaCreateHeaders, zMediaCreateResponse, zMediaDeleteHeaders, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaKind, zMediaListPartsPath, zMediaListPartsResponse, zMediaListQuery, zMediaListResponse, zMediaSignPartBody, zMediaSignPartPath, zMediaSignPartResponse, zMediaStage, zMediaStatus, zMediaUpdateBody, zMediaUpdateHeaders, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPost, zPostPlatform, zPostStatus, zPostType, zPostVariant, zPostVariantInput, zPostVariantStatus, zPostsCreateBody, zPostsCreateHeaders, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdateHeaders, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfile, zProfilesCreateBody, zProfilesCreateHeaders, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTikTokCreatorInfo, zTikTokPrivacyLevel, zTiktokCreatorInfoPath, zTiktokCreatorInfoResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointHeaders, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse } from '../chunk-ZKETM7OS.js';
1
+ import { zGoogleAdsConversionEvent } from '../chunk-QXMLASQ6.js';
2
+ export { zConnectSession, zConnection, zConnectionKind, zConnectionStatus, zConnectionsConnectBody, zConnectionsConnectHeaders, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeleteHeaders, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectHeaders, zConnectionsSelectPath, zConnectionsSelectResponse, zCreatePostBody, zDiscoverableAccount, zErrorCode, zErrorSource, zGoogleAdTree, zGoogleAdTreeNode, zGoogleAdsAd, zGoogleAdsAdGroup, zGoogleAdsAdGroupCriterion, zGoogleAdsAudience, zGoogleAdsCampaignCriterion, zGoogleAdsConversionConsent, zGoogleAdsConversionEvent, zGoogleAdsConversionRequest, zGoogleAdsConversionStatus, zGoogleAdsConversionStatusReason, zGoogleAdsConversionUserIdentifier, zGoogleAdsConversionWarning, zGoogleAdsCreateAdGroupCriterionRequest, zGoogleAdsCreateCampaignCriterionRequest, zGoogleAdsCreateResult, zGoogleAdsDeleteResult, zGoogleAdsEditResult, zGoogleAdsGeoSettingsRequest, zGoogleAdsGeoTargetConstant, zGoogleAdsInsightLevel, zGoogleAdsInsightMetric, zGoogleAdsInsightSegment, zGoogleAdsInsights, zGoogleAdsInsightsQuery, zGoogleAdsInsightsRow, zGoogleAdsKeyword, zGoogleAdsReadStatusFilter, zGoogleAdsSendConversionsResult, zGoogleAdsUrlCustomParameter, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupCriterionBody, zGoogleCreateAdGroupCriterionHeaders, zGoogleCreateAdGroupCriterionPath, zGoogleCreateAdGroupCriterionResponse, zGoogleCreateAdGroupHeaders, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdHeaders, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetHeaders, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignCriterionBody, zGoogleCreateCampaignCriterionHeaders, zGoogleCreateCampaignCriterionPath, zGoogleCreateCampaignCriterionResponse, zGoogleCreateCampaignHeaders, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionHeaders, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdHeaders, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordHeaders, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleEditAccountBody, zGoogleEditAccountHeaders, zGoogleEditAccountPath, zGoogleEditAccountResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupHeaders, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetHeaders, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignHeaders, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupHeaders, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdHeaders, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignHeaders, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordHeaders, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetAdTreePath, zGoogleGetAdTreeQuery, zGoogleGetAdTreeResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetConversionStatusPath, zGoogleGetConversionStatusQuery, zGoogleGetConversionStatusResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupCriteriaPath, zGoogleListAdGroupCriteriaResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsQuery, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsQuery, zGoogleListAdsResponse, zGoogleListAudiencesPath, zGoogleListAudiencesQuery, zGoogleListAudiencesResponse, zGoogleListCampaignCriteriaPath, zGoogleListCampaignCriteriaResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListConversionRequestsPath, zGoogleListConversionRequestsQuery, zGoogleListConversionRequestsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsQuery, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupHeaders, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdHeaders, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignHeaders, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordHeaders, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRemoveAdBody, zGoogleRemoveAdGroupBody, zGoogleRemoveAdGroupCriterionBody, zGoogleRemoveAdGroupCriterionHeaders, zGoogleRemoveAdGroupCriterionPath, zGoogleRemoveAdGroupCriterionResponse, zGoogleRemoveAdGroupHeaders, zGoogleRemoveAdGroupPath, zGoogleRemoveAdGroupResponse, zGoogleRemoveAdHeaders, zGoogleRemoveAdPath, zGoogleRemoveAdResponse, zGoogleRemoveBudgetBody, zGoogleRemoveBudgetHeaders, zGoogleRemoveBudgetPath, zGoogleRemoveBudgetResponse, zGoogleRemoveCampaignBody, zGoogleRemoveCampaignCriterionBody, zGoogleRemoveCampaignCriterionHeaders, zGoogleRemoveCampaignCriterionPath, zGoogleRemoveCampaignCriterionResponse, zGoogleRemoveCampaignHeaders, zGoogleRemoveCampaignPath, zGoogleRemoveCampaignResponse, zGoogleRemoveKeywordBody, zGoogleRemoveKeywordHeaders, zGoogleRemoveKeywordPath, zGoogleRemoveKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSearchGeoTargetsPath, zGoogleSearchGeoTargetsQuery, zGoogleSearchGeoTargetsResponse, zGoogleSendConversionsBody, zGoogleSendConversionsHeaders, zGoogleSendConversionsPath, zGoogleSendConversionsResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsHeaders, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetCampaignGeoSettingsBody, zGoogleSetCampaignGeoSettingsHeaders, zGoogleSetCampaignGeoSettingsPath, zGoogleSetCampaignGeoSettingsResponse, zGoogleSetCampaignTargetingSettingBody, zGoogleSetCampaignTargetingSettingHeaders, zGoogleSetCampaignTargetingSettingPath, zGoogleSetCampaignTargetingSettingResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalHeaders, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidHeaders, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetHeaders, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zIdempotencyKey, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMedia, zMediaAbortPath, zMediaAbortResponse, zMediaCompleteBody, zMediaCompletePath, zMediaCompleteResponse, zMediaCreateBody, zMediaCreateHeaders, zMediaCreateResponse, zMediaDeleteHeaders, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaKind, zMediaListPartsPath, zMediaListPartsResponse, zMediaListQuery, zMediaListResponse, zMediaSignPartBody, zMediaSignPartPath, zMediaSignPartResponse, zMediaStage, zMediaStatus, zMediaUpdateBody, zMediaUpdateHeaders, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPost, zPostPlatform, zPostStatus, zPostType, zPostVariant, zPostVariantInput, zPostVariantStatus, zPostsCreateBody, zPostsCreateHeaders, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdateHeaders, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfile, zProfilesCreateBody, zProfilesCreateHeaders, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTikTokCreatorInfo, zTikTokPrivacyLevel, zTiktokCreatorInfoPath, zTiktokCreatorInfoResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointHeaders, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse } from '../chunk-QXMLASQ6.js';
3
+
4
+ // src/schemas/conversions.ts
5
+ var conversionEventSchema = zGoogleAdsConversionEvent.superRefine(
6
+ (event, ctx) => {
7
+ const hasMatchSignal = event.gclid != null || event.gbraid != null || event.wbraid != null || event.user_data != null && event.user_data.length > 0;
8
+ if (!hasMatchSignal) {
9
+ ctx.addIssue({
10
+ code: "custom",
11
+ message: "Each conversion needs at least one match signal: a gclid, gbraid, wbraid, or user_data."
12
+ });
13
+ }
14
+ event.user_data?.forEach((identifier, index) => {
15
+ const hasIdentifier = identifier.email_address != null || identifier.phone_number != null || identifier.address != null;
16
+ if (!hasIdentifier) {
17
+ ctx.addIssue({
18
+ code: "custom",
19
+ path: ["user_data", index],
20
+ message: "Provide an email_address, phone_number, or address."
21
+ });
22
+ }
23
+ });
24
+ }
25
+ );
26
+
27
+ export { conversionEventSchema };
2
28
  //# sourceMappingURL=index.js.map
3
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"sources":["../../src/schemas/conversions.ts"],"names":[],"mappings":";;;;AAiBO,IAAM,wBAAwB,yBAAA,CAA0B,WAAA;AAAA,EAC7D,CAAC,OAAO,GAAA,KAAQ;AACd,IAAA,MAAM,cAAA,GACJ,KAAA,CAAM,KAAA,IAAS,IAAA,IACf,MAAM,MAAA,IAAU,IAAA,IAChB,KAAA,CAAM,MAAA,IAAU,QACf,KAAA,CAAM,SAAA,IAAa,IAAA,IAAQ,KAAA,CAAM,UAAU,MAAA,GAAS,CAAA;AAEvD,IAAA,IAAI,CAAC,cAAA,EAAgB;AACnB,MAAA,GAAA,CAAI,QAAA,CAAS;AAAA,QACX,IAAA,EAAM,QAAA;AAAA,QACN,OAAA,EACE;AAAA,OACH,CAAA;AAAA,IACH;AAEA,IAAA,KAAA,CAAM,SAAA,EAAW,OAAA,CAAQ,CAAC,UAAA,EAAY,KAAA,KAAU;AAC9C,MAAA,MAAM,aAAA,GACJ,WAAW,aAAA,IAAiB,IAAA,IAC5B,WAAW,YAAA,IAAgB,IAAA,IAC3B,WAAW,OAAA,IAAW,IAAA;AAExB,MAAA,IAAI,CAAC,aAAA,EAAe;AAClB,QAAA,GAAA,CAAI,QAAA,CAAS;AAAA,UACX,IAAA,EAAM,QAAA;AAAA,UACN,IAAA,EAAM,CAAC,WAAA,EAAa,KAAK,CAAA;AAAA,UACzB,OAAA,EAAS;AAAA,SACV,CAAA;AAAA,MACH;AAAA,IACF,CAAC,CAAA;AAAA,EACH;AACF","file":"index.js","sourcesContent":["/**\n * Hand-written conversion validators — layered on top of the GENERATED zod.\n *\n * The generated `zGoogleAdsConversionEvent` validates every FIELD (types, the\n * RFC-3339-with-offset timestamp, the currency length, etc.), but it can't carry\n * the API's CROSS-FIELD rules: OpenAPI has no way to express \"at least one of\n * these optional fields,\" so the API's `.superRefine` / `.refine` are invisible to\n * codegen. We re-apply them here, importing the generated base (never copying it),\n * so this composes cleanly on top of every regeneration. The API remains the\n * server-side authority; this is the matching client-side check (zero round-trip).\n *\n * Mirrors `apps/api/lib/schemas/google/conversions.ts`:\n * - each conversion needs ≥1 match signal (gclid / gbraid / wbraid / user_data);\n * - each user_data identifier needs ≥1 of email / phone / address.\n */\nimport { zGoogleAdsConversionEvent } from '../client/zod.gen';\n\nexport const conversionEventSchema = zGoogleAdsConversionEvent.superRefine(\n (event, ctx) => {\n const hasMatchSignal =\n event.gclid != null ||\n event.gbraid != null ||\n event.wbraid != null ||\n (event.user_data != null && event.user_data.length > 0);\n\n if (!hasMatchSignal) {\n ctx.addIssue({\n code: 'custom',\n message:\n 'Each conversion needs at least one match signal: a gclid, gbraid, wbraid, or user_data.',\n });\n }\n\n event.user_data?.forEach((identifier, index) => {\n const hasIdentifier =\n identifier.email_address != null ||\n identifier.phone_number != null ||\n identifier.address != null;\n\n if (!hasIdentifier) {\n ctx.addIssue({\n code: 'custom',\n path: ['user_data', index],\n message: 'Provide an email_address, phone_number, or address.',\n });\n }\n });\n },\n);\n"]}
package/dist/server.cjs CHANGED
@@ -853,7 +853,6 @@ var zErrorCode = z__namespace.enum([
853
853
  "content_missing",
854
854
  "content_conflict",
855
855
  "content_incomplete",
856
- "content_kind_mismatch",
857
856
  "media_type_mismatch",
858
857
  "tag_limit_exceeded",
859
858
  "reel_field_on_non_reel",
@@ -1150,7 +1149,7 @@ var zPostPlatform = z__namespace.enum([
1150
1149
  "instagram",
1151
1150
  "tiktok"
1152
1151
  ]);
1153
- z__namespace.enum([
1152
+ var zPostType = z__namespace.enum([
1154
1153
  "text",
1155
1154
  "single_image",
1156
1155
  "multi_image",
@@ -1213,12 +1212,6 @@ var zTikTokPrivacyLevel = z__namespace.enum([
1213
1212
  var zPostVariant = z__namespace.union([
1214
1213
  z__namespace.object({
1215
1214
  platform: z__namespace.literal("x"),
1216
- post_type: z__namespace.enum([
1217
- "text",
1218
- "single_image",
1219
- "multi_image",
1220
- "video"
1221
- ]),
1222
1215
  settings: z__namespace.object({
1223
1216
  reply_settings: z__namespace.enum([
1224
1217
  "everyone",
@@ -1253,6 +1246,7 @@ var zPostVariant = z__namespace.union([
1253
1246
  }),
1254
1247
  id: z__namespace.string(),
1255
1248
  object: z__namespace.literal("post_variant"),
1249
+ post_type: zPostType.nullable(),
1256
1250
  connection_id: z__namespace.string().nullable(),
1257
1251
  body: z__namespace.string().nullable(),
1258
1252
  status: zPostVariantStatus,
@@ -1319,7 +1313,6 @@ var zPostVariant = z__namespace.union([
1319
1313
  "content_missing",
1320
1314
  "content_conflict",
1321
1315
  "content_incomplete",
1322
- "content_kind_mismatch",
1323
1316
  "media_type_mismatch",
1324
1317
  "tag_limit_exceeded",
1325
1318
  "reel_field_on_non_reel",
@@ -1403,23 +1396,8 @@ var zPostVariant = z__namespace.union([
1403
1396
  }),
1404
1397
  z__namespace.object({
1405
1398
  platform: z__namespace.literal("linkedin"),
1406
- post_type: z__namespace.enum([
1407
- "text",
1408
- "single_image",
1409
- "multi_image",
1410
- "video"
1411
- ]),
1412
1399
  settings: z__namespace.object({
1413
1400
  visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1414
- content_kind: z__namespace.enum([
1415
- "text",
1416
- "single_image",
1417
- "video",
1418
- "multi_image",
1419
- "document",
1420
- "article",
1421
- "poll"
1422
- ]),
1423
1401
  article: z__namespace.object({
1424
1402
  source: z__namespace.url(),
1425
1403
  title: z__namespace.string().max(400).optional(),
@@ -1448,6 +1426,7 @@ var zPostVariant = z__namespace.union([
1448
1426
  }),
1449
1427
  id: z__namespace.string(),
1450
1428
  object: z__namespace.literal("post_variant"),
1429
+ post_type: zPostType.nullable(),
1451
1430
  connection_id: z__namespace.string().nullable(),
1452
1431
  body: z__namespace.string().nullable(),
1453
1432
  status: zPostVariantStatus,
@@ -1514,7 +1493,6 @@ var zPostVariant = z__namespace.union([
1514
1493
  "content_missing",
1515
1494
  "content_conflict",
1516
1495
  "content_incomplete",
1517
- "content_kind_mismatch",
1518
1496
  "media_type_mismatch",
1519
1497
  "tag_limit_exceeded",
1520
1498
  "reel_field_on_non_reel",
@@ -1594,21 +1572,25 @@ var zPostVariant = z__namespace.union([
1594
1572
  position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1595
1573
  alt_text_override: z__namespace.string().nullable(),
1596
1574
  media: zMedia
1597
- }))
1598
- }),
1599
- z__namespace.object({
1600
- platform: z__namespace.literal("facebook_page"),
1601
- post_type: z__namespace.enum([
1575
+ })),
1576
+ content_kind: z__namespace.enum([
1602
1577
  "text",
1603
1578
  "single_image",
1579
+ "video",
1604
1580
  "multi_image",
1605
- "reel"
1606
- ]),
1581
+ "document",
1582
+ "article",
1583
+ "poll"
1584
+ ]).nullable()
1585
+ }),
1586
+ z__namespace.object({
1587
+ platform: z__namespace.literal("facebook_page"),
1607
1588
  settings: z__namespace.object({
1608
1589
  link: z__namespace.url().optional()
1609
1590
  }),
1610
1591
  id: z__namespace.string(),
1611
1592
  object: z__namespace.literal("post_variant"),
1593
+ post_type: zPostType.nullable(),
1612
1594
  connection_id: z__namespace.string().nullable(),
1613
1595
  body: z__namespace.string().nullable(),
1614
1596
  status: zPostVariantStatus,
@@ -1675,7 +1657,6 @@ var zPostVariant = z__namespace.union([
1675
1657
  "content_missing",
1676
1658
  "content_conflict",
1677
1659
  "content_incomplete",
1678
- "content_kind_mismatch",
1679
1660
  "media_type_mismatch",
1680
1661
  "tag_limit_exceeded",
1681
1662
  "reel_field_on_non_reel",
@@ -1759,17 +1740,7 @@ var zPostVariant = z__namespace.union([
1759
1740
  }),
1760
1741
  z__namespace.object({
1761
1742
  platform: z__namespace.literal("instagram"),
1762
- post_type: z__namespace.enum([
1763
- "single_image",
1764
- "carousel",
1765
- "reel"
1766
- ]),
1767
1743
  settings: z__namespace.object({
1768
- media_type: z__namespace.enum([
1769
- "IMAGE",
1770
- "CAROUSEL",
1771
- "REELS"
1772
- ]).optional(),
1773
1744
  location_id: z__namespace.string().optional(),
1774
1745
  user_tags: z__namespace.array(z__namespace.object({
1775
1746
  username: z__namespace.string().min(1),
@@ -1784,6 +1755,7 @@ var zPostVariant = z__namespace.union([
1784
1755
  }),
1785
1756
  id: z__namespace.string(),
1786
1757
  object: z__namespace.literal("post_variant"),
1758
+ post_type: zPostType.nullable(),
1787
1759
  connection_id: z__namespace.string().nullable(),
1788
1760
  body: z__namespace.string().nullable(),
1789
1761
  status: zPostVariantStatus,
@@ -1850,7 +1822,6 @@ var zPostVariant = z__namespace.union([
1850
1822
  "content_missing",
1851
1823
  "content_conflict",
1852
1824
  "content_incomplete",
1853
- "content_kind_mismatch",
1854
1825
  "media_type_mismatch",
1855
1826
  "tag_limit_exceeded",
1856
1827
  "reel_field_on_non_reel",
@@ -1930,15 +1901,15 @@ var zPostVariant = z__namespace.union([
1930
1901
  position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1931
1902
  alt_text_override: z__namespace.string().nullable(),
1932
1903
  media: zMedia
1933
- }))
1904
+ })),
1905
+ media_type: z__namespace.enum([
1906
+ "IMAGE",
1907
+ "CAROUSEL",
1908
+ "REELS"
1909
+ ]).nullable()
1934
1910
  }),
1935
1911
  z__namespace.object({
1936
1912
  platform: z__namespace.literal("tiktok"),
1937
- post_type: z__namespace.enum([
1938
- "video",
1939
- "single_image",
1940
- "carousel"
1941
- ]),
1942
1913
  settings: z__namespace.object({
1943
1914
  privacy_level: zTikTokPrivacyLevel.optional(),
1944
1915
  disable_comment: z__namespace.boolean().optional(),
@@ -1953,6 +1924,7 @@ var zPostVariant = z__namespace.union([
1953
1924
  }),
1954
1925
  id: z__namespace.string(),
1955
1926
  object: z__namespace.literal("post_variant"),
1927
+ post_type: zPostType.nullable(),
1956
1928
  connection_id: z__namespace.string().nullable(),
1957
1929
  body: z__namespace.string().nullable(),
1958
1930
  status: zPostVariantStatus,
@@ -2019,7 +1991,6 @@ var zPostVariant = z__namespace.union([
2019
1991
  "content_missing",
2020
1992
  "content_conflict",
2021
1993
  "content_incomplete",
2022
- "content_kind_mismatch",
2023
1994
  "media_type_mismatch",
2024
1995
  "tag_limit_exceeded",
2025
1996
  "reel_field_on_non_reel",
@@ -2144,12 +2115,6 @@ z__namespace.object({
2144
2115
  var zPostVariantInput = z__namespace.union([
2145
2116
  z__namespace.object({
2146
2117
  platform: z__namespace.literal("x"),
2147
- post_type: z__namespace.enum([
2148
- "text",
2149
- "single_image",
2150
- "multi_image",
2151
- "video"
2152
- ]),
2153
2118
  settings: z__namespace.object({
2154
2119
  reply_settings: z__namespace.enum([
2155
2120
  "everyone",
@@ -2191,23 +2156,8 @@ var zPostVariantInput = z__namespace.union([
2191
2156
  }),
2192
2157
  z__namespace.object({
2193
2158
  platform: z__namespace.literal("linkedin"),
2194
- post_type: z__namespace.enum([
2195
- "text",
2196
- "single_image",
2197
- "multi_image",
2198
- "video"
2199
- ]),
2200
2159
  settings: z__namespace.object({
2201
2160
  visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
2202
- content_kind: z__namespace.enum([
2203
- "text",
2204
- "single_image",
2205
- "video",
2206
- "multi_image",
2207
- "document",
2208
- "article",
2209
- "poll"
2210
- ]),
2211
2161
  article: z__namespace.object({
2212
2162
  source: z__namespace.url(),
2213
2163
  title: z__namespace.string().max(400).optional(),
@@ -2243,17 +2193,7 @@ var zPostVariantInput = z__namespace.union([
2243
2193
  }),
2244
2194
  z__namespace.object({
2245
2195
  platform: z__namespace.literal("instagram"),
2246
- post_type: z__namespace.enum([
2247
- "single_image",
2248
- "carousel",
2249
- "reel"
2250
- ]),
2251
2196
  settings: z__namespace.object({
2252
- media_type: z__namespace.enum([
2253
- "IMAGE",
2254
- "CAROUSEL",
2255
- "REELS"
2256
- ]).optional(),
2257
2197
  location_id: z__namespace.string().optional(),
2258
2198
  user_tags: z__namespace.array(z__namespace.object({
2259
2199
  username: z__namespace.string().min(1),
@@ -2275,12 +2215,6 @@ var zPostVariantInput = z__namespace.union([
2275
2215
  }),
2276
2216
  z__namespace.object({
2277
2217
  platform: z__namespace.literal("facebook_page"),
2278
- post_type: z__namespace.enum([
2279
- "text",
2280
- "single_image",
2281
- "multi_image",
2282
- "reel"
2283
- ]),
2284
2218
  settings: z__namespace.object({
2285
2219
  link: z__namespace.url().optional()
2286
2220
  }).optional().default({}),
@@ -2293,11 +2227,6 @@ var zPostVariantInput = z__namespace.union([
2293
2227
  }),
2294
2228
  z__namespace.object({
2295
2229
  platform: z__namespace.literal("tiktok"),
2296
- post_type: z__namespace.enum([
2297
- "video",
2298
- "single_image",
2299
- "carousel"
2300
- ]),
2301
2230
  settings: z__namespace.object({
2302
2231
  privacy_level: zTikTokPrivacyLevel.optional(),
2303
2232
  disable_comment: z__namespace.boolean().optional(),
@@ -2325,7 +2254,7 @@ z__namespace.object({
2325
2254
  "schedule",
2326
2255
  "draft"
2327
2256
  ]).optional().default("draft"),
2328
- schedule_at: z__namespace.iso.datetime().optional(),
2257
+ schedule_at: z__namespace.iso.datetime({ offset: true }).optional(),
2329
2258
  external_id: z__namespace.string().min(1).max(255).optional(),
2330
2259
  metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
2331
2260
  z__namespace.string().max(500),
@@ -2992,7 +2921,7 @@ var zGoogleAdsConversionUserIdentifier = z__namespace.object({
2992
2921
  }).optional()
2993
2922
  });
2994
2923
  var zGoogleAdsConversionEvent = z__namespace.object({
2995
- event_timestamp: z__namespace.iso.datetime(),
2924
+ event_timestamp: z__namespace.iso.datetime({ offset: true }),
2996
2925
  event_source: z__namespace.enum([
2997
2926
  "WEB",
2998
2927
  "APP",
@@ -3075,7 +3004,6 @@ var zGoogleAdsConversionStatusReason = z__namespace.object({
3075
3004
  "content_missing",
3076
3005
  "content_conflict",
3077
3006
  "content_incomplete",
3078
- "content_kind_mismatch",
3079
3007
  "media_type_mismatch",
3080
3008
  "tag_limit_exceeded",
3081
3009
  "reel_field_on_non_reel",
@@ -3572,9 +3500,9 @@ z__namespace.object({
3572
3500
  z__namespace.number(),
3573
3501
  z__namespace.boolean()
3574
3502
  ])).optional(),
3575
- scheduled_after: z__namespace.iso.datetime().optional(),
3576
- scheduled_before: z__namespace.iso.datetime().optional(),
3577
- updated_after: z__namespace.iso.datetime().optional(),
3503
+ scheduled_after: z__namespace.iso.datetime({ offset: true }).optional(),
3504
+ scheduled_before: z__namespace.iso.datetime({ offset: true }).optional(),
3505
+ updated_after: z__namespace.iso.datetime({ offset: true }).optional(),
3578
3506
  status: z__namespace.array(zPostStatus).optional()
3579
3507
  });
3580
3508
  z__namespace.object({
@@ -3632,7 +3560,7 @@ z__namespace.object({
3632
3560
  "schedule",
3633
3561
  "draft"
3634
3562
  ]).optional(),
3635
- schedule_at: z__namespace.iso.datetime().nullish(),
3563
+ schedule_at: z__namespace.iso.datetime({ offset: true }).nullish(),
3636
3564
  external_id: z__namespace.string().min(1).max(255).nullish(),
3637
3565
  metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
3638
3566
  z__namespace.string().max(500),
@@ -3741,7 +3669,6 @@ z__namespace.object({
3741
3669
  "content_missing",
3742
3670
  "content_conflict",
3743
3671
  "content_incomplete",
3744
- "content_kind_mismatch",
3745
3672
  "media_type_mismatch",
3746
3673
  "tag_limit_exceeded",
3747
3674
  "reel_field_on_non_reel",
@@ -5302,8 +5229,8 @@ z__namespace.object({
5302
5229
  "scheduler"
5303
5230
  ]).optional(),
5304
5231
  action: z__namespace.string().min(1).optional(),
5305
- created_after: z__namespace.iso.datetime().optional(),
5306
- created_before: z__namespace.iso.datetime().optional()
5232
+ created_after: z__namespace.iso.datetime({ offset: true }).optional(),
5233
+ created_before: z__namespace.iso.datetime({ offset: true }).optional()
5307
5234
  });
5308
5235
  z__namespace.object({
5309
5236
  object: z__namespace.literal("list"),
@@ -5393,7 +5320,6 @@ z__namespace.object({
5393
5320
  "content_missing",
5394
5321
  "content_conflict",
5395
5322
  "content_incomplete",
5396
- "content_kind_mismatch",
5397
5323
  "media_type_mismatch",
5398
5324
  "tag_limit_exceeded",
5399
5325
  "reel_field_on_non_reel",
@@ -5553,7 +5479,6 @@ z__namespace.object({
5553
5479
  "content_missing",
5554
5480
  "content_conflict",
5555
5481
  "content_incomplete",
5556
- "content_kind_mismatch",
5557
5482
  "media_type_mismatch",
5558
5483
  "tag_limit_exceeded",
5559
5484
  "reel_field_on_non_reel",
@@ -5734,7 +5659,6 @@ z__namespace.object({
5734
5659
  "content_missing",
5735
5660
  "content_conflict",
5736
5661
  "content_incomplete",
5737
- "content_kind_mismatch",
5738
5662
  "media_type_mismatch",
5739
5663
  "tag_limit_exceeded",
5740
5664
  "reel_field_on_non_reel",
@@ -5894,7 +5818,6 @@ z__namespace.object({
5894
5818
  "content_missing",
5895
5819
  "content_conflict",
5896
5820
  "content_incomplete",
5897
- "content_kind_mismatch",
5898
5821
  "media_type_mismatch",
5899
5822
  "tag_limit_exceeded",
5900
5823
  "reel_field_on_non_reel",