late-sdk 0.0.56 → 0.0.57
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 +2 -1
- data/docs/AnalyticsApi.md +7 -7
- data/docs/AnalyticsListResponsePostsInner.md +4 -0
- data/docs/AnalyticsOverview.md +3 -1
- data/docs/AnalyticsOverviewDataStaleness.md +20 -0
- data/docs/AnalyticsSinglePostResponse.md +7 -1
- data/docs/GetAnalytics400Response.md +20 -0
- data/docs/PlatformAnalytics.md +6 -2
- data/lib/late-sdk/api/analytics_api.rb +9 -9
- data/lib/late-sdk/models/analytics_list_response_posts_inner.rb +20 -1
- data/lib/late-sdk/models/analytics_overview.rb +13 -4
- data/lib/late-sdk/models/{platform_analytics_account_metrics.rb → analytics_overview_data_staleness.rb} +18 -27
- data/lib/late-sdk/models/analytics_single_post_response.rb +56 -1
- data/lib/late-sdk/models/get_analytics400_response.rb +157 -0
- data/lib/late-sdk/models/platform_analytics.rb +73 -7
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +2 -1
- data/openapi.yaml +79 -24
- data/spec/api/analytics_api_spec.rb +4 -4
- data/spec/models/analytics_list_response_posts_inner_spec.rb +12 -0
- data/spec/models/analytics_overview_data_staleness_spec.rb +42 -0
- data/spec/models/analytics_overview_spec.rb +6 -0
- data/spec/models/analytics_single_post_response_spec.rb +26 -0
- data/spec/models/{platform_analytics_account_metrics_spec.rb → get_analytics400_response_spec.rb} +8 -14
- data/spec/models/platform_analytics_spec.rb +21 -1
- metadata +9 -5
- data/docs/PlatformAnalyticsAccountMetrics.md +0 -22
data/openapi.yaml
CHANGED
|
@@ -1752,33 +1752,36 @@ components:
|
|
|
1752
1752
|
type: object
|
|
1753
1753
|
properties:
|
|
1754
1754
|
platform: { type: string }
|
|
1755
|
-
status: { type: string }
|
|
1755
|
+
status: { type: string, enum: [published, failed] }
|
|
1756
1756
|
accountId: { type: string }
|
|
1757
|
-
accountUsername: { type: string }
|
|
1757
|
+
accountUsername: { type: string, nullable: true }
|
|
1758
1758
|
analytics:
|
|
1759
|
-
$ref: '#/components/schemas/PostAnalytics'
|
|
1760
|
-
accountMetrics:
|
|
1761
|
-
type: object
|
|
1762
1759
|
nullable: true
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1760
|
+
$ref: '#/components/schemas/PostAnalytics'
|
|
1761
|
+
syncStatus: { type: string, enum: [synced, pending, unavailable], description: 'Sync state of analytics for this platform' }
|
|
1762
|
+
platformPostUrl: { type: string, format: uri, nullable: true }
|
|
1763
|
+
errorMessage: { type: string, nullable: true, description: 'Error details when status is failed' }
|
|
1767
1764
|
AnalyticsOverview:
|
|
1768
1765
|
type: object
|
|
1769
1766
|
properties:
|
|
1770
1767
|
totalPosts: { type: integer }
|
|
1771
1768
|
publishedPosts: { type: integer }
|
|
1772
1769
|
scheduledPosts: { type: integer }
|
|
1773
|
-
lastSync: { type: string, format: date-time }
|
|
1770
|
+
lastSync: { type: string, format: date-time, nullable: true }
|
|
1771
|
+
dataStaleness:
|
|
1772
|
+
type: object
|
|
1773
|
+
properties:
|
|
1774
|
+
staleAccountCount: { type: integer, description: 'Number of accounts with stale analytics data' }
|
|
1775
|
+
syncTriggered: { type: boolean, description: 'Whether a background sync was triggered for stale accounts' }
|
|
1774
1776
|
AnalyticsSinglePostResponse:
|
|
1775
1777
|
type: object
|
|
1776
1778
|
properties:
|
|
1777
1779
|
postId: { type: string }
|
|
1778
|
-
|
|
1780
|
+
latePostId: { type: string, nullable: true, description: 'Original Late post ID if scheduled via Late' }
|
|
1781
|
+
status: { type: string, enum: [published, failed, partial], description: 'Overall post status. "partial" when some platforms published and others failed.' }
|
|
1779
1782
|
content: { type: string }
|
|
1780
1783
|
scheduledFor: { type: string, format: date-time }
|
|
1781
|
-
publishedAt: { type: string, format: date-time }
|
|
1784
|
+
publishedAt: { type: string, format: date-time, nullable: true }
|
|
1782
1785
|
analytics:
|
|
1783
1786
|
$ref: '#/components/schemas/PostAnalytics'
|
|
1784
1787
|
platformAnalytics:
|
|
@@ -1786,8 +1789,10 @@ components:
|
|
|
1786
1789
|
items:
|
|
1787
1790
|
$ref: '#/components/schemas/PlatformAnalytics'
|
|
1788
1791
|
platform: { type: string }
|
|
1789
|
-
platformPostUrl: { type: string, format: uri }
|
|
1792
|
+
platformPostUrl: { type: string, format: uri, nullable: true }
|
|
1790
1793
|
isExternal: { type: boolean }
|
|
1794
|
+
syncStatus: { type: string, enum: [synced, pending, partial, unavailable], description: 'Overall sync state across all platforms' }
|
|
1795
|
+
message: { type: string, nullable: true, description: 'Human-readable status message for pending, partial, or failed states' }
|
|
1791
1796
|
thumbnailUrl: { type: string, format: uri, nullable: true }
|
|
1792
1797
|
mediaType: { type: string, enum: [image, video, carousel, text], nullable: true }
|
|
1793
1798
|
mediaItems:
|
|
@@ -1810,6 +1815,7 @@ components:
|
|
|
1810
1815
|
type: object
|
|
1811
1816
|
properties:
|
|
1812
1817
|
_id: { type: string }
|
|
1818
|
+
latePostId: { type: string, nullable: true, description: 'Original Late post ID if scheduled via Late' }
|
|
1813
1819
|
content: { type: string }
|
|
1814
1820
|
scheduledFor: { type: string, format: date-time }
|
|
1815
1821
|
publishedAt: { type: string, format: date-time }
|
|
@@ -1823,6 +1829,7 @@ components:
|
|
|
1823
1829
|
platform: { type: string }
|
|
1824
1830
|
platformPostUrl: { type: string, format: uri }
|
|
1825
1831
|
isExternal: { type: boolean }
|
|
1832
|
+
profileId: { type: string, nullable: true }
|
|
1826
1833
|
thumbnailUrl: { type: string, format: uri }
|
|
1827
1834
|
mediaType: { type: string, enum: [image, video, gif, document, carousel, text] }
|
|
1828
1835
|
mediaItems:
|
|
@@ -2913,7 +2920,8 @@ paths:
|
|
|
2913
2920
|
summary: Get post analytics
|
|
2914
2921
|
description: |
|
|
2915
2922
|
Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats.
|
|
2916
|
-
Accepts both Late Post IDs and External Post IDs (auto-resolved).
|
|
2923
|
+
Accepts both Late Post IDs and External Post IDs (auto-resolved). fromDate defaults to 90 days ago if omitted, max range 366 days.
|
|
2924
|
+
Single post lookups may return 202 (sync pending) or 424 (all platforms failed). For follower stats, use /v1/accounts/follower-stats.
|
|
2917
2925
|
parameters:
|
|
2918
2926
|
- name: postId
|
|
2919
2927
|
in: query
|
|
@@ -2934,11 +2942,11 @@ paths:
|
|
|
2934
2942
|
- name: fromDate
|
|
2935
2943
|
in: query
|
|
2936
2944
|
schema: { type: string, format: date }
|
|
2937
|
-
description: Inclusive lower bound
|
|
2945
|
+
description: Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
|
|
2938
2946
|
- name: toDate
|
|
2939
2947
|
in: query
|
|
2940
2948
|
schema: { type: string, format: date }
|
|
2941
|
-
description: Inclusive upper bound
|
|
2949
|
+
description: Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
|
|
2942
2950
|
- name: limit
|
|
2943
2951
|
in: query
|
|
2944
2952
|
schema: { type: integer, minimum: 1, maximum: 100, default: 50 }
|
|
@@ -2949,8 +2957,8 @@ paths:
|
|
|
2949
2957
|
description: Page number (default 1)
|
|
2950
2958
|
- name: sortBy
|
|
2951
2959
|
in: query
|
|
2952
|
-
schema: { type: string, enum: [date, engagement], default: date }
|
|
2953
|
-
description: Sort by date or
|
|
2960
|
+
schema: { type: string, enum: [date, engagement, impressions, reach, likes, comments, shares, saves, clicks, views], default: date }
|
|
2961
|
+
description: Sort by date, engagement, or a specific metric
|
|
2954
2962
|
- name: order
|
|
2955
2963
|
in: query
|
|
2956
2964
|
schema: { type: string, enum: [asc, desc], default: desc }
|
|
@@ -2966,10 +2974,10 @@ paths:
|
|
|
2966
2974
|
- $ref: '#/components/schemas/AnalyticsListResponse'
|
|
2967
2975
|
examples:
|
|
2968
2976
|
singlePost:
|
|
2969
|
-
summary: Single post analytics
|
|
2977
|
+
summary: Single post analytics (Late post with synced analytics)
|
|
2970
2978
|
value:
|
|
2971
2979
|
postId: "65f1c0a9e2b5af0012ab34cd"
|
|
2972
|
-
latePostId:
|
|
2980
|
+
latePostId: null
|
|
2973
2981
|
status: "published"
|
|
2974
2982
|
content: "Check out our new product launch!"
|
|
2975
2983
|
scheduledFor: "2024-11-01T10:00:00Z"
|
|
@@ -2980,6 +2988,7 @@ paths:
|
|
|
2980
2988
|
likes: 342
|
|
2981
2989
|
comments: 28
|
|
2982
2990
|
shares: 45
|
|
2991
|
+
saves: 0
|
|
2983
2992
|
clicks: 189
|
|
2984
2993
|
views: 0
|
|
2985
2994
|
engagementRate: 2.78
|
|
@@ -2995,13 +3004,19 @@ paths:
|
|
|
2995
3004
|
likes: 342
|
|
2996
3005
|
comments: 28
|
|
2997
3006
|
shares: 45
|
|
3007
|
+
saves: 0
|
|
2998
3008
|
clicks: 189
|
|
2999
3009
|
views: 0
|
|
3000
3010
|
engagementRate: 2.78
|
|
3001
3011
|
lastUpdated: "2024-11-02T08:30:00Z"
|
|
3012
|
+
syncStatus: "synced"
|
|
3013
|
+
platformPostUrl: "https://twitter.com/acmecorp/status/123456789"
|
|
3014
|
+
errorMessage: null
|
|
3002
3015
|
platform: "twitter"
|
|
3003
3016
|
platformPostUrl: "https://twitter.com/acmecorp/status/123456789"
|
|
3004
3017
|
isExternal: false
|
|
3018
|
+
syncStatus: "synced"
|
|
3019
|
+
message: null
|
|
3005
3020
|
thumbnailUrl: "https://storage.example.com/image.jpg"
|
|
3006
3021
|
mediaType: "image"
|
|
3007
3022
|
mediaItems:
|
|
@@ -3011,15 +3026,16 @@ paths:
|
|
|
3011
3026
|
postList:
|
|
3012
3027
|
summary: Paginated analytics list
|
|
3013
3028
|
description: |
|
|
3014
|
-
|
|
3015
|
-
scheduled via Late will have isExternal: true in this response.
|
|
3016
|
-
Use platformPostUrl to correlate with your original Late Post IDs.
|
|
3029
|
+
Posts originally scheduled via Late will have latePostId populated.
|
|
3017
3030
|
value:
|
|
3018
3031
|
overview:
|
|
3019
3032
|
totalPosts: 156
|
|
3020
|
-
publishedPosts:
|
|
3033
|
+
publishedPosts: 156
|
|
3021
3034
|
scheduledPosts: 0
|
|
3022
3035
|
lastSync: "2024-11-02T08:30:00Z"
|
|
3036
|
+
dataStaleness:
|
|
3037
|
+
staleAccountCount: 0
|
|
3038
|
+
syncTriggered: false
|
|
3023
3039
|
posts:
|
|
3024
3040
|
- _id: "65f1c0a9e2b5af0012ab34cd"
|
|
3025
3041
|
latePostId: "65f1c0a9e2b5af0012ab34ab"
|
|
@@ -3029,20 +3045,38 @@ paths:
|
|
|
3029
3045
|
status: "published"
|
|
3030
3046
|
analytics:
|
|
3031
3047
|
impressions: 15420
|
|
3048
|
+
reach: 12350
|
|
3032
3049
|
likes: 342
|
|
3033
3050
|
comments: 28
|
|
3051
|
+
shares: 45
|
|
3052
|
+
saves: 0
|
|
3053
|
+
clicks: 189
|
|
3054
|
+
views: 0
|
|
3034
3055
|
engagementRate: 2.78
|
|
3035
3056
|
lastUpdated: "2024-11-02T08:30:00Z"
|
|
3036
3057
|
platforms:
|
|
3037
3058
|
- platform: "instagram"
|
|
3038
3059
|
status: "published"
|
|
3060
|
+
accountId: "64e1f0a9e2b5af0012ab34cd"
|
|
3061
|
+
accountUsername: "@acmecorp"
|
|
3039
3062
|
analytics:
|
|
3040
3063
|
impressions: 15420
|
|
3064
|
+
reach: 12350
|
|
3041
3065
|
likes: 342
|
|
3042
3066
|
comments: 28
|
|
3067
|
+
shares: 45
|
|
3068
|
+
saves: 0
|
|
3069
|
+
clicks: 189
|
|
3070
|
+
views: 0
|
|
3071
|
+
engagementRate: 2.78
|
|
3072
|
+
lastUpdated: "2024-11-02T08:30:00Z"
|
|
3073
|
+
syncStatus: "synced"
|
|
3074
|
+
platformPostUrl: "https://www.instagram.com/reel/ABC123xyz/"
|
|
3075
|
+
errorMessage: null
|
|
3043
3076
|
platform: "instagram"
|
|
3044
3077
|
platformPostUrl: "https://www.instagram.com/reel/ABC123xyz/"
|
|
3045
3078
|
isExternal: true
|
|
3079
|
+
profileId: "64e1f0a9e2b5af0012ab34cd"
|
|
3046
3080
|
thumbnailUrl: "https://storage.example.com/thumb.jpg"
|
|
3047
3081
|
mediaType: "carousel"
|
|
3048
3082
|
mediaItems:
|
|
@@ -3064,6 +3098,21 @@ paths:
|
|
|
3064
3098
|
displayName: "Acme Corp"
|
|
3065
3099
|
isActive: true
|
|
3066
3100
|
hasAnalyticsAccess: true
|
|
3101
|
+
'202':
|
|
3102
|
+
description: Analytics are being synced from the platform (single post lookup only). The response body matches AnalyticsSinglePostResponse with syncStatus "pending" and a message.
|
|
3103
|
+
content:
|
|
3104
|
+
application/json:
|
|
3105
|
+
schema:
|
|
3106
|
+
$ref: '#/components/schemas/AnalyticsSinglePostResponse'
|
|
3107
|
+
'400':
|
|
3108
|
+
description: Validation error
|
|
3109
|
+
content:
|
|
3110
|
+
application/json:
|
|
3111
|
+
schema:
|
|
3112
|
+
type: object
|
|
3113
|
+
properties:
|
|
3114
|
+
error: { type: string, example: Invalid query parameters }
|
|
3115
|
+
details: { type: object, description: 'Detailed validation errors' }
|
|
3067
3116
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3068
3117
|
'402':
|
|
3069
3118
|
description: Analytics add-on required
|
|
@@ -3075,6 +3124,12 @@ paths:
|
|
|
3075
3124
|
error: { type: string, example: Analytics add-on required }
|
|
3076
3125
|
code: { type: string, example: analytics_addon_required }
|
|
3077
3126
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
3127
|
+
'424':
|
|
3128
|
+
description: Post failed to publish on all platforms. Analytics are unavailable. (single post lookup only)
|
|
3129
|
+
content:
|
|
3130
|
+
application/json:
|
|
3131
|
+
schema:
|
|
3132
|
+
$ref: '#/components/schemas/AnalyticsSinglePostResponse'
|
|
3078
3133
|
'500':
|
|
3079
3134
|
description: Internal server error
|
|
3080
3135
|
content:
|
|
@@ -34,17 +34,17 @@ describe 'AnalyticsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for get_analytics
|
|
36
36
|
# Get post analytics
|
|
37
|
-
# Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats. Accepts both Late Post IDs and External Post IDs (auto-resolved).
|
|
37
|
+
# Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats. Accepts both Late Post IDs and External Post IDs (auto-resolved). fromDate defaults to 90 days ago if omitted, max range 366 days. Single post lookups may return 202 (sync pending) or 424 (all platforms failed). For follower stats, use /v1/accounts/follower-stats.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :post_id Returns analytics for a single post. Accepts both Late Post IDs and External Post IDs. Late IDs are auto-resolved to External Post analytics.
|
|
40
40
|
# @option opts [String] :platform Filter by platform (default \"all\")
|
|
41
41
|
# @option opts [String] :profile_id Filter by profile ID (default \"all\")
|
|
42
42
|
# @option opts [String] :source Filter by post source: late (posted via Late API), external (synced from platform), all (default)
|
|
43
|
-
# @option opts [Date] :from_date Inclusive lower bound
|
|
44
|
-
# @option opts [Date] :to_date Inclusive upper bound
|
|
43
|
+
# @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
|
|
44
|
+
# @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
|
|
45
45
|
# @option opts [Integer] :limit Page size (default 50)
|
|
46
46
|
# @option opts [Integer] :page Page number (default 1)
|
|
47
|
-
# @option opts [String] :sort_by Sort by date or
|
|
47
|
+
# @option opts [String] :sort_by Sort by date, engagement, or a specific metric
|
|
48
48
|
# @option opts [String] :order Sort order
|
|
49
49
|
# @return [GetAnalytics200Response]
|
|
50
50
|
describe 'get_analytics test' do
|
|
@@ -33,6 +33,12 @@ describe Late::AnalyticsListResponsePostsInner do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "late_post_id"' 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 "content"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -87,6 +93,12 @@ describe Late::AnalyticsListResponsePostsInner do
|
|
|
87
93
|
end
|
|
88
94
|
end
|
|
89
95
|
|
|
96
|
+
describe 'test attribute "profile_id"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
90
102
|
describe 'test attribute "thumbnail_url"' do
|
|
91
103
|
it 'should work' do
|
|
92
104
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Late API
|
|
3
|
+
|
|
4
|
+
#API reference for Late. Authenticate with a Bearer API key. Base URL: https://getlate.dev/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@getlate.dev
|
|
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 Late::AnalyticsOverviewDataStaleness
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::AnalyticsOverviewDataStaleness do
|
|
21
|
+
#let(:instance) { Late::AnalyticsOverviewDataStaleness.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AnalyticsOverviewDataStaleness' do
|
|
24
|
+
it 'should create an instance of AnalyticsOverviewDataStaleness' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::AnalyticsOverviewDataStaleness)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "stale_account_count"' 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 "sync_triggered"' 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
|
+
end
|
|
@@ -33,9 +33,19 @@ describe Late::AnalyticsSinglePostResponse do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "late_post_id"' 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 "status"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["published", "failed", "partial"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.status = value }.not_to raise_error
|
|
48
|
+
# end
|
|
39
49
|
end
|
|
40
50
|
end
|
|
41
51
|
|
|
@@ -87,6 +97,22 @@ describe Late::AnalyticsSinglePostResponse do
|
|
|
87
97
|
end
|
|
88
98
|
end
|
|
89
99
|
|
|
100
|
+
describe 'test attribute "sync_status"' do
|
|
101
|
+
it 'should work' do
|
|
102
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
103
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["synced", "pending", "partial", "unavailable"])
|
|
104
|
+
# validator.allowable_values.each do |value|
|
|
105
|
+
# expect { instance.sync_status = value }.not_to raise_error
|
|
106
|
+
# end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
describe 'test attribute "message"' do
|
|
111
|
+
it 'should work' do
|
|
112
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
90
116
|
describe 'test attribute "thumbnail_url"' do
|
|
91
117
|
it 'should work' do
|
|
92
118
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
data/spec/models/{platform_analytics_account_metrics_spec.rb → get_analytics400_response_spec.rb}
RENAMED
|
@@ -14,32 +14,26 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for Late::
|
|
17
|
+
# Unit tests for Late::GetAnalytics400Response
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe Late::
|
|
21
|
-
#let(:instance) { Late::
|
|
20
|
+
describe Late::GetAnalytics400Response do
|
|
21
|
+
#let(:instance) { Late::GetAnalytics400Response.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
23
|
+
describe 'test an instance of GetAnalytics400Response' do
|
|
24
|
+
it 'should create an instance of GetAnalytics400Response' do
|
|
25
25
|
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(Late::
|
|
26
|
+
#expect(instance).to be_instance_of(Late::GetAnalytics400Response)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "error"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
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 "last_updated"' do
|
|
36
|
+
describe 'test attribute "details"' do
|
|
43
37
|
it 'should work' do
|
|
44
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
39
|
end
|
|
@@ -36,6 +36,10 @@ describe Late::PlatformAnalytics do
|
|
|
36
36
|
describe 'test attribute "status"' 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', ["published", "failed"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.status = value }.not_to raise_error
|
|
42
|
+
# end
|
|
39
43
|
end
|
|
40
44
|
end
|
|
41
45
|
|
|
@@ -57,7 +61,23 @@ describe Late::PlatformAnalytics do
|
|
|
57
61
|
end
|
|
58
62
|
end
|
|
59
63
|
|
|
60
|
-
describe 'test attribute "
|
|
64
|
+
describe 'test attribute "sync_status"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["synced", "pending", "unavailable"])
|
|
68
|
+
# validator.allowable_values.each do |value|
|
|
69
|
+
# expect { instance.sync_status = value }.not_to raise_error
|
|
70
|
+
# end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
describe 'test attribute "platform_post_url"' do
|
|
75
|
+
it 'should work' do
|
|
76
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
describe 'test attribute "error_message"' do
|
|
61
81
|
it 'should work' do
|
|
62
82
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
83
|
end
|
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.57
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -78,6 +78,7 @@ files:
|
|
|
78
78
|
- docs/AnalyticsListResponse.md
|
|
79
79
|
- docs/AnalyticsListResponsePostsInner.md
|
|
80
80
|
- docs/AnalyticsOverview.md
|
|
81
|
+
- docs/AnalyticsOverviewDataStaleness.md
|
|
81
82
|
- docs/AnalyticsSinglePostResponse.md
|
|
82
83
|
- docs/AnalyticsSinglePostResponseMediaItemsInner.md
|
|
83
84
|
- docs/ApiKey.md
|
|
@@ -198,6 +199,7 @@ files:
|
|
|
198
199
|
- docs/GetAllAccountsHealth200ResponseAccountsInner.md
|
|
199
200
|
- docs/GetAllAccountsHealth200ResponseSummary.md
|
|
200
201
|
- docs/GetAnalytics200Response.md
|
|
202
|
+
- docs/GetAnalytics400Response.md
|
|
201
203
|
- docs/GetAnalytics402Response.md
|
|
202
204
|
- docs/GetBestTimeToPost200Response.md
|
|
203
205
|
- docs/GetBestTimeToPost200ResponseSlotsInner.md
|
|
@@ -408,7 +410,6 @@ files:
|
|
|
408
410
|
- docs/Pending.md
|
|
409
411
|
- docs/PinterestPlatformData.md
|
|
410
412
|
- docs/PlatformAnalytics.md
|
|
411
|
-
- docs/PlatformAnalyticsAccountMetrics.md
|
|
412
413
|
- docs/PlatformTarget.md
|
|
413
414
|
- docs/PlatformTargetAccountId.md
|
|
414
415
|
- docs/PlatformTargetPlatformSpecificData.md
|
|
@@ -696,6 +697,7 @@ files:
|
|
|
696
697
|
- lib/late-sdk/models/analytics_list_response.rb
|
|
697
698
|
- lib/late-sdk/models/analytics_list_response_posts_inner.rb
|
|
698
699
|
- lib/late-sdk/models/analytics_overview.rb
|
|
700
|
+
- lib/late-sdk/models/analytics_overview_data_staleness.rb
|
|
699
701
|
- lib/late-sdk/models/analytics_single_post_response.rb
|
|
700
702
|
- lib/late-sdk/models/analytics_single_post_response_media_items_inner.rb
|
|
701
703
|
- lib/late-sdk/models/api_key.rb
|
|
@@ -808,6 +810,7 @@ files:
|
|
|
808
810
|
- lib/late-sdk/models/get_all_accounts_health200_response_accounts_inner.rb
|
|
809
811
|
- lib/late-sdk/models/get_all_accounts_health200_response_summary.rb
|
|
810
812
|
- lib/late-sdk/models/get_analytics200_response.rb
|
|
813
|
+
- lib/late-sdk/models/get_analytics400_response.rb
|
|
811
814
|
- lib/late-sdk/models/get_analytics402_response.rb
|
|
812
815
|
- lib/late-sdk/models/get_best_time_to_post200_response.rb
|
|
813
816
|
- lib/late-sdk/models/get_best_time_to_post200_response_slots_inner.rb
|
|
@@ -1013,7 +1016,6 @@ files:
|
|
|
1013
1016
|
- lib/late-sdk/models/pending.rb
|
|
1014
1017
|
- lib/late-sdk/models/pinterest_platform_data.rb
|
|
1015
1018
|
- lib/late-sdk/models/platform_analytics.rb
|
|
1016
|
-
- lib/late-sdk/models/platform_analytics_account_metrics.rb
|
|
1017
1019
|
- lib/late-sdk/models/platform_target.rb
|
|
1018
1020
|
- lib/late-sdk/models/platform_target_account_id.rb
|
|
1019
1021
|
- lib/late-sdk/models/platform_target_platform_specific_data.rb
|
|
@@ -1283,6 +1285,7 @@ files:
|
|
|
1283
1285
|
- spec/models/add_whats_app_broadcast_recipients_request_spec.rb
|
|
1284
1286
|
- spec/models/analytics_list_response_posts_inner_spec.rb
|
|
1285
1287
|
- spec/models/analytics_list_response_spec.rb
|
|
1288
|
+
- spec/models/analytics_overview_data_staleness_spec.rb
|
|
1286
1289
|
- spec/models/analytics_overview_spec.rb
|
|
1287
1290
|
- spec/models/analytics_single_post_response_media_items_inner_spec.rb
|
|
1288
1291
|
- spec/models/analytics_single_post_response_spec.rb
|
|
@@ -1396,6 +1399,7 @@ files:
|
|
|
1396
1399
|
- spec/models/get_all_accounts_health200_response_spec.rb
|
|
1397
1400
|
- spec/models/get_all_accounts_health200_response_summary_spec.rb
|
|
1398
1401
|
- spec/models/get_analytics200_response_spec.rb
|
|
1402
|
+
- spec/models/get_analytics400_response_spec.rb
|
|
1399
1403
|
- spec/models/get_analytics402_response_spec.rb
|
|
1400
1404
|
- spec/models/get_best_time_to_post200_response_slots_inner_spec.rb
|
|
1401
1405
|
- spec/models/get_best_time_to_post200_response_spec.rb
|
|
@@ -1600,7 +1604,6 @@ files:
|
|
|
1600
1604
|
- spec/models/pagination_spec.rb
|
|
1601
1605
|
- spec/models/pending_spec.rb
|
|
1602
1606
|
- spec/models/pinterest_platform_data_spec.rb
|
|
1603
|
-
- spec/models/platform_analytics_account_metrics_spec.rb
|
|
1604
1607
|
- spec/models/platform_analytics_spec.rb
|
|
1605
1608
|
- spec/models/platform_target_account_id_spec.rb
|
|
1606
1609
|
- spec/models/platform_target_platform_specific_data_spec.rb
|
|
@@ -2215,6 +2218,7 @@ test_files:
|
|
|
2215
2218
|
- spec/models/get_all_accounts_health200_response_summary_spec.rb
|
|
2216
2219
|
- spec/models/you_tube_daily_views_response_daily_views_inner_spec.rb
|
|
2217
2220
|
- spec/models/remove_bookmark200_response_spec.rb
|
|
2221
|
+
- spec/models/get_analytics400_response_spec.rb
|
|
2218
2222
|
- spec/models/purchase_whats_app_phone_number200_response_one_of1_spec.rb
|
|
2219
2223
|
- spec/models/import_whats_app_contacts200_response_results_inner_spec.rb
|
|
2220
2224
|
- spec/models/like_inbox_comment_request_spec.rb
|
|
@@ -2262,7 +2266,6 @@ test_files:
|
|
|
2262
2266
|
- spec/models/select_linked_in_organization_request_spec.rb
|
|
2263
2267
|
- spec/models/post_spec.rb
|
|
2264
2268
|
- spec/models/get_inbox_post_comments200_response_spec.rb
|
|
2265
|
-
- spec/models/platform_analytics_account_metrics_spec.rb
|
|
2266
2269
|
- spec/models/validate_post_request_platforms_inner_custom_media_inner_spec.rb
|
|
2267
2270
|
- spec/models/create_whats_app_template_request_library_template_button_inputs_inner_url_spec.rb
|
|
2268
2271
|
- spec/models/create_whats_app_contact_request_spec.rb
|
|
@@ -2304,6 +2307,7 @@ test_files:
|
|
|
2304
2307
|
- spec/models/send_inbox_message_request_spec.rb
|
|
2305
2308
|
- spec/models/update_google_business_location_details_request_service_items_inner_spec.rb
|
|
2306
2309
|
- spec/models/update_google_business_location_details_request_categories_spec.rb
|
|
2310
|
+
- spec/models/analytics_overview_data_staleness_spec.rb
|
|
2307
2311
|
- spec/models/get_follower_stats200_response_date_range_spec.rb
|
|
2308
2312
|
- spec/models/get_whats_app_template200_response_spec.rb
|
|
2309
2313
|
- spec/models/get_google_business_location_details200_response_spec.rb
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Late::PlatformAnalyticsAccountMetrics
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **followers** | **Integer** | Followers/fans count (e.g., Instagram, Facebook Pages, Twitter) | [optional] |
|
|
8
|
-
| **subscribers** | **Integer** | Subscribers count (e.g., YouTube) | [optional] |
|
|
9
|
-
| **last_updated** | **Time** | | [optional] |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'late-sdk'
|
|
15
|
-
|
|
16
|
-
instance = Late::PlatformAnalyticsAccountMetrics.new(
|
|
17
|
-
followers: null,
|
|
18
|
-
subscribers: null,
|
|
19
|
-
last_updated: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|