@postrun/js 2.22.0 → 2.24.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,197 @@ 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.email().optional(),
2196
+ phone_number: z__namespace.string().min(1).regex(/\d/).optional(),
2197
+ address: z__namespace.object({
2198
+ given_name: z__namespace.string().min(1),
2199
+ family_name: z__namespace.string().min(1),
2200
+ region_code: z__namespace.string().regex(/^[A-Za-z]{2}$/),
2201
+ postal_code: z__namespace.string().min(1)
2202
+ }).optional()
2203
+ });
2204
+ var zGoogleAdsConversionEvent = z__namespace.object({
2205
+ event_timestamp: z__namespace.iso.datetime(),
2206
+ event_source: z__namespace.enum([
2207
+ "WEB",
2208
+ "APP",
2209
+ "IN_STORE",
2210
+ "PHONE",
2211
+ "MESSAGE",
2212
+ "OTHER"
2213
+ ]),
2214
+ order_id: z__namespace.string().optional(),
2215
+ gclid: z__namespace.string().optional(),
2216
+ gbraid: z__namespace.string().optional(),
2217
+ wbraid: z__namespace.string().optional(),
2218
+ user_data: z__namespace.array(zGoogleAdsConversionUserIdentifier).min(1).max(10).optional(),
2219
+ currency: z__namespace.string().length(3).optional(),
2220
+ conversion_value: z__namespace.number().gte(0).optional(),
2221
+ consent: zGoogleAdsConversionConsent.optional()
2222
+ });
2223
+ var zGoogleAdsSendConversionsResult = z__namespace.object({
2224
+ request_id: z__namespace.string().nullable(),
2225
+ status: z__namespace.enum(["accepted", "validated"]),
2226
+ dry_run: z__namespace.boolean(),
2227
+ executed: z__namespace.boolean()
2228
+ });
2229
+ var zGoogleAdsConversionStatusReason = z__namespace.object({
2230
+ reason: z__namespace.string(),
2231
+ count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2232
+ code: z__namespace.enum([
2233
+ "unauthorized",
2234
+ "forbidden",
2235
+ "not_found",
2236
+ "conflict",
2237
+ "validation_failed",
2238
+ "rate_limited",
2239
+ "internal_error",
2240
+ "idempotency_key_invalid",
2241
+ "idempotency_key_reused",
2242
+ "idempotency_request_in_progress",
2243
+ "account_not_available",
2244
+ "connection_reauth_required",
2245
+ "connection_not_pending",
2246
+ "not_implemented",
2247
+ "connection_discovery_failed",
2248
+ "tiktok_creator_info_unavailable",
2249
+ "tiktok_cannot_post_now",
2250
+ "media_processing",
2251
+ "media_upload_init_failed",
2252
+ "media_upload_incomplete",
2253
+ "not_publishable",
2254
+ "invalid_connection",
2255
+ "invalid_media",
2256
+ "profile_scope_invalid",
2257
+ "media_unprobeable",
2258
+ "media_too_large",
2259
+ "media_aspect_ratio_unsupported",
2260
+ "media_resolution_too_low",
2261
+ "media_gif_unsupported",
2262
+ "media_format_recompressed",
2263
+ "media_resolution_downscaled",
2264
+ "video_container_unsupported",
2265
+ "video_codec_unsupported",
2266
+ "video_audio_codec_unsupported",
2267
+ "video_too_large",
2268
+ "video_too_small",
2269
+ "video_dimensions_unsupported",
2270
+ "video_dimensions_too_large",
2271
+ "video_fps_unsupported",
2272
+ "video_fps_too_low",
2273
+ "video_aspect_unsupported",
2274
+ "video_duration_too_short",
2275
+ "video_duration_exceeds_max",
2276
+ "video_transform_failed",
2277
+ "media_fetch_failed",
2278
+ "document_format_unsupported",
2279
+ "document_too_large",
2280
+ "document_too_many_pages",
2281
+ "media_format_indeterminate",
2282
+ "media_format_unsupported",
2283
+ "media_count_invalid",
2284
+ "body_too_long",
2285
+ "content_missing",
2286
+ "content_conflict",
2287
+ "content_incomplete",
2288
+ "content_kind_mismatch",
2289
+ "media_type_mismatch",
2290
+ "tag_limit_exceeded",
2291
+ "reel_field_on_non_reel",
2292
+ "field_placement_invalid",
2293
+ "media_not_ready",
2294
+ "media_failed",
2295
+ "media_unsupported",
2296
+ "media_kind_mismatch",
2297
+ "variant_unparseable",
2298
+ "publishing_unavailable",
2299
+ "x_duplicate_content",
2300
+ "x_not_authorized",
2301
+ "x_access_not_permitted",
2302
+ "x_rate_limited",
2303
+ "x_publish_failed",
2304
+ "x_media_upload_failed",
2305
+ "linkedin_duplicate_content",
2306
+ "linkedin_auth_expired",
2307
+ "linkedin_permission_denied",
2308
+ "linkedin_rate_limited",
2309
+ "linkedin_media_processing",
2310
+ "linkedin_media_failed",
2311
+ "linkedin_media_upload_failed",
2312
+ "linkedin_publish_failed",
2313
+ "instagram_media_processing",
2314
+ "instagram_container_expired",
2315
+ "instagram_container_failed",
2316
+ "instagram_rate_limited",
2317
+ "instagram_daily_limit_reached",
2318
+ "instagram_aspect_ratio_unsupported",
2319
+ "instagram_media_unsupported",
2320
+ "instagram_not_authorized",
2321
+ "instagram_publish_failed",
2322
+ "facebook_reel_processing",
2323
+ "facebook_reel_failed",
2324
+ "facebook_rate_limited",
2325
+ "facebook_duplicate_content",
2326
+ "facebook_temporarily_blocked",
2327
+ "facebook_not_authorized",
2328
+ "facebook_publish_failed",
2329
+ "tiktok_privacy_not_allowed",
2330
+ "tiktok_duration_exceeds_max",
2331
+ "tiktok_media_processing",
2332
+ "tiktok_not_authorized",
2333
+ "tiktok_rate_limited",
2334
+ "tiktok_url_ownership_unverified",
2335
+ "tiktok_unaudited_private_only",
2336
+ "tiktok_spam_risk",
2337
+ "tiktok_file_format_invalid",
2338
+ "tiktok_duration_invalid",
2339
+ "tiktok_frame_rate_invalid",
2340
+ "tiktok_resolution_invalid",
2341
+ "tiktok_media_pull_failed",
2342
+ "tiktok_server_error",
2343
+ "tiktok_publish_failed",
2344
+ "google_rate_limited",
2345
+ "google_server_error",
2346
+ "google_auth_expired",
2347
+ "google_permission_denied",
2348
+ "google_request_failed",
2349
+ "google_conversion_duplicate",
2350
+ "google_conversion_invalid_click_id",
2351
+ "google_conversion_event_too_old",
2352
+ "google_conversion_consent_required",
2353
+ "google_conversion_terms_not_signed",
2354
+ "google_conversion_rejected",
2355
+ "post_publish_failed",
2356
+ "post_partially_published",
2357
+ "connection_platform_mismatch",
2358
+ "connection_removed"
2359
+ ]),
2360
+ display_error: z__namespace.string()
2361
+ });
2362
+ var zGoogleAdsConversionWarning = z__namespace.object({
2363
+ reason: z__namespace.string(),
2364
+ count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991)
2365
+ });
2366
+ var zGoogleAdsConversionStatus = z__namespace.object({
2367
+ request_id: z__namespace.string(),
2368
+ destinations: z__namespace.array(z__namespace.object({
2369
+ request_status: z__namespace.enum([
2370
+ "REQUEST_STATUS_UNKNOWN",
2371
+ "SUCCESS",
2372
+ "PROCESSING",
2373
+ "FAILED",
2374
+ "PARTIAL_SUCCESS"
2375
+ ]),
2376
+ events_submitted: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
2377
+ errors: z__namespace.array(zGoogleAdsConversionStatusReason),
2378
+ warnings: z__namespace.array(zGoogleAdsConversionWarning)
2379
+ }))
2380
+ });
2154
2381
  var zIdempotencyKey = z__namespace.string().min(1).max(255);
