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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +11 -9
  4. data/lib/post_for_me/models/bluesky_configuration_dto.rb +24 -0
  5. data/lib/post_for_me/models/create_social_post.rb +3 -372
  6. data/lib/post_for_me/models/facebook_configuration_dto.rb +46 -0
  7. data/lib/post_for_me/models/instagram_configuration_dto.rb +54 -0
  8. data/lib/post_for_me/models/linkedin_configuration_dto.rb +24 -0
  9. data/lib/post_for_me/models/pinterest_configuration_dto.rb +40 -0
  10. data/lib/post_for_me/models/platform_configurations_dto.rb +88 -0
  11. data/lib/post_for_me/models/social_account.rb +1 -1
  12. data/lib/post_for_me/models/social_account_create_auth_url_params.rb +9 -1
  13. data/lib/post_for_me/models/social_account_create_params.rb +105 -0
  14. data/lib/post_for_me/models/social_post.rb +197 -12
  15. data/lib/post_for_me/models/threads_configuration_dto.rb +45 -0
  16. data/lib/post_for_me/models/twitter_configuration_dto.rb +24 -0
  17. data/lib/post_for_me/models/youtube_configuration_dto.rb +32 -0
  18. data/lib/post_for_me/models.rb +20 -0
  19. data/lib/post_for_me/resources/social_accounts.rb +42 -1
  20. data/lib/post_for_me/resources/social_posts.rb +2 -2
  21. data/lib/post_for_me/version.rb +1 -1
  22. data/lib/post_for_me.rb +10 -0
  23. data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +45 -0
  24. data/rbi/post_for_me/models/create_social_post.rbi +4 -863
  25. data/rbi/post_for_me/models/facebook_configuration_dto.rbi +101 -0
  26. data/rbi/post_for_me/models/instagram_configuration_dto.rbi +109 -0
  27. data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +45 -0
  28. data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +64 -0
  29. data/rbi/post_for_me/models/platform_configurations_dto.rbi +178 -0
  30. data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +11 -0
  31. data/rbi/post_for_me/models/social_account_create_params.rbi +185 -0
  32. data/rbi/post_for_me/models/social_post.rbi +328 -13
  33. data/rbi/post_for_me/models/threads_configuration_dto.rbi +94 -0
  34. data/rbi/post_for_me/models/twitter_configuration_dto.rbi +45 -0
  35. data/rbi/post_for_me/models/youtube_configuration_dto.rbi +56 -0
  36. data/rbi/post_for_me/models.rbi +20 -0
  37. data/rbi/post_for_me/resources/social_accounts.rbi +42 -0
  38. data/rbi/post_for_me/resources/social_posts.rbi +2 -6
  39. data/sig/post_for_me/models/bluesky_configuration_dto.rbs +15 -0
  40. data/sig/post_for_me/models/create_social_post.rbs +4 -278
  41. data/sig/post_for_me/models/facebook_configuration_dto.rbs +42 -0
  42. data/sig/post_for_me/models/instagram_configuration_dto.rbs +47 -0
  43. data/sig/post_for_me/models/linkedin_configuration_dto.rbs +15 -0
  44. data/sig/post_for_me/models/pinterest_configuration_dto.rbs +35 -0
  45. data/sig/post_for_me/models/platform_configurations_dto.rbs +65 -0
  46. data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +7 -0
  47. data/sig/post_for_me/models/social_account_create_params.rbs +97 -0
  48. data/sig/post_for_me/models/social_post.rbs +155 -16
  49. data/sig/post_for_me/models/threads_configuration_dto.rbs +41 -0
  50. data/sig/post_for_me/models/twitter_configuration_dto.rbs +15 -0
  51. data/sig/post_for_me/models/youtube_configuration_dto.rbs +22 -0
  52. data/sig/post_for_me/models.rbs +20 -0
  53. data/sig/post_for_me/resources/social_accounts.rbs +14 -0
  54. data/sig/post_for_me/resources/social_posts.rbs +2 -2
  55. metadata +32 -2
