post-for-me 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.7
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 +19 -0
- data/README.md +11 -9
- data/lib/post_for_me/models/bluesky_configuration_dto.rb +24 -0
- data/lib/post_for_me/models/create_social_post.rb +3 -372
- data/lib/post_for_me/models/facebook_configuration_dto.rb +46 -0
- data/lib/post_for_me/models/instagram_configuration_dto.rb +54 -0
- data/lib/post_for_me/models/linkedin_configuration_dto.rb +24 -0
- data/lib/post_for_me/models/pinterest_configuration_dto.rb +40 -0
- data/lib/post_for_me/models/platform_configurations_dto.rb +88 -0
- data/lib/post_for_me/models/social_account.rb +1 -1
- data/lib/post_for_me/models/social_account_create_auth_url_params.rb +9 -1
- data/lib/post_for_me/models/social_account_create_params.rb +105 -0
- data/lib/post_for_me/models/social_post.rb +197 -12
- data/lib/post_for_me/models/threads_configuration_dto.rb +45 -0
- data/lib/post_for_me/models/twitter_configuration_dto.rb +24 -0
- data/lib/post_for_me/models/youtube_configuration_dto.rb +32 -0
- data/lib/post_for_me/models.rb +20 -0
- data/lib/post_for_me/resources/social_accounts.rb +42 -1
- data/lib/post_for_me/resources/social_posts.rb +2 -2
- data/lib/post_for_me/version.rb +1 -1
- data/lib/post_for_me.rb +10 -0
- data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +45 -0
- data/rbi/post_for_me/models/create_social_post.rbi +4 -863
- data/rbi/post_for_me/models/facebook_configuration_dto.rbi +101 -0
- data/rbi/post_for_me/models/instagram_configuration_dto.rbi +109 -0
- data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +45 -0
- data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +64 -0
- data/rbi/post_for_me/models/platform_configurations_dto.rbi +178 -0
- data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +11 -0
- data/rbi/post_for_me/models/social_account_create_params.rbi +185 -0
- data/rbi/post_for_me/models/social_post.rbi +328 -13
- data/rbi/post_for_me/models/threads_configuration_dto.rbi +94 -0
- data/rbi/post_for_me/models/twitter_configuration_dto.rbi +45 -0
- data/rbi/post_for_me/models/youtube_configuration_dto.rbi +56 -0
- data/rbi/post_for_me/models.rbi +20 -0
- data/rbi/post_for_me/resources/social_accounts.rbi +42 -0
- data/rbi/post_for_me/resources/social_posts.rbi +2 -6
- data/sig/post_for_me/models/bluesky_configuration_dto.rbs +15 -0
- data/sig/post_for_me/models/create_social_post.rbs +4 -278
- data/sig/post_for_me/models/facebook_configuration_dto.rbs +42 -0
- data/sig/post_for_me/models/instagram_configuration_dto.rbs +47 -0
- data/sig/post_for_me/models/linkedin_configuration_dto.rbs +15 -0
- data/sig/post_for_me/models/pinterest_configuration_dto.rbs +35 -0
- data/sig/post_for_me/models/platform_configurations_dto.rbs +65 -0
- data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +7 -0
- data/sig/post_for_me/models/social_account_create_params.rbs +97 -0
- data/sig/post_for_me/models/social_post.rbs +155 -16
- data/sig/post_for_me/models/threads_configuration_dto.rbs +41 -0
- data/sig/post_for_me/models/twitter_configuration_dto.rbs +15 -0
- data/sig/post_for_me/models/youtube_configuration_dto.rbs +22 -0
- data/sig/post_for_me/models.rbs +20 -0
- data/sig/post_for_me/resources/social_accounts.rbs +14 -0
- data/sig/post_for_me/resources/social_posts.rbs +2 -2
- metadata +32 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 951a66c1e45fb72722e5f71297ebd8dd34ff622e4062e4f0adecd585f870e758
|
|
4
|
+
data.tar.gz: ee4387745b56c7b48a0edd473264a8ab5b84088f538109daecdba4c04392f129
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a318a9673892837459ed63ee5d5ff5049fd0ffe26018bc2a222cc48bca57830b3043180202072be1d5337e9aa7efa2863d2d621ab3f133f51772da0e16b75f3e
|
|
7
|
+
data.tar.gz: 7db485907c9350625649a64f9ce73c35bfb0f114b2613171972d01f1d14ba51e40097c357b01cc0e93d7590e2c2c43c36387f590182ebc188265906c6a6ffd19
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.7 (2025-08-25)
|
|
4
|
+
|
|
5
|
+
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)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* add json schema comment for rubocop.yml ([ee87501](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/ee8750167bee18e813616a6c2ee65c62014dddd1))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.6 (2025-08-23)
|
|
12
|
+
|
|
13
|
+
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)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([0e3af6b](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/0e3af6bc9a6a2d504d46e258b52c4abdfd59e861))
|
|
18
|
+
* **api:** api update ([ad254cb](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/ad254cb4166a2cb3c3e5ef3f0bbec7a4c472e161))
|
|
19
|
+
* **api:** manual updates ([8f82af3](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/8f82af3f45bfa36142ed3ccf997befff54879787))
|
|
20
|
+
* **api:** manual updates ([f6f6902](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/f6f6902b6528c4a5ee9ac2f5646372ee9c8b792e))
|
|
21
|
+
|
|
3
22
|
## 0.1.0-alpha.5 (2025-08-22)
|
|
4
23
|
|
|
5
24
|
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
|
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.7"
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
<!-- x-release-please-end -->
|
|
@@ -229,23 +229,25 @@ post_for_me.social_posts.create(**params)
|
|
|
229
229
|
Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:
|
|
230
230
|
|
|
231
231
|
```ruby
|
|
232
|
-
# :
|
|
233
|
-
puts(PostForMe::
|
|
232
|
+
# :facebook
|
|
233
|
+
puts(PostForMe::SocialAccountCreateParams::Platform::FACEBOOK)
|
|
234
234
|
|
|
235
|
-
# Revealed type: `T.all(PostForMe::
|
|
236
|
-
T.reveal_type(PostForMe::
|
|
235
|
+
# Revealed type: `T.all(PostForMe::SocialAccountCreateParams::Platform, Symbol)`
|
|
236
|
+
T.reveal_type(PostForMe::SocialAccountCreateParams::Platform::FACEBOOK)
|
|
237
237
|
```
|
|
238
238
|
|
|
239
239
|
Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:
|
|
240
240
|
|
|
241
241
|
```ruby
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
# Using the enum constants preserves the tagged type information:
|
|
243
|
+
post_for_me.social_accounts.create(
|
|
244
|
+
platform: PostForMe::SocialAccountCreateParams::Platform::FACEBOOK,
|
|
244
245
|
# …
|
|
245
246
|
)
|
|
246
247
|
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
# Literal values are also permissible:
|
|
249
|
+
post_for_me.social_accounts.create(
|
|
250
|
+
platform: :facebook,
|
|
249
251
|
# …
|
|
250
252
|
)
|
|
251
253
|
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module PostForMe
|
|
4
|
+
module Models
|
|
5
|
+
class BlueskyConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute caption
|
|
7
|
+
# Overrides the `caption` from the post
|
|
8
|
+
#
|
|
9
|
+
# @return [Object, nil]
|
|
10
|
+
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute media
|
|
13
|
+
# Overrides the `media` from the post
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<String>, nil]
|
|
16
|
+
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
17
|
+
|
|
18
|
+
# @!method initialize(caption: nil, media: nil)
|
|
19
|
+
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
20
|
+
#
|
|
21
|
+
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -48,12 +48,8 @@ module PostForMe
|
|
|
48
48
|
# @!attribute platform_configurations
|
|
49
49
|
# Platform-specific configurations for the post
|
|
50
50
|
#
|
|
51
|
-
# @return [PostForMe::Models::
|
|
52
|
-
optional :platform_configurations,
|
|
53
|
-
-> {
|
|
54
|
-
PostForMe::CreateSocialPost::PlatformConfigurations
|
|
55
|
-
},
|
|
56
|
-
nil?: true
|
|
51
|
+
# @return [PostForMe::Models::PlatformConfigurationsDto, nil]
|
|
52
|
+
optional :platform_configurations, -> { PostForMe::PlatformConfigurationsDto }, nil?: true
|
|
57
53
|
|
|
58
54
|
# @!attribute scheduled_at
|
|
59
55
|
# Scheduled date and time for the post, setting to null or undefined will post
|
|
@@ -78,7 +74,7 @@ module PostForMe
|
|
|
78
74
|
#
|
|
79
75
|
# @param media [Array<PostForMe::Models::CreateSocialPost::Media>, nil] Array of media URLs associated with the post
|
|
80
76
|
#
|
|
81
|
-
# @param platform_configurations [PostForMe::Models::
|
|
77
|
+
# @param platform_configurations [PostForMe::Models::PlatformConfigurationsDto, nil] Platform-specific configurations for the post
|
|
82
78
|
#
|
|
83
79
|
# @param scheduled_at [Time, nil] Scheduled date and time for the post, setting to null or undefined will post ins
|
|
84
80
|
|
|
@@ -266,371 +262,6 @@ module PostForMe
|
|
|
266
262
|
#
|
|
267
263
|
# @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
|
|
268
264
|
end
|
|
269
|
-
|
|
270
|
-
# @see PostForMe::Models::CreateSocialPost#platform_configurations
|
|
271
|
-
class PlatformConfigurations < PostForMe::Internal::Type::BaseModel
|
|
272
|
-
# @!attribute bluesky
|
|
273
|
-
# Bluesky configuration
|
|
274
|
-
#
|
|
275
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Bluesky, nil]
|
|
276
|
-
optional :bluesky, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Bluesky }, nil?: true
|
|
277
|
-
|
|
278
|
-
# @!attribute facebook
|
|
279
|
-
# Facebook configuration
|
|
280
|
-
#
|
|
281
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook, nil]
|
|
282
|
-
optional :facebook, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Facebook }, nil?: true
|
|
283
|
-
|
|
284
|
-
# @!attribute instagram
|
|
285
|
-
# Instagram configuration
|
|
286
|
-
#
|
|
287
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram, nil]
|
|
288
|
-
optional :instagram, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Instagram }, nil?: true
|
|
289
|
-
|
|
290
|
-
# @!attribute linkedin
|
|
291
|
-
# LinkedIn configuration
|
|
292
|
-
#
|
|
293
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Linkedin, nil]
|
|
294
|
-
optional :linkedin, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Linkedin }, nil?: true
|
|
295
|
-
|
|
296
|
-
# @!attribute pinterest
|
|
297
|
-
# Pinterest configuration
|
|
298
|
-
#
|
|
299
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Pinterest, nil]
|
|
300
|
-
optional :pinterest, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Pinterest }, nil?: true
|
|
301
|
-
|
|
302
|
-
# @!attribute threads
|
|
303
|
-
# Threads configuration
|
|
304
|
-
#
|
|
305
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads, nil]
|
|
306
|
-
optional :threads, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Threads }, nil?: true
|
|
307
|
-
|
|
308
|
-
# @!attribute tiktok
|
|
309
|
-
# TikTok configuration
|
|
310
|
-
#
|
|
311
|
-
# @return [PostForMe::Models::TiktokConfiguration, nil]
|
|
312
|
-
optional :tiktok, -> { PostForMe::TiktokConfiguration }, nil?: true
|
|
313
|
-
|
|
314
|
-
# @!attribute tiktok_business
|
|
315
|
-
# TikTok configuration
|
|
316
|
-
#
|
|
317
|
-
# @return [PostForMe::Models::TiktokConfiguration, nil]
|
|
318
|
-
optional :tiktok_business, -> { PostForMe::TiktokConfiguration }, nil?: true
|
|
319
|
-
|
|
320
|
-
# @!attribute x
|
|
321
|
-
# Twitter configuration
|
|
322
|
-
#
|
|
323
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::X, nil]
|
|
324
|
-
optional :x, -> { PostForMe::CreateSocialPost::PlatformConfigurations::X }, nil?: true
|
|
325
|
-
|
|
326
|
-
# @!attribute youtube
|
|
327
|
-
# YouTube configuration
|
|
328
|
-
#
|
|
329
|
-
# @return [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Youtube, nil]
|
|
330
|
-
optional :youtube, -> { PostForMe::CreateSocialPost::PlatformConfigurations::Youtube }, nil?: true
|
|
331
|
-
|
|
332
|
-
# @!method initialize(bluesky: nil, facebook: nil, instagram: nil, linkedin: nil, pinterest: nil, threads: nil, tiktok: nil, tiktok_business: nil, x: nil, youtube: nil)
|
|
333
|
-
# Platform-specific configurations for the post
|
|
334
|
-
#
|
|
335
|
-
# @param bluesky [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Bluesky, nil] Bluesky configuration
|
|
336
|
-
#
|
|
337
|
-
# @param facebook [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook, nil] Facebook configuration
|
|
338
|
-
#
|
|
339
|
-
# @param instagram [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram, nil] Instagram configuration
|
|
340
|
-
#
|
|
341
|
-
# @param linkedin [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Linkedin, nil] LinkedIn configuration
|
|
342
|
-
#
|
|
343
|
-
# @param pinterest [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Pinterest, nil] Pinterest configuration
|
|
344
|
-
#
|
|
345
|
-
# @param threads [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads, nil] Threads configuration
|
|
346
|
-
#
|
|
347
|
-
# @param tiktok [PostForMe::Models::TiktokConfiguration, nil] TikTok configuration
|
|
348
|
-
#
|
|
349
|
-
# @param tiktok_business [PostForMe::Models::TiktokConfiguration, nil] TikTok configuration
|
|
350
|
-
#
|
|
351
|
-
# @param x [PostForMe::Models::CreateSocialPost::PlatformConfigurations::X, nil] Twitter configuration
|
|
352
|
-
#
|
|
353
|
-
# @param youtube [PostForMe::Models::CreateSocialPost::PlatformConfigurations::Youtube, nil] YouTube configuration
|
|
354
|
-
|
|
355
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#bluesky
|
|
356
|
-
class Bluesky < PostForMe::Internal::Type::BaseModel
|
|
357
|
-
# @!attribute caption
|
|
358
|
-
# Overrides the `caption` from the post
|
|
359
|
-
#
|
|
360
|
-
# @return [Object, nil]
|
|
361
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
362
|
-
|
|
363
|
-
# @!attribute media
|
|
364
|
-
# Overrides the `media` from the post
|
|
365
|
-
#
|
|
366
|
-
# @return [Array<String>, nil]
|
|
367
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
368
|
-
|
|
369
|
-
# @!method initialize(caption: nil, media: nil)
|
|
370
|
-
# Bluesky configuration
|
|
371
|
-
#
|
|
372
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
373
|
-
#
|
|
374
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#facebook
|
|
378
|
-
class Facebook < PostForMe::Internal::Type::BaseModel
|
|
379
|
-
# @!attribute caption
|
|
380
|
-
# Overrides the `caption` from the post
|
|
381
|
-
#
|
|
382
|
-
# @return [Object, nil]
|
|
383
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
384
|
-
|
|
385
|
-
# @!attribute media
|
|
386
|
-
# Overrides the `media` from the post
|
|
387
|
-
#
|
|
388
|
-
# @return [Array<String>, nil]
|
|
389
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
390
|
-
|
|
391
|
-
# @!attribute placement
|
|
392
|
-
# Facebook post placement
|
|
393
|
-
#
|
|
394
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::Placement, nil]
|
|
395
|
-
optional :placement,
|
|
396
|
-
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement },
|
|
397
|
-
nil?: true
|
|
398
|
-
|
|
399
|
-
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
400
|
-
# Facebook configuration
|
|
401
|
-
#
|
|
402
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
403
|
-
#
|
|
404
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
405
|
-
#
|
|
406
|
-
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::Placement, nil] Facebook post placement
|
|
407
|
-
|
|
408
|
-
# Facebook post placement
|
|
409
|
-
#
|
|
410
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook#placement
|
|
411
|
-
module Placement
|
|
412
|
-
extend PostForMe::Internal::Type::Enum
|
|
413
|
-
|
|
414
|
-
REELS = :reels
|
|
415
|
-
STORIES = :stories
|
|
416
|
-
TIMELINE = :timeline
|
|
417
|
-
|
|
418
|
-
# @!method self.values
|
|
419
|
-
# @return [Array<Symbol>]
|
|
420
|
-
end
|
|
421
|
-
end
|
|
422
|
-
|
|
423
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#instagram
|
|
424
|
-
class Instagram < PostForMe::Internal::Type::BaseModel
|
|
425
|
-
# @!attribute caption
|
|
426
|
-
# Overrides the `caption` from the post
|
|
427
|
-
#
|
|
428
|
-
# @return [Object, nil]
|
|
429
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
430
|
-
|
|
431
|
-
# @!attribute collaborators
|
|
432
|
-
# Instagram usernames to be tagged as a collaborator
|
|
433
|
-
#
|
|
434
|
-
# @return [Array<String>, nil]
|
|
435
|
-
optional :collaborators, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
436
|
-
|
|
437
|
-
# @!attribute media
|
|
438
|
-
# Overrides the `media` from the post
|
|
439
|
-
#
|
|
440
|
-
# @return [Array<String>, nil]
|
|
441
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
442
|
-
|
|
443
|
-
# @!attribute placement
|
|
444
|
-
# Instagram post placement
|
|
445
|
-
#
|
|
446
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::Placement, nil]
|
|
447
|
-
optional :placement,
|
|
448
|
-
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement },
|
|
449
|
-
nil?: true
|
|
450
|
-
|
|
451
|
-
# @!method initialize(caption: nil, collaborators: nil, media: nil, placement: nil)
|
|
452
|
-
# Instagram configuration
|
|
453
|
-
#
|
|
454
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
455
|
-
#
|
|
456
|
-
# @param collaborators [Array<String>, nil] Instagram usernames to be tagged as a collaborator
|
|
457
|
-
#
|
|
458
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
459
|
-
#
|
|
460
|
-
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::Placement, nil] Instagram post placement
|
|
461
|
-
|
|
462
|
-
# Instagram post placement
|
|
463
|
-
#
|
|
464
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram#placement
|
|
465
|
-
module Placement
|
|
466
|
-
extend PostForMe::Internal::Type::Enum
|
|
467
|
-
|
|
468
|
-
REELS = :reels
|
|
469
|
-
STORIES = :stories
|
|
470
|
-
TIMELINE = :timeline
|
|
471
|
-
|
|
472
|
-
# @!method self.values
|
|
473
|
-
# @return [Array<Symbol>]
|
|
474
|
-
end
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#linkedin
|
|
478
|
-
class Linkedin < PostForMe::Internal::Type::BaseModel
|
|
479
|
-
# @!attribute caption
|
|
480
|
-
# Overrides the `caption` from the post
|
|
481
|
-
#
|
|
482
|
-
# @return [Object, nil]
|
|
483
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
484
|
-
|
|
485
|
-
# @!attribute media
|
|
486
|
-
# Overrides the `media` from the post
|
|
487
|
-
#
|
|
488
|
-
# @return [Array<String>, nil]
|
|
489
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
490
|
-
|
|
491
|
-
# @!method initialize(caption: nil, media: nil)
|
|
492
|
-
# LinkedIn configuration
|
|
493
|
-
#
|
|
494
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
495
|
-
#
|
|
496
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
497
|
-
end
|
|
498
|
-
|
|
499
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#pinterest
|
|
500
|
-
class Pinterest < PostForMe::Internal::Type::BaseModel
|
|
501
|
-
# @!attribute board_ids
|
|
502
|
-
# Pinterest board IDs
|
|
503
|
-
#
|
|
504
|
-
# @return [Array<String>, nil]
|
|
505
|
-
optional :board_ids, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
506
|
-
|
|
507
|
-
# @!attribute caption
|
|
508
|
-
# Overrides the `caption` from the post
|
|
509
|
-
#
|
|
510
|
-
# @return [Object, nil]
|
|
511
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
512
|
-
|
|
513
|
-
# @!attribute link
|
|
514
|
-
# Pinterest post link
|
|
515
|
-
#
|
|
516
|
-
# @return [String, nil]
|
|
517
|
-
optional :link, String, nil?: true
|
|
518
|
-
|
|
519
|
-
# @!attribute media
|
|
520
|
-
# Overrides the `media` from the post
|
|
521
|
-
#
|
|
522
|
-
# @return [Array<String>, nil]
|
|
523
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
524
|
-
|
|
525
|
-
# @!method initialize(board_ids: nil, caption: nil, link: nil, media: nil)
|
|
526
|
-
# Pinterest configuration
|
|
527
|
-
#
|
|
528
|
-
# @param board_ids [Array<String>, nil] Pinterest board IDs
|
|
529
|
-
#
|
|
530
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
531
|
-
#
|
|
532
|
-
# @param link [String, nil] Pinterest post link
|
|
533
|
-
#
|
|
534
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
535
|
-
end
|
|
536
|
-
|
|
537
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#threads
|
|
538
|
-
class Threads < PostForMe::Internal::Type::BaseModel
|
|
539
|
-
# @!attribute caption
|
|
540
|
-
# Overrides the `caption` from the post
|
|
541
|
-
#
|
|
542
|
-
# @return [Object, nil]
|
|
543
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
544
|
-
|
|
545
|
-
# @!attribute media
|
|
546
|
-
# Overrides the `media` from the post
|
|
547
|
-
#
|
|
548
|
-
# @return [Array<String>, nil]
|
|
549
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
550
|
-
|
|
551
|
-
# @!attribute placement
|
|
552
|
-
# Threads post placement
|
|
553
|
-
#
|
|
554
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Placement, nil]
|
|
555
|
-
optional :placement,
|
|
556
|
-
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement },
|
|
557
|
-
nil?: true
|
|
558
|
-
|
|
559
|
-
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
560
|
-
# Threads configuration
|
|
561
|
-
#
|
|
562
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
563
|
-
#
|
|
564
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
565
|
-
#
|
|
566
|
-
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Placement, nil] Threads post placement
|
|
567
|
-
|
|
568
|
-
# Threads post placement
|
|
569
|
-
#
|
|
570
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads#placement
|
|
571
|
-
module Placement
|
|
572
|
-
extend PostForMe::Internal::Type::Enum
|
|
573
|
-
|
|
574
|
-
REELS = :reels
|
|
575
|
-
TIMELINE = :timeline
|
|
576
|
-
|
|
577
|
-
# @!method self.values
|
|
578
|
-
# @return [Array<Symbol>]
|
|
579
|
-
end
|
|
580
|
-
end
|
|
581
|
-
|
|
582
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#x
|
|
583
|
-
class X < PostForMe::Internal::Type::BaseModel
|
|
584
|
-
# @!attribute caption
|
|
585
|
-
# Overrides the `caption` from the post
|
|
586
|
-
#
|
|
587
|
-
# @return [Object, nil]
|
|
588
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
589
|
-
|
|
590
|
-
# @!attribute media
|
|
591
|
-
# Overrides the `media` from the post
|
|
592
|
-
#
|
|
593
|
-
# @return [Array<String>, nil]
|
|
594
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
595
|
-
|
|
596
|
-
# @!method initialize(caption: nil, media: nil)
|
|
597
|
-
# Twitter configuration
|
|
598
|
-
#
|
|
599
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
600
|
-
#
|
|
601
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
602
|
-
end
|
|
603
|
-
|
|
604
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#youtube
|
|
605
|
-
class Youtube < PostForMe::Internal::Type::BaseModel
|
|
606
|
-
# @!attribute caption
|
|
607
|
-
# Overrides the `caption` from the post
|
|
608
|
-
#
|
|
609
|
-
# @return [Object, nil]
|
|
610
|
-
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
611
|
-
|
|
612
|
-
# @!attribute media
|
|
613
|
-
# Overrides the `media` from the post
|
|
614
|
-
#
|
|
615
|
-
# @return [Array<String>, nil]
|
|
616
|
-
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
617
|
-
|
|
618
|
-
# @!attribute title
|
|
619
|
-
# Overrides the `title` from the post
|
|
620
|
-
#
|
|
621
|
-
# @return [String, nil]
|
|
622
|
-
optional :title, String, nil?: true
|
|
623
|
-
|
|
624
|
-
# @!method initialize(caption: nil, media: nil, title: nil)
|
|
625
|
-
# YouTube configuration
|
|
626
|
-
#
|
|
627
|
-
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
628
|
-
#
|
|
629
|
-
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
630
|
-
#
|
|
631
|
-
# @param title [String, nil] Overrides the `title` from the post
|
|
632
|
-
end
|
|
633
|
-
end
|
|
634
265
|
end
|
|
635
266
|
end
|
|
636
267
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module PostForMe
|
|
4
|
+
module Models
|
|
5
|
+
class FacebookConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute caption
|
|
7
|
+
# Overrides the `caption` from the post
|
|
8
|
+
#
|
|
9
|
+
# @return [Object, nil]
|
|
10
|
+
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute media
|
|
13
|
+
# Overrides the `media` from the post
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<String>, nil]
|
|
16
|
+
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute placement
|
|
19
|
+
# Facebook post placement
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, PostForMe::Models::FacebookConfigurationDto::Placement, nil]
|
|
22
|
+
optional :placement, enum: -> { PostForMe::FacebookConfigurationDto::Placement }, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
25
|
+
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
26
|
+
#
|
|
27
|
+
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
28
|
+
#
|
|
29
|
+
# @param placement [Symbol, PostForMe::Models::FacebookConfigurationDto::Placement, nil] Facebook post placement
|
|
30
|
+
|
|
31
|
+
# Facebook post placement
|
|
32
|
+
#
|
|
33
|
+
# @see PostForMe::Models::FacebookConfigurationDto#placement
|
|
34
|
+
module Placement
|
|
35
|
+
extend PostForMe::Internal::Type::Enum
|
|
36
|
+
|
|
37
|
+
REELS = :reels
|
|
38
|
+
STORIES = :stories
|
|
39
|
+
TIMELINE = :timeline
|
|
40
|
+
|
|
41
|
+
# @!method self.values
|
|
42
|
+
# @return [Array<Symbol>]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module PostForMe
|
|
4
|
+
module Models
|
|
5
|
+
class InstagramConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute caption
|
|
7
|
+
# Overrides the `caption` from the post
|
|
8
|
+
#
|
|
9
|
+
# @return [Object, nil]
|
|
10
|
+
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute collaborators
|
|
13
|
+
# Instagram usernames to be tagged as a collaborator
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<String>, nil]
|
|
16
|
+
optional :collaborators, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute media
|
|
19
|
+
# Overrides the `media` from the post
|
|
20
|
+
#
|
|
21
|
+
# @return [Array<String>, nil]
|
|
22
|
+
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute placement
|
|
25
|
+
# Instagram post placement
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, PostForMe::Models::InstagramConfigurationDto::Placement, nil]
|
|
28
|
+
optional :placement, enum: -> { PostForMe::InstagramConfigurationDto::Placement }, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!method initialize(caption: nil, collaborators: nil, media: nil, placement: nil)
|
|
31
|
+
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
32
|
+
#
|
|
33
|
+
# @param collaborators [Array<String>, nil] Instagram usernames to be tagged as a collaborator
|
|
34
|
+
#
|
|
35
|
+
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
36
|
+
#
|
|
37
|
+
# @param placement [Symbol, PostForMe::Models::InstagramConfigurationDto::Placement, nil] Instagram post placement
|
|
38
|
+
|
|
39
|
+
# Instagram post placement
|
|
40
|
+
#
|
|
41
|
+
# @see PostForMe::Models::InstagramConfigurationDto#placement
|
|
42
|
+
module Placement
|
|
43
|
+
extend PostForMe::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
REELS = :reels
|
|
46
|
+
STORIES = :stories
|
|
47
|
+
TIMELINE = :timeline
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module PostForMe
|
|
4
|
+
module Models
|
|
5
|
+
class LinkedinConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute caption
|
|
7
|
+
# Overrides the `caption` from the post
|
|
8
|
+
#
|
|
9
|
+
# @return [Object, nil]
|
|
10
|
+
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute media
|
|
13
|
+
# Overrides the `media` from the post
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<String>, nil]
|
|
16
|
+
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
17
|
+
|
|
18
|
+
# @!method initialize(caption: nil, media: nil)
|
|
19
|
+
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
20
|
+
#
|
|
21
|
+
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module PostForMe
|
|
4
|
+
module Models
|
|
5
|
+
class PinterestConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute board_ids
|
|
7
|
+
# Pinterest board IDs
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<String>, nil]
|
|
10
|
+
optional :board_ids, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute caption
|
|
13
|
+
# Overrides the `caption` from the post
|
|
14
|
+
#
|
|
15
|
+
# @return [Object, nil]
|
|
16
|
+
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute link
|
|
19
|
+
# Pinterest post link
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :link, String, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute media
|
|
25
|
+
# Overrides the `media` from the post
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<String>, nil]
|
|
28
|
+
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
29
|
+
|
|
30
|
+
# @!method initialize(board_ids: nil, caption: nil, link: nil, media: nil)
|
|
31
|
+
# @param board_ids [Array<String>, nil] Pinterest board IDs
|
|
32
|
+
#
|
|
33
|
+
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
34
|
+
#
|
|
35
|
+
# @param link [String, nil] Pinterest post link
|
|
36
|
+
#
|
|
37
|
+
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|