@postrun/react 1.3.0 → 2.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/index.d.cts CHANGED
@@ -970,7 +970,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
970
970
  variants: Array<{
971
971
  id: string;
972
972
  object: "post_variant";
973
- connection_id: string;
973
+ connection_id: string | null;
974
974
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
975
975
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
976
976
  body: string | null;
@@ -1030,7 +1030,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1030
1030
  variants: Array<{
1031
1031
  id: string;
1032
1032
  object: "post_variant";
1033
- connection_id: string;
1033
+ connection_id: string | null;
1034
1034
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1035
1035
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1036
1036
  body: string | null;
@@ -1089,7 +1089,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
1089
1089
  variants: Array<{
1090
1090
  id: string;
1091
1091
  object: "post_variant";
1092
- connection_id: string;
1092
+ connection_id: string | null;
1093
1093
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1094
1094
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1095
1095
  body: string | null;
@@ -1146,7 +1146,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
1146
1146
  variants: Array<{
1147
1147
  id: string;
1148
1148
  object: "post_variant";
1149
- connection_id: string;
1149
+ connection_id: string | null;
1150
1150
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1151
1151
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1152
1152
  body: string | null;
@@ -1198,7 +1198,7 @@ declare function useCreatePost(profileId: string): {
1198
1198
  variants: Array<{
1199
1199
  id: string;
1200
1200
  object: "post_variant";
1201
- connection_id: string;
1201
+ connection_id: string | null;
1202
1202
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1203
1203
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1204
1204
  body: string | null;
@@ -1247,7 +1247,7 @@ declare function useCreatePost(profileId: string): {
1247
1247
  variants: Array<{
1248
1248
  id: string;
1249
1249
  object: "post_variant";
1250
- connection_id: string;
1250
+ connection_id: string | null;
1251
1251
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1252
1252
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1253
1253
  body: string | null;
@@ -1300,7 +1300,7 @@ declare function useValidatePost(profileId: string): {
1300
1300
  validate: (input: Omit<ComposePostInput, "profileId">) => Promise<PostValidation>;
1301
1301
  publishable: boolean | undefined;
1302
1302
  issues: {
1303
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "connection_in_use" | "not_implemented" | "connection_discovery_failed" | "media_processing" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "content_kind_mismatch" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_media_processing" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_publish_failed" | "connection_platform_mismatch";
1303
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "media_processing" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "content_kind_mismatch" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_media_processing" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_publish_failed" | "connection_platform_mismatch" | "connection_removed";
1304
1304
  message: string;
1305
1305
  hint?: string;
1306
1306
  allowed?: Array<string>;
@@ -1333,7 +1333,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
1333
1333
  variants: Array<{
1334
1334
  id: string;
1335
1335
  object: "post_variant";
1336
- connection_id: string;
1336
+ connection_id: string | null;
1337
1337
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1338
1338
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1339
1339
  body: string | null;
package/dist/index.d.ts CHANGED
@@ -970,7 +970,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
970
970
  variants: Array<{
971
971
  id: string;
972
972
  object: "post_variant";
973
- connection_id: string;
973
+ connection_id: string | null;
974
974
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
975
975
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
976
976
  body: string | null;
@@ -1030,7 +1030,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1030
1030
  variants: Array<{
1031
1031
  id: string;
1032
1032
  object: "post_variant";
1033
- connection_id: string;
1033
+ connection_id: string | null;
1034
1034
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1035
1035
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1036
1036
  body: string | null;
@@ -1089,7 +1089,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
1089
1089
  variants: Array<{
1090
1090
  id: string;
1091
1091
  object: "post_variant";
1092
- connection_id: string;
1092
+ connection_id: string | null;
1093
1093
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1094
1094
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1095
1095
  body: string | null;
@@ -1146,7 +1146,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
1146
1146
  variants: Array<{
1147
1147
  id: string;
1148
1148
  object: "post_variant";
1149
- connection_id: string;
1149
+ connection_id: string | null;
1150
1150
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1151
1151
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1152
1152
  body: string | null;
@@ -1198,7 +1198,7 @@ declare function useCreatePost(profileId: string): {
1198
1198
  variants: Array<{
1199
1199
  id: string;
1200
1200
  object: "post_variant";
1201
- connection_id: string;
1201
+ connection_id: string | null;
1202
1202
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1203
1203
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1204
1204
  body: string | null;
@@ -1247,7 +1247,7 @@ declare function useCreatePost(profileId: string): {
1247
1247
  variants: Array<{
1248
1248
  id: string;
1249
1249
  object: "post_variant";
1250
- connection_id: string;
1250
+ connection_id: string | null;
1251
1251
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1252
1252
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1253
1253
  body: string | null;
@@ -1300,7 +1300,7 @@ declare function useValidatePost(profileId: string): {
1300
1300
  validate: (input: Omit<ComposePostInput, "profileId">) => Promise<PostValidation>;
1301
1301
  publishable: boolean | undefined;
1302
1302
  issues: {
1303
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "connection_in_use" | "not_implemented" | "connection_discovery_failed" | "media_processing" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "content_kind_mismatch" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_media_processing" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_publish_failed" | "connection_platform_mismatch";
1303
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "media_processing" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "content_kind_mismatch" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_media_processing" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_publish_failed" | "connection_platform_mismatch" | "connection_removed";
1304
1304
  message: string;
1305
1305
  hint?: string;
1306
1306
  allowed?: Array<string>;
@@ -1333,7 +1333,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
1333
1333
  variants: Array<{
1334
1334
  id: string;
1335
1335
  object: "post_variant";
1336
- connection_id: string;
1336
+ connection_id: string | null;
1337
1337
  platform: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
1338
1338
  post_type: "text" | "single_image" | "multi_image" | "video" | "reel" | "carousel";
1339
1339
  body: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postrun/react",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "React provider, hooks, and headless components for the Postrun API",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://postrun.ai",
@@ -38,7 +38,7 @@
38
38
  "react-icons": "^5.6.0",
39
39
  "react-tweet": "^3.3.1",
40
40
  "twitter-text": "^3.1.0",
41
- "@postrun/js": "1.3.0"
41
+ "@postrun/js": "2.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@testing-library/dom": "^10.4.0",