@postrun/js 2.23.0 → 2.25.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.
@@ -151,6 +151,22 @@ var zErrorCode = z__namespace.enum([
151
151
  "connection_platform_mismatch",
152
152
  "connection_removed"
153
153
  ]);
154
+ var zErrorSource = z__namespace.object({
155
+ platform: z__namespace.enum([
156
+ "google",
157
+ "meta",
158
+ "x",
159
+ "linkedin",
160
+ "instagram",
161
+ "facebook",
162
+ "tiktok",
163
+ "youtube"
164
+ ]),
165
+ platform_code: z__namespace.string().optional(),
166
+ field: z__namespace.string().optional(),
167
+ value: z__namespace.string().optional(),
168
+ platform_request_id: z__namespace.string().optional()
169
+ });
154
170
  var zProfile = z__namespace.object({
155
171
  id: z__namespace.string(),
156
172
  name: z__namespace.string(),
@@ -2192,17 +2208,25 @@ var zGoogleAdsConversionConsent = z__namespace.object({
2192
2208
  ad_personalization: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional()
2193
2209
  });
2194
2210
  var zGoogleAdsConversionUserIdentifier = z__namespace.object({
2195
- email_address: z__namespace.string().min(1).optional(),
2196
- phone_number: z__namespace.string().min(1).optional(),
2211
+ email_address: z__namespace.email().optional(),
2212
+ phone_number: z__namespace.string().min(1).regex(/\d/).optional(),
2197
2213
  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()
2214
+ given_name: z__namespace.string().min(1),
2215
+ family_name: z__namespace.string().min(1),
2216
+ region_code: z__namespace.string().regex(/^[A-Za-z]{2}$/),
2217
+ postal_code: z__namespace.string().min(1)
2202
2218
  }).optional()
2203
2219
  });
2204
2220
  var zGoogleAdsConversionEvent = z__namespace.object({
2205
2221
  event_timestamp: z__namespace.iso.datetime(),
2222
+ event_source: z__namespace.enum([
2223
+ "WEB",
2224
+ "APP",
2225
+ "IN_STORE",
2226
+ "PHONE",
2227
+ "MESSAGE",
2228
+ "OTHER"
2229
+ ]),
2206
2230
  order_id: z__namespace.string().optional(),
2207
2231
  gclid: z__namespace.string().optional(),
2208
2232
  gbraid: z__namespace.string().optional(),
@@ -2370,6 +2394,13 @@ var zGoogleAdsConversionStatus = z__namespace.object({
2370
2394
  warnings: z__namespace.array(zGoogleAdsConversionWarning)
2371
2395
  }))
2372
2396
  });
2397
+ var zGoogleAdsConversionRequest = z__namespace.object({
2398
+ object: z__namespace.literal("conversion_request"),
2399
+ request_id: z__namespace.string(),
2400
+ conversion_action_id: z__namespace.string().nullable(),
2401
+ event_count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
2402
+ created_at: z__namespace.string()
2403
+ });
2373
2404
  var zIdempotencyKey = z__namespace.string().min(1).max(255);
