late-sdk 0.0.1453 → 0.0.1454

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 239a9981f77f2658881615c5e6307348c87ec2a7350fbac356edc2117abfb281
4
- data.tar.gz: 92f80c015deb8fd0fa3256eac6dc76dcd50f881675a0ff8e143bfab7cbdaebc9
3
+ metadata.gz: 515772510c43454efad31b6ec6320b0dad73f11b2ddf7241d77b5802d4e67cbf
4
+ data.tar.gz: 2f2eec9de84fb626c3be807fbac04b07776deeb15c659606095f74814eca7e39
5
5
  SHA512:
6
- metadata.gz: d1ce113479646b5a5bd953986217f84c7db08acb5bd2903da259f6670c6dfd6f8cae438110e097656f996f440e175fb14792fb92bfca92f054bea2df3ea12c2e
7
- data.tar.gz: 7ecd64b135fc930225e61e74eb865411f8751b8abdc59c648f6eb00656d33aef91a15dffb4506440bd9e7893d17c1c79463a804fd8f6348bb5d04a9e6fb900aa
6
+ metadata.gz: 1e93aa728a448ae83afbc92b484323070387bfb5532a53a4725c5d1ad7a7f99b1d4638bd1cce02c62cc3db2d5ab17e0977ef1611ee0b663e0884149a8df62954
7
+ data.tar.gz: '099b92ce6c6fb0b6c3477b8fd32569383f53e90fc34ac7d92ec7c17f9fb5e63dddb6357bc5c897fdc9d56b7d440360ad68a817900a33da08cc26ed10d7003e44'
data/README.md CHANGED
@@ -2847,6 +2847,7 @@ Class | Method | HTTP request | Description
2847
2847
  - [Zernio::PostUpdateResponse](docs/PostUpdateResponse.md)
2848
2848
  - [Zernio::PostUserId](docs/PostUserId.md)
2849
2849
  - [Zernio::PostsListResponse](docs/PostsListResponse.md)
2850
+ - [Zernio::PostsListResponsePagination](docs/PostsListResponsePagination.md)
2850
2851
  - [Zernio::PreflightBrandedCallingIdentity200Response](docs/PreflightBrandedCallingIdentity200Response.md)
2851
2852
  - [Zernio::PreflightBrandedCallingIdentity200ResponseFindingsInner](docs/PreflightBrandedCallingIdentity200ResponseFindingsInner.md)
2852
2853
  - [Zernio::PreflightBrandedCallingIdentityRequest](docs/PreflightBrandedCallingIdentityRequest.md)
data/docs/PostsApi.md CHANGED
@@ -397,6 +397,8 @@ opts = {
397
397
  page: 56, # Integer | Page number (1-based)
398
398
  limit: 56, # Integer | Page size. Values above the maximum return 400 rather than being clamped.
399
399
  offset: 56, # Integer | Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it.
400
+ cursor: 'cursor_example', # String | Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`.
401
+ fields: 'status,scheduledFor,platforms', # String | Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`.
400
402
  source: 'zernio', # String | Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account).
401
403
  status: 'draft', # String |
402
404
  platform: 'twitter', # String |
@@ -447,6 +449,8 @@ end
447
449
  | **page** | **Integer** | Page number (1-based) | [optional][default to 1] |
448
450
  | **limit** | **Integer** | Page size. Values above the maximum return 400 rather than being clamped. | [optional][default to 10] |
449
451
  | **offset** | **Integer** | Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it. | [optional] |
452
+ | **cursor** | **String** | Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`. | [optional] |
453
+ | **fields** | **String** | Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`. | [optional] |
450
454
  | **source** | **String** | Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account). | [optional][default to 'zernio'] |
451
455
  | **status** | **String** | | [optional] |
452
456
  | **platform** | **String** | | [optional] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **posts** | [**Array<Post>**](Post.md) | | [optional] |
