@postrun/js 2.20.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.
@@ -1073,6 +1073,11 @@ var zGoogleAdsAudience = z__namespace.union([
1073
1073
  ])
1074
1074
  })
1075
1075
  ]);
1076
+ var zGoogleAdsReadStatusFilter = z__namespace.array(z__namespace.enum([
1077
+ "ENABLED",
1078
+ "PAUSED",
1079
+ "REMOVED"
1080
+ ])).min(1);
1076
1081
  var zGoogleAdsCampaignCriterion = z__namespace.union([
1077
1082
  z__namespace.object({
1078
1083
  type: z__namespace.literal("LOCATION"),
@@ -1441,8 +1446,20 @@ var zGoogleAdsInsightsRow = z__namespace.object({
1441
1446
  id: z__namespace.string().min(1),
1442
1447
  name: z__namespace.string().nullable(),
1443
1448
  parent_id: z__namespace.string().min(1).nullable(),
1444
- metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
1445
- segments: z__namespace.record(z__namespace.string(), z__namespace.string()).optional()
1449
+ metrics: z__namespace.object({
1450
+ impressions: z__namespace.number().nullish(),
1451
+ clicks: z__namespace.number().nullish(),
1452
+ ctr: z__namespace.number().nullish(),
1453
+ average_cpc: z__namespace.number().nullish(),
1454
+ cost_micros: z__namespace.number().nullish(),
1455
+ conversions: z__namespace.number().nullish(),
1456
+ conversions_value: z__namespace.number().nullish(),
1457
+ cost_per_conversion: z__namespace.number().nullish()
1458
+ }),
1459
+ segments: z__namespace.object({
1460
+ date: z__namespace.string().optional(),
1461
+ device: z__namespace.string().optional()
1462
+ }).optional()
1446
1463
  });
1447
1464
  var zGoogleAdsInsights = z__namespace.object({
1448
1465
  object: z__namespace.literal("list"),
@@ -1512,7 +1529,17 @@ var zGoogleAdTreeNode = z__namespace.object({
1512
1529
  "none"
1513
1530
  ]),
1514
1531
  expandable: z__namespace.boolean(),
1515
- metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
1532
+ budget_micros: z__namespace.number().nullable(),
1533
+ metrics: z__namespace.object({
1534
+ impressions: z__namespace.number().nullish(),
1535
+ clicks: z__namespace.number().nullish(),
1536
+ ctr: z__namespace.number().nullish(),
1537
+ average_cpc: z__namespace.number().nullish(),
1538
+ cost_micros: z__namespace.number().nullish(),
1539
+ conversions: z__namespace.number().nullish(),
1540
+ conversions_value: z__namespace.number().nullish(),
1541
+ cost_per_conversion: z__namespace.number().nullish()
1542
+ }),
1516
1543
  cost_micros: z__namespace.number(),
1517
1544
  cost: z__namespace.number()
1518
1545
  });
@@ -2424,6 +2451,7 @@ var zGoogleGetAdTreePath = z__namespace.object({
2424
2451
  });
2425
2452
  var zGoogleGetAdTreeQuery = z__namespace.object({
2426
2453
  campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
2454
+ status: zGoogleAdsReadStatusFilter.optional(),
2427
2455
  metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
2428
2456
  "impressions",
2429
2457
  "clicks",
@@ -2738,7 +2766,8 @@ var zGoogleListAdGroupsPath = z__namespace.object({
2738
2766
  connection_id: z__namespace.string()
2739
2767
  });
2740
2768
  var zGoogleListAdGroupsQuery = z__namespace.object({
2741
- campaign_id: z__namespace.string().regex(/^\d+$/).optional()
2769
+ campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
2770
+ status: zGoogleAdsReadStatusFilter.optional()
2742
2771
  });
2743
2772
  var zGoogleListAdGroupsResponse = z__namespace.object({
2744
2773
  object: z__namespace.literal("list"),
@@ -2946,7 +2975,8 @@ var zGoogleListAdsPath = z__namespace.object({
2946
2975
  connection_id: z__namespace.string()
2947
2976
  });
2948
2977
  var zGoogleListAdsQuery = z__namespace.object({
2949
- ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
2978
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
2979
+ status: zGoogleAdsReadStatusFilter.optional()
2950
2980
  });
2951
2981
  var zGoogleListAdsResponse = z__namespace.object({
2952
2982
  object: z__namespace.literal("list"),
@@ -3068,7 +3098,8 @@ var zGoogleListKeywordsPath = z__namespace.object({
3068
3098
  connection_id: z__namespace.string()
3069
3099
  });
3070
3100
  var zGoogleListKeywordsQuery = z__namespace.object({
3071
- ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
3101
+ ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
3102
+ status: zGoogleAdsReadStatusFilter.optional()
3072
3103
  });
3073
3104
  var zGoogleListKeywordsResponse = z__namespace.object({
3074
3105
  object: z__namespace.literal("list"),
@@ -3996,6 +4027,7 @@ exports.zGoogleAdsInsights = zGoogleAdsInsights;
3996
4027
  exports.zGoogleAdsInsightsQuery = zGoogleAdsInsightsQuery;
3997
4028
  exports.zGoogleAdsInsightsRow = zGoogleAdsInsightsRow;
3998
4029
  exports.zGoogleAdsKeyword = zGoogleAdsKeyword;
4030
+ exports.zGoogleAdsReadStatusFilter = zGoogleAdsReadStatusFilter;
3999
4031
  exports.zGoogleCreateAdBody = zGoogleCreateAdBody;
4000
4032
  exports.zGoogleCreateAdGroupBody = zGoogleCreateAdGroupBody;
4001
4033
  exports.zGoogleCreateAdGroupCriterionBody = zGoogleCreateAdGroupCriterionBody;