@postrun/js 2.25.0 → 3.1.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-ZKETM7OS.js → chunk-BJ6NXBN5.js} +43 -108
- package/dist/chunk-BJ6NXBN5.js.map +1 -0
- package/dist/{chunk-VDCNJXGG.js → chunk-DT4DW5LA.js} +3 -3
- package/dist/{chunk-VDCNJXGG.js.map → chunk-DT4DW5LA.js.map} +1 -1
- package/dist/index.cjs +47 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -30
- package/dist/index.d.ts +42 -30
- package/dist/index.js +8 -54
- package/dist/index.js.map +1 -1
- package/dist/query.d.cts +64 -61
- package/dist/query.d.ts +64 -61
- package/dist/schemas/index.cjs +65 -106
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +398 -497
- package/dist/schemas/index.d.ts +398 -497
- package/dist/schemas/index.js +27 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/server.cjs +42 -107
- 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-DlTNd9za.d.cts → types.gen-MxJw6FpT.d.cts} +43 -41
- package/dist/{types.gen-DlTNd9za.d.ts → types.gen-MxJw6FpT.d.ts} +43 -41
- package/package.json +1 -1
- package/dist/chunk-ZKETM7OS.js.map +0 -1
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { zGoogleAdsConversionEvent } from '../chunk-BJ6NXBN5.js';
|
|
2
|
+
export { zConnectSession, zConnection, zConnectionKind, zConnectionStatus, zConnectionsConnectBody, zConnectionsConnectHeaders, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeleteHeaders, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectHeaders, zConnectionsSelectPath, zConnectionsSelectResponse, zCreatePostBody, zDiscoverableAccount, zErrorCode, zErrorSource, zGoogleAdTree, zGoogleAdTreeNode, zGoogleAdsAd, zGoogleAdsAdGroup, zGoogleAdsAdGroupCriterion, zGoogleAdsAudience, zGoogleAdsCampaignCriterion, zGoogleAdsConversionConsent, zGoogleAdsConversionEvent, zGoogleAdsConversionRequest, zGoogleAdsConversionStatus, zGoogleAdsConversionStatusReason, zGoogleAdsConversionUserIdentifier, zGoogleAdsConversionWarning, zGoogleAdsCreateAdGroupCriterionRequest, zGoogleAdsCreateCampaignCriterionRequest, zGoogleAdsCreateResult, zGoogleAdsDeleteResult, zGoogleAdsEditResult, zGoogleAdsGeoSettingsRequest, zGoogleAdsGeoTargetConstant, zGoogleAdsInsightLevel, zGoogleAdsInsightMetric, zGoogleAdsInsightSegment, zGoogleAdsInsights, zGoogleAdsInsightsQuery, zGoogleAdsInsightsRow, zGoogleAdsKeyword, zGoogleAdsReadStatusFilter, zGoogleAdsSendConversionsResult, zGoogleAdsUrlCustomParameter, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupCriterionBody, zGoogleCreateAdGroupCriterionHeaders, zGoogleCreateAdGroupCriterionPath, zGoogleCreateAdGroupCriterionResponse, zGoogleCreateAdGroupHeaders, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdHeaders, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetHeaders, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignCriterionBody, zGoogleCreateCampaignCriterionHeaders, zGoogleCreateCampaignCriterionPath, zGoogleCreateCampaignCriterionResponse, zGoogleCreateCampaignHeaders, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionHeaders, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdHeaders, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordHeaders, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleEditAccountBody, zGoogleEditAccountHeaders, zGoogleEditAccountPath, zGoogleEditAccountResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupHeaders, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetHeaders, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignHeaders, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupHeaders, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdHeaders, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignHeaders, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordHeaders, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetAdTreePath, zGoogleGetAdTreeQuery, zGoogleGetAdTreeResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetConversionStatusPath, zGoogleGetConversionStatusQuery, zGoogleGetConversionStatusResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupCriteriaPath, zGoogleListAdGroupCriteriaResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsQuery, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsQuery, zGoogleListAdsResponse, zGoogleListAudiencesPath, zGoogleListAudiencesQuery, zGoogleListAudiencesResponse, zGoogleListCampaignCriteriaPath, zGoogleListCampaignCriteriaResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListConversionRequestsPath, zGoogleListConversionRequestsQuery, zGoogleListConversionRequestsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsQuery, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupHeaders, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdHeaders, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignHeaders, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordHeaders, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRemoveAdBody, zGoogleRemoveAdGroupBody, zGoogleRemoveAdGroupCriterionBody, zGoogleRemoveAdGroupCriterionHeaders, zGoogleRemoveAdGroupCriterionPath, zGoogleRemoveAdGroupCriterionResponse, zGoogleRemoveAdGroupHeaders, zGoogleRemoveAdGroupPath, zGoogleRemoveAdGroupResponse, zGoogleRemoveAdHeaders, zGoogleRemoveAdPath, zGoogleRemoveAdResponse, zGoogleRemoveBudgetBody, zGoogleRemoveBudgetHeaders, zGoogleRemoveBudgetPath, zGoogleRemoveBudgetResponse, zGoogleRemoveCampaignBody, zGoogleRemoveCampaignCriterionBody, zGoogleRemoveCampaignCriterionHeaders, zGoogleRemoveCampaignCriterionPath, zGoogleRemoveCampaignCriterionResponse, zGoogleRemoveCampaignHeaders, zGoogleRemoveCampaignPath, zGoogleRemoveCampaignResponse, zGoogleRemoveKeywordBody, zGoogleRemoveKeywordHeaders, zGoogleRemoveKeywordPath, zGoogleRemoveKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSearchGeoTargetsPath, zGoogleSearchGeoTargetsQuery, zGoogleSearchGeoTargetsResponse, zGoogleSendConversionsBody, zGoogleSendConversionsHeaders, zGoogleSendConversionsPath, zGoogleSendConversionsResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsHeaders, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetCampaignGeoSettingsBody, zGoogleSetCampaignGeoSettingsHeaders, zGoogleSetCampaignGeoSettingsPath, zGoogleSetCampaignGeoSettingsResponse, zGoogleSetCampaignTargetingSettingBody, zGoogleSetCampaignTargetingSettingHeaders, zGoogleSetCampaignTargetingSettingPath, zGoogleSetCampaignTargetingSettingResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalHeaders, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidHeaders, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetHeaders, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zIdempotencyKey, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMedia, zMediaAbortPath, zMediaAbortResponse, zMediaCompleteBody, zMediaCompletePath, zMediaCompleteResponse, zMediaCreateBody, zMediaCreateHeaders, zMediaCreateResponse, zMediaDeleteHeaders, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaKind, zMediaListPartsPath, zMediaListPartsResponse, zMediaListQuery, zMediaListResponse, zMediaSignPartBody, zMediaSignPartPath, zMediaSignPartResponse, zMediaStage, zMediaStatus, zMediaUpdateBody, zMediaUpdateHeaders, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPost, zPostPlatform, zPostStatus, zPostType, zPostVariant, zPostVariantInput, zPostVariantStatus, zPostsCreateBody, zPostsCreateHeaders, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdateHeaders, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfile, zProfilesCreateBody, zProfilesCreateHeaders, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTikTokCreatorInfo, zTikTokPrivacyLevel, zTiktokCreatorInfoPath, zTiktokCreatorInfoResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointHeaders, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse } from '../chunk-BJ6NXBN5.js';
|
|
3
|
+
|
|
4
|
+
// src/schemas/conversions.ts
|
|
5
|
+
var conversionEventSchema = zGoogleAdsConversionEvent.superRefine(
|
|
6
|
+
(event, ctx) => {
|
|
7
|
+
const hasMatchSignal = event.gclid != null || event.gbraid != null || event.wbraid != null || event.user_data != null && event.user_data.length > 0;
|
|
8
|
+
if (!hasMatchSignal) {
|
|
9
|
+
ctx.addIssue({
|
|
10
|
+
code: "custom",
|
|
11
|
+
message: "Each conversion needs at least one match signal: a gclid, gbraid, wbraid, or user_data."
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
event.user_data?.forEach((identifier, index) => {
|
|
15
|
+
const hasIdentifier = identifier.email_address != null || identifier.phone_number != null || identifier.address != null;
|
|
16
|
+
if (!hasIdentifier) {
|
|
17
|
+
ctx.addIssue({
|
|
18
|
+
code: "custom",
|
|
19
|
+
path: ["user_data", index],
|
|
20
|
+
message: "Provide an email_address, phone_number, or address."
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
export { conversionEventSchema };
|
|
2
28
|
//# sourceMappingURL=index.js.map
|
|
3
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/conversions.ts"],"names":[],"mappings":";;;;AAiBO,IAAM,wBAAwB,yBAAA,CAA0B,WAAA;AAAA,EAC7D,CAAC,OAAO,GAAA,KAAQ;AACd,IAAA,MAAM,cAAA,GACJ,KAAA,CAAM,KAAA,IAAS,IAAA,IACf,MAAM,MAAA,IAAU,IAAA,IAChB,KAAA,CAAM,MAAA,IAAU,QACf,KAAA,CAAM,SAAA,IAAa,IAAA,IAAQ,KAAA,CAAM,UAAU,MAAA,GAAS,CAAA;AAEvD,IAAA,IAAI,CAAC,cAAA,EAAgB;AACnB,MAAA,GAAA,CAAI,QAAA,CAAS;AAAA,QACX,IAAA,EAAM,QAAA;AAAA,QACN,OAAA,EACE;AAAA,OACH,CAAA;AAAA,IACH;AAEA,IAAA,KAAA,CAAM,SAAA,EAAW,OAAA,CAAQ,CAAC,UAAA,EAAY,KAAA,KAAU;AAC9C,MAAA,MAAM,aAAA,GACJ,WAAW,aAAA,IAAiB,IAAA,IAC5B,WAAW,YAAA,IAAgB,IAAA,IAC3B,WAAW,OAAA,IAAW,IAAA;AAExB,MAAA,IAAI,CAAC,aAAA,EAAe;AAClB,QAAA,GAAA,CAAI,QAAA,CAAS;AAAA,UACX,IAAA,EAAM,QAAA;AAAA,UACN,IAAA,EAAM,CAAC,WAAA,EAAa,KAAK,CAAA;AAAA,UACzB,OAAA,EAAS;AAAA,SACV,CAAA;AAAA,MACH;AAAA,IACF,CAAC,CAAA;AAAA,EACH;AACF","file":"index.js","sourcesContent":["/**\n * Hand-written conversion validators — layered on top of the GENERATED zod.\n *\n * The generated `zGoogleAdsConversionEvent` validates every FIELD (types, the\n * RFC-3339-with-offset timestamp, the currency length, etc.), but it can't carry\n * the API's CROSS-FIELD rules: OpenAPI has no way to express \"at least one of\n * these optional fields,\" so the API's `.superRefine` / `.refine` are invisible to\n * codegen. We re-apply them here, importing the generated base (never copying it),\n * so this composes cleanly on top of every regeneration. The API remains the\n * server-side authority; this is the matching client-side check (zero round-trip).\n *\n * Mirrors `apps/api/lib/schemas/google/conversions.ts`:\n * - each conversion needs ≥1 match signal (gclid / gbraid / wbraid / user_data);\n * - each user_data identifier needs ≥1 of email / phone / address.\n */\nimport { zGoogleAdsConversionEvent } from '../client/zod.gen';\n\nexport const conversionEventSchema = zGoogleAdsConversionEvent.superRefine(\n (event, ctx) => {\n const hasMatchSignal =\n event.gclid != null ||\n event.gbraid != null ||\n event.wbraid != null ||\n (event.user_data != null && event.user_data.length > 0);\n\n if (!hasMatchSignal) {\n ctx.addIssue({\n code: 'custom',\n message:\n 'Each conversion needs at least one match signal: a gclid, gbraid, wbraid, or user_data.',\n });\n }\n\n event.user_data?.forEach((identifier, index) => {\n const hasIdentifier =\n identifier.email_address != null ||\n identifier.phone_number != null ||\n identifier.address != null;\n\n if (!hasIdentifier) {\n ctx.addIssue({\n code: 'custom',\n path: ['user_data', index],\n message: 'Provide an email_address, phone_number, or address.',\n });\n }\n });\n },\n);\n"]}
|
package/dist/server.cjs
CHANGED
|
@@ -818,6 +818,7 @@ var zErrorCode = z__namespace.enum([
|
|
|
818
818
|
"media_processing",
|
|
819
819
|
"media_upload_init_failed",
|
|
820
820
|
"media_upload_incomplete",
|
|
821
|
+
"media_upload_invalid_parts",
|
|
821
822
|
"not_publishable",
|
|
822
823
|
"invalid_connection",
|
|
823
824
|
"invalid_media",
|
|
@@ -853,7 +854,6 @@ var zErrorCode = z__namespace.enum([
|
|
|
853
854
|
"content_missing",
|
|
854
855
|
"content_conflict",
|
|
855
856
|
"content_incomplete",
|
|
856
|
-
"content_kind_mismatch",
|
|
857
857
|
"media_type_mismatch",
|
|
858
858
|
"tag_limit_exceeded",
|
|
859
859
|
"reel_field_on_non_reel",
|
|
@@ -1150,7 +1150,7 @@ var zPostPlatform = z__namespace.enum([
|
|
|
1150
1150
|
"instagram",
|
|
1151
1151
|
"tiktok"
|
|
1152
1152
|
]);
|
|
1153
|
-
z__namespace.enum([
|
|
1153
|
+
var zPostType = z__namespace.enum([
|
|
1154
1154
|
"text",
|
|
1155
1155
|
"single_image",
|
|
1156
1156
|
"multi_image",
|
|
@@ -1213,12 +1213,6 @@ var zTikTokPrivacyLevel = z__namespace.enum([
|
|
|
1213
1213
|
var zPostVariant = z__namespace.union([
|
|
1214
1214
|
z__namespace.object({
|
|
1215
1215
|
platform: z__namespace.literal("x"),
|
|
1216
|
-
post_type: z__namespace.enum([
|
|
1217
|
-
"text",
|
|
1218
|
-
"single_image",
|
|
1219
|
-
"multi_image",
|
|
1220
|
-
"video"
|
|
1221
|
-
]),
|
|
1222
1216
|
settings: z__namespace.object({
|
|
1223
1217
|
reply_settings: z__namespace.enum([
|
|
1224
1218
|
"everyone",
|
|
@@ -1253,6 +1247,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1253
1247
|
}),
|
|
1254
1248
|
id: z__namespace.string(),
|
|
1255
1249
|
object: z__namespace.literal("post_variant"),
|
|
1250
|
+
post_type: zPostType.nullable(),
|
|
1256
1251
|
connection_id: z__namespace.string().nullable(),
|
|
1257
1252
|
body: z__namespace.string().nullable(),
|
|
1258
1253
|
status: zPostVariantStatus,
|
|
@@ -1284,6 +1279,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1284
1279
|
"media_processing",
|
|
1285
1280
|
"media_upload_init_failed",
|
|
1286
1281
|
"media_upload_incomplete",
|
|
1282
|
+
"media_upload_invalid_parts",
|
|
1287
1283
|
"not_publishable",
|
|
1288
1284
|
"invalid_connection",
|
|
1289
1285
|
"invalid_media",
|
|
@@ -1319,7 +1315,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1319
1315
|
"content_missing",
|
|
1320
1316
|
"content_conflict",
|
|
1321
1317
|
"content_incomplete",
|
|
1322
|
-
"content_kind_mismatch",
|
|
1323
1318
|
"media_type_mismatch",
|
|
1324
1319
|
"tag_limit_exceeded",
|
|
1325
1320
|
"reel_field_on_non_reel",
|
|
@@ -1403,23 +1398,8 @@ var zPostVariant = z__namespace.union([
|
|
|
1403
1398
|
}),
|
|
1404
1399
|
z__namespace.object({
|
|
1405
1400
|
platform: z__namespace.literal("linkedin"),
|
|
1406
|
-
post_type: z__namespace.enum([
|
|
1407
|
-
"text",
|
|
1408
|
-
"single_image",
|
|
1409
|
-
"multi_image",
|
|
1410
|
-
"video"
|
|
1411
|
-
]),
|
|
1412
1401
|
settings: z__namespace.object({
|
|
1413
1402
|
visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
|
|
1414
|
-
content_kind: z__namespace.enum([
|
|
1415
|
-
"text",
|
|
1416
|
-
"single_image",
|
|
1417
|
-
"video",
|
|
1418
|
-
"multi_image",
|
|
1419
|
-
"document",
|
|
1420
|
-
"article",
|
|
1421
|
-
"poll"
|
|
1422
|
-
]),
|
|
1423
1403
|
article: z__namespace.object({
|
|
1424
1404
|
source: z__namespace.url(),
|
|
1425
1405
|
title: z__namespace.string().max(400).optional(),
|
|
@@ -1448,6 +1428,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1448
1428
|
}),
|
|
1449
1429
|
id: z__namespace.string(),
|
|
1450
1430
|
object: z__namespace.literal("post_variant"),
|
|
1431
|
+
post_type: zPostType.nullable(),
|
|
1451
1432
|
connection_id: z__namespace.string().nullable(),
|
|
1452
1433
|
body: z__namespace.string().nullable(),
|
|
1453
1434
|
status: zPostVariantStatus,
|
|
@@ -1479,6 +1460,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1479
1460
|
"media_processing",
|
|
1480
1461
|
"media_upload_init_failed",
|
|
1481
1462
|
"media_upload_incomplete",
|
|
1463
|
+
"media_upload_invalid_parts",
|
|
1482
1464
|
"not_publishable",
|
|
1483
1465
|
"invalid_connection",
|
|
1484
1466
|
"invalid_media",
|
|
@@ -1514,7 +1496,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1514
1496
|
"content_missing",
|
|
1515
1497
|
"content_conflict",
|
|
1516
1498
|
"content_incomplete",
|
|
1517
|
-
"content_kind_mismatch",
|
|
1518
1499
|
"media_type_mismatch",
|
|
1519
1500
|
"tag_limit_exceeded",
|
|
1520
1501
|
"reel_field_on_non_reel",
|
|
@@ -1594,21 +1575,25 @@ var zPostVariant = z__namespace.union([
|
|
|
1594
1575
|
position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1595
1576
|
alt_text_override: z__namespace.string().nullable(),
|
|
1596
1577
|
media: zMedia
|
|
1597
|
-
}))
|
|
1598
|
-
|
|
1599
|
-
z__namespace.object({
|
|
1600
|
-
platform: z__namespace.literal("facebook_page"),
|
|
1601
|
-
post_type: z__namespace.enum([
|
|
1578
|
+
})),
|
|
1579
|
+
content_kind: z__namespace.enum([
|
|
1602
1580
|
"text",
|
|
1603
1581
|
"single_image",
|
|
1582
|
+
"video",
|
|
1604
1583
|
"multi_image",
|
|
1605
|
-
"
|
|
1606
|
-
|
|
1584
|
+
"document",
|
|
1585
|
+
"article",
|
|
1586
|
+
"poll"
|
|
1587
|
+
]).nullable()
|
|
1588
|
+
}),
|
|
1589
|
+
z__namespace.object({
|
|
1590
|
+
platform: z__namespace.literal("facebook_page"),
|
|
1607
1591
|
settings: z__namespace.object({
|
|
1608
1592
|
link: z__namespace.url().optional()
|
|
1609
1593
|
}),
|
|
1610
1594
|
id: z__namespace.string(),
|
|
1611
1595
|
object: z__namespace.literal("post_variant"),
|
|
1596
|
+
post_type: zPostType.nullable(),
|
|
1612
1597
|
connection_id: z__namespace.string().nullable(),
|
|
1613
1598
|
body: z__namespace.string().nullable(),
|
|
1614
1599
|
status: zPostVariantStatus,
|
|
@@ -1640,6 +1625,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1640
1625
|
"media_processing",
|
|
1641
1626
|
"media_upload_init_failed",
|
|
1642
1627
|
"media_upload_incomplete",
|
|
1628
|
+
"media_upload_invalid_parts",
|
|
1643
1629
|
"not_publishable",
|
|
1644
1630
|
"invalid_connection",
|
|
1645
1631
|
"invalid_media",
|
|
@@ -1675,7 +1661,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1675
1661
|
"content_missing",
|
|
1676
1662
|
"content_conflict",
|
|
1677
1663
|
"content_incomplete",
|
|
1678
|
-
"content_kind_mismatch",
|
|
1679
1664
|
"media_type_mismatch",
|
|
1680
1665
|
"tag_limit_exceeded",
|
|
1681
1666
|
"reel_field_on_non_reel",
|
|
@@ -1759,17 +1744,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1759
1744
|
}),
|
|
1760
1745
|
z__namespace.object({
|
|
1761
1746
|
platform: z__namespace.literal("instagram"),
|
|
1762
|
-
post_type: z__namespace.enum([
|
|
1763
|
-
"single_image",
|
|
1764
|
-
"carousel",
|
|
1765
|
-
"reel"
|
|
1766
|
-
]),
|
|
1767
1747
|
settings: z__namespace.object({
|
|
1768
|
-
media_type: z__namespace.enum([
|
|
1769
|
-
"IMAGE",
|
|
1770
|
-
"CAROUSEL",
|
|
1771
|
-
"REELS"
|
|
1772
|
-
]).optional(),
|
|
1773
1748
|
location_id: z__namespace.string().optional(),
|
|
1774
1749
|
user_tags: z__namespace.array(z__namespace.object({
|
|
1775
1750
|
username: z__namespace.string().min(1),
|
|
@@ -1784,6 +1759,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1784
1759
|
}),
|
|
1785
1760
|
id: z__namespace.string(),
|
|
1786
1761
|
object: z__namespace.literal("post_variant"),
|
|
1762
|
+
post_type: zPostType.nullable(),
|
|
1787
1763
|
connection_id: z__namespace.string().nullable(),
|
|
1788
1764
|
body: z__namespace.string().nullable(),
|
|
1789
1765
|
status: zPostVariantStatus,
|
|
@@ -1815,6 +1791,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1815
1791
|
"media_processing",
|
|
1816
1792
|
"media_upload_init_failed",
|
|
1817
1793
|
"media_upload_incomplete",
|
|
1794
|
+
"media_upload_invalid_parts",
|
|
1818
1795
|
"not_publishable",
|
|
1819
1796
|
"invalid_connection",
|
|
1820
1797
|
"invalid_media",
|
|
@@ -1850,7 +1827,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1850
1827
|
"content_missing",
|
|
1851
1828
|
"content_conflict",
|
|
1852
1829
|
"content_incomplete",
|
|
1853
|
-
"content_kind_mismatch",
|
|
1854
1830
|
"media_type_mismatch",
|
|
1855
1831
|
"tag_limit_exceeded",
|
|
1856
1832
|
"reel_field_on_non_reel",
|
|
@@ -1930,15 +1906,15 @@ var zPostVariant = z__namespace.union([
|
|
|
1930
1906
|
position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1931
1907
|
alt_text_override: z__namespace.string().nullable(),
|
|
1932
1908
|
media: zMedia
|
|
1933
|
-
}))
|
|
1909
|
+
})),
|
|
1910
|
+
media_type: z__namespace.enum([
|
|
1911
|
+
"IMAGE",
|
|
1912
|
+
"CAROUSEL",
|
|
1913
|
+
"REELS"
|
|
1914
|
+
]).nullable()
|
|
1934
1915
|
}),
|
|
1935
1916
|
z__namespace.object({
|
|
1936
1917
|
platform: z__namespace.literal("tiktok"),
|
|
1937
|
-
post_type: z__namespace.enum([
|
|
1938
|
-
"video",
|
|
1939
|
-
"single_image",
|
|
1940
|
-
"carousel"
|
|
1941
|
-
]),
|
|
1942
1918
|
settings: z__namespace.object({
|
|
1943
1919
|
privacy_level: zTikTokPrivacyLevel.optional(),
|
|
1944
1920
|
disable_comment: z__namespace.boolean().optional(),
|
|
@@ -1953,6 +1929,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1953
1929
|
}),
|
|
1954
1930
|
id: z__namespace.string(),
|
|
1955
1931
|
object: z__namespace.literal("post_variant"),
|
|
1932
|
+
post_type: zPostType.nullable(),
|
|
1956
1933
|
connection_id: z__namespace.string().nullable(),
|
|
1957
1934
|
body: z__namespace.string().nullable(),
|
|
1958
1935
|
status: zPostVariantStatus,
|
|
@@ -1984,6 +1961,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1984
1961
|
"media_processing",
|
|
1985
1962
|
"media_upload_init_failed",
|
|
1986
1963
|
"media_upload_incomplete",
|
|
1964
|
+
"media_upload_invalid_parts",
|
|
1987
1965
|
"not_publishable",
|
|
1988
1966
|
"invalid_connection",
|
|
1989
1967
|
"invalid_media",
|
|
@@ -2019,7 +1997,6 @@ var zPostVariant = z__namespace.union([
|
|
|
2019
1997
|
"content_missing",
|
|
2020
1998
|
"content_conflict",
|
|
2021
1999
|
"content_incomplete",
|
|
2022
|
-
"content_kind_mismatch",
|
|
2023
2000
|
"media_type_mismatch",
|
|
2024
2001
|
"tag_limit_exceeded",
|
|
2025
2002
|
"reel_field_on_non_reel",
|
|
@@ -2144,12 +2121,6 @@ z__namespace.object({
|
|
|
2144
2121
|
var zPostVariantInput = z__namespace.union([
|
|
2145
2122
|
z__namespace.object({
|
|
2146
2123
|
platform: z__namespace.literal("x"),
|
|
2147
|
-
post_type: z__namespace.enum([
|
|
2148
|
-
"text",
|
|
2149
|
-
"single_image",
|
|
2150
|
-
"multi_image",
|
|
2151
|
-
"video"
|
|
2152
|
-
]),
|
|
2153
2124
|
settings: z__namespace.object({
|
|
2154
2125
|
reply_settings: z__namespace.enum([
|
|
2155
2126
|
"everyone",
|
|
@@ -2191,23 +2162,8 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2191
2162
|
}),
|
|
2192
2163
|
z__namespace.object({
|
|
2193
2164
|
platform: z__namespace.literal("linkedin"),
|
|
2194
|
-
post_type: z__namespace.enum([
|
|
2195
|
-
"text",
|
|
2196
|
-
"single_image",
|
|
2197
|
-
"multi_image",
|
|
2198
|
-
"video"
|
|
2199
|
-
]),
|
|
2200
2165
|
settings: z__namespace.object({
|
|
2201
2166
|
visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
|
|
2202
|
-
content_kind: z__namespace.enum([
|
|
2203
|
-
"text",
|
|
2204
|
-
"single_image",
|
|
2205
|
-
"video",
|
|
2206
|
-
"multi_image",
|
|
2207
|
-
"document",
|
|
2208
|
-
"article",
|
|
2209
|
-
"poll"
|
|
2210
|
-
]),
|
|
2211
2167
|
article: z__namespace.object({
|
|
2212
2168
|
source: z__namespace.url(),
|
|
2213
2169
|
title: z__namespace.string().max(400).optional(),
|
|
@@ -2243,17 +2199,7 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2243
2199
|
}),
|
|
2244
2200
|
z__namespace.object({
|
|
2245
2201
|
platform: z__namespace.literal("instagram"),
|
|
2246
|
-
post_type: z__namespace.enum([
|
|
2247
|
-
"single_image",
|
|
2248
|
-
"carousel",
|
|
2249
|
-
"reel"
|
|
2250
|
-
]),
|
|
2251
2202
|
settings: z__namespace.object({
|
|
2252
|
-
media_type: z__namespace.enum([
|
|
2253
|
-
"IMAGE",
|
|
2254
|
-
"CAROUSEL",
|
|
2255
|
-
"REELS"
|
|
2256
|
-
]).optional(),
|
|
2257
2203
|
location_id: z__namespace.string().optional(),
|
|
2258
2204
|
user_tags: z__namespace.array(z__namespace.object({
|
|
2259
2205
|
username: z__namespace.string().min(1),
|
|
@@ -2275,12 +2221,6 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2275
2221
|
}),
|
|
2276
2222
|
z__namespace.object({
|
|
2277
2223
|
platform: z__namespace.literal("facebook_page"),
|
|
2278
|
-
post_type: z__namespace.enum([
|
|
2279
|
-
"text",
|
|
2280
|
-
"single_image",
|
|
2281
|
-
"multi_image",
|
|
2282
|
-
"reel"
|
|
2283
|
-
]),
|
|
2284
2224
|
settings: z__namespace.object({
|
|
2285
2225
|
link: z__namespace.url().optional()
|
|
2286
2226
|
}).optional().default({}),
|
|
@@ -2293,11 +2233,6 @@ var zPostVariantInput = z__namespace.union([
|
|
|
2293
2233
|
}),
|
|
2294
2234
|
z__namespace.object({
|
|
2295
2235
|
platform: z__namespace.literal("tiktok"),
|
|
2296
|
-
post_type: z__namespace.enum([
|
|
2297
|
-
"video",
|
|
2298
|
-
"single_image",
|
|
2299
|
-
"carousel"
|
|
2300
|
-
]),
|
|
2301
2236
|
settings: z__namespace.object({
|
|
2302
2237
|
privacy_level: zTikTokPrivacyLevel.optional(),
|
|
2303
2238
|
disable_comment: z__namespace.boolean().optional(),
|
|
@@ -2325,7 +2260,7 @@ z__namespace.object({
|
|
|
2325
2260
|
"schedule",
|
|
2326
2261
|
"draft"
|
|
2327
2262
|
]).optional().default("draft"),
|
|
2328
|
-
schedule_at: z__namespace.iso.datetime().optional(),
|
|
2263
|
+
schedule_at: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
2329
2264
|
external_id: z__namespace.string().min(1).max(255).optional(),
|
|
2330
2265
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
2331
2266
|
z__namespace.string().max(500),
|
|
@@ -2992,7 +2927,7 @@ var zGoogleAdsConversionUserIdentifier = z__namespace.object({
|
|
|
2992
2927
|
}).optional()
|
|
2993
2928
|
});
|
|
2994
2929
|
var zGoogleAdsConversionEvent = z__namespace.object({
|
|
2995
|
-
event_timestamp: z__namespace.iso.datetime(),
|
|
2930
|
+
event_timestamp: z__namespace.iso.datetime({ offset: true }),
|
|
2996
2931
|
event_source: z__namespace.enum([
|
|
2997
2932
|
"WEB",
|
|
2998
2933
|
"APP",
|
|
@@ -3040,6 +2975,7 @@ var zGoogleAdsConversionStatusReason = z__namespace.object({
|
|
|
3040
2975
|
"media_processing",
|
|
3041
2976
|
"media_upload_init_failed",
|
|
3042
2977
|
"media_upload_incomplete",
|
|
2978
|
+
"media_upload_invalid_parts",
|
|
3043
2979
|
"not_publishable",
|
|
3044
2980
|
"invalid_connection",
|
|
3045
2981
|
"invalid_media",
|
|
@@ -3075,7 +3011,6 @@ var zGoogleAdsConversionStatusReason = z__namespace.object({
|
|
|
3075
3011
|
"content_missing",
|
|
3076
3012
|
"content_conflict",
|
|
3077
3013
|
"content_incomplete",
|
|
3078
|
-
"content_kind_mismatch",
|
|
3079
3014
|
"media_type_mismatch",
|
|
3080
3015
|
"tag_limit_exceeded",
|
|
3081
3016
|
"reel_field_on_non_reel",
|
|
@@ -3572,9 +3507,9 @@ z__namespace.object({
|
|
|
3572
3507
|
z__namespace.number(),
|
|
3573
3508
|
z__namespace.boolean()
|
|
3574
3509
|
])).optional(),
|
|
3575
|
-
scheduled_after: z__namespace.iso.datetime().optional(),
|
|
3576
|
-
scheduled_before: z__namespace.iso.datetime().optional(),
|
|
3577
|
-
updated_after: z__namespace.iso.datetime().optional(),
|
|
3510
|
+
scheduled_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
3511
|
+
scheduled_before: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
3512
|
+
updated_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
3578
3513
|
status: z__namespace.array(zPostStatus).optional()
|
|
3579
3514
|
});
|
|
3580
3515
|
z__namespace.object({
|
|
@@ -3632,7 +3567,7 @@ z__namespace.object({
|
|
|
3632
3567
|
"schedule",
|
|
3633
3568
|
"draft"
|
|
3634
3569
|
]).optional(),
|
|
3635
|
-
schedule_at: z__namespace.iso.datetime().nullish(),
|
|
3570
|
+
schedule_at: z__namespace.iso.datetime({ offset: true }).nullish(),
|
|
3636
3571
|
external_id: z__namespace.string().min(1).max(255).nullish(),
|
|
3637
3572
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
3638
3573
|
z__namespace.string().max(500),
|
|
@@ -3706,6 +3641,7 @@ z__namespace.object({
|
|
|
3706
3641
|
"media_processing",
|
|
3707
3642
|
"media_upload_init_failed",
|
|
3708
3643
|
"media_upload_incomplete",
|
|
3644
|
+
"media_upload_invalid_parts",
|
|
3709
3645
|
"not_publishable",
|
|
3710
3646
|
"invalid_connection",
|
|
3711
3647
|
"invalid_media",
|
|
@@ -3741,7 +3677,6 @@ z__namespace.object({
|
|
|
3741
3677
|
"content_missing",
|
|
3742
3678
|
"content_conflict",
|
|
3743
3679
|
"content_incomplete",
|
|
3744
|
-
"content_kind_mismatch",
|
|
3745
3680
|
"media_type_mismatch",
|
|
3746
3681
|
"tag_limit_exceeded",
|
|
3747
3682
|
"reel_field_on_non_reel",
|
|
@@ -5302,8 +5237,8 @@ z__namespace.object({
|
|
|
5302
5237
|
"scheduler"
|
|
5303
5238
|
]).optional(),
|
|
5304
5239
|
action: z__namespace.string().min(1).optional(),
|
|
5305
|
-
created_after: z__namespace.iso.datetime().optional(),
|
|
5306
|
-
created_before: z__namespace.iso.datetime().optional()
|
|
5240
|
+
created_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
5241
|
+
created_before: z__namespace.iso.datetime({ offset: true }).optional()
|
|
5307
5242
|
});
|
|
5308
5243
|
z__namespace.object({
|
|
5309
5244
|
object: z__namespace.literal("list"),
|
|
@@ -5358,6 +5293,7 @@ z__namespace.object({
|
|
|
5358
5293
|
"media_processing",
|
|
5359
5294
|
"media_upload_init_failed",
|
|
5360
5295
|
"media_upload_incomplete",
|
|
5296
|
+
"media_upload_invalid_parts",
|
|
5361
5297
|
"not_publishable",
|
|
5362
5298
|
"invalid_connection",
|
|
5363
5299
|
"invalid_media",
|
|
@@ -5393,7 +5329,6 @@ z__namespace.object({
|
|
|
5393
5329
|
"content_missing",
|
|
5394
5330
|
"content_conflict",
|
|
5395
5331
|
"content_incomplete",
|
|
5396
|
-
"content_kind_mismatch",
|
|
5397
5332
|
"media_type_mismatch",
|
|
5398
5333
|
"tag_limit_exceeded",
|
|
5399
5334
|
"reel_field_on_non_reel",
|
|
@@ -5518,6 +5453,7 @@ z__namespace.object({
|
|
|
5518
5453
|
"media_processing",
|
|
5519
5454
|
"media_upload_init_failed",
|
|
5520
5455
|
"media_upload_incomplete",
|
|
5456
|
+
"media_upload_invalid_parts",
|
|
5521
5457
|
"not_publishable",
|
|
5522
5458
|
"invalid_connection",
|
|
5523
5459
|
"invalid_media",
|
|
@@ -5553,7 +5489,6 @@ z__namespace.object({
|
|
|
5553
5489
|
"content_missing",
|
|
5554
5490
|
"content_conflict",
|
|
5555
5491
|
"content_incomplete",
|
|
5556
|
-
"content_kind_mismatch",
|
|
5557
5492
|
"media_type_mismatch",
|
|
5558
5493
|
"tag_limit_exceeded",
|
|
5559
5494
|
"reel_field_on_non_reel",
|
|
@@ -5699,6 +5634,7 @@ z__namespace.object({
|
|
|
5699
5634
|
"media_processing",
|
|
5700
5635
|
"media_upload_init_failed",
|
|
5701
5636
|
"media_upload_incomplete",
|
|
5637
|
+
"media_upload_invalid_parts",
|
|
5702
5638
|
"not_publishable",
|
|
5703
5639
|
"invalid_connection",
|
|
5704
5640
|
"invalid_media",
|
|
@@ -5734,7 +5670,6 @@ z__namespace.object({
|
|
|
5734
5670
|
"content_missing",
|
|
5735
5671
|
"content_conflict",
|
|
5736
5672
|
"content_incomplete",
|
|
5737
|
-
"content_kind_mismatch",
|
|
5738
5673
|
"media_type_mismatch",
|
|
5739
5674
|
"tag_limit_exceeded",
|
|
5740
5675
|
"reel_field_on_non_reel",
|
|
@@ -5859,6 +5794,7 @@ z__namespace.object({
|
|
|
5859
5794
|
"media_processing",
|
|
5860
5795
|
"media_upload_init_failed",
|
|
5861
5796
|
"media_upload_incomplete",
|
|
5797
|
+
"media_upload_invalid_parts",
|
|
5862
5798
|
"not_publishable",
|
|
5863
5799
|
"invalid_connection",
|
|
5864
5800
|
"invalid_media",
|
|
@@ -5894,7 +5830,6 @@ z__namespace.object({
|
|
|
5894
5830
|
"content_missing",
|
|
5895
5831
|
"content_conflict",
|
|
5896
5832
|
"content_incomplete",
|
|
5897
|
-
"content_kind_mismatch",
|
|
5898
5833
|
"media_type_mismatch",
|
|
5899
5834
|
"tag_limit_exceeded",
|
|
5900
5835
|
"reel_field_on_non_reel",
|