8
- | **pagination** | [**Pagination**](Pagination.md) | | [optional] |
8
+ | **pagination** | [**PostsListResponsePagination**](PostsListResponsePagination.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -0,0 +1,26 @@
1
+ # Zernio::PostsListResponsePagination
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | **Integer** | | [optional] |
8
+ | **limit** | **Integer** | | [optional] |
9
+ | **total** | **Integer** | | [optional] |
10
+ | **pages** | **Integer** | | [optional] |
11
+ | **next_cursor** | **String** | Cursor for the next page in the same sortBy order. Send it back as `cursor`. Null on the last page, and always null for `sortBy=status` or `sortBy=platform`. Absent for `source=external`. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'zernio-sdk'
17
+
18
+ instance = Zernio::PostsListResponsePagination.new(
19
+ page: null,
20
+ limit: null,
21
+ total: null,
22
+ pages: null,
23
+ next_cursor: null
24
+ )
25
+ ```
26
+
@@ -371,6 +371,8 @@ module Zernio
371
371
  # @option opts [Integer] :page Page number (1-based) (default to 1)
372
372
  # @option opts [Integer] :limit Page size. Values above the maximum return 400 rather than being clamped. (default to 10)
373
373
  # @option opts [Integer] :offset Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it.
374
+ # @option opts [String] :cursor Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`.
375
+ # @option opts [String] :fields Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`.
374
376
  # @option opts [String] :source Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account). (default to 'zernio')
375
377
  # @option opts [String] :status
376
378
  # @option opts [String] :platform
@@ -397,6 +399,8 @@ module Zernio
397
399
  # @option opts [Integer] :page Page number (1-based) (default to 1)
398
400
  # @option opts [Integer] :limit Page size. Values above the maximum return 400 rather than being clamped. (default to 10)
399
401
  # @option opts [Integer] :offset Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it.
402
+ # @option opts [String] :cursor Opaque cursor from a previous response's `pagination.nextCursor`. Returns the page that follows it in the same `sortBy` order, and takes precedence over `page` and `offset`. Each cursor page costs the same however deep it is, unlike `page`/`offset`, which get slower the further you go; prefer it to walk a long history. Send the same filters and `sortBy` as the request that issued it: a cursor from another `sortBy` returns 400. Not available with `sortBy=status` or `sortBy=platform`, or with `source=external`.
403
+ # @option opts [String] :fields Comma-separated list of post fields to return. Each post then carries `_id` plus only these fields, which makes large pages much cheaper: leave out `platforms`, `content`, `mediaItems` or `metadata` when you do not need them. Accepted: `userId`, `title`, `content`, `mediaItems`, `platforms`, `scheduledFor`, `timezone`, `status`, `tags`, `hashtags`, `mentions`, `visibility`, `metadata`, `recycling`, `recycledFromPostId`, `queuedFromProfile`, `queueId`, `createdAt`, `updatedAt`. An unknown field returns 400 naming it. `fields=_id` returns ids only. Omit it (or send it empty) for the full post. Not available with `source=external`.
400
404
  # @option opts [String] :source Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account). (default to 'zernio')
401
405
  # @option opts [String] :status
402
406
  # @option opts [String] :platform
@@ -452,6 +456,8 @@ module Zernio
452
456
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
453
457
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
454
458
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
459
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
460
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
455
461
  query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
456
462
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
457
463
  query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
@@ -41,7 +41,7 @@ module Zernio
41
41
  def self.openapi_types
42
42
  {
43
43
  :'posts' => :'Array<Post>',
44
- :'pagination' => :'Pagination'
44
+ :'pagination' => :'PostsListResponsePagination'
45
45
  }
46
46
  end
47
47
 
@@ -0,0 +1,192 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
5
+
6
+ The version of the OpenAPI document: 1.304.0
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
+ class PostsListResponsePagination < ApiModelBase
18
+ attr_accessor :page
19
+
20
+ attr_accessor :limit
21
+
22
+ attr_accessor :total
23
+
24
+ attr_accessor :pages
25
+
26
+ # Cursor for the next page in the same sortBy order. Send it back as `cursor`. Null on the last page, and always null for `sortBy=status` or `sortBy=platform`. Absent for `source=external`.
27
+ attr_accessor :next_cursor
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'page' => :'page',
33
+ :'limit' => :'limit',
34
+ :'total' => :'total',
35
+ :'pages' => :'pages',
36
+ :'next_cursor' => :'nextCursor'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'page' => :'Integer',
54
+ :'limit' => :'Integer',
55
+ :'total' => :'Integer',
56
+ :'pages' => :'Integer',
57
+ :'next_cursor' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'next_cursor'
65
+ ])
66
+ end
67
+
68
+ # List of class defined in allOf (OpenAPI v3)
69
+ def self.openapi_all_of
70
+ [
71
+ :'Pagination'
72
+ ]
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param [Hash] attributes Model attributes in the form of hash
77
+ def initialize(attributes = {})
78
+ if (!attributes.is_a?(Hash))
79
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::PostsListResponsePagination` initialize method"
80
+ end
81
+
82
+ # check to see if the attribute exists and convert string to symbol for hash key
83
+ acceptable_attribute_map = self.class.acceptable_attribute_map
84
+ attributes = attributes.each_with_object({}) { |(k, v), h|
85
+ if (!acceptable_attribute_map.key?(k.to_sym))
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::PostsListResponsePagination`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
87
+ end
88
+ h[k.to_sym] = v
89
+ }
90
+
91
+ if attributes.key?(:'page')
92
+ self.page = attributes[:'page']
93
+ end
94
+
95
+ if attributes.key?(:'limit')
96
+ self.limit = attributes[:'limit']
97
+ end
98
+
99
+ if attributes.key?(:'total')
100
+ self.total = attributes[:'total']
101
+ end
102
+
103
+ if attributes.key?(:'pages')
104
+ self.pages = attributes[:'pages']
105
+ end
106
+
107
+ if attributes.key?(:'next_cursor')
108
+ self.next_cursor = attributes[:'next_cursor']
109
+ end
110
+ end
111
+
112
+ # Show invalid properties with the reasons. Usually used together with valid?
113
+ # @return Array for valid properties with the reasons
114
+ def list_invalid_properties
115
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
116
+ invalid_properties = Array.new
117
+ invalid_properties
118
+ end
119
+
120
+ # Check to see if the all the properties in the model are valid
121
+ # @return true if the model is valid
122
+ def valid?
123
+ warn '[DEPRECATED] the `valid?` method is obsolete'
124
+ true
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ page == o.page &&
133
+ limit == o.limit &&
134
+ total == o.total &&
135
+ pages == o.pages &&
136
+ next_cursor == o.next_cursor
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [page, limit, total, pages, next_cursor].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ attributes = attributes.transform_keys(&:to_sym)
157
+ transformed_hash = {}
158
+ openapi_types.each_pair do |key, type|
159
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = nil
161
+ elsif type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the attribute
163
+ # is documented as an array but the input is not
164
+ if attributes[attribute_map[key]].is_a?(Array)
165
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
166
+ end
167
+ elsif !attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
169
+ end
170
+ end
171
+ new(transformed_hash)
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ end
191
+
192
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.1453'
14
+ VERSION = '0.0.1454'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1811,6 +1811,7 @@ require 'zernio-sdk/models/post_retry_response'
1811
1811
  require 'zernio-sdk/models/post_update_response'
1812
1812
  require 'zernio-sdk/models/post_user_id'
1813
1813
  require 'zernio-sdk/models/posts_list_response'
1814
+ require 'zernio-sdk/models/posts_list_response_pagination'
1814
1815
  require 'zernio-sdk/models/preflight_branded_calling_identity200_response'
1815
1816
  require 'zernio-sdk/models/preflight_branded_calling_identity200_response_findings_inner'
1816
1817
  require 'zernio-sdk/models/preflight_branded_calling_identity_request'