@postrun/js 2.24.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.
package/dist/index.cjs CHANGED
@@ -931,6 +931,22 @@ var zErrorCode = z__namespace.enum([
931
931
  "connection_platform_mismatch",
932
932
  "connection_removed"
933
933
  ]);
934
+ var zErrorSource = z__namespace.object({
935
+ platform: z__namespace.enum([
936
+ "google",
937
+ "meta",
938
+ "x",
939
+ "linkedin",
940
+ "instagram",
941
+ "facebook",
942
+ "tiktok",
943
+ "youtube"
944
+ ]),
945
+ platform_code: z__namespace.string().optional(),
946
+ field: z__namespace.string().optional(),
947
+ value: z__namespace.string().optional(),
948
+ platform_request_id: z__namespace.string().optional()
949
+ });
934
950
  var zProfile = z__namespace.object({
935
951
  id: z__namespace.string(),
936
952
  name: z__namespace.string(),
@@ -3158,6 +3174,13 @@ z__namespace.object({
3158
3174
  warnings: z__namespace.array(zGoogleAdsConversionWarning)
3159
3175
  }))
3160
3176
  });
3177
+ var zGoogleAdsConversionRequest = z__namespace.object({
3178
+ object: z__namespace.literal("conversion_request"),
3179
+ request_id: z__namespace.string(),
3180
+ conversion_action_id: z__namespace.string().nullable(),
3181
+ event_count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
3182
+ created_at: z__namespace.string()
3183
+ });
3161
3184
  z__namespace.string().min(1).max(255);
3162
3185
  z__namespace.object({
3163
3186
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
@@ -3800,22 +3823,7 @@ z__namespace.object({
3800
3823
  hint: z__namespace.string().optional(),
3801
3824
  allowed: z__namespace.array(z__namespace.string()).optional(),
3802
3825
  got: z__namespace.string().optional(),
3803
- source: z__namespace.object({
3804
- platform: z__namespace.enum([
3805
- "google",
3806
- "meta",
3807
- "x",
3808
- "linkedin",
3809
- "instagram",
3810
- "facebook",
3811
- "tiktok",
3812
- "youtube"
3813
- ]),
3814
- platform_code: z__namespace.string().optional(),
3815
- field: z__namespace.string().optional(),
3816
- value: z__namespace.string().optional(),
3817
- platform_request_id: z__namespace.string().optional()
3818
- }).optional(),
3826
+ source: zErrorSource.optional(),
3819
3827
  variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
3820
3828
  path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
3821
3829
  platform: zPostPlatform.optional(),
@@ -4187,7 +4195,7 @@ z__namespace.object({
4187
4195
  z__namespace.object({
4188
4196
  name: z__namespace.string().min(1).max(255),
4189
4197
  channel: z__namespace.enum(["SEARCH", "DISPLAY"]),
4190
- campaign_budget: z__namespace.string().min(1),
4198
+ campaign_budget: z__namespace.string().regex(/^\d+$/),
4191
4199
  bidding: z__namespace.enum([
4192
4200
  "manual_cpc",
4193
4201
  "maximize_conversions",
@@ -4392,7 +4400,7 @@ z__namespace.object({
4392
4400
  });
4393
4401
  z__namespace.object({
4394
4402
  name: z__namespace.string().min(1).max(255),
4395
- campaign: z__namespace.string().min(1),
4403
+ campaign: z__namespace.string().regex(/^\d+$/),
4396
4404
  type: z__namespace.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
4397
4405
  status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
4398
4406
  dry_run: z__namespace.boolean().optional().default(false)
@@ -4592,7 +4600,7 @@ z__namespace.object({
4592
4600
  data: z__namespace.array(zGoogleAdsAd)
4593
4601
  });
4594
4602
  z__namespace.object({
4595
- ad_group: z__namespace.string().min(1),
4603
+ ad_group: z__namespace.string().regex(/^\d+$/),
4596
4604
  final_urls: z__namespace.array(z__namespace.url()).min(1),
4597
4605
  headlines: z__namespace.array(z__namespace.object({
4598
4606
  text: z__namespace.string().min(1).max(30),
@@ -4621,7 +4629,7 @@ z__namespace.object({
4621
4629
  id: z__namespace.string().regex(/^\d+~\d+$/)
4622
4630
  });
4623
4631
  z__namespace.object({
4624
- ad_group: z__namespace.string().min(1),
4632
+ ad_group: z__namespace.string().regex(/^\d+$/),
4625
4633
  final_urls: z__namespace.array(z__namespace.url()).min(1),
4626
4634
  marketing_images: z__namespace.array(z__namespace.object({
4627
4635
  asset: z__namespace.string().min(1)
@@ -4711,7 +4719,7 @@ z__namespace.object({
4711
4719
  data: z__namespace.array(zGoogleAdsKeyword)
4712
4720
  });
4713
4721
  z__namespace.object({
4714
- ad_group: z__namespace.string().min(1),
4722
+ ad_group: z__namespace.string().regex(/^\d+$/),
4715
4723
  text: z__namespace.string().min(1).max(80),
4716
4724
  match_type: z__namespace.enum([
4717
4725
  "EXACT",
@@ -5120,6 +5128,21 @@ z__namespace.object({
5120
5128
  z__namespace.object({
5121
5129
  connection_id: z__namespace.string()
5122
5130
  });
5131
+ z__namespace.object({
5132
+ limit: z__namespace.int().gte(1).lte(100).optional().default(20),
5133
+ offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0)
5134
+ });
5135
+ z__namespace.object({
5136
+ object: z__namespace.literal("list"),
5137
+ data: z__namespace.array(zGoogleAdsConversionRequest),
5138
+ total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
5139
+ limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
5140
+ offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
5141
+ has_more: z__namespace.boolean()
5142
+ });
5143
+ z__namespace.object({
5144
+ connection_id: z__namespace.string()
5145
+ });
5123
5146
  z__namespace.object({
5124
5147
  object: z__namespace.literal("list"),
5125
5148
  data: z__namespace.array(z__namespace.object({
@@ -7462,6 +7485,19 @@ var googleGetConversionStatus = (options) => (options.client ?? client).get({
7462
7485
  url: "/google/{connection_id}/conversions/status",
7463
7486
  ...options
7464
7487
  });
7488
+ var googleListConversionRequests = (options) => (options.client ?? client).get({
7489
+ security: [{
7490
+ key: "secretKey",
7491
+ scheme: "bearer",
7492
+ type: "http"
7493
+ }, {
7494
+ key: "frontendToken",
7495
+ scheme: "bearer",
7496
+ type: "http"
7497
+ }],
7498
+ url: "/google/{connection_id}/conversions",
7499
+ ...options
7500
+ });
7465
7501
  var googleListConversionGoals = (options) => (options.client ?? client).get({
7466
7502
  security: [{
7467
7503
  key: "secretKey",
@@ -8182,6 +8218,7 @@ exports.googleListCampaignCriteria = googleListCampaignCriteria;
8182
8218
  exports.googleListCampaigns = googleListCampaigns;
8183
8219
  exports.googleListConversionActions = googleListConversionActions;
8184
8220
  exports.googleListConversionGoals = googleListConversionGoals;
8221
+ exports.googleListConversionRequests = googleListConversionRequests;
8185
8222
  exports.googleListKeywords = googleListKeywords;
8186
8223
  exports.googlePauseAd = googlePauseAd;
8187
8224
  exports.googlePauseAdGroup = googlePauseAdGroup;