@getlatedev/node 0.2.895 → 0.2.897
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.d.mts +36 -20
- package/dist/index.d.ts +36 -20
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +36 -20
|
@@ -1692,9 +1692,9 @@ export type AnalyticsSinglePostResponse = {
|
|
|
1692
1692
|
*/
|
|
1693
1693
|
latePostId?: (string) | null;
|
|
1694
1694
|
/**
|
|
1695
|
-
* Overall post status. "partial" when some platforms published and others failed.
|
|
1695
|
+
* Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
|
|
1696
1696
|
*/
|
|
1697
|
-
status?: 'published' | 'failed' | 'partial';
|
|
1697
|
+
status?: 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
|
|
1698
1698
|
content?: string;
|
|
1699
1699
|
scheduledFor?: string;
|
|
1700
1700
|
publishedAt?: (string) | null;
|
|
@@ -1758,9 +1758,9 @@ export type AnalyticsSinglePostResponse = {
|
|
|
1758
1758
|
};
|
|
1759
1759
|
|
|
1760
1760
|
/**
|
|
1761
|
-
* Overall post status. "partial" when some platforms published and others failed.
|
|
1761
|
+
* Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
|
|
1762
1762
|
*/
|
|
1763
|
-
export type status2 = 'published' | 'failed' | 'partial';
|
|
1763
|
+
export type status2 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
|
|
1764
1764
|
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Overall sync state across all platforms
|
|
@@ -6682,7 +6682,7 @@ export type PlatformTarget = {
|
|
|
6682
6682
|
*/
|
|
6683
6683
|
platformPostUrl?: (string) | null;
|
|
6684
6684
|
/**
|
|
6685
|
-
* Timestamp when the post was published to this platform
|
|
6685
|
+
* Timestamp when the post was published to this platform. YouTube uploads a scheduled public video up to 15 minutes early as private with YouTube's own release time, so its entry is published with this set to scheduledFor, the moment the video goes public.
|
|
6686
6686
|
*/
|
|
6687
6687
|
publishedAt?: string;
|
|
6688
6688
|
/**
|
|
@@ -6709,6 +6709,7 @@ export type PlatformTarget = {
|
|
|
6709
6709
|
* Who caused the error: user (fix content/reconnect), platform (outage/API change), system (Zernio issue, rare)
|
|
6710
6710
|
*/
|
|
6711
6711
|
errorSource?: 'user' | 'platform' | 'system';
|
|
6712
|
+
platformError?: PostPlatformError;
|
|
6712
6713
|
};
|
|
6713
6714
|
|
|
6714
6715
|
/**
|
|
@@ -6820,11 +6821,6 @@ export type Post = {
|
|
|
6820
6821
|
updatedAt?: string;
|
|
6821
6822
|
};
|
|
6822
6823
|
|
|
6823
|
-
/**
|
|
6824
|
-
* `cancelled` is set by DELETE /v1/posts/{postId}/unpublish once every platform entry has been removed from its platform (a post with published entries left becomes `partial`); cancelled posts can be edited and rescheduled like drafts.
|
|
6825
|
-
*/
|
|
6826
|
-
export type status14 = 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
6827
|
-
|
|
6828
6824
|
export type visibility2 = 'public' | 'private' | 'unlisted';
|
|
6829
6825
|
|
|
6830
6826
|
export type PostAnalytics = {
|
|
@@ -6917,6 +6913,24 @@ export type PostGetResponse = {
|
|
|
6917
6913
|
post?: Post;
|
|
6918
6914
|
};
|
|
6919
6915
|
|
|
6916
|
+
/**
|
|
6917
|
+
* The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message.
|
|
6918
|
+
*/
|
|
6919
|
+
export type PostPlatformError = {
|
|
6920
|
+
/**
|
|
6921
|
+
* Meta error code, when Meta sent one.
|
|
6922
|
+
*/
|
|
6923
|
+
code?: number;
|
|
6924
|
+
/**
|
|
6925
|
+
* Meta error_subcode, when Meta sent one.
|
|
6926
|
+
*/
|
|
6927
|
+
subcode?: number;
|
|
6928
|
+
/**
|
|
6929
|
+
* The platform's raw error message or media processing status text.
|
|
6930
|
+
*/
|
|
6931
|
+
message: string;
|
|
6932
|
+
};
|
|
6933
|
+
|
|
6920
6934
|
/**
|
|
6921
6935
|
* Body of the 207 returned by createPost and updatePost when the post was saved but the inline publish did not fully succeed. Read `post.status` to tell the three outcomes apart.
|
|
6922
6936
|
*/
|
|
@@ -7026,7 +7040,7 @@ export type Product = {
|
|
|
7026
7040
|
|
|
7027
7041
|
export type platform8 = 'shopify';
|
|
7028
7042
|
|
|
7029
|
-
export type
|
|
7043
|
+
export type status14 = 'active' | 'draft' | 'archived';
|
|
7030
7044
|
|
|
7031
7045
|
export type ProductImage = {
|
|
7032
7046
|
url?: string;
|
|
@@ -8276,7 +8290,7 @@ export type UploadTokenResponse = {
|
|
|
8276
8290
|
status?: 'pending' | 'completed' | 'expired';
|
|
8277
8291
|
};
|
|
8278
8292
|
|
|
8279
|
-
export type
|
|
8293
|
+
export type status15 = 'pending' | 'completed' | 'expired';
|
|
8280
8294
|
|
|
8281
8295
|
export type UploadTokenStatusResponse = {
|
|
8282
8296
|
token?: string;
|
|
@@ -8752,7 +8766,7 @@ export type Verification = {
|
|
|
8752
8766
|
resend?: boolean;
|
|
8753
8767
|
};
|
|
8754
8768
|
|
|
8755
|
-
export type
|
|
8769
|
+
export type status16 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
8756
8770
|
|
|
8757
8771
|
export type channel3 = 'sms';
|
|
8758
8772
|
|
|
@@ -8879,7 +8893,7 @@ export type WebhookLog = {
|
|
|
8879
8893
|
/**
|
|
8880
8894
|
* Delivery outcome
|
|
8881
8895
|
*/
|
|
8882
|
-
export type
|
|
8896
|
+
export type status17 = 'success' | 'failed';
|
|
8883
8897
|
|
|
8884
8898
|
/**
|
|
8885
8899
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -8991,7 +9005,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
8991
9005
|
/**
|
|
8992
9006
|
* Overall outcome of the initial sync.
|
|
8993
9007
|
*/
|
|
8994
|
-
export type
|
|
9008
|
+
export type status18 = 'success' | 'failure';
|
|
8995
9009
|
|
|
8996
9010
|
/**
|
|
8997
9011
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -10775,6 +10789,7 @@ export type WebhookPayloadPost = {
|
|
|
10775
10789
|
platformPostId?: string;
|
|
10776
10790
|
publishedUrl?: string;
|
|
10777
10791
|
error?: string;
|
|
10792
|
+
platformError?: PostPlatformError;
|
|
10778
10793
|
}>;
|
|
10779
10794
|
/**
|
|
10780
10795
|
* The free-form `metadata` object supplied when the post was created, echoed back so you can map events onto your own records. Omitted when the post was created without it.
|
|
@@ -10839,6 +10854,7 @@ export type WebhookPayloadPostPlatform = {
|
|
|
10839
10854
|
platformPostId?: string;
|
|
10840
10855
|
publishedUrl?: string;
|
|
10841
10856
|
error?: string;
|
|
10857
|
+
platformError?: PostPlatformError;
|
|
10842
10858
|
}>;
|
|
10843
10859
|
/**
|
|
10844
10860
|
* The free-form `metadata` object supplied when the post was created, echoed back so you can map events onto your own records. Omitted when the post was created without it.
|
|
@@ -10896,7 +10912,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
10896
10912
|
/**
|
|
10897
10913
|
* Terminal status this event fires on. Matches the event suffix.
|
|
10898
10914
|
*/
|
|
10899
|
-
export type
|
|
10915
|
+
export type status19 = 'published' | 'failed' | 'deleted';
|
|
10900
10916
|
|
|
10901
10917
|
/**
|
|
10902
10918
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
|
|
@@ -11161,7 +11177,7 @@ export type platform15 = 'whatsapp';
|
|
|
11161
11177
|
/**
|
|
11162
11178
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11163
11179
|
*/
|
|
11164
|
-
export type
|
|
11180
|
+
export type status20 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11165
11181
|
|
|
11166
11182
|
/**
|
|
11167
11183
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11310,7 +11326,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11310
11326
|
* request before the template is actually removed.
|
|
11311
11327
|
*
|
|
11312
11328
|
*/
|
|
11313
|
-
export type
|
|
11329
|
+
export type status21 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11314
11330
|
|
|
11315
11331
|
export type WhatsAppBodyComponent = {
|
|
11316
11332
|
type: 'body';
|
|
@@ -11464,7 +11480,7 @@ export type WhatsAppSandboxSession = {
|
|
|
11464
11480
|
* list responses.
|
|
11465
11481
|
*
|
|
11466
11482
|
*/
|
|
11467
|
-
export type
|
|
11483
|
+
export type status22 = 'pending' | 'active';
|
|
11468
11484
|
|
|
11469
11485
|
export type WhatsAppTemplateButton = {
|
|
11470
11486
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -11622,7 +11638,7 @@ export type WorkflowExecutionEvent = {
|
|
|
11622
11638
|
|
|
11623
11639
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
11624
11640
|
|
|
11625
|
-
export type
|
|
11641
|
+
export type status23 = 'success' | 'failed' | 'pending';
|
|
11626
11642
|
|
|
11627
11643
|
/**
|
|
11628
11644
|
* A node in a workflow graph. `config` shape depends on `type`.
|