@@ -0,0 +1,56 @@
1
+ # typed: strong
2
+
3
+ module PostForMe
4
+ module Models
5
+ class YoutubeConfigurationDto < PostForMe::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ PostForMe::YoutubeConfigurationDto,
10
+ PostForMe::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # Overrides the `caption` from the post
15
+ sig { returns(T.nilable(T.anything)) }
16
+ attr_accessor :caption
17
+
18
+ # Overrides the `media` from the post
19
+ sig { returns(T.nilable(T::Array[String])) }
20
+ attr_accessor :media
21
+
22
+ # Overrides the `title` from the post
23
+ sig { returns(T.nilable(String)) }
24
+ attr_accessor :title
25
+
26
+ sig do
27
+ params(
28
+ caption: T.nilable(T.anything),
29
+ media: T.nilable(T::Array[String]),
30
+ title: T.nilable(String)
31
+ ).returns(T.attached_class)
32
+ end
33
+ def self.new(
34
+ # Overrides the `caption` from the post
35
+ caption: nil,
36
+ # Overrides the `media` from the post
37
+ media: nil,
38
+ # Overrides the `title` from the post
39
+ title: nil
40
+ )
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ {
46
+ caption: T.nilable(T.anything),
47
+ media: T.nilable(T::Array[String]),
48
+ title: T.nilable(String)
49
+ }
50
+ )
51
+ end
52
+ def to_hash
53
+ end
54
+ end
55
+ end
56
+ end
@@ -1,15 +1,29 @@
1
1
  # typed: strong
2
2
 
3
3
  module PostForMe
4
+ BlueskyConfigurationDto = PostForMe::Models::BlueskyConfigurationDto
5
+
4
6
  CreateSocialPost = PostForMe::Models::CreateSocialPost
5
7
 
8
+ FacebookConfigurationDto = PostForMe::Models::FacebookConfigurationDto
9
+
10
+ InstagramConfigurationDto = PostForMe::Models::InstagramConfigurationDto
11
+
12
+ LinkedinConfigurationDto = PostForMe::Models::LinkedinConfigurationDto
13
+
6
14
  MediaCreateUploadURLParams = PostForMe::Models::MediaCreateUploadURLParams
7
15
 
16
+ PinterestConfigurationDto = PostForMe::Models::PinterestConfigurationDto
17
+
18
+ PlatformConfigurationsDto = PostForMe::Models::PlatformConfigurationsDto
19
+
8
20
  SocialAccount = PostForMe::Models::SocialAccount
9
21
 
10
22
  SocialAccountCreateAuthURLParams =
11
23
  PostForMe::Models::SocialAccountCreateAuthURLParams
12
24
 
25
+ SocialAccountCreateParams = PostForMe::Models::SocialAccountCreateParams
26
+
13
27
  SocialAccountDisconnectParams =
14
28
  PostForMe::Models::SocialAccountDisconnectParams
15
29
 
@@ -38,5 +52,11 @@ module PostForMe
38
52
 
39
53
  SocialPostUpdateParams = PostForMe::Models::SocialPostUpdateParams
40
54
 
55
+ ThreadsConfigurationDto = PostForMe::Models::ThreadsConfigurationDto
56
+
41
57
  TiktokConfiguration = PostForMe::Models::TiktokConfiguration
58
+
59
+ TwitterConfigurationDto = PostForMe::Models::TwitterConfigurationDto
60
+
61
+ YoutubeConfigurationDto = PostForMe::Models::YoutubeConfigurationDto
42
62
  end
@@ -3,6 +3,45 @@
3
3
  module PostForMe
4
4
  module Resources
5
5
  class SocialAccounts
6
+ # If a social account with the same platform and user_id already exists, it will
7
+ # be updated. If not, a new social account will be created.
8
+ sig do
9
+ params(
10
+ access_token: String,
11
+ access_token_expires_at: Time,
12
+ platform: PostForMe::SocialAccountCreateParams::Platform::OrSymbol,
13
+ user_id: String,
14
+ external_id: T.nilable(String),
15
+ metadata: T.anything,
16
+ refresh_token: T.nilable(String),
17
+ refresh_token_expires_at: T.nilable(Time),
18
+ username: T.nilable(String),
19
+ request_options: PostForMe::RequestOptions::OrHash
20
+ ).returns(PostForMe::SocialAccount)
21
+ end
22
+ def create(
23
+ # The access token of the social account
24
+ access_token:,
25
+ # The access token expiration date of the social account
26
+ access_token_expires_at:,
27
+ # The platform of the social account
28
+ platform:,
29
+ # The user id of the social account
30
+ user_id:,
31
+ # The external id of the social account
32
+ external_id: nil,
33
+ # The metadata of the social account
34
+ metadata: nil,
35
+ # The refresh token of the social account
36
+ refresh_token: nil,
37
+ # The refresh token expiration date of the social account
38
+ refresh_token_expires_at: nil,
39
+ # The platform's username of the social account
40
+ username: nil,
41
+ request_options: {}
42
+ )
43
+ end
44
+
6
45
  # Get social account by ID
7
46
  sig do
8
47
  params(
@@ -77,6 +116,7 @@ module PostForMe
77
116
  sig do
78
117
  params(
79
118
  platform: String,
119
+ external_id: String,
80
120
  platform_data:
81
121
  PostForMe::SocialAccountCreateAuthURLParams::PlatformData::OrHash,
82
122
  request_options: PostForMe::RequestOptions::OrHash
@@ -85,6 +125,8 @@ module PostForMe
85
125
  def create_auth_url(
86
126
  # The social account provider
87
127
  platform:,
128
+ # Your unique identifier for the social account
129
+ external_id: nil,
88
130
  # Additional data needed for the provider
89
131
  platform_data: nil,
90
132
  request_options: {}
@@ -19,9 +19,7 @@ module PostForMe
19
19
  media:
20
20
  T.nilable(T::Array[PostForMe::CreateSocialPost::Media::OrHash]),
21
21
  platform_configurations:
22
- T.nilable(
23
- PostForMe::CreateSocialPost::PlatformConfigurations::OrHash
24
- ),
22
+ T.nilable(PostForMe::PlatformConfigurationsDto::OrHash),
25
23
  scheduled_at: T.nilable(Time),
26
24
  request_options: PostForMe::RequestOptions::OrHash
27
25
  ).returns(PostForMe::SocialPost)
@@ -79,9 +77,7 @@ module PostForMe
79
77
  media:
80
78
  T.nilable(T::Array[PostForMe::CreateSocialPost::Media::OrHash]),
81
79
  platform_configurations:
82
- T.nilable(
83
- PostForMe::CreateSocialPost::PlatformConfigurations::OrHash
84
- ),
80
+ T.nilable(PostForMe::PlatformConfigurationsDto::OrHash),
85
81
  scheduled_at: T.nilable(Time),
86
82
  request_options: PostForMe::RequestOptions::OrHash
87
83
  ).returns(PostForMe::SocialPost)
@@ -0,0 +1,15 @@
1
+ module PostForMe
2
+ module Models
3
+ type bluesky_configuration_dto = { caption: top?, media: ::Array[String]? }
4
+
5
+ class BlueskyConfigurationDto < PostForMe::Internal::Type::BaseModel
6
+ attr_accessor caption: top?
7
+
8
+ attr_accessor media: ::Array[String]?
9
+
10
+ def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
11
+
12
+ def to_hash: -> { caption: top?, media: ::Array[String]? }
13
+ end
14
+ end
15
+ end
@@ -8,7 +8,7 @@ module PostForMe
8
8
  external_id: String?,
9
9
  is_draft: bool?,
10
10
  media: ::Array[PostForMe::CreateSocialPost::Media]?,
11
- platform_configurations: PostForMe::CreateSocialPost::PlatformConfigurations?,
11
+ platform_configurations: PostForMe::PlatformConfigurationsDto?,
12
12
  scheduled_at: Time?
13
13
  }
