basecamp-sdk 0.36.0 → 0.37.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: 314401afda5770702cd72089245fa79d2c78a1eb408e378592172a9d5ff92386
4
- data.tar.gz: ada4fb551b6f0959faf9a76af337faf9e4fd5af95623d173673a4f5265ae94ec
3
+ metadata.gz: 39b5c6361a42bafa7ea74565fc96959d10c706be5d72b9f63a109efc295b62f8
4
+ data.tar.gz: 57969a324c9f27679146417495673af363bcc24f1771652a92047c79465087fc
5
5
  SHA512:
6
- metadata.gz: 81fd8c83a6cb047592d3e8121caf250c21d30936f2efbec5e70e5d61ecba673afc70ae6c3a62bbfe0661b7998f7ef6384fbc8e6b3bba74c60b5eaee5718da12c
7
- data.tar.gz: e7901c3bac9dc9d12336106e6d2894d4663d2b078d587fce2258dcd445fd1a66659a895c005c9944c52487e52d47ed2b8f188438cc8d97c36a69211f114a57be
6
+ metadata.gz: b5c339056349e6f3da03bc35a0c1d4d5ae78090740d1977d22c48cb5156bacd35d34135e4636dc5f7388c20254cda23eb397a331025a6cc8cade4c8c77a8a142
7
+ data.tar.gz: 466a8f23341fed5b12327b739211da2b4256244cff00de7583e3b0a6e0e45b0c90d4996443f48982b3dc7de5e6ef673a3621287d5b162aafb27b60152e68d55b
@@ -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-11-12T17:16:25Z",
4
+ "generated": "2026-11-19T01:00:51Z",
5
5
  "operations": {
6
6
  "GetAccount": {
7
7
  "retry": {
@@ -30,10 +30,23 @@ module Basecamp
30
30
  # Create a new project
31
31
  # @param name [String] name
32
32
  # @param description [String, nil] description
33
+ # @param color [String, nil] The project's color, used for it on calendars: white, red, orange,
34
+ # yellow, green, blue, aqua, purple, gray, pink or brown. Omitted, Basecamp
35
+ # derives one from the project's name. Basecamp answers a value outside the enum
36
+ # with a server error, not a validation error.
37
+ # @param purpose [String, nil] What kind of project it is: `topic` (a regular project, the default),
38
+ # `team`, or `company_hq` (the account's Company HQ, at most one per
39
+ # account; a second answers 422). BC3's enum also has `guide`, which marks
40
+ # a project as a sample nobody can edit afterwards, so it isn't offered.
41
+ # @param admissions [String, nil] invite|employee|team
42
+ # @param timesheet_enabled [Boolean, nil] Turn on the project's timesheet. Basecamp ignores this when the caller
43
+ # can't use timesheets (the account lacks them, or the caller is a client).
44
+ # @param wallpaper_mode [String, nil] How a wallpaper uploaded later is laid out. UpdateProjectWallpaper
45
+ # uploads one.
33
46
  # @return [Hash] response data
34
- def create(name:, description: nil)
47
+ def create(name:, description: nil, color: nil, purpose: nil, admissions: nil, timesheet_enabled: nil, wallpaper_mode: nil)
35
48
  with_operation(service: "projects", operation: "create", is_mutation: true) do
36
- http_post("/projects.json", body: compact_params(name: name, description: description)).json(operation: "CreateProject")
49
+ http_post("/projects.json", body: compact_params(name: name, description: description, color: color, purpose: purpose, admissions: admissions, timesheet_enabled: timesheet_enabled, wallpaper_mode: wallpaper_mode)).json(operation: "CreateProject")
37
50
  end
38
51
  end
39
52
 
@@ -54,10 +67,25 @@ module Basecamp
54
67
  # @param schedule_attributes [Hash, nil] schedule attributes
55
68
  # @param wallpaper_mode [String, nil] How the project's wallpaper is laid out. Changes only the layout of a
56
69
  # wallpaper already attached; UpdateProjectWallpaper uploads one.
70
+ # @param color [String, nil] The project's color, used for it on calendars: white, red, orange,
71
+ # yellow, green, blue, aqua, purple, gray, pink or brown. An empty string clears
72
+ # it, and Basecamp derives one from the project's name again. A value
73
+ # outside the enum answers a server error, not a validation error. The
74
+ # `color` a project read returns is something else: the caller's own color
75
+ # for the project on their home screen, null unless they set one.
76
+ # @param purpose [String, nil] What kind of project it is: `topic` (a regular project), `team`, or
77
+ # `company_hq` (the account's Company HQ). Changing a `topic` to anything
78
+ # else deletes the project's start and end dates. An account has at most
79
+ # one `company_hq`; asking for a second answers 422. BC3's enum also has
80
+ # `guide`, which marks a project as a sample nobody can edit afterwards,
81
+ # so it isn't offered.
82
+ # @param timesheet_enabled [Boolean, nil] Turn the project's timesheet on or off. Basecamp ignores this when the
83
+ # caller can't use timesheets (the account lacks them, or the caller is a
84
+ # client).
57
85
  # @return [Hash] response data
58
- def update(project_id:, name:, description: nil, admissions: nil, schedule_attributes: nil, wallpaper_mode: nil)
86
+ def update(project_id:, name:, description: nil, admissions: nil, schedule_attributes: nil, wallpaper_mode: nil, color: nil, purpose: nil, timesheet_enabled: nil)
59
87
  with_operation(service: "projects", operation: "update", is_mutation: true, project_id: project_id) do
60
- http_put("/projects/#{project_id}", body: compact_params(name: name, description: description, admissions: admissions, schedule_attributes: schedule_attributes, wallpaper_mode: wallpaper_mode)).json(operation: "UpdateProject")
88
+ http_put("/projects/#{project_id}", body: compact_params(name: name, description: description, admissions: admissions, schedule_attributes: schedule_attributes, wallpaper_mode: wallpaper_mode, color: color, purpose: purpose, timesheet_enabled: timesheet_enabled)).json(operation: "UpdateProject")
61
89
  end
62
90
  end
63
91
 
@@ -38,11 +38,14 @@ module Basecamp
38
38
  end
39
39
  end
40
40
 
41
- # Get overdue todos grouped by lateness
41
+ # Get one page of overdue todos grouped by lateness, latest first.
42
+ # @param page [Integer, nil] Page number for paginating through results. Defaults to 1. This
43
+ # operation is not auto-paginated in any SDK, so a page is returned as
44
+ # asked for and later pages are not followed.
42
45
  # @return [Hash] response data
43
- def overdue()
46
+ def overdue(page: nil)
44
47
  with_operation(service: "reports", operation: "overdue", is_mutation: false) do
45
- http_get("/reports/todos/overdue.json", operation: "GetOverdueTodos").json(operation: "GetOverdueTodos")
48
+ http_get("/reports/todos/overdue.json", params: compact_query_params(page: page), operation: "GetOverdueTodos").json(operation: "GetOverdueTodos")
46
49
  end
47
50
  end
48
51
 
@@ -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-11-12T17:16:25Z
4
+ # Generated: 2026-11-19T01:00:51Z
5
5
 
6
6
  require "json"
7
7
  require "time"
@@ -3850,7 +3850,7 @@ module Basecamp
3850
3850
  # ProjectConstructionAttributes
3851
3851
  class ProjectConstructionAttributes
3852
3852
  include TypeHelpers
3853
- attr_accessor :name, :description, :start_date
3853
+ attr_accessor :name, :admissions, :description, :start_date, :timesheet_enabled
3854
3854
 
3855
3855
  # @return [Array<Symbol>]
3856
3856
  def self.required_fields
@@ -3859,15 +3859,19 @@ module Basecamp
3859
3859
 
3860
3860
  def initialize(data = {})
3861
3861
  @name = data["name"]
3862
+ @admissions = data["admissions"]
3862
3863
  @description = data["description"]
3863
3864
  @start_date = data["start_date"]
3865
+ @timesheet_enabled = parse_boolean(data["timesheet_enabled"])
3864
3866
  end
3865
3867
 
3866
3868
  def to_h
3867
3869
  {
3868
3870
  "name" => @name,
3871
+ "admissions" => @admissions,
3869
3872
  "description" => @description,
3870
3873
  "start_date" => @start_date,
3874
+ "timesheet_enabled" => @timesheet_enabled,
3871
3875
  }.compact
3872
3876
  end
3873
3877
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Basecamp
4
- VERSION = "0.36.0"
4
+ VERSION = "0.37.0"
5
5
  API_VERSION = "2026-11-05"
6
6
  end
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.36.0
4
+ version: 0.37.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-11-12 00:00:00.000000000 Z
11
+ date: 2026-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday