basecamp-sdk 0.2.1 → 0.2.2

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: 5251d36b00bfd269e7fce1bc324c2c9b491b9d0f0d30296807c0b1b724272adc
4
- data.tar.gz: c590cec999d1b5c687456d8cdf1259712df2fcb26260048410ac5edd41dd772b
3
+ metadata.gz: 8ad400c464ec41bcb8b70b0428d71db268a884690740c5b9ae9791330a4244e1
4
+ data.tar.gz: 4937023d3d87ae38eee8eea728ed7b5007fa0413d64f0f0cfff977085eaae923
5
5
  SHA512:
6
- metadata.gz: 874a76ab2b404c5ad8bada234f9002ba4e50d3ad5e574352d0f6cc53991efa656f0adb0ddd1701df52e66966ed201740b1156c9aaa7a3193422c9ab82fa877ae
7
- data.tar.gz: 05570761aa1e7a59823ed614505391415f883b41fcf7ba4b4197f51ad2ad07cf7ce9d7ecd7722ecfe7e60d759fb963638f7bfe621b20406233dcf1b0a1909400
6
+ metadata.gz: ffb28e6c920ea19b9cf419e240f107b478fb726bfb23f5437441b96aeeca7c9ec660cec8e3ef362bb3c5e6cc6606067e6de28c4f567d06ff2ef838f2aec45714
7
+ data.tar.gz: 625a648b06c1067281e0975b801e8b78f4156fb1091f3e9fa1e12de8ae6c0708f538fd6eda17410433a3779fe732fd1dfd1e87c34aed869b3d13b7381f2aa3dd
@@ -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-02-27T01:07:43Z",
4
+ "generated": "2026-03-03T21:53:53Z",
5
5
  "operations": {
6
6
  "CreateAttachment": {
7
7
  "retry": {
@@ -41,10 +41,11 @@ module Basecamp
41
41
  # @param title [String] title
42
42
  # @param content [String, nil] content
43
43
  # @param status [String, nil] active|drafted
44
+ # @param subscriptions [Array, nil] subscriptions
44
45
  # @return [Hash] response data
45
- def create(vault_id:, title:, content: nil, status: nil)
46
+ def create(vault_id:, title:, content: nil, status: nil, subscriptions: nil)
46
47
  with_operation(service: "documents", operation: "create", is_mutation: true, resource_id: vault_id) do
47
- http_post("/vaults/#{vault_id}/documents.json", body: compact_params(title: title, content: content, status: status)).json
48
+ http_post("/vaults/#{vault_id}/documents.json", body: compact_params(title: title, content: content, status: status, subscriptions: subscriptions)).json
48
49
  end
49
50
  end
50
51
  end
@@ -22,10 +22,11 @@ module Basecamp
22
22
  # @param content [String, nil] content
23
23
  # @param status [String, nil] active|drafted
24
24
  # @param category_id [Integer, nil] category id
25
+ # @param subscriptions [Array, nil] subscriptions
25
26
  # @return [Hash] response data
26
- def create(board_id:, subject:, content: nil, status: nil, category_id: nil)
27
+ def create(board_id:, subject:, content: nil, status: nil, category_id: nil, subscriptions: nil)
27
28
  with_operation(service: "messages", operation: "create", is_mutation: true, resource_id: board_id) do
28
- http_post("/message_boards/#{board_id}/messages.json", body: compact_params(subject: subject, content: content, status: status, category_id: category_id)).json
29
+ http_post("/message_boards/#{board_id}/messages.json", body: compact_params(subject: subject, content: content, status: status, category_id: category_id, subscriptions: subscriptions)).json
29
30
  end
30
31
  end
31
32
 
@@ -81,10 +81,11 @@ module Basecamp
81
81
  # @param participant_ids [Array, nil] participant ids
82
82
  # @param all_day [Boolean, nil] all day
83
83
  # @param notify [Boolean, nil] notify
84
+ # @param subscriptions [Array, nil] subscriptions
84
85
  # @return [Hash] response data
85
- def create_entry(schedule_id:, summary:, starts_at:, ends_at:, description: nil, participant_ids: nil, all_day: nil, notify: nil)
86
+ def create_entry(schedule_id:, summary:, starts_at:, ends_at:, description: nil, participant_ids: nil, all_day: nil, notify: nil, subscriptions: nil)
86
87
  with_operation(service: "schedules", operation: "create_entry", is_mutation: true, resource_id: schedule_id) do
87
- http_post("/schedules/#{schedule_id}/entries.json", body: compact_params(summary: summary, starts_at: starts_at, ends_at: ends_at, description: description, participant_ids: participant_ids, all_day: all_day, notify: notify)).json
88
+ http_post("/schedules/#{schedule_id}/entries.json", body: compact_params(summary: summary, starts_at: starts_at, ends_at: ends_at, description: description, participant_ids: participant_ids, all_day: all_day, notify: notify, subscriptions: subscriptions)).json
88
89
  end
89
90
  end
90
91
  end
@@ -50,10 +50,11 @@ module Basecamp
50
50
  # @param attachable_sgid [String] attachable sgid
51
51
  # @param description [String, nil] description
52
52
  # @param base_name [String, nil] base name
53
+ # @param subscriptions [Array, nil] subscriptions
53
54
  # @return [Hash] response data
54
- def create(vault_id:, attachable_sgid:, description: nil, base_name: nil)
55
+ def create(vault_id:, attachable_sgid:, description: nil, base_name: nil, subscriptions: nil)
55
56
  with_operation(service: "uploads", operation: "create", is_mutation: true, resource_id: vault_id) do
56
- http_post("/vaults/#{vault_id}/uploads.json", body: compact_params(attachable_sgid: attachable_sgid, description: description, base_name: base_name)).json
57
+ http_post("/vaults/#{vault_id}/uploads.json", body: compact_params(attachable_sgid: attachable_sgid, description: description, base_name: base_name, subscriptions: subscriptions)).json
57
58
  end
58
59
  end
59
60
  end
@@ -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-02-27T01:07:43Z
4
+ # Generated: 2026-03-03T21:53:53Z
5
5
 
6
6
  require "json"
7
7
  require "time"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Basecamp
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  API_VERSION = "2026-01-26"
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Basecamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-28 00:00:00.000000000 Z
11
+ date: 2026-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday