late-sdk 0.0.597 → 0.0.598
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/README.md +1 -0
- data/docs/CreatePostRequestPlatformsInnerPlatformSpecificData.md +2 -0
- data/docs/PlatformTargetPlatformSpecificData.md +2 -0
- data/docs/SlackPlatformData.md +26 -0
- data/lib/zernio-sdk/api/accounts_api.rb +1 -1
- data/lib/zernio-sdk/api/connect_api.rb +1 -1
- data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
- data/lib/zernio-sdk/models/create_post_request_platforms_inner_platform_specific_data.rb +1 -0
- data/lib/zernio-sdk/models/platform_target_platform_specific_data.rb +1 -0
- data/lib/zernio-sdk/models/slack_platform_data.rb +189 -0
- data/lib/zernio-sdk/models/social_account.rb +2 -2
- data/lib/zernio-sdk/models/validate_post_request_platforms_inner.rb +2 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +1 -0
- data/openapi.yaml +27 -4
- data/spec/models/account_with_follower_stats_spec.rb +1 -1
- data/spec/models/slack_platform_data_spec.rb +60 -0
- data/spec/models/social_account_spec.rb +1 -1
- data/spec/models/validate_post_request_platforms_inner_spec.rb +1 -1
- data/zernio-sdk-0.0.598.gem +0 -0
- metadata +6 -2
- data/zernio-sdk-0.0.597.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2f8df7bfc3d0ca842b7fe252c4af128a300c7c8da162adca518492c9d0afd68
|
|
4
|
+
data.tar.gz: 3f71b537be34b57d0d9081fdffecb36cfd4d2b3a1368851283656741bc565186
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e800a4f47bffc44e2746d257c0e51754e1ceff1a7d417b3907feb3a07b4c83affcd6d4f16578da85a2e0a75be3c705ade03424998ebcfc962d8674a73c08457
|
|
7
|
+
data.tar.gz: d3e0aa15b15373cbfccf0a76f366f931cafaac7a267d9e3fcd947ea9f9ad98652f5b22964c71182ef44a80210f1a6575250ac3af11637e9aae00b979cdd1f12a
|
data/README.md
CHANGED
|
@@ -1775,6 +1775,7 @@ Class | Method | HTTP request | Description
|
|
|
1775
1775
|
- [Zernio::ShareSmsRegistration200Response](docs/ShareSmsRegistration200Response.md)
|
|
1776
1776
|
- [Zernio::ShareSmsRegistrationRequest](docs/ShareSmsRegistrationRequest.md)
|
|
1777
1777
|
- [Zernio::SharedAdAccount](docs/SharedAdAccount.md)
|
|
1778
|
+
- [Zernio::SlackPlatformData](docs/SlackPlatformData.md)
|
|
1778
1779
|
- [Zernio::SnapchatPlatformData](docs/SnapchatPlatformData.md)
|
|
1779
1780
|
- [Zernio::SocialAccount](docs/SocialAccount.md)
|
|
1780
1781
|
- [Zernio::SocialAccountProfileId](docs/SocialAccountProfileId.md)
|
|
@@ -22,6 +22,7 @@ Zernio::CreatePostRequestPlatformsInnerPlatformSpecificData.openapi_one_of
|
|
|
22
22
|
# :'LinkedInPlatformData',
|
|
23
23
|
# :'PinterestPlatformData',
|
|
24
24
|
# :'RedditPlatformData',
|
|
25
|
+
# :'SlackPlatformData',
|
|
25
26
|
# :'SnapchatPlatformData',
|
|
26
27
|
# :'TelegramPlatformData',
|
|
27
28
|
# :'ThreadsPlatformData',
|
|
@@ -63,6 +64,7 @@ Zernio::CreatePostRequestPlatformsInnerPlatformSpecificData.build(data_that_does
|
|
|
63
64
|
- `LinkedInPlatformData`
|
|
64
65
|
- `PinterestPlatformData`
|
|
65
66
|
- `RedditPlatformData`
|
|
67
|
+
- `SlackPlatformData`
|
|
66
68
|
- `SnapchatPlatformData`
|
|
67
69
|
- `TelegramPlatformData`
|
|
68
70
|
- `ThreadsPlatformData`
|
|
@@ -22,6 +22,7 @@ Zernio::PlatformTargetPlatformSpecificData.openapi_one_of
|
|
|
22
22
|
# :'LinkedInPlatformData',
|
|
23
23
|
# :'PinterestPlatformData',
|
|
24
24
|
# :'RedditPlatformData',
|
|
25
|
+
# :'SlackPlatformData',
|
|
25
26
|
# :'SnapchatPlatformData',
|
|
26
27
|
# :'TelegramPlatformData',
|
|
27
28
|
# :'ThreadsPlatformData',
|
|
@@ -63,6 +64,7 @@ Zernio::PlatformTargetPlatformSpecificData.build(data_that_doesnt_match)
|
|
|
63
64
|
- `LinkedInPlatformData`
|
|
64
65
|
- `PinterestPlatformData`
|
|
65
66
|
- `RedditPlatformData`
|
|
67
|
+
- `SlackPlatformData`
|
|
66
68
|
- `SnapchatPlatformData`
|
|
67
69
|
- `TelegramPlatformData`
|
|
68
70
|
- `ThreadsPlatformData`
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Zernio::SlackPlatformData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **thread_ts** | **String** | Parent message ts to post this message as a thread reply (e.g. \"1503435956.000247\"). | [optional] |
|
|
8
|
+
| **unfurl_links** | **Boolean** | Expand links in the message into preview cards. Default true. | [optional] |
|
|
9
|
+
| **unfurl_media** | **Boolean** | Expand media links into inline previews. Default true. | [optional] |
|
|
10
|
+
| **username** | **String** | Override the bot display name for this message only (requires no setup; shown with an APP badge). Does not change the app identity in the sidebar. | [optional] |
|
|
11
|
+
| **icon_url** | **String** | Override the bot avatar image URL for this message only. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'zernio-sdk'
|
|
17
|
+
|
|
18
|
+
instance = Zernio::SlackPlatformData.new(
|
|
19
|
+
thread_ts: null,
|
|
20
|
+
unfurl_links: null,
|
|
21
|
+
unfurl_media: null,
|
|
22
|
+
username: null,
|
|
23
|
+
icon_url: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -168,7 +168,7 @@ module Zernio
|
|
|
168
168
|
if @api_client.config.debugging
|
|
169
169
|
@api_client.config.logger.debug 'Calling API: AccountsApi.get_all_accounts_health ...'
|
|
170
170
|
end
|
|
171
|
-
allowable_values = ["facebook", "instagram", "linkedin", "twitter", "tiktok", "youtube", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp"]
|
|
171
|
+
allowable_values = ["facebook", "instagram", "linkedin", "twitter", "tiktok", "youtube", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp"]
|
|
172
172
|
if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
|
|
173
173
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
|
|
174
174
|
end
|
|
@@ -697,7 +697,7 @@ module Zernio
|
|
|
697
697
|
fail ArgumentError, "Missing the required parameter 'platform' when calling ConnectApi.get_connect_url"
|
|
698
698
|
end
|
|
699
699
|
# verify enum value
|
|
700
|
-
allowable_values = ["facebook", "instagram", "linkedin", "twitter", "tiktok", "youtube", "threads", "reddit", "pinterest", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp"]
|
|
700
|
+
allowable_values = ["facebook", "instagram", "linkedin", "twitter", "tiktok", "youtube", "threads", "reddit", "pinterest", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp"]
|
|
701
701
|
if @api_client.config.client_side_validation && !allowable_values.include?(platform)
|
|
702
702
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
|
|
703
703
|
end
|
|
@@ -299,7 +299,7 @@ module Zernio
|
|
|
299
299
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
300
300
|
return false if @_id.nil?
|
|
301
301
|
return false if @platform.nil?
|
|
302
|
-
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
302
|
+
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
303
303
|
return false unless platform_validator.valid?(@platform)
|
|
304
304
|
return false if @profile_id.nil?
|
|
305
305
|
return false if @is_active.nil?
|
|
@@ -319,7 +319,7 @@ module Zernio
|
|
|
319
319
|
# Custom attribute writer method checking allowed values (enum).
|
|
320
320
|
# @param [Object] platform Object to be assigned
|
|
321
321
|
def platform=(platform)
|
|
322
|
-
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
322
|
+
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
323
323
|
unless validator.valid?(platform)
|
|
324
324
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
325
325
|
end
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
# Slack message settings. Posts mrkdwn text (up to 40,000 chars; Slack truncates beyond that) to the channel fixed by the connected account, with up to 10 media files per post uploaded via Slack's file API (the text becomes the caption). The target channel is chosen at connect time — one connected account per channel — so channelId is NOT accepted here (a 400 is returned); connect the desired channel via /v1/connect/slack and target its accountId. Messages over 4,000 characters cannot be edited later (Slack's edit limit is stricter than its post limit).
|
|
18
|
+
class SlackPlatformData < ApiModelBase
|
|
19
|
+
# Parent message ts to post this message as a thread reply (e.g. \"1503435956.000247\").
|
|
20
|
+
attr_accessor :thread_ts
|
|
21
|
+
|
|
22
|
+
# Expand links in the message into preview cards. Default true.
|
|
23
|
+
attr_accessor :unfurl_links
|
|
24
|
+
|
|
25
|
+
# Expand media links into inline previews. Default true.
|
|
26
|
+
attr_accessor :unfurl_media
|
|
27
|
+
|
|
28
|
+
# Override the bot display name for this message only (requires no setup; shown with an APP badge). Does not change the app identity in the sidebar.
|
|
29
|
+
attr_accessor :username
|
|
30
|
+
|
|
31
|
+
# Override the bot avatar image URL for this message only.
|
|
32
|
+
attr_accessor :icon_url
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'thread_ts' => :'threadTs',
|
|
38
|
+
:'unfurl_links' => :'unfurlLinks',
|
|
39
|
+
:'unfurl_media' => :'unfurlMedia',
|
|
40
|
+
:'username' => :'username',
|
|
41
|
+
:'icon_url' => :'iconUrl'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns attribute mapping this model knows about
|
|
46
|
+
def self.acceptable_attribute_map
|
|
47
|
+
attribute_map
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns all the JSON keys this model knows about
|
|
51
|
+
def self.acceptable_attributes
|
|
52
|
+
acceptable_attribute_map.values
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute type mapping.
|
|
56
|
+
def self.openapi_types
|
|
57
|
+
{
|
|
58
|
+
:'thread_ts' => :'String',
|
|
59
|
+
:'unfurl_links' => :'Boolean',
|
|
60
|
+
:'unfurl_media' => :'Boolean',
|
|
61
|
+
:'username' => :'String',
|
|
62
|
+
:'icon_url' => :'String'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# List of attributes with nullable: true
|
|
67
|
+
def self.openapi_nullable
|
|
68
|
+
Set.new([
|
|
69
|
+
])
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
if (!attributes.is_a?(Hash))
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SlackPlatformData` initialize method"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SlackPlatformData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'thread_ts')
|
|
89
|
+
self.thread_ts = attributes[:'thread_ts']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'unfurl_links')
|
|
93
|
+
self.unfurl_links = attributes[:'unfurl_links']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'unfurl_media')
|
|
97
|
+
self.unfurl_media = attributes[:'unfurl_media']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'username')
|
|
101
|
+
self.username = attributes[:'username']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'icon_url')
|
|
105
|
+
self.icon_url = attributes[:'icon_url']
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
110
|
+
# @return Array for valid properties with the reasons
|
|
111
|
+
def list_invalid_properties
|
|
112
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
113
|
+
invalid_properties = Array.new
|
|
114
|
+
invalid_properties
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Check to see if the all the properties in the model are valid
|
|
118
|
+
# @return true if the model is valid
|
|
119
|
+
def valid?
|
|
120
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
|
+
true
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Checks equality by comparing each attribute.
|
|
125
|
+
# @param [Object] Object to be compared
|
|
126
|
+
def ==(o)
|
|
127
|
+
return true if self.equal?(o)
|
|
128
|
+
self.class == o.class &&
|
|
129
|
+
thread_ts == o.thread_ts &&
|
|
130
|
+
unfurl_links == o.unfurl_links &&
|
|
131
|
+
unfurl_media == o.unfurl_media &&
|
|
132
|
+
username == o.username &&
|
|
133
|
+
icon_url == o.icon_url
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# @see the `==` method
|
|
137
|
+
# @param [Object] Object to be compared
|
|
138
|
+
def eql?(o)
|
|
139
|
+
self == o
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Calculates hash code according to all attributes.
|
|
143
|
+
# @return [Integer] Hash code
|
|
144
|
+
def hash
|
|
145
|
+
[thread_ts, unfurl_links, unfurl_media, username, icon_url].hash
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Builds the object from hash
|
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
150
|
+
# @return [Object] Returns the model itself
|
|
151
|
+
def self.build_from_hash(attributes)
|
|
152
|
+
return nil unless attributes.is_a?(Hash)
|
|
153
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
154
|
+
transformed_hash = {}
|
|
155
|
+
openapi_types.each_pair do |key, type|
|
|
156
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
157
|
+
transformed_hash["#{key}"] = nil
|
|
158
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
159
|
+
# check to ensure the input is an array given that the attribute
|
|
160
|
+
# is documented as an array but the input is not
|
|
161
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
162
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
163
|
+
end
|
|
164
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
165
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
new(transformed_hash)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Returns the object in the form of hash
|
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
|
173
|
+
def to_hash
|
|
174
|
+
hash = {}
|
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
176
|
+
value = self.send(attr)
|
|
177
|
+
if value.nil?
|
|
178
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
179
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
hash[param] = _to_hash(value)
|
|
183
|
+
end
|
|
184
|
+
hash
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
end
|
|
@@ -242,7 +242,7 @@ module Zernio
|
|
|
242
242
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
243
243
|
return false if @_id.nil?
|
|
244
244
|
return false if @platform.nil?
|
|
245
|
-
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
245
|
+
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
246
246
|
return false unless platform_validator.valid?(@platform)
|
|
247
247
|
return false if @profile_id.nil?
|
|
248
248
|
return false if @is_active.nil?
|
|
@@ -262,7 +262,7 @@ module Zernio
|
|
|
262
262
|
# Custom attribute writer method checking allowed values (enum).
|
|
263
263
|
# @param [Object] platform Object to be assigned
|
|
264
264
|
def platform=(platform)
|
|
265
|
-
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
265
|
+
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
266
266
|
unless validator.valid?(platform)
|
|
267
267
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
268
268
|
end
|
|
@@ -144,7 +144,7 @@ module Zernio
|
|
|
144
144
|
def valid?
|
|
145
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
146
|
return false if @platform.nil?
|
|
147
|
-
platform_validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord"])
|
|
147
|
+
platform_validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord", "slack"])
|
|
148
148
|
return false unless platform_validator.valid?(@platform)
|
|
149
149
|
true
|
|
150
150
|
end
|
|
@@ -152,7 +152,7 @@ module Zernio
|
|
|
152
152
|
# Custom attribute writer method checking allowed values (enum).
|
|
153
153
|
# @param [Object] platform Object to be assigned
|
|
154
154
|
def platform=(platform)
|
|
155
|
-
validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord"])
|
|
155
|
+
validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord", "slack"])
|
|
156
156
|
unless validator.valid?(platform)
|
|
157
157
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
158
158
|
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -1198,6 +1198,7 @@ require 'zernio-sdk/models/set_whatsapp_business_username_request'
|
|
|
1198
1198
|
require 'zernio-sdk/models/share_sms_registration200_response'
|
|
1199
1199
|
require 'zernio-sdk/models/share_sms_registration_request'
|
|
1200
1200
|
require 'zernio-sdk/models/shared_ad_account'
|
|
1201
|
+
require 'zernio-sdk/models/slack_platform_data'
|
|
1201
1202
|
require 'zernio-sdk/models/snapchat_platform_data'
|
|
1202
1203
|
require 'zernio-sdk/models/social_account'
|
|
1203
1204
|
require 'zernio-sdk/models/social_account_profile_id'
|
data/openapi.yaml
CHANGED
|
@@ -4053,6 +4053,7 @@ components:
|
|
|
4053
4053
|
- $ref: '#/components/schemas/RedditPlatformData'
|
|
4054
4054
|
- $ref: '#/components/schemas/BlueskyPlatformData'
|
|
4055
4055
|
- $ref: '#/components/schemas/DiscordPlatformData'
|
|
4056
|
+
- $ref: '#/components/schemas/SlackPlatformData'
|
|
4056
4057
|
additionalProperties: true
|
|
4057
4058
|
status:
|
|
4058
4059
|
type: string
|
|
@@ -5304,6 +5305,27 @@ components:
|
|
|
5304
5305
|
description: |
|
|
5305
5306
|
Discord message settings. Supports plain text (2,000 chars), rich embeds (up to 10), native polls, forum posts, threads, and announcement crossposts. Media attachments support images (JPEG, PNG, GIF, WebP), videos (MP4), and documents (up to 10 files, 25 MB each). Webhook identity (username + avatar) can be customized per-account via PATCH /v1/connect/discord or per-post via webhookUsername/webhookAvatarUrl.
|
|
5306
5307
|
|
|
5308
|
+
SlackPlatformData:
|
|
5309
|
+
type: object
|
|
5310
|
+
properties:
|
|
5311
|
+
threadTs:
|
|
5312
|
+
type: string
|
|
5313
|
+
description: 'Parent message ts to post this message as a thread reply (e.g. "1503435956.000247").'
|
|
5314
|
+
unfurlLinks:
|
|
5315
|
+
type: boolean
|
|
5316
|
+
description: 'Expand links in the message into preview cards. Default true.'
|
|
5317
|
+
unfurlMedia:
|
|
5318
|
+
type: boolean
|
|
5319
|
+
description: 'Expand media links into inline previews. Default true.'
|
|
5320
|
+
username:
|
|
5321
|
+
type: string
|
|
5322
|
+
description: 'Override the bot display name for this message only (requires no setup; shown with an APP badge). Does not change the app identity in the sidebar.'
|
|
5323
|
+
iconUrl:
|
|
5324
|
+
type: string
|
|
5325
|
+
description: 'Override the bot avatar image URL for this message only.'
|
|
5326
|
+
description: |
|
|
5327
|
+
Slack message settings. Posts mrkdwn text (up to 40,000 chars; Slack truncates beyond that) to the channel fixed by the connected account, with up to 10 media files per post uploaded via Slack's file API (the text becomes the caption). The target channel is chosen at connect time — one connected account per channel — so channelId is NOT accepted here (a 400 is returned); connect the desired channel via /v1/connect/slack and target its accountId. Messages over 4,000 characters cannot be edited later (Slack's edit limit is stricter than its post limit).
|
|
5328
|
+
|
|
5307
5329
|
DiscordScheduledEvent:
|
|
5308
5330
|
type: object
|
|
5309
5331
|
description: |
|
|
@@ -5406,7 +5428,7 @@ components:
|
|
|
5406
5428
|
_id: { type: string }
|
|
5407
5429
|
platform:
|
|
5408
5430
|
type: string
|
|
5409
|
-
enum: [tiktok, instagram, facebook, youtube, linkedin, twitter, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, whatsapp, linkedinads, metaads, pinterestads, tiktokads, xads, googleads, openaiads]
|
|
5431
|
+
enum: [tiktok, instagram, facebook, youtube, linkedin, twitter, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp, linkedinads, metaads, pinterestads, tiktokads, xads, googleads, openaiads]
|
|
5410
5432
|
profileId:
|
|
5411
5433
|
oneOf:
|
|
5412
5434
|
- type: string
|
|
@@ -8330,7 +8352,7 @@ paths:
|
|
|
8330
8352
|
properties:
|
|
8331
8353
|
platform:
|
|
8332
8354
|
type: string
|
|
8333
|
-
enum: [twitter, instagram, tiktok, youtube, facebook, linkedin, bluesky, threads, reddit, pinterest, telegram, snapchat, googlebusiness, discord]
|
|
8355
|
+
enum: [twitter, instagram, tiktok, youtube, facebook, linkedin, bluesky, threads, reddit, pinterest, telegram, snapchat, googlebusiness, discord, slack]
|
|
8334
8356
|
accountId: { type: string, description: 'Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.' }
|
|
8335
8357
|
customContent: { type: string }
|
|
8336
8358
|
platformSpecificData: { type: object }
|
|
@@ -12176,6 +12198,7 @@ paths:
|
|
|
12176
12198
|
- $ref: '#/components/schemas/RedditPlatformData'
|
|
12177
12199
|
- $ref: '#/components/schemas/BlueskyPlatformData'
|
|
12178
12200
|
- $ref: '#/components/schemas/DiscordPlatformData'
|
|
12201
|
+
- $ref: '#/components/schemas/SlackPlatformData'
|
|
12179
12202
|
scheduledFor: { type: string, format: date-time }
|
|
12180
12203
|
publishNow: { type: boolean, default: false }
|
|
12181
12204
|
isDraft:
|
|
@@ -13856,7 +13879,7 @@ paths:
|
|
|
13856
13879
|
description: Filter by platform
|
|
13857
13880
|
schema:
|
|
13858
13881
|
type: string
|
|
13859
|
-
enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, whatsapp]
|
|
13882
|
+
enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp]
|
|
13860
13883
|
- name: status
|
|
13861
13884
|
in: query
|
|
13862
13885
|
description: Filter by health status
|
|
@@ -14344,7 +14367,7 @@ paths:
|
|
|
14344
14367
|
required: true
|
|
14345
14368
|
schema:
|
|
14346
14369
|
type: string
|
|
14347
|
-
enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, reddit, pinterest, bluesky, googlebusiness, telegram, snapchat, discord, whatsapp]
|
|
14370
|
+
enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, reddit, pinterest, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp]
|
|
14348
14371
|
description: Social media platform to connect
|
|
14349
14372
|
- name: profileId
|
|
14350
14373
|
in: query
|
|
@@ -36,7 +36,7 @@ describe Zernio::AccountWithFollowerStats do
|
|
|
36
36
|
describe 'test attribute "platform"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
40
40
|
# validator.allowable_values.each do |value|
|
|
41
41
|
# expect { instance.platform = value }.not_to raise_error
|
|
42
42
|
# end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::SlackPlatformData
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::SlackPlatformData do
|
|
21
|
+
#let(:instance) { Zernio::SlackPlatformData.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SlackPlatformData' do
|
|
24
|
+
it 'should create an instance of SlackPlatformData' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::SlackPlatformData)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "thread_ts"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "unfurl_links"' 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
|
+
|
|
42
|
+
describe 'test attribute "unfurl_media"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "username"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "icon_url"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -36,7 +36,7 @@ describe Zernio::SocialAccount do
|
|
|
36
36
|
describe 'test attribute "platform"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
40
40
|
# validator.allowable_values.each do |value|
|
|
41
41
|
# expect { instance.platform = value }.not_to raise_error
|
|
42
42
|
# end
|
|
@@ -30,7 +30,7 @@ describe Zernio::ValidatePostRequestPlatformsInner do
|
|
|
30
30
|
describe 'test attribute "platform"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord"])
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord", "slack"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.platform = value }.not_to raise_error
|
|
36
36
|
# end
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.598
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1290,6 +1290,7 @@ files:
|
|
|
1290
1290
|
- docs/ShareSmsRegistration200Response.md
|
|
1291
1291
|
- docs/ShareSmsRegistrationRequest.md
|
|
1292
1292
|
- docs/SharedAdAccount.md
|
|
1293
|
+
- docs/SlackPlatformData.md
|
|
1293
1294
|
- docs/SnapchatPlatformData.md
|
|
1294
1295
|
- docs/SocialAccount.md
|
|
1295
1296
|
- docs/SocialAccountProfileId.md
|
|
@@ -2903,6 +2904,7 @@ files:
|
|
|
2903
2904
|
- lib/zernio-sdk/models/share_sms_registration200_response.rb
|
|
2904
2905
|
- lib/zernio-sdk/models/share_sms_registration_request.rb
|
|
2905
2906
|
- lib/zernio-sdk/models/shared_ad_account.rb
|
|
2907
|
+
- lib/zernio-sdk/models/slack_platform_data.rb
|
|
2906
2908
|
- lib/zernio-sdk/models/snapchat_platform_data.rb
|
|
2907
2909
|
- lib/zernio-sdk/models/social_account.rb
|
|
2908
2910
|
- lib/zernio-sdk/models/social_account_profile_id.rb
|
|
@@ -4494,6 +4496,7 @@ files:
|
|
|
4494
4496
|
- spec/models/share_sms_registration200_response_spec.rb
|
|
4495
4497
|
- spec/models/share_sms_registration_request_spec.rb
|
|
4496
4498
|
- spec/models/shared_ad_account_spec.rb
|
|
4499
|
+
- spec/models/slack_platform_data_spec.rb
|
|
4497
4500
|
- spec/models/snapchat_platform_data_spec.rb
|
|
4498
4501
|
- spec/models/social_account_profile_id_spec.rb
|
|
4499
4502
|
- spec/models/social_account_spec.rb
|
|
@@ -4841,7 +4844,7 @@ files:
|
|
|
4841
4844
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4842
4845
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4843
4846
|
- spec/spec_helper.rb
|
|
4844
|
-
- zernio-sdk-0.0.
|
|
4847
|
+
- zernio-sdk-0.0.598.gem
|
|
4845
4848
|
- zernio-sdk.gemspec
|
|
4846
4849
|
homepage: https://openapi-generator.tech
|
|
4847
4850
|
licenses:
|
|
@@ -5019,6 +5022,7 @@ test_files:
|
|
|
5019
5022
|
- spec/models/get_inbox_conversation_messages200_response_messages_inner_reactions_inner_spec.rb
|
|
5020
5023
|
- spec/models/update_ad_set_status200_response_spec.rb
|
|
5021
5024
|
- spec/models/get_inbox_conversation_messages200_response_pagination_spec.rb
|
|
5025
|
+
- spec/models/slack_platform_data_spec.rb
|
|
5022
5026
|
- spec/models/update_tracking_tag_request_spec.rb
|
|
5023
5027
|
- spec/models/get_google_business_services200_response_services_inner_free_form_service_item_spec.rb
|
|
5024
5028
|
- spec/models/remove_conversion_associations200_response_spec.rb
|
data/zernio-sdk-0.0.597.gem
DELETED
|
Binary file
|