2155
2382
  var zProfilesListQuery = z__namespace.object({
2156
2383
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
@@ -2790,6 +3017,12 @@ var zPostsValidateResponse = z__namespace.object({
2790
3017
  "google_auth_expired",
2791
3018
  "google_permission_denied",
2792
3019
  "google_request_failed",
3020
+ "google_conversion_duplicate",
3021
+ "google_conversion_invalid_click_id",
3022
+ "google_conversion_event_too_old",
3023
+ "google_conversion_consent_required",
3024
+ "google_conversion_terms_not_signed",
3025
+ "google_conversion_rejected",
2793
3026
  "post_publish_failed",
2794
3027
  "post_partially_published",
2795
3028
  "connection_platform_mismatch",
@@ -4127,6 +4360,26 @@ var zGoogleGetConversionActionResponse = z__namespace.object({
4127
4360
  event_snippet: z__namespace.string().nullable()
4128
4361
  }))
4129
4362
  });
4363
+ var zGoogleSendConversionsBody = z__namespace.object({
4364
+ conversion_action_id: z__namespace.string().regex(/^\d+$/),
4365
+ conversions: z__namespace.array(zGoogleAdsConversionEvent).min(1).max(2e3),
4366
+ consent: zGoogleAdsConversionConsent.optional(),
4367
+ dry_run: z__namespace.boolean().optional().default(false)
4368
+ });
4369
+ var zGoogleSendConversionsHeaders = z__namespace.object({
4370
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4371
+ });
4372
+ var zGoogleSendConversionsPath = z__namespace.object({
4373
+ connection_id: z__namespace.string()
4374
+ });
4375
+ var zGoogleSendConversionsResponse = zGoogleAdsSendConversionsResult;
4376
+ var zGoogleGetConversionStatusPath = z__namespace.object({
4377
+ connection_id: z__namespace.string()
4378
+ });
4379
+ var zGoogleGetConversionStatusQuery = z__namespace.object({
4380
+ request_id: z__namespace.string().min(1)
4381
+ });
4382
+ var zGoogleGetConversionStatusResponse = zGoogleAdsConversionStatus;
4130
4383
  var zGoogleListConversionGoalsPath = z__namespace.object({
4131
4384
  connection_id: z__namespace.string()
4132
4385
  });
@@ -4449,6 +4702,12 @@ var zLogsListResponse = z__namespace.object({
4449
4702
  "google_auth_expired",
4450
4703
  "google_permission_denied",
4451
4704
  "google_request_failed",
4705
+ "google_conversion_duplicate",
4706
+ "google_conversion_invalid_click_id",
4707
+ "google_conversion_event_too_old",
4708
+ "google_conversion_consent_required",
4709
+ "google_conversion_terms_not_signed",
4710
+ "google_conversion_rejected",
4452
4711
  "post_publish_failed",
4453
4712
  "post_partially_published",
4454
4713
  "connection_platform_mismatch",
@@ -4603,6 +4862,12 @@ var zLogsListResponse = z__namespace.object({
4603
4862
  "google_auth_expired",
4604
4863
  "google_permission_denied",
4605
4864
  "google_request_failed",
4865
+ "google_conversion_duplicate",
4866
+ "google_conversion_invalid_click_id",
4867
+ "google_conversion_event_too_old",
4868
+ "google_conversion_consent_required",
4869
+ "google_conversion_terms_not_signed",
4870
+ "google_conversion_rejected",
4606
4871
  "post_publish_failed",
4607
4872
  "post_partially_published",
4608
4873
  "connection_platform_mismatch",
@@ -4778,6 +5043,12 @@ var zLogsGetResponse = z__namespace.object({
4778
5043
  "google_auth_expired",
4779
5044
  "google_permission_denied",
4780
5045
  "google_request_failed",
5046
+ "google_conversion_duplicate",
5047
+ "google_conversion_invalid_click_id",
5048
+ "google_conversion_event_too_old",
5049
+ "google_conversion_consent_required",
5050
+ "google_conversion_terms_not_signed",
5051
+ "google_conversion_rejected",
4781
5052
  "post_publish_failed",
4782
5053
  "post_partially_published",
4783
5054
  "connection_platform_mismatch",
@@ -4932,6 +5203,12 @@ var zLogsGetResponse = z__namespace.object({
4932
5203
  "google_auth_expired",
4933
5204
  "google_permission_denied",
4934
5205
  "google_request_failed",
5206
+ "google_conversion_duplicate",
5207
+ "google_conversion_invalid_click_id",
5208
+ "google_conversion_event_too_old",
5209
+ "google_conversion_consent_required",
5210
+ "google_conversion_terms_not_signed",
5211
+ "google_conversion_rejected",
4935
5212
  "post_publish_failed",
4936
5213
  "post_partially_published",
4937
5214
  "connection_platform_mismatch",
@@ -5116,6 +5393,12 @@ exports.zGoogleAdsAdGroup = zGoogleAdsAdGroup;
5116
5393
  exports.zGoogleAdsAdGroupCriterion = zGoogleAdsAdGroupCriterion;
5117
5394
  exports.zGoogleAdsAudience = zGoogleAdsAudience;
5118
5395
  exports.zGoogleAdsCampaignCriterion = zGoogleAdsCampaignCriterion;
5396
+ exports.zGoogleAdsConversionConsent = zGoogleAdsConversionConsent;
5397
+ exports.zGoogleAdsConversionEvent = zGoogleAdsConversionEvent;
5398
+ exports.zGoogleAdsConversionStatus = zGoogleAdsConversionStatus;
5399
+ exports.zGoogleAdsConversionStatusReason = zGoogleAdsConversionStatusReason;
5400
+ exports.zGoogleAdsConversionUserIdentifier = zGoogleAdsConversionUserIdentifier;
5401
+ exports.zGoogleAdsConversionWarning = zGoogleAdsConversionWarning;
5119
5402
  exports.zGoogleAdsCreateAdGroupCriterionRequest = zGoogleAdsCreateAdGroupCriterionRequest;
5120
5403
  exports.zGoogleAdsCreateCampaignCriterionRequest = zGoogleAdsCreateCampaignCriterionRequest;
5121
5404
  exports.zGoogleAdsCreateResult = zGoogleAdsCreateResult;
@@ -5131,6 +5414,7 @@ exports.zGoogleAdsInsightsQuery = zGoogleAdsInsightsQuery;
5131
5414
  exports.zGoogleAdsInsightsRow = zGoogleAdsInsightsRow;
5132
5415
  exports.zGoogleAdsKeyword = zGoogleAdsKeyword;
5133
5416
  exports.zGoogleAdsReadStatusFilter = zGoogleAdsReadStatusFilter;
5417
+ exports.zGoogleAdsSendConversionsResult = zGoogleAdsSendConversionsResult;
5134
5418
  exports.zGoogleAdsUrlCustomParameter = zGoogleAdsUrlCustomParameter;
5135
5419
  exports.zGoogleCreateAdBody = zGoogleCreateAdBody;
5136
5420
  exports.zGoogleCreateAdGroupBody = zGoogleCreateAdGroupBody;
@@ -5213,6 +5497,9 @@ exports.zGoogleGetCampaignPath = zGoogleGetCampaignPath;
5213
5497
  exports.zGoogleGetCampaignResponse = zGoogleGetCampaignResponse;
5214
5498
  exports.zGoogleGetConversionActionPath = zGoogleGetConversionActionPath;
5215
5499
  exports.zGoogleGetConversionActionResponse = zGoogleGetConversionActionResponse;
5500
+ exports.zGoogleGetConversionStatusPath = zGoogleGetConversionStatusPath;
5501
+ exports.zGoogleGetConversionStatusQuery = zGoogleGetConversionStatusQuery;
5502
+ exports.zGoogleGetConversionStatusResponse = zGoogleGetConversionStatusResponse;
5216
5503
  exports.zGoogleGetInsightsBody = zGoogleGetInsightsBody;
5217
5504
  exports.zGoogleGetInsightsPath = zGoogleGetInsightsPath;
5218
5505
  exports.zGoogleGetInsightsResponse = zGoogleGetInsightsResponse;
@@ -5290,6 +5577,10 @@ exports.zGoogleRunGaqlResponse = zGoogleRunGaqlResponse;
5290
5577
  exports.zGoogleSearchGeoTargetsPath = zGoogleSearchGeoTargetsPath;
5291
5578
  exports.zGoogleSearchGeoTargetsQuery = zGoogleSearchGeoTargetsQuery;
5292
5579
  exports.zGoogleSearchGeoTargetsResponse = zGoogleSearchGeoTargetsResponse;
5580
+ exports.zGoogleSendConversionsBody = zGoogleSendConversionsBody;
5581
+ exports.zGoogleSendConversionsHeaders = zGoogleSendConversionsHeaders;
5582
+ exports.zGoogleSendConversionsPath = zGoogleSendConversionsPath;
5583
+ exports.zGoogleSendConversionsResponse = zGoogleSendConversionsResponse;
5293
5584
  exports.zGoogleSetAdGroupBidsBody = zGoogleSetAdGroupBidsBody;
5294
5585
  exports.zGoogleSetAdGroupBidsHeaders = zGoogleSetAdGroupBidsHeaders;
5295
5586
  exports.zGoogleSetAdGroupBidsPath = zGoogleSetAdGroupBidsPath;