post-for-me 0.1.0.pre.alpha.3 → 0.1.0.pre.alpha.4
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 +8 -0
- data/README.md +1 -1
- data/lib/post_for_me/models/create_social_post.rb +87 -30
- data/lib/post_for_me/version.rb +1 -1
- data/rbi/post_for_me/models/create_social_post.rbi +184 -51
- data/sig/post_for_me/models/create_social_post.rbs +85 -25
- 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: b44217192501874d07ce7f1fa55774c8dad01d7b437c20278b4a7c222ce084fb
|
|
4
|
+
data.tar.gz: 66a162db8dd3de002f526e6c0463909dbd4d81e3fa8c32a8444c7b1a5c637462
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '008321780b1df6949f15e142c0864e9d2f827c1b3f1ee575e199494220fd322abdc7797ab0ec5d293e72851add4c5d682740c45ec31e83fbb2254401e6e3ff47'
|
|
7
|
+
data.tar.gz: e8dd9e7eb141012cbaf94fda1e262d55e76761cfb5e4d3aa7e20a24fb4d1fc53e0598b9ba073ceec5cd1f0e81e7186f97bf3d1d6e89c7b2e21d3ce7855f55d07
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.4 (2025-08-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([c4f6edf](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/c4f6edf0b6af61e9490d6f82227ae3ec87257d11))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.3 (2025-08-14)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
|
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.4"
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
<!-- x-release-please-end -->
|
|
@@ -150,20 +150,20 @@ module PostForMe
|
|
|
150
150
|
# @return [String, nil]
|
|
151
151
|
optional :link, String, nil?: true
|
|
152
152
|
|
|
153
|
-
# @!attribute location
|
|
154
|
-
# Threads post location
|
|
155
|
-
#
|
|
156
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Location, nil]
|
|
157
|
-
optional :location,
|
|
158
|
-
enum: -> { PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Location },
|
|
159
|
-
nil?: true
|
|
160
|
-
|
|
161
153
|
# @!attribute media
|
|
162
154
|
# Overrides the `media` from the post
|
|
163
155
|
#
|
|
164
156
|
# @return [Array<String>, nil]
|
|
165
157
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
166
158
|
|
|
159
|
+
# @!attribute placement
|
|
160
|
+
# Post placement for Facebook/Instagram/Threads
|
|
161
|
+
#
|
|
162
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Placement, nil]
|
|
163
|
+
optional :placement,
|
|
164
|
+
enum: -> { PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement },
|
|
165
|
+
nil?: true
|
|
166
|
+
|
|
167
167
|
# @!attribute privacy_status
|
|
168
168
|
# Sets the privacy status for TikTok (private, public)
|
|
169
169
|
#
|
|
@@ -176,7 +176,7 @@ module PostForMe
|
|
|
176
176
|
# @return [String, nil]
|
|
177
177
|
optional :title, String, nil?: true
|
|
178
178
|
|
|
179
|
-
# @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, board_ids: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, link: nil,
|
|
179
|
+
# @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, board_ids: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, link: nil, media: nil, placement: nil, privacy_status: nil, title: nil)
|
|
180
180
|
# Configuration for the social account
|
|
181
181
|
#
|
|
182
182
|
# @param allow_comment [Boolean, nil] Allow comments on TikTok
|
|
@@ -195,22 +195,23 @@ module PostForMe
|
|
|
195
195
|
#
|
|
196
196
|
# @param link [String, nil] Pinterest post link
|
|
197
197
|
#
|
|
198
|
-
# @param location [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Location, nil] Threads post location
|
|
199
|
-
#
|
|
200
198
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
201
199
|
#
|
|
200
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Placement, nil] Post placement for Facebook/Instagram/Threads
|
|
201
|
+
#
|
|
202
202
|
# @param privacy_status [String, nil] Sets the privacy status for TikTok (private, public)
|
|
203
203
|
#
|
|
204
204
|
# @param title [String, nil] Overrides the `title` from the post
|
|
205
205
|
|
|
206
|
-
#
|
|
206
|
+
# Post placement for Facebook/Instagram/Threads
|
|
207
207
|
#
|
|
208
|
-
# @see PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration#
|
|
209
|
-
module
|
|
208
|
+
# @see PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration#placement
|
|
209
|
+
module Placement
|
|
210
210
|
extend PostForMe::Internal::Type::Enum
|
|
211
211
|
|
|
212
212
|
REELS = :reels
|
|
213
213
|
TIMELINE = :timeline
|
|
214
|
+
STORIES = :stories
|
|
214
215
|
|
|
215
216
|
# @!method self.values
|
|
216
217
|
# @return [Array<Symbol>]
|
|
@@ -366,12 +367,36 @@ module PostForMe
|
|
|
366
367
|
# @return [Array<String>, nil]
|
|
367
368
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
368
369
|
|
|
369
|
-
# @!
|
|
370
|
+
# @!attribute placement
|
|
371
|
+
# Facebook post placement
|
|
372
|
+
#
|
|
373
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::Placement, nil]
|
|
374
|
+
optional :placement,
|
|
375
|
+
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement },
|
|
376
|
+
nil?: true
|
|
377
|
+
|
|
378
|
+
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
370
379
|
# Facebook configuration
|
|
371
380
|
#
|
|
372
381
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
373
382
|
#
|
|
374
383
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
384
|
+
#
|
|
385
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::Placement, nil] Facebook post placement
|
|
386
|
+
|
|
387
|
+
# Facebook post placement
|
|
388
|
+
#
|
|
389
|
+
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook#placement
|
|
390
|
+
module Placement
|
|
391
|
+
extend PostForMe::Internal::Type::Enum
|
|
392
|
+
|
|
393
|
+
REELS = :reels
|
|
394
|
+
STORIES = :stories
|
|
395
|
+
TIMELINE = :timeline
|
|
396
|
+
|
|
397
|
+
# @!method self.values
|
|
398
|
+
# @return [Array<Symbol>]
|
|
399
|
+
end
|
|
375
400
|
end
|
|
376
401
|
|
|
377
402
|
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#instagram
|
|
@@ -382,18 +407,50 @@ module PostForMe
|
|
|
382
407
|
# @return [Object, nil]
|
|
383
408
|
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
384
409
|
|
|
410
|
+
# @!attribute collaborators
|
|
411
|
+
# Instagram usernames to be tagged as a collaborator
|
|
412
|
+
#
|
|
413
|
+
# @return [Array<String>, nil]
|
|
414
|
+
optional :collaborators, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
415
|
+
|
|
385
416
|
# @!attribute media
|
|
386
417
|
# Overrides the `media` from the post
|
|
387
418
|
#
|
|
388
419
|
# @return [Array<String>, nil]
|
|
389
420
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
390
421
|
|
|
391
|
-
# @!
|
|
422
|
+
# @!attribute placement
|
|
423
|
+
# Instagram post placement
|
|
424
|
+
#
|
|
425
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::Placement, nil]
|
|
426
|
+
optional :placement,
|
|
427
|
+
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement },
|
|
428
|
+
nil?: true
|
|
429
|
+
|
|
430
|
+
# @!method initialize(caption: nil, collaborators: nil, media: nil, placement: nil)
|
|
392
431
|
# Instagram configuration
|
|
393
432
|
#
|
|
394
433
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
395
434
|
#
|
|
435
|
+
# @param collaborators [Array<String>, nil] Instagram usernames to be tagged as a collaborator
|
|
436
|
+
#
|
|
396
437
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
438
|
+
#
|
|
439
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::Placement, nil] Instagram post placement
|
|
440
|
+
|
|
441
|
+
# Instagram post placement
|
|
442
|
+
#
|
|
443
|
+
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram#placement
|
|
444
|
+
module Placement
|
|
445
|
+
extend PostForMe::Internal::Type::Enum
|
|
446
|
+
|
|
447
|
+
REELS = :reels
|
|
448
|
+
STORIES = :stories
|
|
449
|
+
TIMELINE = :timeline
|
|
450
|
+
|
|
451
|
+
# @!method self.values
|
|
452
|
+
# @return [Array<Symbol>]
|
|
453
|
+
end
|
|
397
454
|
end
|
|
398
455
|
|
|
399
456
|
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#linkedin
|
|
@@ -464,33 +521,33 @@ module PostForMe
|
|
|
464
521
|
# @return [Object, nil]
|
|
465
522
|
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
466
523
|
|
|
467
|
-
# @!attribute location
|
|
468
|
-
# Threads post location
|
|
469
|
-
#
|
|
470
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Location, nil]
|
|
471
|
-
optional :location,
|
|
472
|
-
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Location },
|
|
473
|
-
nil?: true
|
|
474
|
-
|
|
475
524
|
# @!attribute media
|
|
476
525
|
# Overrides the `media` from the post
|
|
477
526
|
#
|
|
478
527
|
# @return [Array<String>, nil]
|
|
479
528
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
480
529
|
|
|
481
|
-
# @!
|
|
530
|
+
# @!attribute placement
|
|
531
|
+
# Threads post placement
|
|
532
|
+
#
|
|
533
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Placement, nil]
|
|
534
|
+
optional :placement,
|
|
535
|
+
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement },
|
|
536
|
+
nil?: true
|
|
537
|
+
|
|
538
|
+
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
482
539
|
# Threads configuration
|
|
483
540
|
#
|
|
484
541
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
485
542
|
#
|
|
486
|
-
# @param location [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Location, nil] Threads post location
|
|
487
|
-
#
|
|
488
543
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
544
|
+
#
|
|
545
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Placement, nil] Threads post placement
|
|
489
546
|
|
|
490
|
-
# Threads post
|
|
547
|
+
# Threads post placement
|
|
491
548
|
#
|
|
492
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads#
|
|
493
|
-
module
|
|
549
|
+
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads#placement
|
|
550
|
+
module Placement
|
|
494
551
|
extend PostForMe::Internal::Type::Enum
|
|
495
552
|
|
|
496
553
|
REELS = :reels
|
data/lib/post_for_me/version.rb
CHANGED
|
@@ -217,19 +217,19 @@ module PostForMe
|
|
|
217
217
|
sig { returns(T.nilable(String)) }
|
|
218
218
|
attr_accessor :link
|
|
219
219
|
|
|
220
|
-
#
|
|
220
|
+
# Overrides the `media` from the post
|
|
221
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
222
|
+
attr_accessor :media
|
|
223
|
+
|
|
224
|
+
# Post placement for Facebook/Instagram/Threads
|
|
221
225
|
sig do
|
|
222
226
|
returns(
|
|
223
227
|
T.nilable(
|
|
224
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
228
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
|
|
225
229
|
)
|
|
226
230
|
)
|
|
227
231
|
end
|
|
228
|
-
attr_accessor :
|
|
229
|
-
|
|
230
|
-
# Overrides the `media` from the post
|
|
231
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
232
|
-
attr_accessor :media
|
|
232
|
+
attr_accessor :placement
|
|
233
233
|
|
|
234
234
|
# Sets the privacy status for TikTok (private, public)
|
|
235
235
|
sig { returns(T.nilable(String)) }
|
|
@@ -250,11 +250,11 @@ module PostForMe
|
|
|
250
250
|
disclose_branded_content: T.nilable(T::Boolean),
|
|
251
251
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
252
252
|
link: T.nilable(String),
|
|
253
|
-
|
|
253
|
+
media: T.nilable(T::Array[String]),
|
|
254
|
+
placement:
|
|
254
255
|
T.nilable(
|
|
255
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
256
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
|
|
256
257
|
),
|
|
257
|
-
media: T.nilable(T::Array[String]),
|
|
258
258
|
privacy_status: T.nilable(String),
|
|
259
259
|
title: T.nilable(String)
|
|
260
260
|
).returns(T.attached_class)
|
|
@@ -276,10 +276,10 @@ module PostForMe
|
|
|
276
276
|
disclose_your_brand: nil,
|
|
277
277
|
# Pinterest post link
|
|
278
278
|
link: nil,
|
|
279
|
-
# Threads post location
|
|
280
|
-
location: nil,
|
|
281
279
|
# Overrides the `media` from the post
|
|
282
280
|
media: nil,
|
|
281
|
+
# Post placement for Facebook/Instagram/Threads
|
|
282
|
+
placement: nil,
|
|
283
283
|
# Sets the privacy status for TikTok (private, public)
|
|
284
284
|
privacy_status: nil,
|
|
285
285
|
# Overrides the `title` from the post
|
|
@@ -298,11 +298,11 @@ module PostForMe
|
|
|
298
298
|
disclose_branded_content: T.nilable(T::Boolean),
|
|
299
299
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
300
300
|
link: T.nilable(String),
|
|
301
|
-
|
|
301
|
+
media: T.nilable(T::Array[String]),
|
|
302
|
+
placement:
|
|
302
303
|
T.nilable(
|
|
303
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
304
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
|
|
304
305
|
),
|
|
305
|
-
media: T.nilable(T::Array[String]),
|
|
306
306
|
privacy_status: T.nilable(String),
|
|
307
307
|
title: T.nilable(String)
|
|
308
308
|
}
|
|
@@ -311,15 +311,15 @@ module PostForMe
|
|
|
311
311
|
def to_hash
|
|
312
312
|
end
|
|
313
313
|
|
|
314
|
-
#
|
|
315
|
-
module
|
|
314
|
+
# Post placement for Facebook/Instagram/Threads
|
|
315
|
+
module Placement
|
|
316
316
|
extend PostForMe::Internal::Type::Enum
|
|
317
317
|
|
|
318
318
|
TaggedSymbol =
|
|
319
319
|
T.type_alias do
|
|
320
320
|
T.all(
|
|
321
321
|
Symbol,
|
|
322
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
322
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement
|
|
323
323
|
)
|
|
324
324
|
end
|
|
325
325
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -327,18 +327,23 @@ module PostForMe
|
|
|
327
327
|
REELS =
|
|
328
328
|
T.let(
|
|
329
329
|
:reels,
|
|
330
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
330
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
331
331
|
)
|
|
332
332
|
TIMELINE =
|
|
333
333
|
T.let(
|
|
334
334
|
:timeline,
|
|
335
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
335
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
336
|
+
)
|
|
337
|
+
STORIES =
|
|
338
|
+
T.let(
|
|
339
|
+
:stories,
|
|
340
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
336
341
|
)
|
|
337
342
|
|
|
338
343
|
sig do
|
|
339
344
|
override.returns(
|
|
340
345
|
T::Array[
|
|
341
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
346
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
342
347
|
]
|
|
343
348
|
)
|
|
344
349
|
end
|
|
@@ -753,18 +758,34 @@ module PostForMe
|
|
|
753
758
|
sig { returns(T.nilable(T::Array[String])) }
|
|
754
759
|
attr_accessor :media
|
|
755
760
|
|
|
761
|
+
# Facebook post placement
|
|
762
|
+
sig do
|
|
763
|
+
returns(
|
|
764
|
+
T.nilable(
|
|
765
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::OrSymbol
|
|
766
|
+
)
|
|
767
|
+
)
|
|
768
|
+
end
|
|
769
|
+
attr_accessor :placement
|
|
770
|
+
|
|
756
771
|
# Facebook configuration
|
|
757
772
|
sig do
|
|
758
773
|
params(
|
|
759
774
|
caption: T.nilable(T.anything),
|
|
760
|
-
media: T.nilable(T::Array[String])
|
|
775
|
+
media: T.nilable(T::Array[String]),
|
|
776
|
+
placement:
|
|
777
|
+
T.nilable(
|
|
778
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::OrSymbol
|
|
779
|
+
)
|
|
761
780
|
).returns(T.attached_class)
|
|
762
781
|
end
|
|
763
782
|
def self.new(
|
|
764
783
|
# Overrides the `caption` from the post
|
|
765
784
|
caption: nil,
|
|
766
785
|
# Overrides the `media` from the post
|
|
767
|
-
media: nil
|
|
786
|
+
media: nil,
|
|
787
|
+
# Facebook post placement
|
|
788
|
+
placement: nil
|
|
768
789
|
)
|
|
769
790
|
end
|
|
770
791
|
|
|
@@ -772,12 +793,56 @@ module PostForMe
|
|
|
772
793
|
override.returns(
|
|
773
794
|
{
|
|
774
795
|
caption: T.nilable(T.anything),
|
|
775
|
-
media: T.nilable(T::Array[String])
|
|
796
|
+
media: T.nilable(T::Array[String]),
|
|
797
|
+
placement:
|
|
798
|
+
T.nilable(
|
|
799
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::OrSymbol
|
|
800
|
+
)
|
|
776
801
|
}
|
|
777
802
|
)
|
|
778
803
|
end
|
|
779
804
|
def to_hash
|
|
780
805
|
end
|
|
806
|
+
|
|
807
|
+
# Facebook post placement
|
|
808
|
+
module Placement
|
|
809
|
+
extend PostForMe::Internal::Type::Enum
|
|
810
|
+
|
|
811
|
+
TaggedSymbol =
|
|
812
|
+
T.type_alias do
|
|
813
|
+
T.all(
|
|
814
|
+
Symbol,
|
|
815
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement
|
|
816
|
+
)
|
|
817
|
+
end
|
|
818
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
819
|
+
|
|
820
|
+
REELS =
|
|
821
|
+
T.let(
|
|
822
|
+
:reels,
|
|
823
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
824
|
+
)
|
|
825
|
+
STORIES =
|
|
826
|
+
T.let(
|
|
827
|
+
:stories,
|
|
828
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
829
|
+
)
|
|
830
|
+
TIMELINE =
|
|
831
|
+
T.let(
|
|
832
|
+
:timeline,
|
|
833
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
sig do
|
|
837
|
+
override.returns(
|
|
838
|
+
T::Array[
|
|
839
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
840
|
+
]
|
|
841
|
+
)
|
|
842
|
+
end
|
|
843
|
+
def self.values
|
|
844
|
+
end
|
|
845
|
+
end
|
|
781
846
|
end
|
|
782
847
|
|
|
783
848
|
class Instagram < PostForMe::Internal::Type::BaseModel
|
|
@@ -793,22 +858,45 @@ module PostForMe
|
|
|
793
858
|
sig { returns(T.nilable(T.anything)) }
|
|
794
859
|
attr_accessor :caption
|
|
795
860
|
|
|
861
|
+
# Instagram usernames to be tagged as a collaborator
|
|
862
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
863
|
+
attr_accessor :collaborators
|
|
864
|
+
|
|
796
865
|
# Overrides the `media` from the post
|
|
797
866
|
sig { returns(T.nilable(T::Array[String])) }
|
|
798
867
|
attr_accessor :media
|
|
799
868
|
|
|
869
|
+
# Instagram post placement
|
|
870
|
+
sig do
|
|
871
|
+
returns(
|
|
872
|
+
T.nilable(
|
|
873
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::OrSymbol
|
|
874
|
+
)
|
|
875
|
+
)
|
|
876
|
+
end
|
|
877
|
+
attr_accessor :placement
|
|
878
|
+
|
|
800
879
|
# Instagram configuration
|
|
801
880
|
sig do
|
|
802
881
|
params(
|
|
803
882
|
caption: T.nilable(T.anything),
|
|
804
|
-
|
|
883
|
+
collaborators: T.nilable(T::Array[String]),
|
|
884
|
+
media: T.nilable(T::Array[String]),
|
|
885
|
+
placement:
|
|
886
|
+
T.nilable(
|
|
887
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::OrSymbol
|
|
888
|
+
)
|
|
805
889
|
).returns(T.attached_class)
|
|
806
890
|
end
|
|
807
891
|
def self.new(
|
|
808
892
|
# Overrides the `caption` from the post
|
|
809
893
|
caption: nil,
|
|
894
|
+
# Instagram usernames to be tagged as a collaborator
|
|
895
|
+
collaborators: nil,
|
|
810
896
|
# Overrides the `media` from the post
|
|
811
|
-
media: nil
|
|
897
|
+
media: nil,
|
|
898
|
+
# Instagram post placement
|
|
899
|
+
placement: nil
|
|
812
900
|
)
|
|
813
901
|
end
|
|
814
902
|
|
|
@@ -816,12 +904,57 @@ module PostForMe
|
|
|
816
904
|
override.returns(
|
|
817
905
|
{
|
|
818
906
|
caption: T.nilable(T.anything),
|
|
819
|
-
|
|
907
|
+
collaborators: T.nilable(T::Array[String]),
|
|
908
|
+
media: T.nilable(T::Array[String]),
|
|
909
|
+
placement:
|
|
910
|
+
T.nilable(
|
|
911
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::OrSymbol
|
|
912
|
+
)
|
|
820
913
|
}
|
|
821
914
|
)
|
|
822
915
|
end
|
|
823
916
|
def to_hash
|
|
824
917
|
end
|
|
918
|
+
|
|
919
|
+
# Instagram post placement
|
|
920
|
+
module Placement
|
|
921
|
+
extend PostForMe::Internal::Type::Enum
|
|
922
|
+
|
|
923
|
+
TaggedSymbol =
|
|
924
|
+
T.type_alias do
|
|
925
|
+
T.all(
|
|
926
|
+
Symbol,
|
|
927
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement
|
|
928
|
+
)
|
|
929
|
+
end
|
|
930
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
931
|
+
|
|
932
|
+
REELS =
|
|
933
|
+
T.let(
|
|
934
|
+
:reels,
|
|
935
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
936
|
+
)
|
|
937
|
+
STORIES =
|
|
938
|
+
T.let(
|
|
939
|
+
:stories,
|
|
940
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
941
|
+
)
|
|
942
|
+
TIMELINE =
|
|
943
|
+
T.let(
|
|
944
|
+
:timeline,
|
|
945
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
sig do
|
|
949
|
+
override.returns(
|
|
950
|
+
T::Array[
|
|
951
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
952
|
+
]
|
|
953
|
+
)
|
|
954
|
+
end
|
|
955
|
+
def self.values
|
|
956
|
+
end
|
|
957
|
+
end
|
|
825
958
|
end
|
|
826
959
|
|
|
827
960
|
class Linkedin < PostForMe::Internal::Type::BaseModel
|
|
@@ -941,38 +1074,38 @@ module PostForMe
|
|
|
941
1074
|
sig { returns(T.nilable(T.anything)) }
|
|
942
1075
|
attr_accessor :caption
|
|
943
1076
|
|
|
944
|
-
#
|
|
1077
|
+
# Overrides the `media` from the post
|
|
1078
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
1079
|
+
attr_accessor :media
|
|
1080
|
+
|
|
1081
|
+
# Threads post placement
|
|
945
1082
|
sig do
|
|
946
1083
|
returns(
|
|
947
1084
|
T.nilable(
|
|
948
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1085
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::OrSymbol
|
|
949
1086
|
)
|
|
950
1087
|
)
|
|
951
1088
|
end
|
|
952
|
-
attr_accessor :
|
|
953
|
-
|
|
954
|
-
# Overrides the `media` from the post
|
|
955
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
956
|
-
attr_accessor :media
|
|
1089
|
+
attr_accessor :placement
|
|
957
1090
|
|
|
958
1091
|
# Threads configuration
|
|
959
1092
|
sig do
|
|
960
1093
|
params(
|
|
961
1094
|
caption: T.nilable(T.anything),
|
|
962
|
-
|
|
1095
|
+
media: T.nilable(T::Array[String]),
|
|
1096
|
+
placement:
|
|
963
1097
|
T.nilable(
|
|
964
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
965
|
-
)
|
|
966
|
-
media: T.nilable(T::Array[String])
|
|
1098
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::OrSymbol
|
|
1099
|
+
)
|
|
967
1100
|
).returns(T.attached_class)
|
|
968
1101
|
end
|
|
969
1102
|
def self.new(
|
|
970
1103
|
# Overrides the `caption` from the post
|
|
971
1104
|
caption: nil,
|
|
972
|
-
# Threads post location
|
|
973
|
-
location: nil,
|
|
974
1105
|
# Overrides the `media` from the post
|
|
975
|
-
media: nil
|
|
1106
|
+
media: nil,
|
|
1107
|
+
# Threads post placement
|
|
1108
|
+
placement: nil
|
|
976
1109
|
)
|
|
977
1110
|
end
|
|
978
1111
|
|
|
@@ -980,26 +1113,26 @@ module PostForMe
|
|
|
980
1113
|
override.returns(
|
|
981
1114
|
{
|
|
982
1115
|
caption: T.nilable(T.anything),
|
|
983
|
-
|
|
1116
|
+
media: T.nilable(T::Array[String]),
|
|
1117
|
+
placement:
|
|
984
1118
|
T.nilable(
|
|
985
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
986
|
-
)
|
|
987
|
-
media: T.nilable(T::Array[String])
|
|
1119
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::OrSymbol
|
|
1120
|
+
)
|
|
988
1121
|
}
|
|
989
1122
|
)
|
|
990
1123
|
end
|
|
991
1124
|
def to_hash
|
|
992
1125
|
end
|
|
993
1126
|
|
|
994
|
-
# Threads post
|
|
995
|
-
module
|
|
1127
|
+
# Threads post placement
|
|
1128
|
+
module Placement
|
|
996
1129
|
extend PostForMe::Internal::Type::Enum
|
|
997
1130
|
|
|
998
1131
|
TaggedSymbol =
|
|
999
1132
|
T.type_alias do
|
|
1000
1133
|
T.all(
|
|
1001
1134
|
Symbol,
|
|
1002
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1135
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement
|
|
1003
1136
|
)
|
|
1004
1137
|
end
|
|
1005
1138
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1007,18 +1140,18 @@ module PostForMe
|
|
|
1007
1140
|
REELS =
|
|
1008
1141
|
T.let(
|
|
1009
1142
|
:reels,
|
|
1010
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1143
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::TaggedSymbol
|
|
1011
1144
|
)
|
|
1012
1145
|
TIMELINE =
|
|
1013
1146
|
T.let(
|
|
1014
1147
|
:timeline,
|
|
1015
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1148
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::TaggedSymbol
|
|
1016
1149
|
)
|
|
1017
1150
|
|
|
1018
1151
|
sig do
|
|
1019
1152
|
override.returns(
|
|
1020
1153
|
T::Array[
|
|
1021
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1154
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::TaggedSymbol
|
|
1022
1155
|
]
|
|
1023
1156
|
)
|
|
1024
1157
|
end
|
|
@@ -82,8 +82,8 @@ module PostForMe
|
|
|
82
82
|
disclose_branded_content: bool?,
|
|
83
83
|
disclose_your_brand: bool?,
|
|
84
84
|
link: String?,
|
|
85
|
-
location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?,
|
|
86
85
|
media: ::Array[String]?,
|
|
86
|
+
placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
|
|
87
87
|
privacy_status: String?,
|
|
88
88
|
title: String?
|
|
89
89
|
}
|
|
@@ -105,10 +105,10 @@ module PostForMe
|
|
|
105
105
|
|
|
106
106
|
attr_accessor link: String?
|
|
107
107
|
|
|
108
|
-
attr_accessor location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?
|
|
109
|
-
|
|
110
108
|
attr_accessor media: ::Array[String]?
|
|
111
109
|
|
|
110
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?
|
|
111
|
+
|
|
112
112
|
attr_accessor privacy_status: String?
|
|
113
113
|
|
|
114
114
|
attr_accessor title: String?
|
|
@@ -122,8 +122,8 @@ module PostForMe
|
|
|
122
122
|
?disclose_branded_content: bool?,
|
|
123
123
|
?disclose_your_brand: bool?,
|
|
124
124
|
?link: String?,
|
|
125
|
-
?location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?,
|
|
126
125
|
?media: ::Array[String]?,
|
|
126
|
+
?placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
|
|
127
127
|
?privacy_status: String?,
|
|
128
128
|
?title: String?
|
|
129
129
|
) -> void
|
|
@@ -137,21 +137,22 @@ module PostForMe
|
|
|
137
137
|
disclose_branded_content: bool?,
|
|
138
138
|
disclose_your_brand: bool?,
|
|
139
139
|
link: String?,
|
|
140
|
-
location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?,
|
|
141
140
|
media: ::Array[String]?,
|
|
141
|
+
placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
|
|
142
142
|
privacy_status: String?,
|
|
143
143
|
title: String?
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
type
|
|
146
|
+
type placement = :reels | :timeline | :stories
|
|
147
147
|
|
|
148
|
-
module
|
|
148
|
+
module Placement
|
|
149
149
|
extend PostForMe::Internal::Type::Enum
|
|
150
150
|
|
|
151
151
|
REELS: :reels
|
|
152
152
|
TIMELINE: :timeline
|
|
153
|
+
STORIES: :stories
|
|
153
154
|
|
|
154
|
-
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::
|
|
155
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement]
|
|
155
156
|
end
|
|
156
157
|
end
|
|
157
158
|
end
|
|
@@ -252,28 +253,87 @@ module PostForMe
|
|
|
252
253
|
def to_hash: -> { caption: top?, media: ::Array[String]? }
|
|
253
254
|
end
|
|
254
255
|
|
|
255
|
-
type facebook =
|
|
256
|
+
type facebook =
|
|
257
|
+
{
|
|
258
|
+
caption: top?,
|
|
259
|
+
media: ::Array[String]?,
|
|
260
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
261
|
+
}
|
|
256
262
|
|
|
257
263
|
class Facebook < PostForMe::Internal::Type::BaseModel
|
|
258
264
|
attr_accessor caption: top?
|
|
259
265
|
|
|
260
266
|
attr_accessor media: ::Array[String]?
|
|
261
267
|
|
|
262
|
-
|
|
268
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
263
269
|
|
|
264
|
-
def
|
|
270
|
+
def initialize: (
|
|
271
|
+
?caption: top?,
|
|
272
|
+
?media: ::Array[String]?,
|
|
273
|
+
?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
274
|
+
) -> void
|
|
275
|
+
|
|
276
|
+
def to_hash: -> {
|
|
277
|
+
caption: top?,
|
|
278
|
+
media: ::Array[String]?,
|
|
279
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
type placement = :reels | :stories | :timeline
|
|
283
|
+
|
|
284
|
+
module Placement
|
|
285
|
+
extend PostForMe::Internal::Type::Enum
|
|
286
|
+
|
|
287
|
+
REELS: :reels
|
|
288
|
+
STORIES: :stories
|
|
289
|
+
TIMELINE: :timeline
|
|
290
|
+
|
|
291
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement]
|
|
292
|
+
end
|
|
265
293
|
end
|
|
266
294
|
|
|
267
|
-
type instagram =
|
|
295
|
+
type instagram =
|
|
296
|
+
{
|
|
297
|
+
caption: top?,
|
|
298
|
+
collaborators: ::Array[String]?,
|
|
299
|
+
media: ::Array[String]?,
|
|
300
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
301
|
+
}
|
|
268
302
|
|
|
269
303
|
class Instagram < PostForMe::Internal::Type::BaseModel
|
|
270
304
|
attr_accessor caption: top?
|
|
271
305
|
|
|
306
|
+
attr_accessor collaborators: ::Array[String]?
|
|
307
|
+
|
|
272
308
|
attr_accessor media: ::Array[String]?
|
|
273
309
|
|
|
274
|
-
|
|
310
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
275
311
|
|
|
276
|
-
def
|
|
312
|
+
def initialize: (
|
|
313
|
+
?caption: top?,
|
|
314
|
+
?collaborators: ::Array[String]?,
|
|
315
|
+
?media: ::Array[String]?,
|
|
316
|
+
?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
317
|
+
) -> void
|
|
318
|
+
|
|
319
|
+
def to_hash: -> {
|
|
320
|
+
caption: top?,
|
|
321
|
+
collaborators: ::Array[String]?,
|
|
322
|
+
media: ::Array[String]?,
|
|
323
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
type placement = :reels | :stories | :timeline
|
|
327
|
+
|
|
328
|
+
module Placement
|
|
329
|
+
extend PostForMe::Internal::Type::Enum
|
|
330
|
+
|
|
331
|
+
REELS: :reels
|
|
332
|
+
STORIES: :stories
|
|
333
|
+
TIMELINE: :timeline
|
|
334
|
+
|
|
335
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement]
|
|
336
|
+
end
|
|
277
337
|
end
|
|
278
338
|
|
|
279
339
|
type linkedin = { caption: top?, media: ::Array[String]? }
|
|
@@ -323,38 +383,38 @@ module PostForMe
|
|
|
323
383
|
type threads =
|
|
324
384
|
{
|
|
325
385
|
caption: top?,
|
|
326
|
-
|
|
327
|
-
|
|
386
|
+
media: ::Array[String]?,
|
|
387
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
328
388
|
}
|
|
329
389
|
|
|
330
390
|
class Threads < PostForMe::Internal::Type::BaseModel
|
|
331
391
|
attr_accessor caption: top?
|
|
332
392
|
|
|
333
|
-
attr_accessor location: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::location?
|
|
334
|
-
|
|
335
393
|
attr_accessor media: ::Array[String]?
|
|
336
394
|
|
|
395
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
396
|
+
|
|
337
397
|
def initialize: (
|
|
338
398
|
?caption: top?,
|
|
339
|
-
?
|
|
340
|
-
?
|
|
399
|
+
?media: ::Array[String]?,
|
|
400
|
+
?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
341
401
|
) -> void
|
|
342
402
|
|
|
343
403
|
def to_hash: -> {
|
|
344
404
|
caption: top?,
|
|
345
|
-
|
|
346
|
-
|
|
405
|
+
media: ::Array[String]?,
|
|
406
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
347
407
|
}
|
|
348
408
|
|
|
349
|
-
type
|
|
409
|
+
type placement = :reels | :timeline
|
|
350
410
|
|
|
351
|
-
module
|
|
411
|
+
module Placement
|
|
352
412
|
extend PostForMe::Internal::Type::Enum
|
|
353
413
|
|
|
354
414
|
REELS: :reels
|
|
355
415
|
TIMELINE: :timeline
|
|
356
416
|
|
|
357
|
-
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::
|
|
417
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement]
|
|
358
418
|
end
|
|
359
419
|
end
|
|
360
420
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: post-for-me
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.alpha.
|
|
4
|
+
version: 0.1.0.pre.alpha.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Post For Me
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-08-
|
|
11
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|