@postrun/js 2.24.0 → 3.0.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/{chunk-RBHVSFEN.js → chunk-QXMLASQ6.js} +76 -130
- package/dist/chunk-QXMLASQ6.js.map +1 -0
- package/dist/{chunk-4WBAULYQ.js → chunk-YFAPR4TH.js} +17 -4
- package/dist/chunk-YFAPR4TH.js.map +1 -0
- package/dist/index.cjs +93 -179
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -30
- package/dist/index.d.ts +50 -30
- package/dist/index.js +8 -54
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +52 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +1220 -7760
- package/dist/query.d.ts +1220 -7760
- package/dist/query.js +49 -1
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +102 -127
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +443 -531
- package/dist/schemas/index.d.ts +443 -531
- package/dist/schemas/index.js +27 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/server.cjs +74 -128
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-CzfWmp33.d.cts → types.gen-zIKtx009.d.cts} +1106 -7738
- package/dist/{types.gen-CzfWmp33.d.ts → types.gen-zIKtx009.d.ts} +1106 -7738
- package/package.json +1 -1
- package/dist/chunk-4WBAULYQ.js.map +0 -1
- package/dist/chunk-RBHVSFEN.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -859,7 +859,6 @@ var zErrorCode = z__namespace.enum([
|
|
|
859
859
|
"content_missing",
|
|
860
860
|
"content_conflict",
|
|
861
861
|
"content_incomplete",
|
|
862
|
-
"content_kind_mismatch",
|
|
863
862
|
"media_type_mismatch",
|
|
864
863
|
"tag_limit_exceeded",
|
|
865
864
|
"reel_field_on_non_reel",
|
|
@@ -931,6 +930,22 @@ var zErrorCode = z__namespace.enum([
|
|
|
931
930
|
"connection_platform_mismatch",
|
|
932
931
|
"connection_removed"
|
|
933
932
|
]);
|
|
933
|
+
var zErrorSource = z__namespace.object({
|
|
934
|
+
platform: z__namespace.enum([
|
|
935
|
+
"google",
|
|
936
|
+
"meta",
|
|
937
|
+
"x",
|
|
938
|
+
"linkedin",
|
|
939
|
+
"instagram",
|
|
940
|
+
"facebook",
|
|
941
|
+
"tiktok",
|
|
942
|
+
"youtube"
|
|
943
|
+
]),
|
|
944
|
+
platform_code: z__namespace.string().optional(),
|
|
945
|
+
field: z__namespace.string().optional(),
|
|
946
|
+
value: z__namespace.string().optional(),
|
|
947
|
+
platform_request_id: z__namespace.string().optional()
|
|
948
|
+
});
|
|
934
949
|
var zProfile = z__namespace.object({
|
|
935
950
|
id: z__namespace.string(),
|
|
936
951
|
name: z__namespace.string(),
|
|
@@ -1140,7 +1155,7 @@ var zPostPlatform = z__namespace.enum([
|
|
|
1140
1155
|
"instagram",
|
|
1141
1156
|
"tiktok"
|
|
1142
1157
|
]);
|
|
1143
|
-
z__namespace.enum([
|
|
1158
|
+
var zPostType = z__namespace.enum([
|
|
1144
1159
|
"text",
|
|
1145
1160
|
"single_image",
|
|
1146
1161
|
"multi_image",
|
|
@@ -1203,12 +1218,6 @@ var zTikTokPrivacyLevel = z__namespace.enum([
|
|
|
1203
1218
|
var zPostVariant = z__namespace.union([
|
|
1204
1219
|
z__namespace.object({
|
|
1205
1220
|
platform: z__namespace.literal("x"),
|
|
1206
|
-
post_type: z__namespace.enum([
|
|
1207
|
-
"text",
|
|
1208
|
-
"single_image",
|
|
1209
|
-
"multi_image",
|
|
1210
|
-
"video"
|
|
1211
|
-
]),
|
|
1212
1221
|
settings: z__namespace.object({
|
|
1213
1222
|
reply_settings: z__namespace.enum([
|
|
1214
1223
|
"everyone",
|
|
@@ -1243,6 +1252,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1243
1252
|
}),
|
|
1244
1253
|
id: z__namespace.string(),
|
|
1245
1254
|
object: z__namespace.literal("post_variant"),
|
|
1255
|
+
post_type: zPostType.nullable(),
|
|
1246
1256
|
connection_id: z__namespace.string().nullable(),
|
|
1247
1257
|
body: z__namespace.string().nullable(),
|
|
1248
1258
|
status: zPostVariantStatus,
|
|
@@ -1309,7 +1319,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1309
1319
|
"content_missing",
|
|
1310
1320
|
"content_conflict",
|
|
1311
1321
|
"content_incomplete",
|
|
1312
|
-
"content_kind_mismatch",
|
|
1313
1322
|
"media_type_mismatch",
|
|
1314
1323
|
"tag_limit_exceeded",
|
|
1315
1324
|
"reel_field_on_non_reel",
|
|
@@ -1393,23 +1402,8 @@ var zPostVariant = z__namespace.union([
|
|
|
1393
1402
|
}),
|
|
1394
1403
|
z__namespace.object({
|
|
1395
1404
|
platform: z__namespace.literal("linkedin"),
|
|
1396
|
-
post_type: z__namespace.enum([
|
|
1397
|
-
"text",
|
|
1398
|
-
"single_image",
|
|
1399
|
-
"multi_image",
|
|
1400
|
-
"video"
|
|
1401
|
-
]),
|
|
1402
1405
|
settings: z__namespace.object({
|
|
1403
1406
|
visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
|
|
1404
|
-
content_kind: z__namespace.enum([
|
|
1405
|
-
"text",
|
|
1406
|
-
"single_image",
|
|
1407
|
-
"video",
|
|
1408
|
-
"multi_image",
|
|
1409
|
-
"document",
|
|
1410
|
-
"article",
|
|
1411
|
-
"poll"
|
|
1412
|
-
]),
|
|
1413
1407
|
article: z__namespace.object({
|
|
1414
1408
|
source: z__namespace.url(),
|
|
1415
1409
|
title: z__namespace.string().max(400).optional(),
|
|
@@ -1438,6 +1432,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1438
1432
|
}),
|
|
1439
1433
|
id: z__namespace.string(),
|
|
1440
1434
|
object: z__namespace.literal("post_variant"),
|
|
1435
|
+
post_type: zPostType.nullable(),
|
|
1441
1436
|
connection_id: z__namespace.string().nullable(),
|
|
1442
1437
|
body: z__namespace.string().nullable(),
|
|
1443
1438
|
status: zPostVariantStatus,
|
|
@@ -1504,7 +1499,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1504
1499
|
"content_missing",
|
|
1505
1500
|
"content_conflict",
|
|
1506
1501
|
"content_incomplete",
|
|
1507
|
-
"content_kind_mismatch",
|
|
1508
1502
|
"media_type_mismatch",
|
|
1509
1503
|
"tag_limit_exceeded",
|
|
1510
1504
|
"reel_field_on_non_reel",
|
|
@@ -1584,21 +1578,25 @@ var zPostVariant = z__namespace.union([
|
|
|
1584
1578
|
position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1585
1579
|
alt_text_override: z__namespace.string().nullable(),
|
|
1586
1580
|
media: zMedia
|
|
1587
|
-
}))
|
|
1588
|
-
|
|
1589
|
-
z__namespace.object({
|
|
1590
|
-
platform: z__namespace.literal("facebook_page"),
|
|
1591
|
-
post_type: z__namespace.enum([
|
|
1581
|
+
})),
|
|
1582
|
+
content_kind: z__namespace.enum([
|
|
1592
1583
|
"text",
|
|
1593
1584
|
"single_image",
|
|
1585
|
+
"video",
|
|
1594
1586
|
"multi_image",
|
|
1595
|
-
"
|
|
1596
|
-
|
|
1587
|
+
"document",
|
|
1588
|
+
"article",
|
|
1589
|
+
"poll"
|
|
1590
|
+
]).nullable()
|
|
1591
|
+
}),
|
|
1592
|
+
z__namespace.object({
|
|
1593
|
+
platform: z__namespace.literal("facebook_page"),
|
|
1597
1594
|
settings: z__namespace.object({
|
|
1598
1595
|
link: z__namespace.url().optional()
|
|
1599
1596
|
}),
|
|
1600
1597
|
id: z__namespace.string(),
|
|
1601
1598
|
object: z__namespace.literal("post_variant"),
|
|
1599
|
+
post_type: zPostType.nullable(),
|
|
1602
1600
|
connection_id: z__namespace.string().nullable(),
|
|
1603
1601
|
body: z__namespace.string().nullable(),
|
|
1604
1602
|
status: zPostVariantStatus,
|
|
@@ -1665,7 +1663,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1665
1663
|
"content_missing",
|
|
1666
1664
|
"content_conflict",
|
|
1667
1665
|
"content_incomplete",
|
|
1668
|
-
"content_kind_mismatch",
|
|
1669
1666
|
"media_type_mismatch",
|
|
1670
1667
|
"tag_limit_exceeded",
|
|
1671
1668
|
"reel_field_on_non_reel",
|
|
@@ -1749,17 +1746,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1749
1746
|
}),
|
|
1750
1747
|
z__namespace.object({
|
|
1751
1748
|
platform: z__namespace.literal("instagram"),
|
|
1752
|
-
post_type: z__namespace.enum([
|
|
1753
|
-
"single_image",
|
|
1754
|
-
"carousel",
|
|
1755
|
-
"reel"
|
|
1756
|
-
]),
|
|
1757
1749
|
settings: z__namespace.object({
|
|
1758
|
-
media_type: z__namespace.enum([
|
|
1759
|
-
"IMAGE",
|
|
1760
|
-
"CAROUSEL",
|
|
1761
|
-
"REELS"
|
|
1762
|
-
]).optional(),
|
|
1763
1750
|
location_id: z__namespace.string().optional(),
|
|
1764
1751
|
user_tags: z__namespace.array(z__namespace.object({
|
|
1765
1752
|
username: z__namespace.string().min(1),
|
|
@@ -1774,6 +1761,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1774
1761
|
}),
|
|
1775
1762
|
id: z__namespace.string(),
|
|
1776
1763
|
object: z__namespace.literal("post_variant"),
|
|
1764
|
+
post_type: zPostType.nullable(),
|
|
1777
1765
|
connection_id: z__namespace.string().nullable(),
|
|
1778
1766
|
body: z__namespace.string().nullable(),
|
|
1779
1767
|
status: zPostVariantStatus,
|
|
@@ -1840,7 +1828,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1840
1828
|
"content_missing",
|
|
1841
1829
|
"content_conflict",
|
|
1842
1830
|
"content_incomplete",
|
|
1843
|
-
"content_kind_mismatch",
|
|
1844
1831
|
"media_type_mismatch",
|
|
1845
1832
|
"tag_limit_exceeded",
|
|
1846
1833
|
"reel_field_on_non_reel",
|
|
@@ -1920,15 +1907,15 @@ var zPostVariant = z__namespace.union([
|
|
|
1920
1907
|
position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1921
1908
|
alt_text_override: z__namespace.string().nullable(),
|
|
1922
1909
|
media: zMedia
|
|
1923
|
-
}))
|
|
1910
|
+
})),
|
|
1911
|
+
media_type: z__namespace.enum([
|
|
1912
|
+
"IMAGE",
|
|
1913
|
+
"CAROUSEL",
|
|
1914
|
+
"REELS"
|
|
1915
|
+
]).nullable()
|
|
1924
1916
|
}),
|
|
1925
1917
|
z__namespace.object({
|
|
1926
1918
|
platform: z__namespace.literal("tiktok"),
|
|
1927
|
-
post_type: z__namespace.enum([
|
|
1928
|
-
"video",
|
|
1929
|
-
"single_image",
|
|
1930
|
-
"carousel"
|
|
1931
|
-
]),
|
|
1932
1919
|
settings: z__namespace.object({
|
|
1933
1920
|
privacy_level: zTikTokPrivacyLevel.optional(),
|
|
1934
1921
|
disable_comment: z__namespace.boolean().optional(),
|
|
@@ -1943,6 +1930,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1943
1930
|
}),
|
|
1944
1931
|
id: z__namespace.string(),
|
|
1945
1932
|
object: z__namespace.literal("post_variant"),
|
|
1933
|
+
post_type: zPostType.nullable(),
|
|
1946
1934
|
connection_id: z__namespace.string().nullable(),
|
|
1947
1935
|
body: z__namespace.string().nullable(),
|
|
1948
1936
|
status: zPostVariantStatus,
|
|
@@ -2009,7 +1997,6 @@ var zPostVariant = z__namespace.union([
|
|
|
2009
1997
|
"content_missing",
|
|
2010
1998
|
"content_conflict",
|
|
2011
1999
|
"content_incomplete",
|
|
2012
|
-
"content_kind_mismatch",
|
|
2013
2000
|
"media_type_mismatch",
|
|
2014
2001
|
"tag_limit_exceeded",
|
|
2015
2002
|
"reel_field_on_non_reel",
|
|
@@ -2134,12 +2121,6 @@ z__namespace.object({
|
|
|
2134
2121
|
var zPostVariantInput = z__namespace.union([
|
|
2135
2122
|
z__namespace.object({
|
|
2136
2123
|
platform: z__namespace.literal("x"),
|
|
2137
|
-
post_type: z__namespace.enum([
|
|
2138
|
-
"text",
|
|
2139
|
-
"single_image",
|
|
2140
|
-
"multi_image",
|
|
2141
|
-
"video"
|
|
2142
|
-
]),
|
|
2143
2124
|
settings: z__namespace.object({
|
|
2144
2125
|
reply_settings: z__namespace.enum([
|
|
2145
2126
|
"everyone",
|
|
@@ -2181,23 +2162,8 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2181
2162
|
}),
|
|
2182
2163
|
z__namespace.object({
|
|
2183
2164
|
platform: z__namespace.literal("linkedin"),
|
|
2184
|
-
post_type: z__namespace.enum([
|
|
2185
|
-
"text",
|
|
2186
|
-
"single_image",
|
|
2187
|
-
"multi_image",
|
|
2188
|
-
"video"
|
|
2189
|
-
]),
|
|
2190
2165
|
settings: z__namespace.object({
|
|
2191
2166
|
visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
|
|
2192
|
-
content_kind: z__namespace.enum([
|
|
2193
|
-
"text",
|
|
2194
|
-
"single_image",
|
|
2195
|
-
"video",
|
|
2196
|
-
"multi_image",
|
|
2197
|
-
"document",
|
|
2198
|
-
"article",
|
|
2199
|
-
"poll"
|
|
2200
|
-
]),
|
|
2201
2167
|
article: z__namespace.object({
|
|
2202
2168
|
source: z__namespace.url(),
|
|
2203
2169
|
title: z__namespace.string().max(400).optional(),
|
|
@@ -2233,17 +2199,7 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2233
2199
|
}),
|
|
2234
2200
|
z__namespace.object({
|
|
2235
2201
|
platform: z__namespace.literal("instagram"),
|
|
2236
|
-
post_type: z__namespace.enum([
|
|
2237
|
-
"single_image",
|
|
2238
|
-
"carousel",
|
|
2239
|
-
"reel"
|
|
2240
|
-
]),
|
|
2241
2202
|
settings: z__namespace.object({
|
|
2242
|
-
media_type: z__namespace.enum([
|
|
2243
|
-
"IMAGE",
|
|
2244
|
-
"CAROUSEL",
|
|
2245
|
-
"REELS"
|
|
2246
|
-
]).optional(),
|
|
2247
2203
|
location_id: z__namespace.string().optional(),
|
|
2248
2204
|
user_tags: z__namespace.array(z__namespace.object({
|
|
2249
2205
|
username: z__namespace.string().min(1),
|
|
@@ -2265,12 +2221,6 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2265
2221
|
}),
|
|
2266
2222
|
z__namespace.object({
|
|
2267
2223
|
platform: z__namespace.literal("facebook_page"),
|
|
2268
|
-
post_type: z__namespace.enum([
|
|
2269
|
-
"text",
|
|
2270
|
-
"single_image",
|
|
2271
|
-
"multi_image",
|
|
2272
|
-
"reel"
|
|
2273
|
-
]),
|
|
2274
2224
|
settings: z__namespace.object({
|
|
2275
2225
|
link: z__namespace.url().optional()
|
|
2276
2226
|
}).optional().default({}),
|
|
@@ -2283,11 +2233,6 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2283
2233
|
}),
|
|
2284
2234
|
z__namespace.object({
|
|
2285
2235
|
platform: z__namespace.literal("tiktok"),
|
|
2286
|
-
post_type: z__namespace.enum([
|
|
2287
|
-
"video",
|
|
2288
|
-
"single_image",
|
|
2289
|
-
"carousel"
|
|
2290
|
-
]),
|
|
2291
2236
|
settings: z__namespace.object({
|
|
2292
2237
|
privacy_level: zTikTokPrivacyLevel.optional(),
|
|
2293
2238
|
disable_comment: z__namespace.boolean().optional(),
|
|
@@ -2315,7 +2260,7 @@ z__namespace.object({
|
|
|
2315
2260
|
"schedule",
|
|
2316
2261
|
"draft"
|
|
2317
2262
|
]).optional().default("draft"),
|
|
2318
|
-
schedule_at: z__namespace.iso.datetime().optional(),
|
|
2263
|
+
schedule_at: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
2319
2264
|
external_id: z__namespace.string().min(1).max(255).optional(),
|
|
2320
2265
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
2321
2266
|
z__namespace.string().max(500),
|
|
@@ -2982,7 +2927,7 @@ var zGoogleAdsConversionUserIdentifier = z__namespace.object({
|
|
|
2982
2927
|
}).optional()
|
|
2983
2928
|
});
|
|
2984
2929
|
var zGoogleAdsConversionEvent = z__namespace.object({
|
|
2985
|
-
event_timestamp: z__namespace.iso.datetime(),
|
|
2930
|
+
event_timestamp: z__namespace.iso.datetime({ offset: true }),
|
|
2986
2931
|
event_source: z__namespace.enum([
|
|
2987
2932
|
"WEB",
|
|
2988
2933
|
"APP",
|
|
@@ -3065,7 +3010,6 @@ var zGoogleAdsConversionStatusReason = z__namespace.object({
|
|
|
3065
3010
|
"content_missing",
|
|
3066
3011
|
"content_conflict",
|
|
3067
3012
|
"content_incomplete",
|
|
3068
|
-
"content_kind_mismatch",
|
|
3069
3013
|
"media_type_mismatch",
|
|
3070
3014
|
"tag_limit_exceeded",
|
|
3071
3015
|
"reel_field_on_non_reel",
|
|
@@ -3158,6 +3102,13 @@ z__namespace.object({
|
|
|
3158
3102
|
warnings: z__namespace.array(zGoogleAdsConversionWarning)
|
|
3159
3103
|
}))
|
|
3160
3104
|
});
|
|
3105
|
+
var zGoogleAdsConversionRequest = z__namespace.object({
|
|
3106
|
+
object: z__namespace.literal("conversion_request"),
|
|
3107
|
+
request_id: z__namespace.string(),
|
|
3108
|
+
conversion_action_id: z__namespace.string().nullable(),
|
|
3109
|
+
event_count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
3110
|
+
created_at: z__namespace.string()
|
|
3111
|
+
});
|
|
3161
3112
|
z__namespace.string().min(1).max(255);
|
|
3162
3113
|
z__namespace.object({
|
|
3163
3114
|
limit: z__namespace.int().gte(1).lte(100).optional().default(20),
|
|
@@ -3555,9 +3506,9 @@ z__namespace.object({
|
|
|
3555
3506
|
z__namespace.number(),
|
|
3556
3507
|
z__namespace.boolean()
|
|
3557
3508
|
])).optional(),
|
|
3558
|
-
scheduled_after: z__namespace.iso.datetime().optional(),
|
|
3559
|
-
scheduled_before: z__namespace.iso.datetime().optional(),
|
|
3560
|
-
updated_after: z__namespace.iso.datetime().optional(),
|
|
3509
|
+
scheduled_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
3510
|
+
scheduled_before: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
3511
|
+
updated_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
3561
3512
|
status: z__namespace.array(zPostStatus).optional()
|
|
3562
3513
|
});
|
|
3563
3514
|
z__namespace.object({
|
|
@@ -3615,7 +3566,7 @@ z__namespace.object({
|
|
|
3615
3566
|
"schedule",
|
|
3616
3567
|
"draft"
|
|
3617
3568
|
]).optional(),
|
|
3618
|
-
schedule_at: z__namespace.iso.datetime().nullish(),
|
|
3569
|
+
schedule_at: z__namespace.iso.datetime({ offset: true }).nullish(),
|
|
3619
3570
|
external_id: z__namespace.string().min(1).max(255).nullish(),
|
|
3620
3571
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
3621
3572
|
z__namespace.string().max(500),
|
|
@@ -3724,7 +3675,6 @@ z__namespace.object({
|
|
|
3724
3675
|
"content_missing",
|
|
3725
3676
|
"content_conflict",
|
|
3726
3677
|
"content_incomplete",
|
|
3727
|
-
"content_kind_mismatch",
|
|
3728
3678
|
"media_type_mismatch",
|
|
3729
3679
|
"tag_limit_exceeded",
|
|
3730
3680
|
"reel_field_on_non_reel",
|
|
@@ -3800,22 +3750,7 @@ z__namespace.object({
|
|
|
3800
3750
|
hint: z__namespace.string().optional(),
|
|
3801
3751
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
3802
3752
|
got: z__namespace.string().optional(),
|
|
3803
|
-
source:
|
|
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(),
|
|
3753
|
+
source: zErrorSource.optional(),
|
|
3819
3754
|
variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
3820
3755
|
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
|
|
3821
3756
|
platform: zPostPlatform.optional(),
|
|
@@ -4187,7 +4122,7 @@ z__namespace.object({
|
|
|
4187
4122
|
z__namespace.object({
|
|
4188
4123
|
name: z__namespace.string().min(1).max(255),
|
|
4189
4124
|
channel: z__namespace.enum(["SEARCH", "DISPLAY"]),
|
|
4190
|
-
campaign_budget: z__namespace.string().
|
|
4125
|
+
campaign_budget: z__namespace.string().regex(/^\d+$/),
|
|
4191
4126
|
bidding: z__namespace.enum([
|
|
4192
4127
|
"manual_cpc",
|
|
4193
4128
|
"maximize_conversions",
|
|
@@ -4392,7 +4327,7 @@ z__namespace.object({
|
|
|
4392
4327
|
});
|
|
4393
4328
|
z__namespace.object({
|
|
4394
4329
|
name: z__namespace.string().min(1).max(255),
|
|
4395
|
-
campaign: z__namespace.string().
|
|
4330
|
+
campaign: z__namespace.string().regex(/^\d+$/),
|
|
4396
4331
|
type: z__namespace.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
|
|
4397
4332
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
|
|
4398
4333
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
@@ -4592,7 +4527,7 @@ z__namespace.object({
|
|
|
4592
4527
|
data: z__namespace.array(zGoogleAdsAd)
|
|
4593
4528
|
});
|
|
4594
4529
|
z__namespace.object({
|
|
4595
|
-
ad_group: z__namespace.string().
|
|
4530
|
+
ad_group: z__namespace.string().regex(/^\d+$/),
|
|
4596
4531
|
final_urls: z__namespace.array(z__namespace.url()).min(1),
|
|
4597
4532
|
headlines: z__namespace.array(z__namespace.object({
|
|
4598
4533
|
text: z__namespace.string().min(1).max(30),
|
|
@@ -4621,7 +4556,7 @@ z__namespace.object({
|
|
|
4621
4556
|
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
4622
4557
|
});
|
|
4623
4558
|
z__namespace.object({
|
|
4624
|
-
ad_group: z__namespace.string().
|
|
4559
|
+
ad_group: z__namespace.string().regex(/^\d+$/),
|
|
4625
4560
|
final_urls: z__namespace.array(z__namespace.url()).min(1),
|
|
4626
4561
|
marketing_images: z__namespace.array(z__namespace.object({
|
|
4627
4562
|
asset: z__namespace.string().min(1)
|
|
@@ -4711,7 +4646,7 @@ z__namespace.object({
|
|
|
4711
4646
|
data: z__namespace.array(zGoogleAdsKeyword)
|
|
4712
4647
|
});
|
|
4713
4648
|
z__namespace.object({
|
|
4714
|
-
ad_group: z__namespace.string().
|
|
4649
|
+
ad_group: z__namespace.string().regex(/^\d+$/),
|
|
4715
4650
|
text: z__namespace.string().min(1).max(80),
|
|
4716
4651
|
match_type: z__namespace.enum([
|
|
4717
4652
|
"EXACT",
|
|
@@ -5120,6 +5055,21 @@ z__namespace.object({
|
|
|
5120
5055
|
z__namespace.object({
|
|
5121
5056
|
connection_id: z__namespace.string()
|
|
5122
5057
|
});
|
|
5058
|
+
z__namespace.object({
|
|
5059
|
+
limit: z__namespace.int().gte(1).lte(100).optional().default(20),
|
|
5060
|
+
offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0)
|
|
5061
|
+
});
|
|
5062
|
+
z__namespace.object({
|
|
5063
|
+
object: z__namespace.literal("list"),
|
|
5064
|
+
data: z__namespace.array(zGoogleAdsConversionRequest),
|
|
5065
|
+
total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
5066
|
+
limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
5067
|
+
offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
5068
|
+
has_more: z__namespace.boolean()
|
|
5069
|
+
});
|
|
5070
|
+
z__namespace.object({
|
|
5071
|
+
connection_id: z__namespace.string()
|
|
5072
|
+
});
|
|
5123
5073
|
z__namespace.object({
|
|
5124
5074
|
object: z__namespace.literal("list"),
|
|
5125
5075
|
data: z__namespace.array(z__namespace.object({
|
|
@@ -5285,8 +5235,8 @@ z__namespace.object({
|
|
|
5285
5235
|
"scheduler"
|
|
5286
5236
|
]).optional(),
|
|
5287
5237
|
action: z__namespace.string().min(1).optional(),
|
|
5288
|
-
created_after: z__namespace.iso.datetime().optional(),
|
|
5289
|
-
created_before: z__namespace.iso.datetime().optional()
|
|
5238
|
+
created_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
5239
|
+
created_before: z__namespace.iso.datetime({ offset: true }).optional()
|
|
5290
5240
|
});
|
|
5291
5241
|
z__namespace.object({
|
|
5292
5242
|
object: z__namespace.literal("list"),
|
|
@@ -5376,7 +5326,6 @@ z__namespace.object({
|
|
|
5376
5326
|
"content_missing",
|
|
5377
5327
|
"content_conflict",
|
|
5378
5328
|
"content_incomplete",
|
|
5379
|
-
"content_kind_mismatch",
|
|
5380
5329
|
"media_type_mismatch",
|
|
5381
5330
|
"tag_limit_exceeded",
|
|
5382
5331
|
"reel_field_on_non_reel",
|
|
@@ -5536,7 +5485,6 @@ z__namespace.object({
|
|
|
5536
5485
|
"content_missing",
|
|
5537
5486
|
"content_conflict",
|
|
5538
5487
|
"content_incomplete",
|
|
5539
|
-
"content_kind_mismatch",
|
|
5540
5488
|
"media_type_mismatch",
|
|
5541
5489
|
"tag_limit_exceeded",
|
|
5542
5490
|
"reel_field_on_non_reel",
|
|
@@ -5717,7 +5665,6 @@ z__namespace.object({
|
|
|
5717
5665
|
"content_missing",
|
|
5718
5666
|
"content_conflict",
|
|
5719
5667
|
"content_incomplete",
|
|
5720
|
-
"content_kind_mismatch",
|
|
5721
5668
|
"media_type_mismatch",
|
|
5722
5669
|
"tag_limit_exceeded",
|
|
5723
5670
|
"reel_field_on_non_reel",
|
|
@@ -5877,7 +5824,6 @@ z__namespace.object({
|
|
|
5877
5824
|
"content_missing",
|
|
5878
5825
|
"content_conflict",
|
|
5879
5826
|
"content_incomplete",
|
|
5880
|
-
"content_kind_mismatch",
|
|
5881
5827
|
"media_type_mismatch",
|
|
5882
5828
|
"tag_limit_exceeded",
|
|
5883
5829
|
"reel_field_on_non_reel",
|
|
@@ -7462,6 +7408,19 @@ var googleGetConversionStatus = (options) => (options.client ?? client).get({
|
|
|
7462
7408
|
url: "/google/{connection_id}/conversions/status",
|
|
7463
7409
|
...options
|
|
7464
7410
|
});
|
|
7411
|
+
var googleListConversionRequests = (options) => (options.client ?? client).get({
|
|
7412
|
+
security: [{
|
|
7413
|
+
key: "secretKey",
|
|
7414
|
+
scheme: "bearer",
|
|
7415
|
+
type: "http"
|
|
7416
|
+
}, {
|
|
7417
|
+
key: "frontendToken",
|
|
7418
|
+
scheme: "bearer",
|
|
7419
|
+
type: "http"
|
|
7420
|
+
}],
|
|
7421
|
+
url: "/google/{connection_id}/conversions",
|
|
7422
|
+
...options
|
|
7423
|
+
});
|
|
7465
7424
|
var googleListConversionGoals = (options) => (options.client ?? client).get({
|
|
7466
7425
|
security: [{
|
|
7467
7426
|
key: "secretKey",
|
|
@@ -7939,30 +7898,9 @@ var ComposeError = class extends Error {
|
|
|
7939
7898
|
this.name = "ComposeError";
|
|
7940
7899
|
}
|
|
7941
7900
|
};
|
|
7942
|
-
function countKinds(media) {
|
|
7943
|
-
let images = 0;
|
|
7944
|
-
let videos = 0;
|
|
7945
|
-
let documents = 0;
|
|
7946
|
-
for (const item of media) {
|
|
7947
|
-
if (item.kind === "video") videos += 1;
|
|
7948
|
-
else if (item.kind === "document") documents += 1;
|
|
7949
|
-
else images += 1;
|
|
7950
|
-
}
|
|
7951
|
-
return { images, videos, documents };
|
|
7952
|
-
}
|
|
7953
|
-
function deriveSinglePlacement(media, videoType) {
|
|
7954
|
-
const { images, videos } = countKinds(media);
|
|
7955
|
-
if (videos >= 1) return videoType;
|
|
7956
|
-
return images >= 2 ? "multi_image" : "single_image";
|
|
7957
|
-
}
|
|
7958
7901
|
var xHandler = {
|
|
7959
|
-
|
|
7960
|
-
if (media.length === 0) return "text";
|
|
7961
|
-
return deriveSinglePlacement(media, "video");
|
|
7962
|
-
},
|
|
7963
|
-
buildVariant: ({ settings, postType, connectionId, body, media }) => ({
|
|
7902
|
+
buildVariant: ({ settings, connectionId, body, media }) => ({
|
|
7964
7903
|
platform: "x",
|
|
7965
|
-
post_type: postType,
|
|
7966
7904
|
connection_id: connectionId,
|
|
7967
7905
|
body,
|
|
7968
7906
|
media: [...media],
|
|
@@ -7970,16 +7908,8 @@ var xHandler = {
|
|
|
7970
7908
|
})
|
|
7971
7909
|
};
|
|
7972
7910
|
var linkedInHandler = {
|
|
7973
|
-
|
|
7974
|
-
if (media.length === 0) return "text";
|
|
7975
|
-
if (countKinds(media).documents > 0) {
|
|
7976
|
-
return "single_image";
|
|
7977
|
-
}
|
|
7978
|
-
return deriveSinglePlacement(media, "video");
|
|
7979
|
-
},
|
|
7980
|
-
buildVariant: ({ settings, postType, connectionId, body, media }) => ({
|
|
7911
|
+
buildVariant: ({ settings, connectionId, body, media }) => ({
|
|
7981
7912
|
platform: "linkedin",
|
|
7982
|
-
post_type: postType,
|
|
7983
7913
|
connection_id: connectionId,
|
|
7984
7914
|
body,
|
|
7985
7915
|
media: [...media],
|
|
@@ -7987,13 +7917,8 @@ var linkedInHandler = {
|
|
|
7987
7917
|
})
|
|
7988
7918
|
};
|
|
7989
7919
|
var facebookHandler = {
|
|
7990
|
-
|
|
7991
|
-
if (media.length === 0) return "text";
|
|
7992
|
-
return deriveSinglePlacement(media, "reel");
|
|
7993
|
-
},
|
|
7994
|
-
buildVariant: ({ settings, postType, connectionId, body, media }) => ({
|
|
7920
|
+
buildVariant: ({ settings, connectionId, body, media }) => ({
|
|
7995
7921
|
platform: "facebook_page",
|
|
7996
|
-
post_type: postType,
|
|
7997
7922
|
connection_id: connectionId,
|
|
7998
7923
|
body,
|
|
7999
7924
|
media: [...media],
|
|
@@ -8001,13 +7926,8 @@ var facebookHandler = {
|
|
|
8001
7926
|
})
|
|
8002
7927
|
};
|
|
8003
7928
|
var instagramHandler = {
|
|
8004
|
-
|
|
8005
|
-
if (media.length >= 2) return "carousel";
|
|
8006
|
-
return countKinds(media).videos === 1 ? "reel" : "single_image";
|
|
8007
|
-
},
|
|
8008
|
-
buildVariant: ({ settings, postType, connectionId, body, media }) => ({
|
|
7929
|
+
buildVariant: ({ settings, connectionId, body, media }) => ({
|
|
8009
7930
|
platform: "instagram",
|
|
8010
|
-
post_type: postType,
|
|
8011
7931
|
connection_id: connectionId,
|
|
8012
7932
|
body,
|
|
8013
7933
|
media: [...media],
|
|
@@ -8015,14 +7935,8 @@ var instagramHandler = {
|
|
|
8015
7935
|
})
|
|
8016
7936
|
};
|
|
8017
7937
|
var tiktokHandler = {
|
|
8018
|
-
|
|
8019
|
-
const { images, videos } = countKinds(media);
|
|
8020
|
-
if (videos >= 1) return "video";
|
|
8021
|
-
return images >= 2 ? "carousel" : "single_image";
|
|
8022
|
-
},
|
|
8023
|
-
buildVariant: ({ settings, postType, connectionId, body, media }) => ({
|
|
7938
|
+
buildVariant: ({ settings, connectionId, body, media }) => ({
|
|
8024
7939
|
platform: "tiktok",
|
|
8025
|
-
post_type: postType,
|
|
8026
7940
|
connection_id: connectionId,
|
|
8027
7941
|
body,
|
|
8028
7942
|
media: [...media],
|
|
@@ -8054,7 +7968,6 @@ function buildChannel(handler, platform, config, content, connections) {
|
|
|
8054
7968
|
const media = config.media ?? content.media ?? [];
|
|
8055
7969
|
return handler.buildVariant({
|
|
8056
7970
|
settings: config.settings,
|
|
8057
|
-
postType: config.postType ?? handler.derivePostType(media),
|
|
8058
7971
|
connectionId: resolveConnectionId(platform, config.connectionId, connections),
|
|
8059
7972
|
body: config.body ?? content.body,
|
|
8060
7973
|
media: media.map((item) => ({ media_id: item.id }))
|
|
@@ -8182,6 +8095,7 @@ exports.googleListCampaignCriteria = googleListCampaignCriteria;
|
|
|
8182
8095
|
exports.googleListCampaigns = googleListCampaigns;
|
|
8183
8096
|
exports.googleListConversionActions = googleListConversionActions;
|
|
8184
8097
|
exports.googleListConversionGoals = googleListConversionGoals;
|
|
8098
|
+
exports.googleListConversionRequests = googleListConversionRequests;
|
|
8185
8099
|
exports.googleListKeywords = googleListKeywords;
|
|
8186
8100
|
exports.googlePauseAd = googlePauseAd;
|
|
8187
8101
|
exports.googlePauseAdGroup = googlePauseAdGroup;
|