pack_api 1.0.13 → 1.0.14

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: 202cffcdf9c46adf8f8228a91426a4b788db29370001ccaaeb28cf8bc8315b03
4
- data.tar.gz: 60c10be7fc9ac5dcec8d045442ed9122eba404c363250c1d1b417065b93174dd
3
+ metadata.gz: ba2280dd3e96dd6777182d4a062add14c4628d2b13c685d9253c4a97bb71410c
4
+ data.tar.gz: 1b2f65265fea8c021cb4113d8bf7ab1579ac33d6c53e7d7959587822fcf680ba
5
5
  SHA512:
6
- metadata.gz: 2c093365199196ec7372fecb715e55febae238bdc94db6ce9e940beff59057d15090c49ef60cb36e69d8447297f58a7e0e836559380e20b37988281af75a183f
7
- data.tar.gz: b5a1242131bdedb8bce7918b05629d1be33703f58c2766803d5b91698a6349a23d76abf2a952e69b033ef2a5b73272d9311913d1ccd84c3c3070749a756c5e3d
6
+ metadata.gz: 8c86ca551b27873c548751c38e93b83ff5a88ed72e17b3c5bffa0f8f366ea14883b7ed88349e146dc954db5fc16fd2b4d77eb946483b896d9ef920533a4fc30c
7
+ data.tar.gz: 44ef8538df6798540fc6d7c65a609a5105c25192597c4126d897e0028d41fda55f88d44dbc08bd5c7ecd488d05f9aee4987ef054dbc38b01dd2b14eb429735ef
@@ -4,9 +4,13 @@ module PackAPI::Types
4
4
  class CollectionResultMetadata < Dry::Struct
5
5
  attribute :first_item, Types::Integer
6
6
  attribute :last_item, Types::Integer
7
- attribute :per_page, Types::Integer
8
7
  attribute :total_items, Types::Integer
9
8
 
9
+ # the page size (input) -- can be different than actual number of items in the result for 2 reasons:
10
+ # - single page scenario: per_page = :all (symbol)
11
+ # - last page scenario: per_page = N (integer), but there are fewer than N items remaining in the result set
12
+ attribute :per_page, Types::Integer | Types::Symbol
13
+
10
14
  ###
11
15
  # Cursors for the current record set (see PackAPI::Paginator)
12
16
  attribute? :next_page_cursor, Types::String.optional
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PackAPI
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pack_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flytedesk