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 +4 -4
- data/lib/basecamp/generated/metadata.json +1 -1
- data/lib/basecamp/generated/services/documents_service.rb +3 -2
- data/lib/basecamp/generated/services/messages_service.rb +3 -2
- data/lib/basecamp/generated/services/schedules_service.rb +3 -2
- data/lib/basecamp/generated/services/uploads_service.rb +3 -2
- data/lib/basecamp/generated/types.rb +1 -1
- data/lib/basecamp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ad400c464ec41bcb8b70b0428d71db268a884690740c5b9ae9791330a4244e1
|
|
4
|
+
data.tar.gz: 4937023d3d87ae38eee8eea728ed7b5007fa0413d64f0f0cfff977085eaae923
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffb28e6c920ea19b9cf419e240f107b478fb726bfb23f5437441b96aeeca7c9ec660cec8e3ef362bb3c5e6cc6606067e6de28c4f567d06ff2ef838f2aec45714
|
|
7
|
+
data.tar.gz: 625a648b06c1067281e0975b801e8b78f4156fb1091f3e9fa1e12de8ae6c0708f538fd6eda17410433a3779fe732fd1dfd1e87c34aed869b3d13b7381f2aa3dd
|
|
@@ -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
|
data/lib/basecamp/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|