fizzy-sdk 0.1.0 → 0.1.1

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: 335822e6052678da32698d8c2546640f4e78535904305e39ab64a83aec2abf16
4
- data.tar.gz: e2e54f187ed12c89fb07862b30595a345bf611508cd0283302369d0708f17ee2
3
+ metadata.gz: e6c694978fa9ea3f688ac55af140cba667c2304405c7cd7e273c68aefc728eb6
4
+ data.tar.gz: d033f7d6cf653f4c13d4b07fee52e9169a33a9c5e197396a39adaf6f6b7572bb
5
5
  SHA512:
6
- metadata.gz: c462ced9ffa65dc73febf9b6c42d16264b4decb68374185e3db4f0affe58420e3712f824a8e64581ed08c260982f6de671be915697d76c6322fd2378a18e2b94
7
- data.tar.gz: ec9026294b2270549849c08fbbc09758f9fceb636b9640f8bbbced9b4c820250a036e83529bd0e05c7c4fc1350065f41d1bbb608ea39a972b1c06f75d0d087bd
6
+ metadata.gz: d018456e4bdba5ee2eb61ddd701d9de28e4dab3644cf121764435286d20b88d4bbc997ce0054c5b773890261936f2bcf54e4fecd8135162aa7f44db073242de4
7
+ data.tar.gz: a90c34253cef98776d4462269ab76d7b88d3b1d22fc5db7d8dac7e0eaf98eb68162f007f7aa7f2cf9f5e416c645ad8c83feefc9d54e7f8a7d25c956e4207cf2e
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://fizzy.do/schemas/sdk-metadata.json",
3
3
  "version": "1.0.0",
