late-sdk 0.0.669 → 0.0.671
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/PostUpdateResponse.md +3 -1
- data/docs/PostsApi.md +1 -1
- data/lib/zernio-sdk/api/posts_api.rb +2 -2
- data/lib/zernio-sdk/models/post_update_response.rb +15 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +11 -2
- data/spec/api/posts_api_spec.rb +1 -1
- data/spec/models/post_update_response_spec.rb +6 -0
- data/zernio-sdk-0.0.671.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.669.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: 6c0dfdce582902a8b185c5d9339855c12f580cdc8d8dd3ade600efdc76dece82
|
|
4
|
+
data.tar.gz: 9e77888264b5ff38314415235d7d95132a2ecaf663c1f06584d25e04aa43f935
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5301b1c7563d56357a963e33b09d72b957dbabfc65a68315d99c841e950f2648d34763e805cfd8711d5ca99d4a2db871871993e0c37eb0d3ba4b34409c58cb58
|
|
7
|
+
data.tar.gz: 7496f41d301ac4f61d684ca3a21e7194f471e45b4c6409cd4a715fcadad5ef141f5fe474cf309389bad956559c0f3db3c44720034bf3be8604f81d8668bad7cc
|
data/docs/PostUpdateResponse.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **message** | **String** | | [optional] |
|
|
8
8
|
| **post** | [**Post**](Post.md) | | [optional] |
|
|
9
|
+
| **warnings** | **Array<String>** | | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'zernio-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Zernio::PostUpdateResponse.new(
|
|
16
17
|
message: null,
|
|
17
|
-
post: null
|
|
18
|
+
post: null,
|
|
19
|
+
warnings: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|
data/docs/PostsApi.md
CHANGED
|
@@ -612,7 +612,7 @@ end
|
|
|
612
612
|
|
|
613
613
|
Update post
|
|
614
614
|
|
|
615
|
-
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft.
|
|
615
|
+
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft. Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
|
|
616
616
|
|
|
617
617
|
### Examples
|
|
618
618
|
|
|
@@ -616,7 +616,7 @@ module Zernio
|
|
|
616
616
|
end
|
|
617
617
|
|
|
618
618
|
# Update post
|
|
619
|
-
# Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft.
|
|
619
|
+
# Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft. Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
|
|
620
620
|
# @param post_id [String]
|
|
621
621
|
# @param update_post_request [UpdatePostRequest]
|
|
622
622
|
# @param [Hash] opts the optional parameters
|
|
@@ -627,7 +627,7 @@ module Zernio
|
|
|
627
627
|
end
|
|
628
628
|
|
|
629
629
|
# Update post
|
|
630
|
-
# Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft.
|
|
630
|
+
# Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft. Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
|
|
631
631
|
# @param post_id [String]
|
|
632
632
|
# @param update_post_request [UpdatePostRequest]
|
|
633
633
|
# @param [Hash] opts the optional parameters
|
|
@@ -19,11 +19,14 @@ module Zernio
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :post
|
|
21
21
|
|
|
22
|
+
attr_accessor :warnings
|
|
23
|
+
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
25
|
def self.attribute_map
|
|
24
26
|
{
|
|
25
27
|
:'message' => :'message',
|
|
26
|
-
:'post' => :'post'
|
|
28
|
+
:'post' => :'post',
|
|
29
|
+
:'warnings' => :'warnings'
|
|
27
30
|
}
|
|
28
31
|
end
|
|
29
32
|
|
|
@@ -41,7 +44,8 @@ module Zernio
|
|
|
41
44
|
def self.openapi_types
|
|
42
45
|
{
|
|
43
46
|
:'message' => :'String',
|
|
44
|
-
:'post' => :'Post'
|
|
47
|
+
:'post' => :'Post',
|
|
48
|
+
:'warnings' => :'Array<String>'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -74,6 +78,12 @@ module Zernio
|
|
|
74
78
|
if attributes.key?(:'post')
|
|
75
79
|
self.post = attributes[:'post']
|
|
76
80
|
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'warnings')
|
|
83
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
|
84
|
+
self.warnings = value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
77
87
|
end
|
|
78
88
|
|
|
79
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -97,7 +107,8 @@ module Zernio
|
|
|
97
107
|
return true if self.equal?(o)
|
|
98
108
|
self.class == o.class &&
|
|
99
109
|
message == o.message &&
|
|
100
|
-
post == o.post
|
|
110
|
+
post == o.post &&
|
|
111
|
+
warnings == o.warnings
|
|
101
112
|
end
|
|
102
113
|
|
|
103
114
|
# @see the `==` method
|
|
@@ -109,7 +120,7 @@ module Zernio
|
|
|
109
120
|
# Calculates hash code according to all attributes.
|
|
110
121
|
# @return [Integer] Hash code
|
|
111
122
|
def hash
|
|
112
|
-
[message, post].hash
|
|
123
|
+
[message, post, warnings].hash
|
|
113
124
|
end
|
|
114
125
|
|
|
115
126
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -6397,6 +6397,10 @@ components:
|
|
|
6397
6397
|
type: string
|
|
6398
6398
|
post:
|
|
6399
6399
|
$ref: '#/components/schemas/Post'
|
|
6400
|
+
warnings:
|
|
6401
|
+
type: array
|
|
6402
|
+
items:
|
|
6403
|
+
type: string
|
|
6400
6404
|
PostDeleteResponse:
|
|
6401
6405
|
type: object
|
|
6402
6406
|
properties:
|
|
@@ -13393,6 +13397,9 @@ paths:
|
|
|
13393
13397
|
To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`,
|
|
13394
13398
|
or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only
|
|
13395
13399
|
`scheduledFor` to a draft returns 200 but the post remains a draft.
|
|
13400
|
+
|
|
13401
|
+
Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific
|
|
13402
|
+
field rules, etc.) against the resulting platforms, returning 400 on failure.
|
|
13396
13403
|
parameters:
|
|
13397
13404
|
- name: postId
|
|
13398
13405
|
in: path
|
|
@@ -15491,12 +15498,14 @@ paths:
|
|
|
15491
15498
|
identityId: { type: string, description: "The TikTok-assigned identity_id, cached on the account." }
|
|
15492
15499
|
displayName: { type: string }
|
|
15493
15500
|
'400':
|
|
15494
|
-
description: "Missing fields, invalid
|
|
15501
|
+
description: "Missing fields, invalid JSON body, invalid accountId format, invalid lengths, or no advertiser found on the account"
|
|
15495
15502
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
15496
15503
|
'404':
|
|
15497
15504
|
description: TikTok Ads account not found
|
|
15498
15505
|
'500':
|
|
15499
|
-
description:
|
|
15506
|
+
description: Unexpected server error while caching the identity
|
|
15507
|
+
'502':
|
|
15508
|
+
description: 'TikTok rejected the image upload or the identity creation (type: platform_error; an upstream 4xx status is forwarded instead of 502)'
|
|
15500
15509
|
|
|
15501
15510
|
/v1/connect/facebook/select-page:
|
|
15502
15511
|
get:
|
data/spec/api/posts_api_spec.rb
CHANGED
|
@@ -146,7 +146,7 @@ describe 'PostsApi' do
|
|
|
146
146
|
|
|
147
147
|
# unit tests for update_post
|
|
148
148
|
# Update post
|
|
149
|
-
# Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft.
|
|
149
|
+
# Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`, or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only `scheduledFor` to a draft returns 200 but the post remains a draft. Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
|
|
150
150
|
# @param post_id
|
|
151
151
|
# @param update_post_request
|
|
152
152
|
# @param [Hash] opts the optional parameters
|
|
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.671
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -4982,7 +4982,7 @@ files:
|
|
|
4982
4982
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4983
4983
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4984
4984
|
- spec/spec_helper.rb
|
|
4985
|
-
- zernio-sdk-0.0.
|
|
4985
|
+
- zernio-sdk-0.0.671.gem
|
|
4986
4986
|
- zernio-sdk.gemspec
|
|
4987
4987
|
homepage: https://openapi-generator.tech
|
|
4988
4988
|
licenses:
|
data/zernio-sdk-0.0.669.gem
DELETED
|
Binary file
|