14
14
 
@@ -25,7 +25,7 @@ module PostForMe
25
25
 
26
26
  attr_accessor media: ::Array[PostForMe::CreateSocialPost::Media]?
27
27
 
28
- attr_accessor platform_configurations: PostForMe::CreateSocialPost::PlatformConfigurations?
28
+ attr_accessor platform_configurations: PostForMe::PlatformConfigurationsDto?
29
29
 
30
30
  attr_accessor scheduled_at: Time?
31
31
 
@@ -36,7 +36,7 @@ module PostForMe
36
36
  ?external_id: String?,
37
37
  ?is_draft: bool?,
38
38
  ?media: ::Array[PostForMe::CreateSocialPost::Media]?,
39
- ?platform_configurations: PostForMe::CreateSocialPost::PlatformConfigurations?,
39
+ ?platform_configurations: PostForMe::PlatformConfigurationsDto?,
40
40
  ?scheduled_at: Time?
41
41
  ) -> void
42
42
 
@@ -47,7 +47,7 @@ module PostForMe
47
47
  external_id: String?,
48
48
  is_draft: bool?,
49
49
  media: ::Array[PostForMe::CreateSocialPost::Media]?,
50
- platform_configurations: PostForMe::CreateSocialPost::PlatformConfigurations?,
50
+ platform_configurations: PostForMe::PlatformConfigurationsDto?,
51
51
  scheduled_at: Time?
52
52
  }
53
53
 
@@ -189,280 +189,6 @@ module PostForMe
189
189
  thumbnail_url: top?
190
190
  }
191
191
  end
