zernio-sdk 0.0.71 → 0.0.73
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/docs/AddBroadcastRecipientsRequest.md +2 -0
- data/docs/CreatePostRequest.md +1 -1
- data/lib/late-sdk/models/add_broadcast_recipients_request.rb +13 -1
- data/lib/late-sdk/models/create_post_request.rb +1 -0
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +2 -0
- data/spec/models/add_broadcast_recipients_request_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe08c44d14d86a2702e96cfbd6b7f21c44b92cc30fdcffd77380b06ac40e8c94
|
|
4
|
+
data.tar.gz: 1270f3599741456b1bffbe596224e265a3aa76941fda398ba1ff1537108f895c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b45a3a477934c449bbe3a1dcbb89670ffc7b1370de135aa8be36f2910322866902ea369389ef73f90733da81bb58b40f5d70618e2926e83036d25c8cba7501a3
|
|
7
|
+
data.tar.gz: 9cd50c0948728c27b82825d2967e122e91e4a1b7b0a902661cfbec7a0bd3a50d5038a0cbaf897b2695bb6670cde56e9721089a29b7ec35de17b4517832b66256
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **contact_ids** | **Array<String>** | Specific contact IDs to add | [optional] |
|
|
8
|
+
| **phones** | **Array<String>** | Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry | [optional] |
|
|
8
9
|
| **use_segment** | **Boolean** | Auto-populate from broadcast segment filters | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
@@ -14,6 +15,7 @@ require 'late-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Late::AddBroadcastRecipientsRequest.new(
|
|
16
17
|
contact_ids: null,
|
|
18
|
+
phones: null,
|
|
17
19
|
use_segment: null
|
|
18
20
|
)
|
|
19
21
|
```
|
data/docs/CreatePostRequest.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **title** | **String** | | [optional] |
|
|
8
8
|
| **content** | **String** | Post caption/text. Optional when media is attached or all platforms have customContent. Required for text-only posts. | [optional] |
|
|
9
9
|
| **media_items** | [**Array<CreatePostRequestMediaItemsInner>**](CreatePostRequestMediaItemsInner.md) | | [optional] |
|
|
10
|
-
| **platforms** | [**Array<CreatePostRequestPlatformsInner>**](CreatePostRequestPlatformsInner.md) |
|
|
10
|
+
| **platforms** | [**Array<CreatePostRequestPlatformsInner>**](CreatePostRequestPlatformsInner.md) | Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms. | [optional] |
|
|
11
11
|
| **scheduled_for** | **Time** | | [optional] |
|
|
12
12
|
| **publish_now** | **Boolean** | | [optional][default to false] |
|
|
13
13
|
| **is_draft** | **Boolean** | When true, saves the post as a draft. When none of scheduledFor, publishNow, or queuedFromProfile are provided, the post defaults to draft automatically. | [optional][default to false] |
|
|
@@ -18,6 +18,9 @@ module Late
|
|
|
18
18
|
# Specific contact IDs to add
|
|
19
19
|
attr_accessor :contact_ids
|
|
20
20
|
|
|
21
|
+
# Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
|
|
22
|
+
attr_accessor :phones
|
|
23
|
+
|
|
21
24
|
# Auto-populate from broadcast segment filters
|
|
22
25
|
attr_accessor :use_segment
|
|
23
26
|
|
|
@@ -25,6 +28,7 @@ module Late
|
|
|
25
28
|
def self.attribute_map
|
|
26
29
|
{
|
|
27
30
|
:'contact_ids' => :'contactIds',
|
|
31
|
+
:'phones' => :'phones',
|
|
28
32
|
:'use_segment' => :'useSegment'
|
|
29
33
|
}
|
|
30
34
|
end
|
|
@@ -43,6 +47,7 @@ module Late
|
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
45
49
|
:'contact_ids' => :'Array<String>',
|
|
50
|
+
:'phones' => :'Array<String>',
|
|
46
51
|
:'use_segment' => :'Boolean'
|
|
47
52
|
}
|
|
48
53
|
end
|
|
@@ -75,6 +80,12 @@ module Late
|
|
|
75
80
|
end
|
|
76
81
|
end
|
|
77
82
|
|
|
83
|
+
if attributes.key?(:'phones')
|
|
84
|
+
if (value = attributes[:'phones']).is_a?(Array)
|
|
85
|
+
self.phones = value
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
78
89
|
if attributes.key?(:'use_segment')
|
|
79
90
|
self.use_segment = attributes[:'use_segment']
|
|
80
91
|
end
|
|
@@ -101,6 +112,7 @@ module Late
|
|
|
101
112
|
return true if self.equal?(o)
|
|
102
113
|
self.class == o.class &&
|
|
103
114
|
contact_ids == o.contact_ids &&
|
|
115
|
+
phones == o.phones &&
|
|
104
116
|
use_segment == o.use_segment
|
|
105
117
|
end
|
|
106
118
|
|
|
@@ -113,7 +125,7 @@ module Late
|
|
|
113
125
|
# Calculates hash code according to all attributes.
|
|
114
126
|
# @return [Integer] Hash code
|
|
115
127
|
def hash
|
|
116
|
-
[contact_ids, use_segment].hash
|
|
128
|
+
[contact_ids, phones, use_segment].hash
|
|
117
129
|
end
|
|
118
130
|
|
|
119
131
|
# Builds the object from hash
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -4693,6 +4693,7 @@ paths:
|
|
|
4693
4693
|
url: { type: string, format: uri }
|
|
4694
4694
|
platforms:
|
|
4695
4695
|
type: array
|
|
4696
|
+
description: Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms.
|
|
4696
4697
|
items:
|
|
4697
4698
|
type: object
|
|
4698
4699
|
properties:
|
|
@@ -14972,6 +14973,7 @@ paths:
|
|
|
14972
14973
|
type: object
|
|
14973
14974
|
properties:
|
|
14974
14975
|
contactIds: { type: array, items: { type: string }, description: Specific contact IDs to add }
|
|
14976
|
+
phones: { type: array, items: { type: string }, description: Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry }
|
|
14975
14977
|
useSegment: { type: boolean, description: Auto-populate from broadcast segment filters }
|
|
14976
14978
|
responses:
|
|
14977
14979
|
'200': { description: Recipients added }
|
|
@@ -33,6 +33,12 @@ describe Late::AddBroadcastRecipientsRequest do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "phones"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
describe 'test attribute "use_segment"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|