2374
2405
  var zProfilesListQuery = z__namespace.object({
2375
2406
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
@@ -3024,22 +3055,7 @@ var zPostsValidateResponse = z__namespace.object({
3024
3055
  hint: z__namespace.string().optional(),
3025
3056
  allowed: z__namespace.array(z__namespace.string()).optional(),
3026
3057
  got: z__namespace.string().optional(),
3027
- source: z__namespace.object({
3028
- platform: z__namespace.enum([
3029
- "google",
3030
- "meta",
3031
- "x",
3032
- "linkedin",
3033
- "instagram",
3034
- "facebook",
3035
- "tiktok",
3036
- "youtube"
3037
- ]),
3038
- platform_code: z__namespace.string().optional(),
3039
- field: z__namespace.string().optional(),
3040
- value: z__namespace.string().optional(),
3041
- platform_request_id: z__namespace.string().optional()
3042
- }).optional(),
3058
+ source: zErrorSource.optional(),
3043
3059
  variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
3044
3060
  path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
3045
3061
  platform: zPostPlatform.optional(),
@@ -3417,7 +3433,7 @@ var zGoogleListCampaignsResponse = z__namespace.object({
3417
3433
  var zGoogleCreateCampaignBody = z__namespace.object({
3418
3434
  name: z__namespace.string().min(1).max(255),
3419
3435
  channel: z__namespace.enum(["SEARCH", "DISPLAY"]),
3420
- campaign_budget: z__namespace.string().min(1),
3436
+ campaign_budget: z__namespace.string().regex(/^\d+$/),
3421
3437
  bidding: z__namespace.enum([
3422
3438
  "manual_cpc",
3423
3439
  "maximize_conversions",
@@ -3628,7 +3644,7 @@ var zGoogleListAdGroupsResponse = z__namespace.object({
3628
3644
  });
3629
3645
  var zGoogleCreateAdGroupBody = z__namespace.object({
3630
3646
  name: z__namespace.string().min(1).max(255),
3631
- campaign: z__namespace.string().min(1),
3647
+ campaign: z__namespace.string().regex(/^\d+$/),
3632
3648
  type: z__namespace.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
3633
3649
  status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
3634
3650
  dry_run: z__namespace.boolean().optional().default(false)
@@ -3836,7 +3852,7 @@ var zGoogleListAdsResponse = z__namespace.object({
3836
3852
  data: z__namespace.array(zGoogleAdsAd)
3837
3853
  });
3838
3854
  var zGoogleCreateAdBody = z__namespace.object({
3839
- ad_group: z__namespace.string().min(1),
3855
+ ad_group: z__namespace.string().regex(/^\d+$/),
3840
3856
  final_urls: z__namespace.array(z__namespace.url()).min(1),
3841
3857
  headlines: z__namespace.array(z__namespace.object({
3842
3858
  text: z__namespace.string().min(1).max(30),
@@ -3867,7 +3883,7 @@ var zGoogleGetAdPath = z__namespace.object({
3867
3883
  });
3868
3884
  var zGoogleGetAdResponse = zGoogleAdsAd;
3869
3885
  var zGoogleCreateDisplayAdBody = z__namespace.object({
3870
- ad_group: z__namespace.string().min(1),
3886
+ ad_group: z__namespace.string().regex(/^\d+$/),
3871
3887
  final_urls: z__namespace.array(z__namespace.url()).min(1),
3872
3888
  marketing_images: z__namespace.array(z__namespace.object({
3873
3889
  asset: z__namespace.string().min(1)
@@ -3959,7 +3975,7 @@ var zGoogleListKeywordsResponse = z__namespace.object({
3959
3975
  data: z__namespace.array(zGoogleAdsKeyword)
3960
3976
  });
3961
3977
  var zGoogleCreateKeywordBody = z__namespace.object({
3962
- ad_group: z__namespace.string().min(1),
3978
+ ad_group: z__namespace.string().regex(/^\d+$/),
3963
3979
  text: z__namespace.string().min(1).max(80),
3964
3980
  match_type: z__namespace.enum([
3965
3981
  "EXACT",
@@ -4372,6 +4388,21 @@ var zGoogleGetConversionStatusQuery = z__namespace.object({
4372
4388
  request_id: z__namespace.string().min(1)
4373
4389
  });
4374
4390
  var zGoogleGetConversionStatusResponse = zGoogleAdsConversionStatus;
4391
+ var zGoogleListConversionRequestsPath = z__namespace.object({
4392
+ connection_id: z__namespace.string()
4393
+ });
4394
+ var zGoogleListConversionRequestsQuery = z__namespace.object({
4395
+ limit: z__namespace.int().gte(1).lte(100).optional().default(20),
4396
+ offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0)
4397
+ });
4398
+ var zGoogleListConversionRequestsResponse = z__namespace.object({
4399
+ object: z__namespace.literal("list"),
4400
+ data: z__namespace.array(zGoogleAdsConversionRequest),
4401
+ total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
4402
+ limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
4403
+ offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
4404
+ has_more: z__namespace.boolean()
4405
+ });
4375
4406
  var zGoogleListConversionGoalsPath = z__namespace.object({
4376
4407
  connection_id: z__namespace.string()
4377
4408
  });
@@ -5378,6 +5409,7 @@ exports.zConnectionsSelectResponse = zConnectionsSelectResponse;
5378
5409
  exports.zCreatePostBody = zCreatePostBody;
5379
5410
  exports.zDiscoverableAccount = zDiscoverableAccount;
5380
5411
  exports.zErrorCode = zErrorCode;
5412
+ exports.zErrorSource = zErrorSource;
5381
5413
  exports.zGoogleAdTree = zGoogleAdTree;
5382
5414
  exports.zGoogleAdTreeNode = zGoogleAdTreeNode;
5383
5415
  exports.zGoogleAdsAd = zGoogleAdsAd;
@@ -5387,6 +5419,7 @@ exports.zGoogleAdsAudience = zGoogleAdsAudience;
5387
5419
  exports.zGoogleAdsCampaignCriterion = zGoogleAdsCampaignCriterion;
5388
5420
  exports.zGoogleAdsConversionConsent = zGoogleAdsConversionConsent;
5389
5421
  exports.zGoogleAdsConversionEvent = zGoogleAdsConversionEvent;
5422
+ exports.zGoogleAdsConversionRequest = zGoogleAdsConversionRequest;
5390
5423
  exports.zGoogleAdsConversionStatus = zGoogleAdsConversionStatus;
5391
5424
  exports.zGoogleAdsConversionStatusReason = zGoogleAdsConversionStatusReason;
5392
5425
  exports.zGoogleAdsConversionUserIdentifier = zGoogleAdsConversionUserIdentifier;
@@ -5516,6 +5549,9 @@ exports.zGoogleListConversionActionsPath = zGoogleListConversionActionsPath;
5516
5549
  exports.zGoogleListConversionActionsResponse = zGoogleListConversionActionsResponse;
5517
5550
  exports.zGoogleListConversionGoalsPath = zGoogleListConversionGoalsPath;
5518
5551
  exports.zGoogleListConversionGoalsResponse = zGoogleListConversionGoalsResponse;
5552
+ exports.zGoogleListConversionRequestsPath = zGoogleListConversionRequestsPath;
5553
+ exports.zGoogleListConversionRequestsQuery = zGoogleListConversionRequestsQuery;
5554
+ exports.zGoogleListConversionRequestsResponse = zGoogleListConversionRequestsResponse;
5519
5555
  exports.zGoogleListKeywordsPath = zGoogleListKeywordsPath;
5520
5556
  exports.zGoogleListKeywordsQuery = zGoogleListKeywordsQuery;
5521
5557
  exports.zGoogleListKeywordsResponse = zGoogleListKeywordsResponse;