post-for-me 0.1.0.pre.alpha.6 → 0.1.0.pre.alpha.8
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/post_for_me/models/bluesky_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/facebook_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/instagram_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/linkedin_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/pinterest_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/threads_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/tiktok_configuration.rb +32 -3
- data/lib/post_for_me/models/twitter_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/youtube_configuration_dto.rb +32 -3
- data/lib/post_for_me/version.rb +1 -1
- data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +63 -3
- data/rbi/post_for_me/models/facebook_configuration_dto.rbi +60 -3
- data/rbi/post_for_me/models/instagram_configuration_dto.rbi +62 -3
- data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +63 -3
- data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +62 -3
- data/rbi/post_for_me/models/threads_configuration_dto.rbi +60 -3
- data/rbi/post_for_me/models/tiktok_configuration.rbi +57 -3
- data/rbi/post_for_me/models/twitter_configuration_dto.rbi +63 -3
- data/rbi/post_for_me/models/youtube_configuration_dto.rbi +60 -3
- data/sig/post_for_me/models/bluesky_configuration_dto.rbs +37 -4
- data/sig/post_for_me/models/facebook_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/instagram_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/linkedin_configuration_dto.rbs +37 -4
- data/sig/post_for_me/models/pinterest_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/threads_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/tiktok_configuration.rbs +27 -4
- data/sig/post_for_me/models/twitter_configuration_dto.rbs +37 -4
- data/sig/post_for_me/models/youtube_configuration_dto.rbs +35 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5184e35560a1450d6ba4aa1d1ee45d81d515721f60373b20f48185c0138ef76
|
|
4
|
+
data.tar.gz: a94e68f06be96e9d740be9ab9bdbd2eae2ccc6c84f2d13c99979b8af1a3ad40c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d305f8e81294a82dfb1d92d87ba0091a1dab1cd4735a7bc31127a4cc48db458de2014bda479984a47aad2939537e1eb4c1b57f85ccfc38d84a98cfc20dcae112
|
|
7
|
+
data.tar.gz: ed001f25ccbdfb84a5c4672803353528d90f9566d132dce231c0e59bf7259ef2cabac5ee3653c1d8bab35cfe1d76fbbca5f121fa57afea0c8f04ef2ffa6c2808
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.8 (2025-09-06)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([b15e35d](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/b15e35d20fbac883c45ae3241b432b2fcbc8219e))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.7 (2025-08-25)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* add json schema comment for rubocop.yml ([ee87501](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/ee8750167bee18e813616a6c2ee65c62014dddd1))
|
|
18
|
+
|
|
3
19
|
## 0.1.0-alpha.6 (2025-08-23)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
17
17
|
<!-- x-release-please-start-version -->
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
|
-
gem "post-for-me", "~> 0.1.0.pre.alpha.
|
|
20
|
+
gem "post-for-me", "~> 0.1.0.pre.alpha.8"
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
<!-- x-release-please-end -->
|
|
@@ -12,13 +12,42 @@ module PostForMe
|
|
|
12
12
|
# @!attribute media
|
|
13
13
|
# Overrides the `media` from the post
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<
|
|
16
|
-
optional :media,
|
|
15
|
+
# @return [Array<PostForMe::Models::BlueskyConfigurationDto::Media>, nil]
|
|
16
|
+
optional :media,
|
|
17
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::BlueskyConfigurationDto::Media] },
|
|
18
|
+
nil?: true
|
|
17
19
|
|
|
18
20
|
# @!method initialize(caption: nil, media: nil)
|
|
19
21
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
20
22
|
#
|
|
21
|
-
# @param media [Array<
|
|
23
|
+
# @param media [Array<PostForMe::Models::BlueskyConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
24
|
+
|
|
25
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
26
|
+
# @!attribute url
|
|
27
|
+
# Public URL of the media
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :url, String
|
|
31
|
+
|
|
32
|
+
# @!attribute thumbnail_timestamp_ms
|
|
33
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
34
|
+
#
|
|
35
|
+
# @return [Object, nil]
|
|
36
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute thumbnail_url
|
|
39
|
+
# Public URL of the thumbnail for the media
|
|
40
|
+
#
|
|
41
|
+
# @return [Object, nil]
|
|
42
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
45
|
+
# @param url [String] Public URL of the media
|
|
46
|
+
#
|
|
47
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
48
|
+
#
|
|
49
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
50
|
+
end
|
|
22
51
|
end
|
|
23
52
|
end
|
|
24
53
|
end
|
|
@@ -12,8 +12,10 @@ module PostForMe
|
|
|
12
12
|
# @!attribute media
|
|
13
13
|
# Overrides the `media` from the post
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<
|
|
16
|
-
optional :media,
|
|
15
|
+
# @return [Array<PostForMe::Models::FacebookConfigurationDto::Media>, nil]
|
|
16
|
+
optional :media,
|
|
17
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::FacebookConfigurationDto::Media] },
|
|
18
|
+
nil?: true
|
|
17
19
|
|
|
18
20
|
# @!attribute placement
|
|
19
21
|
# Facebook post placement
|
|
@@ -24,10 +26,37 @@ module PostForMe
|
|
|
24
26
|
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
25
27
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
26
28
|
#
|
|
27
|
-
# @param media [Array<
|
|
29
|
+
# @param media [Array<PostForMe::Models::FacebookConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
28
30
|
#
|
|
29
31
|
# @param placement [Symbol, PostForMe::Models::FacebookConfigurationDto::Placement, nil] Facebook post placement
|
|
30
32
|
|
|
33
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute url
|
|
35
|
+
# Public URL of the media
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :url, String
|
|
39
|
+
|
|
40
|
+
# @!attribute thumbnail_timestamp_ms
|
|
41
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
42
|
+
#
|
|
43
|
+
# @return [Object, nil]
|
|
44
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute thumbnail_url
|
|
47
|
+
# Public URL of the thumbnail for the media
|
|
48
|
+
#
|
|
49
|
+
# @return [Object, nil]
|
|
50
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
53
|
+
# @param url [String] Public URL of the media
|
|
54
|
+
#
|
|
55
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
56
|
+
#
|
|
57
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
58
|
+
end
|
|
59
|
+
|
|
31
60
|
# Facebook post placement
|
|
32
61
|
#
|
|
33
62
|
# @see PostForMe::Models::FacebookConfigurationDto#placement
|
|
@@ -18,8 +18,10 @@ module PostForMe
|
|
|
18
18
|
# @!attribute media
|
|
19
19
|
# Overrides the `media` from the post
|
|
20
20
|
#
|
|
21
|
-
# @return [Array<
|
|
22
|
-
optional :media,
|
|
21
|
+
# @return [Array<PostForMe::Models::InstagramConfigurationDto::Media>, nil]
|
|
22
|
+
optional :media,
|
|
23
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::InstagramConfigurationDto::Media] },
|
|
24
|
+
nil?: true
|
|
23
25
|
|
|
24
26
|
# @!attribute placement
|
|
25
27
|
# Instagram post placement
|
|
@@ -32,10 +34,37 @@ module PostForMe
|
|
|
32
34
|
#
|
|
33
35
|
# @param collaborators [Array<String>, nil] Instagram usernames to be tagged as a collaborator
|
|
34
36
|
#
|
|
35
|
-
# @param media [Array<
|
|
37
|
+
# @param media [Array<PostForMe::Models::InstagramConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
36
38
|
#
|
|
37
39
|
# @param placement [Symbol, PostForMe::Models::InstagramConfigurationDto::Placement, nil] Instagram post placement
|
|
38
40
|
|
|
41
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
42
|
+
# @!attribute url
|
|
43
|
+
# Public URL of the media
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :url, String
|
|
47
|
+
|
|
48
|
+
# @!attribute thumbnail_timestamp_ms
|
|
49
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
50
|
+
#
|
|
51
|
+
# @return [Object, nil]
|
|
52
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute thumbnail_url
|
|
55
|
+
# Public URL of the thumbnail for the media
|
|
56
|
+
#
|
|
57
|
+
# @return [Object, nil]
|
|
58
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
59
|
+
|
|
60
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
61
|
+
# @param url [String] Public URL of the media
|
|
62
|
+
#
|
|
63
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
64
|
+
#
|
|
65
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
66
|
+
end
|
|
67
|
+
|
|
39
68
|
# Instagram post placement
|
|
40
69
|
#
|
|
41
70
|
# @see PostForMe::Models::InstagramConfigurationDto#placement
|
|
@@ -12,13 +12,42 @@ module PostForMe
|
|
|
12
12
|
# @!attribute media
|
|
13
13
|
# Overrides the `media` from the post
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<
|
|
16
|
-
optional :media,
|
|
15
|
+
# @return [Array<PostForMe::Models::LinkedinConfigurationDto::Media>, nil]
|
|
16
|
+
optional :media,
|
|
17
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::LinkedinConfigurationDto::Media] },
|
|
18
|
+
nil?: true
|
|
17
19
|
|
|
18
20
|
# @!method initialize(caption: nil, media: nil)
|
|
19
21
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
20
22
|
#
|
|
21
|
-
# @param media [Array<
|
|
23
|
+
# @param media [Array<PostForMe::Models::LinkedinConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
24
|
+
|
|
25
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
26
|
+
# @!attribute url
|
|
27
|
+
# Public URL of the media
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :url, String
|
|
31
|
+
|
|
32
|
+
# @!attribute thumbnail_timestamp_ms
|
|
33
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
34
|
+
#
|
|
35
|
+
# @return [Object, nil]
|
|
36
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute thumbnail_url
|
|
39
|
+
# Public URL of the thumbnail for the media
|
|
40
|
+
#
|
|
41
|
+
# @return [Object, nil]
|
|
42
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
45
|
+
# @param url [String] Public URL of the media
|
|
46
|
+
#
|
|
47
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
48
|
+
#
|
|
49
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
50
|
+
end
|
|
22
51
|
end
|
|
23
52
|
end
|
|
24
53
|
end
|
|
@@ -24,8 +24,10 @@ module PostForMe
|
|
|
24
24
|
# @!attribute media
|
|
25
25
|
# Overrides the `media` from the post
|
|
26
26
|
#
|
|
27
|
-
# @return [Array<
|
|
28
|
-
optional :media,
|
|
27
|
+
# @return [Array<PostForMe::Models::PinterestConfigurationDto::Media>, nil]
|
|
28
|
+
optional :media,
|
|
29
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::PinterestConfigurationDto::Media] },
|
|
30
|
+
nil?: true
|
|
29
31
|
|
|
30
32
|
# @!method initialize(board_ids: nil, caption: nil, link: nil, media: nil)
|
|
31
33
|
# @param board_ids [Array<String>, nil] Pinterest board IDs
|
|
@@ -34,7 +36,34 @@ module PostForMe
|
|
|
34
36
|
#
|
|
35
37
|
# @param link [String, nil] Pinterest post link
|
|
36
38
|
#
|
|
37
|
-
# @param media [Array<
|
|
39
|
+
# @param media [Array<PostForMe::Models::PinterestConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
40
|
+
|
|
41
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
42
|
+
# @!attribute url
|
|
43
|
+
# Public URL of the media
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :url, String
|
|
47
|
+
|
|
48
|
+
# @!attribute thumbnail_timestamp_ms
|
|
49
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
50
|
+
#
|
|
51
|
+
# @return [Object, nil]
|
|
52
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute thumbnail_url
|
|
55
|
+
# Public URL of the thumbnail for the media
|
|
56
|
+
#
|
|
57
|
+
# @return [Object, nil]
|
|
58
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
59
|
+
|
|
60
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
61
|
+
# @param url [String] Public URL of the media
|
|
62
|
+
#
|
|
63
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
64
|
+
#
|
|
65
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
66
|
+
end
|
|
38
67
|
end
|
|
39
68
|
end
|
|
40
69
|
end
|
|
@@ -12,8 +12,10 @@ module PostForMe
|
|
|
12
12
|
# @!attribute media
|
|
13
13
|
# Overrides the `media` from the post
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<
|
|
16
|
-
optional :media,
|
|
15
|
+
# @return [Array<PostForMe::Models::ThreadsConfigurationDto::Media>, nil]
|
|
16
|
+
optional :media,
|
|
17
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::ThreadsConfigurationDto::Media] },
|
|
18
|
+
nil?: true
|
|
17
19
|
|
|
18
20
|
# @!attribute placement
|
|
19
21
|
# Threads post placement
|
|
@@ -24,10 +26,37 @@ module PostForMe
|
|
|
24
26
|
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
25
27
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
26
28
|
#
|
|
27
|
-
# @param media [Array<
|
|
29
|
+
# @param media [Array<PostForMe::Models::ThreadsConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
28
30
|
#
|
|
29
31
|
# @param placement [Symbol, PostForMe::Models::ThreadsConfigurationDto::Placement, nil] Threads post placement
|
|
30
32
|
|
|
33
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute url
|
|
35
|
+
# Public URL of the media
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :url, String
|
|
39
|
+
|
|
40
|
+
# @!attribute thumbnail_timestamp_ms
|
|
41
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
42
|
+
#
|
|
43
|
+
# @return [Object, nil]
|
|
44
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute thumbnail_url
|
|
47
|
+
# Public URL of the thumbnail for the media
|
|
48
|
+
#
|
|
49
|
+
# @return [Object, nil]
|
|
50
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
53
|
+
# @param url [String] Public URL of the media
|
|
54
|
+
#
|
|
55
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
56
|
+
#
|
|
57
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
58
|
+
end
|
|
59
|
+
|
|
31
60
|
# Threads post placement
|
|
32
61
|
#
|
|
33
62
|
# @see PostForMe::Models::ThreadsConfigurationDto#placement
|
|
@@ -55,8 +55,10 @@ module PostForMe
|
|
|
55
55
|
# @!attribute media
|
|
56
56
|
# Overrides the `media` from the post
|
|
57
57
|
#
|
|
58
|
-
# @return [Array<
|
|
59
|
-
optional :media,
|
|
58
|
+
# @return [Array<PostForMe::Models::TiktokConfiguration::Media>, nil]
|
|
59
|
+
optional :media,
|
|
60
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::TiktokConfiguration::Media] },
|
|
61
|
+
nil?: true
|
|
60
62
|
|
|
61
63
|
# @!attribute privacy_status
|
|
62
64
|
# Sets the privacy status for TikTok (private, public)
|
|
@@ -90,11 +92,38 @@ module PostForMe
|
|
|
90
92
|
#
|
|
91
93
|
# @param is_draft [Boolean, nil] Will create a draft upload to TikTok, posting will need to be completed from wit
|
|
92
94
|
#
|
|
93
|
-
# @param media [Array<
|
|
95
|
+
# @param media [Array<PostForMe::Models::TiktokConfiguration::Media>, nil] Overrides the `media` from the post
|
|
94
96
|
#
|
|
95
97
|
# @param privacy_status [String, nil] Sets the privacy status for TikTok (private, public)
|
|
96
98
|
#
|
|
97
99
|
# @param title [String, nil] Overrides the `title` from the post
|
|
100
|
+
|
|
101
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
102
|
+
# @!attribute url
|
|
103
|
+
# Public URL of the media
|
|
104
|
+
#
|
|
105
|
+
# @return [String]
|
|
106
|
+
required :url, String
|
|
107
|
+
|
|
108
|
+
# @!attribute thumbnail_timestamp_ms
|
|
109
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
110
|
+
#
|
|
111
|
+
# @return [Object, nil]
|
|
112
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!attribute thumbnail_url
|
|
115
|
+
# Public URL of the thumbnail for the media
|
|
116
|
+
#
|
|
117
|
+
# @return [Object, nil]
|
|
118
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
119
|
+
|
|
120
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
121
|
+
# @param url [String] Public URL of the media
|
|
122
|
+
#
|
|
123
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
124
|
+
#
|
|
125
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
126
|
+
end
|
|
98
127
|
end
|
|
99
128
|
end
|
|
100
129
|
end
|
|
@@ -12,13 +12,42 @@ module PostForMe
|
|
|
12
12
|
# @!attribute media
|
|
13
13
|
# Overrides the `media` from the post
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<
|
|
16
|
-
optional :media,
|
|
15
|
+
# @return [Array<PostForMe::Models::TwitterConfigurationDto::Media>, nil]
|
|
16
|
+
optional :media,
|
|
17
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::TwitterConfigurationDto::Media] },
|
|
18
|
+
nil?: true
|
|
17
19
|
|
|
18
20
|
# @!method initialize(caption: nil, media: nil)
|
|
19
21
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
20
22
|
#
|
|
21
|
-
# @param media [Array<
|
|
23
|
+
# @param media [Array<PostForMe::Models::TwitterConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
24
|
+
|
|
25
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
26
|
+
# @!attribute url
|
|
27
|
+
# Public URL of the media
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :url, String
|
|
31
|
+
|
|
32
|
+
# @!attribute thumbnail_timestamp_ms
|
|
33
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
34
|
+
#
|
|
35
|
+
# @return [Object, nil]
|
|
36
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute thumbnail_url
|
|
39
|
+
# Public URL of the thumbnail for the media
|
|
40
|
+
#
|
|
41
|
+
# @return [Object, nil]
|
|
42
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
45
|
+
# @param url [String] Public URL of the media
|
|
46
|
+
#
|
|
47
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
48
|
+
#
|
|
49
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
50
|
+
end
|
|
22
51
|
end
|
|
23
52
|
end
|
|
24
53
|
end
|
|
@@ -12,8 +12,10 @@ module PostForMe
|
|
|
12
12
|
# @!attribute media
|
|
13
13
|
# Overrides the `media` from the post
|
|
14
14
|
#
|
|
15
|
-
# @return [Array<
|
|
16
|
-
optional :media,
|
|
15
|
+
# @return [Array<PostForMe::Models::YoutubeConfigurationDto::Media>, nil]
|
|
16
|
+
optional :media,
|
|
17
|
+
-> { PostForMe::Internal::Type::ArrayOf[PostForMe::YoutubeConfigurationDto::Media] },
|
|
18
|
+
nil?: true
|
|
17
19
|
|
|
18
20
|
# @!attribute title
|
|
19
21
|
# Overrides the `title` from the post
|
|
@@ -24,9 +26,36 @@ module PostForMe
|
|
|
24
26
|
# @!method initialize(caption: nil, media: nil, title: nil)
|
|
25
27
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
26
28
|
#
|
|
27
|
-
# @param media [Array<
|
|
29
|
+
# @param media [Array<PostForMe::Models::YoutubeConfigurationDto::Media>, nil] Overrides the `media` from the post
|
|
28
30
|
#
|
|
29
31
|
# @param title [String, nil] Overrides the `title` from the post
|
|
32
|
+
|
|
33
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute url
|
|
35
|
+
# Public URL of the media
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :url, String
|
|
39
|
+
|
|
40
|
+
# @!attribute thumbnail_timestamp_ms
|
|
41
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
42
|
+
#
|
|
43
|
+
# @return [Object, nil]
|
|
44
|
+
optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute thumbnail_url
|
|
47
|
+
# Public URL of the thumbnail for the media
|
|
48
|
+
#
|
|
49
|
+
# @return [Object, nil]
|
|
50
|
+
optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
|
|
53
|
+
# @param url [String] Public URL of the media
|
|
54
|
+
#
|
|
55
|
+
# @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
56
|
+
#
|
|
57
|
+
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
58
|
+
end
|
|
30
59
|
end
|
|
31
60
|
end
|
|
32
61
|
end
|
data/lib/post_for_me/version.rb
CHANGED
|
@@ -16,13 +16,18 @@ module PostForMe
|
|
|
16
16
|
attr_accessor :caption
|
|
17
17
|
|
|
18
18
|
# Overrides the `media` from the post
|
|
19
|
-
sig
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(T::Array[PostForMe::BlueskyConfigurationDto::Media]))
|
|
21
|
+
end
|
|
20
22
|
attr_accessor :media
|
|
21
23
|
|
|
22
24
|
sig do
|
|
23
25
|
params(
|
|
24
26
|
caption: T.nilable(T.anything),
|
|
25
|
-
media:
|
|
27
|
+
media:
|
|
28
|
+
T.nilable(
|
|
29
|
+
T::Array[PostForMe::BlueskyConfigurationDto::Media::OrHash]
|
|
30
|
+
)
|
|
26
31
|
).returns(T.attached_class)
|
|
27
32
|
end
|
|
28
33
|
def self.new(
|
|
@@ -35,11 +40,66 @@ module PostForMe
|
|
|
35
40
|
|
|
36
41
|
sig do
|
|
37
42
|
override.returns(
|
|
38
|
-
{
|
|
43
|
+
{
|
|
44
|
+
caption: T.nilable(T.anything),
|
|
45
|
+
media:
|
|
46
|
+
T.nilable(T::Array[PostForMe::BlueskyConfigurationDto::Media])
|
|
47
|
+
}
|
|
39
48
|
)
|
|
40
49
|
end
|
|
41
50
|
def to_hash
|
|
42
51
|
end
|
|
52
|
+
|
|
53
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
54
|
+
OrHash =
|
|
55
|
+
T.type_alias do
|
|
56
|
+
T.any(
|
|
57
|
+
PostForMe::BlueskyConfigurationDto::Media,
|
|
58
|
+
PostForMe::Internal::AnyHash
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Public URL of the media
|
|
63
|
+
sig { returns(String) }
|
|
64
|
+
attr_accessor :url
|
|
65
|
+
|
|
66
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
67
|
+
sig { returns(T.nilable(T.anything)) }
|
|
68
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
69
|
+
|
|
70
|
+
# Public URL of the thumbnail for the media
|
|
71
|
+
sig { returns(T.nilable(T.anything)) }
|
|
72
|
+
attr_accessor :thumbnail_url
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
params(
|
|
76
|
+
url: String,
|
|
77
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
78
|
+
thumbnail_url: T.nilable(T.anything)
|
|
79
|
+
).returns(T.attached_class)
|
|
80
|
+
end
|
|
81
|
+
def self.new(
|
|
82
|
+
# Public URL of the media
|
|
83
|
+
url:,
|
|
84
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
85
|
+
thumbnail_timestamp_ms: nil,
|
|
86
|
+
# Public URL of the thumbnail for the media
|
|
87
|
+
thumbnail_url: nil
|
|
88
|
+
)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
sig do
|
|
92
|
+
override.returns(
|
|
93
|
+
{
|
|
94
|
+
url: String,
|
|
95
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
96
|
+
thumbnail_url: T.nilable(T.anything)
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def to_hash
|
|
101
|
+
end
|
|
102
|
+
end
|
|
43
103
|
end
|
|
44
104
|
end
|
|
45
105
|
end
|
|
@@ -16,7 +16,9 @@ module PostForMe
|
|
|
16
16
|
attr_accessor :caption
|
|
17
17
|
|
|
18
18
|
# Overrides the `media` from the post
|
|
19
|
-
sig
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(T::Array[PostForMe::FacebookConfigurationDto::Media]))
|
|
21
|
+
end
|
|
20
22
|
attr_accessor :media
|
|
21
23
|
|
|
22
24
|
# Facebook post placement
|
|
@@ -30,7 +32,10 @@ module PostForMe
|
|
|
30
32
|
sig do
|
|
31
33
|
params(
|
|
32
34
|
caption: T.nilable(T.anything),
|
|
33
|
-
media:
|
|
35
|
+
media:
|
|
36
|
+
T.nilable(
|
|
37
|
+
T::Array[PostForMe::FacebookConfigurationDto::Media::OrHash]
|
|
38
|
+
),
|
|
34
39
|
placement:
|
|
35
40
|
T.nilable(PostForMe::FacebookConfigurationDto::Placement::OrSymbol)
|
|
36
41
|
).returns(T.attached_class)
|
|
@@ -49,7 +54,8 @@ module PostForMe
|
|
|
49
54
|
override.returns(
|
|
50
55
|
{
|
|
51
56
|
caption: T.nilable(T.anything),
|
|
52
|
-
media:
|
|
57
|
+
media:
|
|
58
|
+
T.nilable(T::Array[PostForMe::FacebookConfigurationDto::Media]),
|
|
53
59
|
placement:
|
|
54
60
|
T.nilable(
|
|
55
61
|
PostForMe::FacebookConfigurationDto::Placement::OrSymbol
|
|
@@ -60,6 +66,57 @@ module PostForMe
|
|
|
60
66
|
def to_hash
|
|
61
67
|
end
|
|
62
68
|
|
|
69
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
70
|
+
OrHash =
|
|
71
|
+
T.type_alias do
|
|
72
|
+
T.any(
|
|
73
|
+
PostForMe::FacebookConfigurationDto::Media,
|
|
74
|
+
PostForMe::Internal::AnyHash
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Public URL of the media
|
|
79
|
+
sig { returns(String) }
|
|
80
|
+
attr_accessor :url
|
|
81
|
+
|
|
82
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
83
|
+
sig { returns(T.nilable(T.anything)) }
|
|
84
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
85
|
+
|
|
86
|
+
# Public URL of the thumbnail for the media
|
|
87
|
+
sig { returns(T.nilable(T.anything)) }
|
|
88
|
+
attr_accessor :thumbnail_url
|
|
89
|
+
|
|
90
|
+
sig do
|
|
91
|
+
params(
|
|
92
|
+
url: String,
|
|
93
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
94
|
+
thumbnail_url: T.nilable(T.anything)
|
|
95
|
+
).returns(T.attached_class)
|
|
96
|
+
end
|
|
97
|
+
def self.new(
|
|
98
|
+
# Public URL of the media
|
|
99
|
+
url:,
|
|
100
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
101
|
+
thumbnail_timestamp_ms: nil,
|
|
102
|
+
# Public URL of the thumbnail for the media
|
|
103
|
+
thumbnail_url: nil
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
sig do
|
|
108
|
+
override.returns(
|
|
109
|
+
{
|
|
110
|
+
url: String,
|
|
111
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
112
|
+
thumbnail_url: T.nilable(T.anything)
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
def to_hash
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
63
120
|
# Facebook post placement
|
|
64
121
|
module Placement
|
|
65
122
|
extend PostForMe::Internal::Type::Enum
|