192
-
193
- type platform_configurations =
194
- {
195
- bluesky: PostForMe::CreateSocialPost::PlatformConfigurations::Bluesky?,
196
- facebook: PostForMe::CreateSocialPost::PlatformConfigurations::Facebook?,
197
- instagram: PostForMe::CreateSocialPost::PlatformConfigurations::Instagram?,
198
- linkedin: PostForMe::CreateSocialPost::PlatformConfigurations::Linkedin?,
199
- pinterest: PostForMe::CreateSocialPost::PlatformConfigurations::Pinterest?,
200
- threads: PostForMe::CreateSocialPost::PlatformConfigurations::Threads?,
201
- tiktok: PostForMe::TiktokConfiguration?,
202
- tiktok_business: PostForMe::TiktokConfiguration?,
203
- x: PostForMe::CreateSocialPost::PlatformConfigurations::X?,
204
- youtube: PostForMe::CreateSocialPost::PlatformConfigurations::Youtube?
205
- }
206
-
207
- class PlatformConfigurations < PostForMe::Internal::Type::BaseModel
208
- attr_accessor bluesky: PostForMe::CreateSocialPost::PlatformConfigurations::Bluesky?
209
-
210
- attr_accessor facebook: PostForMe::CreateSocialPost::PlatformConfigurations::Facebook?
211
-
212
- attr_accessor instagram: PostForMe::CreateSocialPost::PlatformConfigurations::Instagram?
213
-
214
- attr_accessor linkedin: PostForMe::CreateSocialPost::PlatformConfigurations::Linkedin?
215
-
216
- attr_accessor pinterest: PostForMe::CreateSocialPost::PlatformConfigurations::Pinterest?
217
-
218
- attr_accessor threads: PostForMe::CreateSocialPost::PlatformConfigurations::Threads?
219
-
220
- attr_accessor tiktok: PostForMe::TiktokConfiguration?
221
-
222
- attr_accessor tiktok_business: PostForMe::TiktokConfiguration?
223
-
224
- attr_accessor x: PostForMe::CreateSocialPost::PlatformConfigurations::X?
225
-
226
- attr_accessor youtube: PostForMe::CreateSocialPost::PlatformConfigurations::Youtube?
227
-
228
- def initialize: (
229
- ?bluesky: PostForMe::CreateSocialPost::PlatformConfigurations::Bluesky?,
230
- ?facebook: PostForMe::CreateSocialPost::PlatformConfigurations::Facebook?,
231
- ?instagram: PostForMe::CreateSocialPost::PlatformConfigurations::Instagram?,
232
- ?linkedin: PostForMe::CreateSocialPost::PlatformConfigurations::Linkedin?,
233
- ?pinterest: PostForMe::CreateSocialPost::PlatformConfigurations::Pinterest?,
234
- ?threads: PostForMe::CreateSocialPost::PlatformConfigurations::Threads?,
235
- ?tiktok: PostForMe::TiktokConfiguration?,
236
- ?tiktok_business: PostForMe::TiktokConfiguration?,
237
- ?x: PostForMe::CreateSocialPost::PlatformConfigurations::X?,
238
- ?youtube: PostForMe::CreateSocialPost::PlatformConfigurations::Youtube?
239
- ) -> void
240
-
241
- def to_hash: -> {
242
- bluesky: PostForMe::CreateSocialPost::PlatformConfigurations::Bluesky?,
243
- facebook: PostForMe::CreateSocialPost::PlatformConfigurations::Facebook?,
244
- instagram: PostForMe::CreateSocialPost::PlatformConfigurations::Instagram?,
245
- linkedin: PostForMe::CreateSocialPost::PlatformConfigurations::Linkedin?,
246
- pinterest: PostForMe::CreateSocialPost::PlatformConfigurations::Pinterest?,
247
- threads: PostForMe::CreateSocialPost::PlatformConfigurations::Threads?,
248
- tiktok: PostForMe::TiktokConfiguration?,
249
- tiktok_business: PostForMe::TiktokConfiguration?,
250
- x: PostForMe::CreateSocialPost::PlatformConfigurations::X?,
251
- youtube: PostForMe::CreateSocialPost::PlatformConfigurations::Youtube?
252
- }
253
-
254
- type bluesky = { caption: top?, media: ::Array[String]? }
255
-
256
- class Bluesky < PostForMe::Internal::Type::BaseModel
257
- attr_accessor caption: top?
258
-
259
- attr_accessor media: ::Array[String]?
260
-
261
- def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
262
-
263
- def to_hash: -> { caption: top?, media: ::Array[String]? }
264
- end
265
-
266
- type facebook =
267
- {
268
- caption: top?,
269
- media: ::Array[String]?,
270
- placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
271
- }
272
-
273
- class Facebook < PostForMe::Internal::Type::BaseModel
274
- attr_accessor caption: top?
275
-
276
- attr_accessor media: ::Array[String]?
277
-
278
- attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
279
-
280
- def initialize: (
281
- ?caption: top?,
282
- ?media: ::Array[String]?,
283
- ?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
284
- ) -> void
285
-
286
- def to_hash: -> {
287
- caption: top?,
288
- media: ::Array[String]?,
289
- placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
290
- }
291
-
292
- type placement = :reels | :stories | :timeline
293
-
294
- module Placement
295
- extend PostForMe::Internal::Type::Enum
296
-
297
- REELS: :reels
298
- STORIES: :stories
299
- TIMELINE: :timeline
300
-
301
- def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement]
302
- end
303
- end
304
-
305
- type instagram =
306
- {
307
- caption: top?,
308
- collaborators: ::Array[String]?,
309
- media: ::Array[String]?,
310
- placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
311
- }
312
-
313
- class Instagram < PostForMe::Internal::Type::BaseModel
314
- attr_accessor caption: top?
315
-
316
- attr_accessor collaborators: ::Array[String]?
317
-
318
- attr_accessor media: ::Array[String]?
319
-
320
- attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
321
-
322
- def initialize: (
323
- ?caption: top?,
324
- ?collaborators: ::Array[String]?,
325
- ?media: ::Array[String]?,
326
- ?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
327
- ) -> void
328
-
329
- def to_hash: -> {
330
- caption: top?,
331
- collaborators: ::Array[String]?,
332
- media: ::Array[String]?,
333
- placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
334
- }
335
-
336
- type placement = :reels | :stories | :timeline
337
-
338
- module Placement
339
- extend PostForMe::Internal::Type::Enum
340
-
341
- REELS: :reels
342
- STORIES: :stories
343
- TIMELINE: :timeline
344
-
345
- def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement]
346
- end
347
- end
348
-
349
- type linkedin = { caption: top?, media: ::Array[String]? }
350
-
351
- class Linkedin < PostForMe::Internal::Type::BaseModel
352
- attr_accessor caption: top?
353
-
354
- attr_accessor media: ::Array[String]?
355
-
356
- def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
357
-
358
- def to_hash: -> { caption: top?, media: ::Array[String]? }
359
- end
360
-
361
- type pinterest =
362
- {
363
- board_ids: ::Array[String]?,
364
- caption: top?,
365
- link: String?,
366
- media: ::Array[String]?
367
- }
368
-
369
- class Pinterest < PostForMe::Internal::Type::BaseModel
370
- attr_accessor board_ids: ::Array[String]?
371
-
372
- attr_accessor caption: top?
373
-
374
- attr_accessor link: String?
375
-
376
- attr_accessor media: ::Array[String]?
377
-
378
- def initialize: (
379
- ?board_ids: ::Array[String]?,
380
- ?caption: top?,
381
- ?link: String?,
382
- ?media: ::Array[String]?
383
- ) -> void
384
-
385
- def to_hash: -> {
386
- board_ids: ::Array[String]?,
387
- caption: top?,
388
- link: String?,
389
- media: ::Array[String]?
390
- }
391
- end
392
-
393
- type threads =
394
- {
395
- caption: top?,
396
- media: ::Array[String]?,
397
- placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
398
- }
399
-
400
- class Threads < PostForMe::Internal::Type::BaseModel
401
- attr_accessor caption: top?
402
-
403
- attr_accessor media: ::Array[String]?
404
-
405
- attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
406
-
407
- def initialize: (
408
- ?caption: top?,
409
- ?media: ::Array[String]?,
410
- ?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
411
- ) -> void
412
-
413
- def to_hash: -> {
414
- caption: top?,
415
- media: ::Array[String]?,
416
- placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
417
- }
418
-
419
- type placement = :reels | :timeline
420
-
421
- module Placement
422
- extend PostForMe::Internal::Type::Enum
423
-
424
- REELS: :reels
425
- TIMELINE: :timeline
426
-
427
- def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement]
428
- end
429
- end
430
-
431
- type x = { caption: top?, media: ::Array[String]? }
432
-
433
- class X < PostForMe::Internal::Type::BaseModel
434
- attr_accessor caption: top?
435
-
436
- attr_accessor media: ::Array[String]?
437
-
438
- def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
439
-
440
- def to_hash: -> { caption: top?, media: ::Array[String]? }
441
- end
442
-
443
- type youtube =
444
- { caption: top?, media: ::Array[String]?, title: String? }
445
-
446
- class Youtube < PostForMe::Internal::Type::BaseModel
447
- attr_accessor caption: top?
448
-
449
- attr_accessor media: ::Array[String]?
450
-
451
- attr_accessor title: String?
452
-
453
- def initialize: (
454
- ?caption: top?,
455
- ?media: ::Array[String]?,
456
- ?title: String?
457
- ) -> void
458
-
459
- def to_hash: -> {
460
- caption: top?,
461
- media: ::Array[String]?,
462
- title: String?
463
- }
464
- end
465
- end
466
192
  end
