@postrun/js 2.22.0 → 2.23.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.
@@ -140,6 +140,12 @@ var zErrorCode = z__namespace.enum([
140
140
  "google_auth_expired",
141
141
  "google_permission_denied",
142
142
  "google_request_failed",
143
+ "google_conversion_duplicate",
144
+ "google_conversion_invalid_click_id",
145
+ "google_conversion_event_too_old",
146
+ "google_conversion_consent_required",
147
+ "google_conversion_terms_not_signed",
148
+ "google_conversion_rejected",
143
149
  "post_publish_failed",
144
150
  "post_partially_published",
145
151
  "connection_platform_mismatch",
@@ -584,6 +590,12 @@ var zPostVariant = z__namespace.union([
584
590
  "google_auth_expired",
585
591
  "google_permission_denied",
586
592
  "google_request_failed",
593
+ "google_conversion_duplicate",
594
+ "google_conversion_invalid_click_id",
595
+ "google_conversion_event_too_old",
596
+ "google_conversion_consent_required",
597
+ "google_conversion_terms_not_signed",
598
+ "google_conversion_rejected",
587
599
  "post_publish_failed",
588
600
  "post_partially_published",
589
601
  "connection_platform_mismatch",
@@ -773,6 +785,12 @@ var zPostVariant = z__namespace.union([
773
785
  "google_auth_expired",
774
786
  "google_permission_denied",
775
787
  "google_request_failed",
788
+ "google_conversion_duplicate",
789
+ "google_conversion_invalid_click_id",
790
+ "google_conversion_event_too_old",
791
+ "google_conversion_consent_required",
792
+ "google_conversion_terms_not_signed",
793
+ "google_conversion_rejected",
776
794
  "post_publish_failed",
777
795
  "post_partially_published",
778
796
  "connection_platform_mismatch",
@@ -928,6 +946,12 @@ var zPostVariant = z__namespace.union([
928
946
  "google_auth_expired",
929
947
  "google_permission_denied",
930
948
  "google_request_failed",
949
+ "google_conversion_duplicate",
950
+ "google_conversion_invalid_click_id",
951
+ "google_conversion_event_too_old",
952
+ "google_conversion_consent_required",
953
+ "google_conversion_terms_not_signed",
954
+ "google_conversion_rejected",
931
955
  "post_publish_failed",
932
956
  "post_partially_published",
933
957
  "connection_platform_mismatch",
@@ -1097,6 +1121,12 @@ var zPostVariant = z__namespace.union([
1097
1121
  "google_auth_expired",
1098
1122
  "google_permission_denied",
1099
1123
  "google_request_failed",
1124
+ "google_conversion_duplicate",
1125
+ "google_conversion_invalid_click_id",
1126
+ "google_conversion_event_too_old",
1127
+ "google_conversion_consent_required",
1128
+ "google_conversion_terms_not_signed",
1129
+ "google_conversion_rejected",
1100
1130
  "post_publish_failed",
1101
1131
  "post_partially_published",
1102
1132
  "connection_platform_mismatch",
@@ -1260,6 +1290,12 @@ var zPostVariant = z__namespace.union([
1260
1290
  "google_auth_expired",
1261
1291
  "google_permission_denied",
1262
1292
  "google_request_failed",
1293
+ "google_conversion_duplicate",
1294
+ "google_conversion_invalid_click_id",
1295
+ "google_conversion_event_too_old",
1296
+ "google_conversion_consent_required",
1297
+ "google_conversion_terms_not_signed",
1298
+ "google_conversion_rejected",
1263
1299
  "post_publish_failed",
1264
1300
  "post_partially_published",
1265
1301
  "connection_platform_mismatch",
@@ -2151,6 +2187,189 @@ var zGoogleAdTree = z__namespace.object({
2151
2187
  object: z__namespace.literal("list"),
2152
2188
  data: z__namespace.array(zGoogleAdTreeNode)
2153
2189
  });
2190
+ var zGoogleAdsConversionConsent = z__namespace.object({
2191
+ ad_user_data: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional(),
2192
+ ad_personalization: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional()
2193
+ });
2194
+ var zGoogleAdsConversionUserIdentifier = z__namespace.object({
2195
+ email_address: z__namespace.string().min(1).optional(),
2196
+ phone_number: z__namespace.string().min(1).optional(),
2197
+ address: z__namespace.object({
2198
+ given_name: z__namespace.string().min(1).optional(),
2199
+ family_name: z__namespace.string().min(1).optional(),
2200
+ region_code: z__namespace.string().min(1).optional(),
2201
+ postal_code: z__namespace.string().min(1).optional()
2202
+ }).optional()
2203
+ });
2204
+ var zGoogleAdsConversionEvent = z__namespace.object({
2205
+ event_timestamp: z__namespace.iso.datetime(),
2206
+ order_id: z__namespace.string().optional(),
2207
+ gclid: z__namespace.string().optional(),
2208
+ gbraid: z__namespace.string().optional(),
2209
+ wbraid: z__namespace.string().optional(),
2210
+ user_data: z__namespace.array(zGoogleAdsConversionUserIdentifier).min(1).max(10).optional(),
2211
+ currency: z__namespace.string().length(3).optional(),
2212
+ conversion_value: z__namespace.number().gte(0).optional(),
2213
+ consent: zGoogleAdsConversionConsent.optional()
2214
+ });
2215
+ var zGoogleAdsSendConversionsResult = z__namespace.object({
2216
+ request_id: z__namespace.string().nullable(),
2217
+ status: z__namespace.enum(["accepted", "validated"]),
2218
+ dry_run: z__namespace.boolean(),
2219
+ executed: z__namespace.boolean()
2220
+ });
2221
+ var zGoogleAdsConversionStatusReason = z__namespace.object({
2222
+ reason: z__namespace.string(),
2223
+ count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2224
+ code: z__namespace.enum([
2225
+ "unauthorized",
2226
+ "forbidden",
2227
+ "not_found",
2228
+ "conflict",
2229
+ "validation_failed",
2230
+ "rate_limited",
2231
+ "internal_error",
2232
+ "idempotency_key_invalid",
2233
+ "idempotency_key_reused",
2234
+ "idempotency_request_in_progress",
2235
+ "account_not_available",
2236
+ "connection_reauth_required",
2237
+ "connection_not_pending",
2238
+ "not_implemented",
2239
+ "connection_discovery_failed",
2240
+ "tiktok_creator_info_unavailable",
2241
+ "tiktok_cannot_post_now",
2242
+ "media_processing",
2243
+ "media_upload_init_failed",
2244
+ "media_upload_incomplete",
2245
+ "not_publishable",
2246
+ "invalid_connection",
2247
+ "invalid_media",
2248
+ "profile_scope_invalid",
2249
+ "media_unprobeable",
2250
+ "media_too_large",
2251
+ "media_aspect_ratio_unsupported",
2252
+ "media_resolution_too_low",
2253
+ "media_gif_unsupported",
2254
+ "media_format_recompressed",
2255
+ "media_resolution_downscaled",
2256
+ "video_container_unsupported",
2257
+ "video_codec_unsupported",
2258
+ "video_audio_codec_unsupported",
2259
+ "video_too_large",
2260
+ "video_too_small",
2261
+ "video_dimensions_unsupported",
2262
+ "video_dimensions_too_large",
2263
+ "video_fps_unsupported",
2264
+ "video_fps_too_low",
2265
+ "video_aspect_unsupported",
2266
+ "video_duration_too_short",
2267
+ "video_duration_exceeds_max",
2268
+ "video_transform_failed",
2269
+ "media_fetch_failed",
2270
+ "document_format_unsupported",
2271
+ "document_too_large",
2272
+ "document_too_many_pages",
2273
+ "media_format_indeterminate",
2274
+ "media_format_unsupported",
2275
+ "media_count_invalid",
2276
+ "body_too_long",
2277
+ "content_missing",
2278
+ "content_conflict",
2279
+ "content_incomplete",
2280
+ "content_kind_mismatch",
2281
+ "media_type_mismatch",
2282
+ "tag_limit_exceeded",
2283
+ "reel_field_on_non_reel",
2284
+ "field_placement_invalid",
2285
+ "media_not_ready",
2286
+ "media_failed",
2287
+ "media_unsupported",
2288
+ "media_kind_mismatch",
2289
+ "variant_unparseable",
2290
+ "publishing_unavailable",
2291
+ "x_duplicate_content",
2292
+ "x_not_authorized",
2293
+ "x_access_not_permitted",
2294
+ "x_rate_limited",
2295
+ "x_publish_failed",
2296
+ "x_media_upload_failed",
2297
+ "linkedin_duplicate_content",
2298
+ "linkedin_auth_expired",
2299
+ "linkedin_permission_denied",
2300
+ "linkedin_rate_limited",
2301
+ "linkedin_media_processing",
2302
+ "linkedin_media_failed",
2303
+ "linkedin_media_upload_failed",
2304
+ "linkedin_publish_failed",
2305
+ "instagram_media_processing",
2306
+ "instagram_container_expired",
2307
+ "instagram_container_failed",
2308
+ "instagram_rate_limited",
2309
+ "instagram_daily_limit_reached",
2310
+ "instagram_aspect_ratio_unsupported",
2311
+ "instagram_media_unsupported",
2312
+ "instagram_not_authorized",
2313
+ "instagram_publish_failed",
2314
+ "facebook_reel_processing",
2315
+ "facebook_reel_failed",
2316
+ "facebook_rate_limited",
2317
+ "facebook_duplicate_content",
2318
+ "facebook_temporarily_blocked",
2319
+ "facebook_not_authorized",
2320
+ "facebook_publish_failed",
2321
+ "tiktok_privacy_not_allowed",
2322
+ "tiktok_duration_exceeds_max",
2323
+ "tiktok_media_processing",
2324
+ "tiktok_not_authorized",
2325
+ "tiktok_rate_limited",
2326
+ "tiktok_url_ownership_unverified",
2327
+ "tiktok_unaudited_private_only",
2328
+ "tiktok_spam_risk",
2329
+ "tiktok_file_format_invalid",
2330
+ "tiktok_duration_invalid",
2331
+ "tiktok_frame_rate_invalid",
2332
+ "tiktok_resolution_invalid",
2333
+ "tiktok_media_pull_failed",
2334
+ "tiktok_server_error",
2335
+ "tiktok_publish_failed",
2336
+ "google_rate_limited",
2337
+ "google_server_error",
2338
+ "google_auth_expired",
2339
+ "google_permission_denied",
2340
+ "google_request_failed",
2341
+ "google_conversion_duplicate",
2342
+ "google_conversion_invalid_click_id",
2343
+ "google_conversion_event_too_old",
2344
+ "google_conversion_consent_required",
2345
+ "google_conversion_terms_not_signed",
2346
+ "google_conversion_rejected",
2347
+ "post_publish_failed",
2348
+ "post_partially_published",
2349
+ "connection_platform_mismatch",
2350
+ "connection_removed"
2351
+ ]),
2352
+ display_error: z__namespace.string()
2353
+ });
2354
+ var zGoogleAdsConversionWarning = z__namespace.object({
2355
+ reason: z__namespace.string(),
2356
+ count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991)
2357
+ });
2358
+ var zGoogleAdsConversionStatus = z__namespace.object({
2359
+ request_id: z__namespace.string(),
2360
+ destinations: z__namespace.array(z__namespace.object({
2361
+ request_status: z__namespace.enum([
2362
+ "REQUEST_STATUS_UNKNOWN",
2363
+ "SUCCESS",
2364
+ "PROCESSING",
2365
+ "FAILED",
2366
+ "PARTIAL_SUCCESS"
2367
+ ]),
2368
+ events_submitted: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
2369
+ errors: z__namespace.array(zGoogleAdsConversionStatusReason),
2370
+ warnings: z__namespace.array(zGoogleAdsConversionWarning)
2371
+ }))
2372
+ });
2154
2373
  var zIdempotencyKey = z__namespace.string().min(1).max(255);
2155
2374
  var zProfilesListQuery = z__namespace.object({
2156
2375
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
@@ -2790,6 +3009,12 @@ var zPostsValidateResponse = z__namespace.object({
2790
3009
  "google_auth_expired",
2791
3010
  "google_permission_denied",
2792
3011
  "google_request_failed",
3012
+ "google_conversion_duplicate",
3013
+ "google_conversion_invalid_click_id",
3014
+ "google_conversion_event_too_old",
3015
+ "google_conversion_consent_required",
3016
+ "google_conversion_terms_not_signed",
3017
+ "google_conversion_rejected",
2793
3018
  "post_publish_failed",
2794
3019
  "post_partially_published",
2795
3020
  "connection_platform_mismatch",
@@ -4127,6 +4352,26 @@ var zGoogleGetConversionActionResponse = z__namespace.object({
4127
4352
  event_snippet: z__namespace.string().nullable()
4128
4353
  }))
4129
4354
  });
4355
+ var zGoogleSendConversionsBody = z__namespace.object({
4356
+ conversion_action_id: z__namespace.string().regex(/^\d+$/),
4357
+ conversions: z__namespace.array(zGoogleAdsConversionEvent).min(1).max(2e3),
4358
+ consent: zGoogleAdsConversionConsent.optional(),
4359
+ dry_run: z__namespace.boolean().optional().default(false)
4360
+ });
4361
+ var zGoogleSendConversionsHeaders = z__namespace.object({
4362
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4363
+ });
4364
+ var zGoogleSendConversionsPath = z__namespace.object({
4365
+ connection_id: z__namespace.string()
4366
+ });
4367
+ var zGoogleSendConversionsResponse = zGoogleAdsSendConversionsResult;
4368
+ var zGoogleGetConversionStatusPath = z__namespace.object({
4369
+ connection_id: z__namespace.string()
4370
+ });
4371
+ var zGoogleGetConversionStatusQuery = z__namespace.object({
4372
+ request_id: z__namespace.string().min(1)
4373
+ });
4374
+ var zGoogleGetConversionStatusResponse = zGoogleAdsConversionStatus;
4130
4375
  var zGoogleListConversionGoalsPath = z__namespace.object({
4131
4376
  connection_id: z__namespace.string()
4132
4377
  });
@@ -4449,6 +4694,12 @@ var zLogsListResponse = z__namespace.object({
4449
4694
  "google_auth_expired",
4450
4695
  "google_permission_denied",
4451
4696
  "google_request_failed",
4697
+ "google_conversion_duplicate",
4698
+ "google_conversion_invalid_click_id",
4699
+ "google_conversion_event_too_old",
4700
+ "google_conversion_consent_required",
4701
+ "google_conversion_terms_not_signed",
4702
+ "google_conversion_rejected",
4452
4703
  "post_publish_failed",
4453
4704
  "post_partially_published",
4454
4705
  "connection_platform_mismatch",
@@ -4603,6 +4854,12 @@ var zLogsListResponse = z__namespace.object({
4603
4854
  "google_auth_expired",
4604
4855
  "google_permission_denied",
4605
4856
  "google_request_failed",
4857
+ "google_conversion_duplicate",
4858
+ "google_conversion_invalid_click_id",
4859
+ "google_conversion_event_too_old",
4860
+ "google_conversion_consent_required",
4861
+ "google_conversion_terms_not_signed",
4862
+ "google_conversion_rejected",
4606
4863
  "post_publish_failed",
4607
4864
  "post_partially_published",
4608
4865
  "connection_platform_mismatch",
@@ -4778,6 +5035,12 @@ var zLogsGetResponse = z__namespace.object({
4778
5035
  "google_auth_expired",
4779
5036
  "google_permission_denied",
4780
5037
  "google_request_failed",
5038
+ "google_conversion_duplicate",
5039
+ "google_conversion_invalid_click_id",
5040
+ "google_conversion_event_too_old",
5041
+ "google_conversion_consent_required",
5042
+ "google_conversion_terms_not_signed",
5043
+ "google_conversion_rejected",
4781
5044
  "post_publish_failed",
4782
5045
  "post_partially_published",
4783
5046
  "connection_platform_mismatch",
@@ -4932,6 +5195,12 @@ var zLogsGetResponse = z__namespace.object({
4932
5195
  "google_auth_expired",
4933
5196
  "google_permission_denied",
4934
5197
  "google_request_failed",
5198
+ "google_conversion_duplicate",
5199
+ "google_conversion_invalid_click_id",
5200
+ "google_conversion_event_too_old",
5201
+ "google_conversion_consent_required",
5202
+ "google_conversion_terms_not_signed",
5203
+ "google_conversion_rejected",
4935
5204
  "post_publish_failed",
4936
5205
  "post_partially_published",
4937
5206
  "connection_platform_mismatch",
@@ -5116,6 +5385,12 @@ exports.zGoogleAdsAdGroup = zGoogleAdsAdGroup;
5116
5385
  exports.zGoogleAdsAdGroupCriterion = zGoogleAdsAdGroupCriterion;
5117
5386
  exports.zGoogleAdsAudience = zGoogleAdsAudience;
5118
5387
  exports.zGoogleAdsCampaignCriterion = zGoogleAdsCampaignCriterion;
5388
+ exports.zGoogleAdsConversionConsent = zGoogleAdsConversionConsent;
5389
+ exports.zGoogleAdsConversionEvent = zGoogleAdsConversionEvent;
5390
+ exports.zGoogleAdsConversionStatus = zGoogleAdsConversionStatus;
5391
+ exports.zGoogleAdsConversionStatusReason = zGoogleAdsConversionStatusReason;
5392
+ exports.zGoogleAdsConversionUserIdentifier = zGoogleAdsConversionUserIdentifier;
5393
+ exports.zGoogleAdsConversionWarning = zGoogleAdsConversionWarning;
5119
5394
  exports.zGoogleAdsCreateAdGroupCriterionRequest = zGoogleAdsCreateAdGroupCriterionRequest;
5120
5395
  exports.zGoogleAdsCreateCampaignCriterionRequest = zGoogleAdsCreateCampaignCriterionRequest;
5121
5396
  exports.zGoogleAdsCreateResult = zGoogleAdsCreateResult;
@@ -5131,6 +5406,7 @@ exports.zGoogleAdsInsightsQuery = zGoogleAdsInsightsQuery;
5131
5406
  exports.zGoogleAdsInsightsRow = zGoogleAdsInsightsRow;
5132
5407
  exports.zGoogleAdsKeyword = zGoogleAdsKeyword;
5133
5408
  exports.zGoogleAdsReadStatusFilter = zGoogleAdsReadStatusFilter;
5409
+ exports.zGoogleAdsSendConversionsResult = zGoogleAdsSendConversionsResult;
5134
5410
  exports.zGoogleAdsUrlCustomParameter = zGoogleAdsUrlCustomParameter;
5135
5411
  exports.zGoogleCreateAdBody = zGoogleCreateAdBody;
5136
5412
  exports.zGoogleCreateAdGroupBody = zGoogleCreateAdGroupBody;
@@ -5213,6 +5489,9 @@ exports.zGoogleGetCampaignPath = zGoogleGetCampaignPath;
5213
5489
  exports.zGoogleGetCampaignResponse = zGoogleGetCampaignResponse;
5214
5490
  exports.zGoogleGetConversionActionPath = zGoogleGetConversionActionPath;
5215
5491
  exports.zGoogleGetConversionActionResponse = zGoogleGetConversionActionResponse;
5492
+ exports.zGoogleGetConversionStatusPath = zGoogleGetConversionStatusPath;
5493
+ exports.zGoogleGetConversionStatusQuery = zGoogleGetConversionStatusQuery;
5494
+ exports.zGoogleGetConversionStatusResponse = zGoogleGetConversionStatusResponse;
5216
5495
  exports.zGoogleGetInsightsBody = zGoogleGetInsightsBody;
5217
5496
  exports.zGoogleGetInsightsPath = zGoogleGetInsightsPath;
5218
5497
  exports.zGoogleGetInsightsResponse = zGoogleGetInsightsResponse;
@@ -5290,6 +5569,10 @@ exports.zGoogleRunGaqlResponse = zGoogleRunGaqlResponse;
5290
5569
  exports.zGoogleSearchGeoTargetsPath = zGoogleSearchGeoTargetsPath;
5291
5570
  exports.zGoogleSearchGeoTargetsQuery = zGoogleSearchGeoTargetsQuery;
5292
5571
  exports.zGoogleSearchGeoTargetsResponse = zGoogleSearchGeoTargetsResponse;
5572
+ exports.zGoogleSendConversionsBody = zGoogleSendConversionsBody;
5573
+ exports.zGoogleSendConversionsHeaders = zGoogleSendConversionsHeaders;
5574
+ exports.zGoogleSendConversionsPath = zGoogleSendConversionsPath;
5575
+ exports.zGoogleSendConversionsResponse = zGoogleSendConversionsResponse;
5293
5576
  exports.zGoogleSetAdGroupBidsBody = zGoogleSetAdGroupBidsBody;
5294
5577
  exports.zGoogleSetAdGroupBidsHeaders = zGoogleSetAdGroupBidsHeaders;
5295
5578
  exports.zGoogleSetAdGroupBidsPath = zGoogleSetAdGroupBidsPath;