pike13 0.1.3 → 0.1.4

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: 6987b081753d6939cce1fb2783a3a6f68f1c5f44b8ba10b9de091e2de5ca4b6a
4
- data.tar.gz: 755fd58715c57734e68276d5e05e3893ba47321f871a4dde3197347db7299577
3
+ metadata.gz: 4ecda21167ab9648a9c5cc963c84b109fec1de1b72f6501e479a6121be976866
4
+ data.tar.gz: 6f26de3022a6186ecb1c2c6d10a3f8b2276b9fe2aa9ef112cc1b0b2972ae6d93
5
5
  SHA512:
6
- metadata.gz: d65e0c49d5ed5f749c55504da384f9d2b52be2e16632dadea2f1d14e932edf135842be1626863aff8e1affe4f0c714fbcaf23d1bd21924081a79289b0ac8a62f
7
- data.tar.gz: 16b8ae4034dd0d6da0769f9e0d93a80c5165c0bdc5248523618a35f3442219fa2c7387960208860c682e4ba96819022a28c1d315a1a82b73ff90c830fa067c6c
6
+ metadata.gz: a9cb41a2cbc57602bb5bb18ad352eacd783f117c721502675350059e98fb790b3da72f07e8ad3d5fc80f247cb7da8feaaffb160ae64f9bf0dc755126f7ff522d
7
+ data.tar.gz: dec61801a5cdc486f5e467b1978719132d467961d41638020fd658def9347dfcd4c2f34a1c0cfad1c7fd941fd63765a2b697ecd397bba5a837ec87d394f477d7
data/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.4] - 2025-11-18
9
+
10
+ ### Added
11
+ - **Enhanced Event and People list methods**: Added support for query parameters in `all` methods
12
+ - `Pike13::Desk::Event.all(**params)` now accepts `from`, `to`, `ids`, `service_ids` parameters
13
+ - `Pike13::Desk::Person.all(**params)` now accepts `created_since`, `updated_since`, `is_member`, `include_relationships`, `include_balances`, `sort` parameters
14
+ - `Pike13::Front::Event.all(**params)` now accepts `from`, `to`, `ids`, `service_ids` parameters
15
+
16
+ ### Fixed
17
+ - **Desk::Visit**: Removed non-existent `all` method that referenced an unsupported `/desk/visits` list endpoint. The Pike13 API v2 only supports individual visit operations via find, create, update, and destroy methods.
18
+
8
19
  ## [0.1.3] - 2025-11-13
9
20
 
10
21
  ### Fixed
data/README.md CHANGED
@@ -117,6 +117,8 @@ Full staff interface with read/write access to all resources.
117
117
 
118
118
  ```ruby
119
119
  Pike13::Desk::Person.all # List all people
120
+ Pike13::Desk::Person.all(is_member: true, include_balances: true) # Filter with parameters
121
+ Pike13::Desk::Person.all(created_since: "2024-01-01", sort: "-updated_at") # Date and sorting
120
122
  Pike13::Desk::Person.find(123) # Find a person
121
123
  Pike13::Desk::Person.me # Get authenticated user
122
124
  Pike13::Desk::Person.search("john") # Search people
@@ -139,6 +141,8 @@ Pike13::Desk::Business.franchisees
139
141
 
140
142
  ```ruby
141
143
  Pike13::Desk::Event.all # List events
144
+ Pike13::Desk::Event.all(from: "2024-01-01", to: "2024-12-31", service_ids: "1,2,3") # Filter with parameters
145
+ Pike13::Desk::Event.all(ids: "100,200,300") # Filter by specific event IDs
142
146
  Pike13::Desk::Event.find(100) # Find event
143
147
  Pike13::Desk::EventOccurrence.all(from: "2025-01-01", to: "2025-01-31")
144
148
  Pike13::Desk::EventOccurrence.find(789) # Find occurrence
@@ -198,7 +202,6 @@ Pike13::Desk::Booking.destroy_lease(123, 456)
198
202
  #### Visits
199
203
 
200
204
  ```ruby
201
- Pike13::Desk::Visit.all # List all visits
202
205
  Pike13::Desk::Visit.find(456) # Find visit
203
206
  Pike13::Desk::Visit.summary(person_id: 123) # Get visit summary for a person
204
207
  ```
@@ -321,6 +324,8 @@ Pike13::Front::Person.me # Get authenticated client user (o
321
324
 
322
325
  ```ruby
323
326
  Pike13::Front::Event.all # List events
327
+ Pike13::Front::Event.all(from: "2024-01-01", to: "2024-12-31", service_ids: "1,2,3") # Filter with parameters
328
+ Pike13::Front::Event.all(ids: "100,200,300") # Filter by specific event IDs
324
329
  Pike13::Front::Event.find(100) # Find event
325
330
  Pike13::Front::EventOccurrence.all(from: "2025-01-01", to: "2025-01-31")
326
331
  Pike13::Front::EventOccurrence.find(789) # Find occurrence
@@ -7,8 +7,8 @@ module Pike13
7
7
  class Event < Base
8
8
  class << self
9
9
  # GET /desk/events
10
- def all
11
- client.get("desk/events")
10
+ def all(**params)
11
+ client.get("desk/events", params)
12
12
  end
13
13
 
14
14
  # GET /desk/events/:id
@@ -7,8 +7,8 @@ module Pike13
7
7
  class Person < Base
8
8
  class << self
9
9
  # GET /desk/people
10
- def all
11
- client.get("desk/people")
10
+ def all(**params)
11
+ client.get("desk/people", params)
12
12
  end
13
13
 
14
14
  # GET /desk/people/:id
@@ -6,11 +6,6 @@ module Pike13
6
6
  module Desk
7
7
  class Visit < Base
8
8
  class << self
9
- # GET /desk/visits
10
- def all(**params)
11
- client.get("desk/visits", params)
12
- end
13
-
14
9
  # GET /desk/visits/:id
15
10
  def find(id)
16
11
  client.get("desk/visits/#{id}")
@@ -7,8 +7,8 @@ module Pike13
7
7
  class Event < Base
8
8
  class << self
9
9
  # GET /front/events
10
- def all
11
- client.get("front/events")
10
+ def all(**params)
11
+ client.get("front/events", params)
12
12
  end
13
13
 
14
14
  # GET /front/events/:id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pike13
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pike13
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Huttemann
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.7.2
143
+ rubygems_version: 3.6.9
144
144
  specification_version: 4
145
145
  summary: Ruby client for the Pike13 API
146
146
  test_files: []