467
193
  end
468
194
  end
@@ -0,0 +1,42 @@
1
+ module PostForMe
2
+ module Models
3
+ type facebook_configuration_dto =
4
+ {
5
+ caption: top?,
6
+ media: ::Array[String]?,
7
+ placement: PostForMe::Models::FacebookConfigurationDto::placement?
8
+ }
9
+
10
+ class FacebookConfigurationDto < PostForMe::Internal::Type::BaseModel
11
+ attr_accessor caption: top?
12
+
13
+ attr_accessor media: ::Array[String]?
14
+
15
+ attr_accessor placement: PostForMe::Models::FacebookConfigurationDto::placement?
16
+
17
+ def initialize: (
18
+ ?caption: top?,
19
+ ?media: ::Array[String]?,
20
+ ?placement: PostForMe::Models::FacebookConfigurationDto::placement?
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ caption: top?,
25
+ media: ::Array[String]?,
26
+ placement: PostForMe::Models::FacebookConfigurationDto::placement?
27
+ }
28
+
29
+ type placement = :reels | :stories | :timeline
30
+
31
+ module Placement
32
+ extend PostForMe::Internal::Type::Enum
33
+
34
+ REELS: :reels
35
+ STORIES: :stories
36
+ TIMELINE: :timeline
37
+
38
+ def self?.values: -> ::Array[PostForMe::Models::FacebookConfigurationDto::placement]
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,47 @@
1
+ module PostForMe
2
+ module Models
3
+ type instagram_configuration_dto =
4
+ {
5
+ caption: top?,
6
+ collaborators: ::Array[String]?,
7
+ media: ::Array[String]?,
8
+ placement: PostForMe::Models::InstagramConfigurationDto::placement?
9
+ }
10
+
11
+ class InstagramConfigurationDto < PostForMe::Internal::Type::BaseModel
12
+ attr_accessor caption: top?
13
+
14
+ attr_accessor collaborators: ::Array[String]?
15
+
16
+ attr_accessor media: ::Array[String]?
17
+
18
+ attr_accessor placement: PostForMe::Models::InstagramConfigurationDto::placement?
19
+
20
+ def initialize: (
21
+ ?caption: top?,
22
+ ?collaborators: ::Array[String]?,
23
+ ?media: ::Array[String]?,
24
+ ?placement: PostForMe::Models::InstagramConfigurationDto::placement?
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ caption: top?,
29
+ collaborators: ::Array[String]?,
30
+ media: ::Array[String]?,
31
+ placement: PostForMe::Models::InstagramConfigurationDto::placement?
32
+ }
33
+
34
+ type placement = :reels | :stories | :timeline
35
+
36
+ module Placement
37
+ extend PostForMe::Internal::Type::Enum
38
+
39
+ REELS: :reels
40
+ STORIES: :stories
41
+ TIMELINE: :timeline
42
+
43
+ def self?.values: -> ::Array[PostForMe::Models::InstagramConfigurationDto::placement]
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,15 @@
1
+ module PostForMe
2
+ module Models
3
+ type linkedin_configuration_dto = { caption: top?, media: ::Array[String]? }
4
+
5
+ class LinkedinConfigurationDto < PostForMe::Internal::Type::BaseModel
6
+ attr_accessor caption: top?
7
+
8
+ attr_accessor media: ::Array[String]?
9
+
10
+ def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
11
+
12
+ def to_hash: -> { caption: top?, media: ::Array[String]? }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,35 @@
1
+ module PostForMe
2
+ module Models
3
+ type pinterest_configuration_dto =
4
+ {
5
+ board_ids: ::Array[String]?,
6
+ caption: top?,
7
+ link: String?,
8
+ media: ::Array[String]?
9
+ }
10
+
11
+ class PinterestConfigurationDto < PostForMe::Internal::Type::BaseModel
12
+ attr_accessor board_ids: ::Array[String]?
13
+
14
+ attr_accessor caption: top?
15
+
16
+ attr_accessor link: String?
17
+
18
+ attr_accessor media: ::Array[String]?
19
+
20
+ def initialize: (
21
+ ?board_ids: ::Array[String]?,
22
+ ?caption: top?,
23
+ ?link: String?,
24
+ ?media: ::Array[String]?
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ board_ids: ::Array[String]?,
29
+ caption: top?,
30
+ link: String?,
31
+ media: ::Array[String]?
32
+ }
33
+ end
34
+ end
35
+ end