4
- "generated": "2026-03-10T05:37:58Z",
4
+ "generated": "2026-03-10T16:45:52Z",
5
5
  "operations": {
6
6
  "ListAccessTokens": {
7
7
  "retry": {
@@ -20,12 +20,12 @@ module Fizzy
20
20
  # @param account_id [String] account id ID
21
21
  # @param name [String] name
22
22
  # @param all_access [Boolean, nil] all access
23
- # @param auto_postpone_period [Integer, nil] auto postpone period
23
+ # @param auto_postpone_period_in_days [Integer, nil] auto postpone period in days
24
24
  # @param public_description [String, nil] public description
25
25
  # @return [Hash] response data
26
- def create(account_id:, name:, all_access: nil, auto_postpone_period: nil, public_description: nil)
26
+ def create(account_id:, name:, all_access: nil, auto_postpone_period_in_days: nil, public_description: nil)
27
27
  with_operation(service: "boards", operation: "CreateBoard", is_mutation: true, resource_id: account_id) do
28
- http_post("/#{account_id}/boards.json", body: compact_params(name: name, all_access: all_access, auto_postpone_period: auto_postpone_period, public_description: public_description)).json
28
+ http_post("/#{account_id}/boards.json", body: compact_params(name: name, all_access: all_access, auto_postpone_period_in_days: auto_postpone_period_in_days, public_description: public_description)).json
29
29
  end
30
30
  end
31
31
 
@@ -44,13 +44,13 @@ module Fizzy
44
44
  # @param board_id [String] board id ID
45
45
  # @param name [String, nil] name
46
46
  # @param all_access [Boolean, nil] all access
47
- # @param auto_postpone_period [Integer, nil] auto postpone period
47
+ # @param auto_postpone_period_in_days [Integer, nil] auto postpone period in days
48
48
  # @param public_description [String, nil] public description
49
49
  # @param user_ids [Array, nil] user ids
50
50
  # @return [Hash] response data
51
- def update(account_id:, board_id:, name: nil, all_access: nil, auto_postpone_period: nil, public_description: nil, user_ids: nil)
51
+ def update(account_id:, board_id:, name: nil, all_access: nil, auto_postpone_period_in_days: nil, public_description: nil, user_ids: nil)
52
52
  with_operation(service: "boards", operation: "UpdateBoard", is_mutation: true, resource_id: board_id) do
53
- http_patch("/#{account_id}/boards/#{board_id}", body: compact_params(name: name, all_access: all_access, auto_postpone_period: auto_postpone_period, public_description: public_description, user_ids: user_ids)).json
53
+ http_patch("/#{account_id}/boards/#{board_id}", body: compact_params(name: name, all_access: all_access, auto_postpone_period_in_days: auto_postpone_period_in_days, public_description: public_description, user_ids: user_ids)).json
54
54
  end
55
55
  end
56
56
 
@@ -37,12 +37,11 @@ module Fizzy
37
37
 
38
38
  # update_account_entropy operation
39
39
  # @param account_id [String] account id ID
40
- # @param auto_postpone_period [Integer, nil] auto postpone period
41
- # @return [void]
42
- def update_account_entropy(account_id:, auto_postpone_period: nil)
40
+ # @param auto_postpone_period_in_days [Integer, nil] auto postpone period in days
41
+ # @return [Hash] response data
42
+ def update_account_entropy(account_id:, auto_postpone_period_in_days: nil)
43
43
  with_operation(service: "miscellaneous", operation: "UpdateAccountEntropy", is_mutation: true, resource_id: account_id) do
44
- http_patch("/#{account_id}/account/entropy.json", body: compact_params(auto_postpone_period: auto_postpone_period))
45
- nil
44
+ http_put("/#{account_id}/account/entropy.json", body: compact_params(auto_postpone_period_in_days: auto_postpone_period_in_days)).json
46
45
  end
47
46
  end
48
47
 
@@ -118,12 +117,11 @@ module Fizzy
118
117
  # update_board_entropy operation
119
118
  # @param account_id [String] account id ID
120
119
  # @param board_id [String] board id ID
121
- # @param auto_postpone_period [Integer, nil] auto postpone period
122
- # @return [void]
123
- def update_board_entropy(account_id:, board_id:, auto_postpone_period: nil)
120
+ # @param auto_postpone_period_in_days [Integer, nil] auto postpone period in days
121
+ # @return [Hash] response data
122
+ def update_board_entropy(account_id:, board_id:, auto_postpone_period_in_days: nil)
124
123
  with_operation(service: "miscellaneous", operation: "UpdateBoardEntropy", is_mutation: true, resource_id: board_id) do
125
- http_patch("/#{account_id}/boards/#{board_id}/entropy.json", body: compact_params(auto_postpone_period: auto_postpone_period))
126
- nil
124
+ http_put("/#{account_id}/boards/#{board_id}/entropy.json", body: compact_params(auto_postpone_period_in_days: auto_postpone_period_in_days)).json
127
125
  end
128
126
  end
129
127
 
@@ -50,11 +50,15 @@ module Fizzy
50
50
  end
51
51
 
52
52
  # @generated
53
- AccountSettings = Data.define(:name) do
53
+ AccountSettings = Data.define(:id, :name, :cards_count, :created_at, :auto_postpone_period_in_days) do
54
54
  # @param data [Hash] raw JSON response
55
55
  def self.from_json(data)
56
56
  new(
57
- name: data["name"]
57
+ id: data["id"],
58
+ name: data["name"],
59
+ cards_count: data["cards_count"],
60
+ created_at: data["created_at"],
61
+ auto_postpone_period_in_days: data["auto_postpone_period_in_days"]
58
62
  )
59
63
  end
60
64
  end
@@ -80,7 +84,7 @@ module Fizzy
80
84
  end
81
85
 
82
86
  # @generated
83
- Board = Data.define(:id, :name, :all_access, :created_at, :url, :creator) do
87
+ Board = Data.define(:id, :name, :all_access, :created_at, :auto_postpone_period_in_days, :url, :creator) do
84
88
  # @param data [Hash] raw JSON response
85
89
  def self.from_json(data)
86
90
  new(
@@ -88,6 +92,7 @@ module Fizzy
88
92
  name: data["name"],
89
93
  all_access: data["all_access"],
90
94
  created_at: data["created_at"],
95
+ auto_postpone_period_in_days: data["auto_postpone_period_in_days"],
91
96
  url: data["url"],
92
97
  creator: data["creator"]
93
98
  )
@@ -226,13 +231,13 @@ module Fizzy
226
231
  CreateAccountExportResponseContent = Data.define
227
232
 
228
233
  # @generated
229
- CreateBoardRequestContent = Data.define(:name, :all_access, :auto_postpone_period, :public_description) do
234
+ CreateBoardRequestContent = Data.define(:name, :all_access, :auto_postpone_period_in_days, :public_description) do
230
235
  # @param data [Hash] raw JSON response
231
236
  def self.from_json(data)
232
237
  new(
233
238
  name: data["name"],
234
239
  all_access: data["all_access"],
235
- auto_postpone_period: data["auto_postpone_period"],
240
+ auto_postpone_period_in_days: data["auto_postpone_period_in_days"],
236
241
  public_description: data["public_description"]
237
242
  )
238
243
  end
@@ -767,15 +772,18 @@ module Fizzy
767
772
  end
768
773
 
769
774
  # @generated
770
- UpdateAccountEntropyRequestContent = Data.define(:auto_postpone_period) do
775
+ UpdateAccountEntropyRequestContent = Data.define(:auto_postpone_period_in_days) do
771
776
  # @param data [Hash] raw JSON response
772
777
  def self.from_json(data)
773
778
  new(
774
- auto_postpone_period: data["auto_postpone_period"]
779
+ auto_postpone_period_in_days: data["auto_postpone_period_in_days"]
775
780
  )
776
781
  end
777
782
  end
778
783
 
784
+ # @generated
785
+ UpdateAccountEntropyResponseContent = Data.define
786
+
779
787
  # @generated
780
788
  UpdateAccountSettingsRequestContent = Data.define(:name) do
781
789
  # @param data [Hash] raw JSON response
@@ -787,15 +795,18 @@ module Fizzy
787
795
  end
788
796
 
789
797
  # @generated
790
- UpdateBoardEntropyRequestContent = Data.define(:auto_postpone_period) do
798
+ UpdateBoardEntropyRequestContent = Data.define(:auto_postpone_period_in_days) do
791
799
  # @param data [Hash] raw JSON response
792
800
  def self.from_json(data)
793
801
  new(
794
- auto_postpone_period: data["auto_postpone_period"]
802
+ auto_postpone_period_in_days: data["auto_postpone_period_in_days"]
795
803
  )
796
804
  end
797
805
  end
798
806
 
807
+ # @generated
808
+ UpdateBoardEntropyResponseContent = Data.define
809
+
799
810
  # @generated
800
811
  UpdateBoardInvolvementRequestContent = Data.define(:involvement) do
801
812
  # @param data [Hash] raw JSON response
@@ -807,13 +818,13 @@ module Fizzy
807
818
  end
808
819
 
809
820
  # @generated
810
- UpdateBoardRequestContent = Data.define(:name, :all_access, :auto_postpone_period, :public_description, :user_ids) do
821
+ UpdateBoardRequestContent = Data.define(:name, :all_access, :auto_postpone_period_in_days, :public_description, :user_ids) do
811
822
  # @param data [Hash] raw JSON response
812
823
  def self.from_json(data)
813
824
  new(
814
825
  name: data["name"],
815
826
  all_access: data["all_access"],
816
- auto_postpone_period: data["auto_postpone_period"],
827
+ auto_postpone_period_in_days: data["auto_postpone_period_in_days"],
817
828
  public_description: data["public_description"],
818
829
  user_ids: data["user_ids"]
819
830
  )
data/lib/fizzy/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fizzy
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  API_VERSION = "2026-03-01"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fizzy-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Basecamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-10 00:00:00.000000000 Z
11
+ date: 2026-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday