basecamp-sdk 0.33.0 → 0.34.0

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: 6964f730d2e803598d2772252292e4b7ace32af1edc6ebf781754b8850a4a3d9
4
- data.tar.gz: 165f62d720aa119678defdbbe985181be1a404250f326765c0c8bf4d3fd52460
3
+ metadata.gz: 25bd52e24df8081b95a01db3a3a77056d0a8a65e690e0873650c594c90a593fb
4
+ data.tar.gz: 41dca454861e8d7be217a4bdaeae17930b09f44f508e5c6928dd169412e4bfa3
5
5
  SHA512:
6
- metadata.gz: df76fda291281f47a8ce052752ee7e2b7cdd0e8ba60b8415ce4b26a3649149b069dcb1f38b4648bfe4ad96f01c1dd9623b2e11c9bb41e8ddc846d596ffb806a8
7
- data.tar.gz: 49d6c36399db556e74ad359cd68a215b67c5115c6232ec82bd11a1e23a3b05220681e110f54d40d4dfe1b78a3d9b43738e872f0a0f9859bc3a85088c3f0c15bf
6
+ metadata.gz: c2cf1ae375b942bfdd03d9e8df6817bbbcf0e6929e2118817f6ddbbc6485d5bfe60705887be1f7058ca355db31bd93629c29f48ae144ca7a610664e1b5589d83
7
+ data.tar.gz: fad0518aa12d9702193fc71aa538b163cbec5d0f0664d0a7b1e2f69a0933e1c43a4f5bede23e1e9e05397ad2d385e599fd55f70fd2c0fffcbc2edd4705bd200a
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://basecamp.com/schemas/sdk-metadata.json",
3
3
  "version": "1.0.0",
4
- "generated": "2026-10-28T05:27:32Z",
4
+ "generated": "2026-10-30T06:06:06Z",
5
5
  "operations": {
6
6
  "GetAccount": {
7
7
  "retry": {
@@ -3629,6 +3629,17 @@
3629
3629
  "maxPageSize": 50
3630
3630
  }
3631
3631
  },
3632
+ "CreateHillChartVersion": {
3633
+ "retry": {
3634
+ "maxAttempts": 2,
3635
+ "baseDelayMs": 1000,
3636
+ "backoff": "exponential",
3637
+ "retryOn": [
3638
+ 429,
3639
+ 503
3640
+ ]
3641
+ }
3642
+ },
3632
3643
  "GetHillChartVersion": {
3633
3644
  "retry": {
3634
3645
  "maxAttempts": 3,
@@ -3917,6 +3928,9 @@
3917
3928
  "CreateGoogleDocument": [
3918
3929
  "creator"
3919
3930
  ],
3931
+ "CreateHillChartVersion": [
3932
+ "creator"
3933
+ ],
3920
3934
  "CreateMessage": [
3921
3935
  "creator"
3922
3936
  ],
@@ -39,6 +39,20 @@ module Basecamp
39
39
  end
40
40
  end
41
41
 
42
+ # Post a progress update on a todoset's hill chart.
43
+ # @param todoset_id [Integer] todoset id ID
44
+ # @param description [String, nil] A note about the update, as rich text (HTML).
45
+ # @param dots [Array, nil] Todolists to move, each with its ID and new position. Todolists left
46
+ # out keep their current position.
47
+ # @param subscriptions [Array, nil] People to notify of the update and subscribe to it. If absent, nobody
48
+ # else is notified.
49
+ # @return [Hash] response data
50
+ def create_version(todoset_id:, description: nil, dots: nil, subscriptions: nil)
51
+ with_operation(service: "hillcharts", operation: "create_version", is_mutation: true, resource_id: todoset_id) do
52
+ http_post("/todosets/#{todoset_id}/hills/versions.json", body: compact_params(description: description, dots: dots, subscriptions: subscriptions)).json(operation: "CreateHillChartVersion")
53
+ end
54
+ end
55
+
42
56
  # Get one progress update from a todoset's hill chart
43
57
  # @param todoset_id [Integer] todoset id ID
44
58
  # @param version_id [Integer] version id ID
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Auto-generated from OpenAPI spec. Do not edit manually.
4
- # Generated: 2026-10-28T05:27:32Z
4
+ # Generated: 2026-10-30T06:06:06Z
5
5
 
6
6
  require "json"
7
7
  require "time"
@@ -2581,6 +2581,33 @@ module Basecamp
2581
2581
  end
2582
2582
  end
2583
2583
 
2584
+ # HillChartDotPosition
2585
+ class HillChartDotPosition
2586
+ include TypeHelpers
2587
+ attr_accessor :id, :position
2588
+
2589
+ # @return [Array<Symbol>]
2590
+ def self.required_fields
2591
+ %i[id position].freeze
2592
+ end
2593
+
2594
+ def initialize(data = {})
2595
+ @id = parse_integer(data["id"])
2596
+ @position = parse_integer(data["position"])
2597
+ end
2598
+
2599
+ def to_h
2600
+ {
2601
+ "id" => @id,
2602
+ "position" => @position,
2603
+ }.compact
2604
+ end
2605
+
2606
+ def to_json(*args)
2607
+ to_h.to_json(*args)
2608
+ end
2609
+ end
2610
+
2584
2611
  # HillChartVersion
2585
2612
  class HillChartVersion
2586
2613
  include TypeHelpers
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Basecamp
4
- VERSION = "0.33.0"
5
- API_VERSION = "2026-10-27"
4
+ VERSION = "0.34.0"
5
+ API_VERSION = "2026-10-30"
6
6
  end
@@ -161,7 +161,7 @@ class ServiceGenerator
161
161
  'Todos' => %w[ListTodos CreateTodo CreateTodosetTodo GetTodo ReplaceTodo CompleteTodo UncompleteTodo],
162
162
  'Todolists' => %w[GetTodolistOrGroup UpdateTodolistOrGroup ListTodolists CreateTodolist RepositionTodolist],
163
163
  'Todosets' => %w[GetTodoset],
164
- 'HillCharts' => %w[GetHillChart UpdateHillChartSettings ListHillChartVersions GetHillChartVersion],
164
+ 'HillCharts' => %w[GetHillChart UpdateHillChartSettings ListHillChartVersions GetHillChartVersion CreateHillChartVersion],
165
165
  'TodolistGroups' => %w[ListTodolistGroups CreateTodolistGroup RepositionTodolistGroup]
166
166
  },
167
167
  'Untagged' => {
@@ -302,7 +302,8 @@ class ServiceGenerator
302
302
  'GetHillChart' => 'get',
303
303
  'UpdateHillChartSettings' => 'update_settings',
304
304
  'ListHillChartVersions' => 'list_versions',
305
- 'GetHillChartVersion' => 'get_version'
305
+ 'GetHillChartVersion' => 'get_version',
306
+ 'CreateHillChartVersion' => 'create_version'
306
307
  }.freeze
307
308
 
308
309
  # Verb patterns for extracting method names
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecamp-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Basecamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-29 00:00:00.000000000 Z
11
+ date: 2026-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday