files.com 1.1.707 → 1.1.708
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/_VERSION +1 -1
- data/docs/event_subscription.md +16 -0
- data/lib/files.com/models/event_subscription.rb +30 -0
- data/lib/files.com/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: 1f353ea4c0d81cb3a90669c7181e53fdf20aeb1a8652c58f930e578257fda154
|
|
4
|
+
data.tar.gz: 7794f3bb109aa207379b7c0f9460282e540ea5c967c52d30b9c8775dc8d6d54a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f33fb6c4a054980a0dd051ab5a92396d8f2271052e2a795ad22d8c9f9b2358116eb347b937a862a3fd210f4342f734d39f80fa06ac58a6a9bfefc6c22d425829
|
|
7
|
+
data.tar.gz: 0f3aeb8215dc0bb3981081ed8a042a5a2b2c2e192fbfc002b12c8d7c2f5cd2582134ada1ed0e92da4319dfea5c37430f6df18440ddd09d05348fdbcf7f066c19
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.708
|
data/docs/event_subscription.md
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"workspace_id": 1,
|
|
10
10
|
"apply_to_all_workspaces": true,
|
|
11
11
|
"name": "example",
|
|
12
|
+
"subject": "example",
|
|
13
|
+
"message": "example",
|
|
12
14
|
"enabled": true,
|
|
13
15
|
"event_types": [
|
|
14
16
|
"example"
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
* `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
|
|
29
31
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
|
|
30
32
|
* `name` (string): Event Subscription name.
|
|
33
|
+
* `subject` (string): Custom subject line to use for notification emails.
|
|
34
|
+
* `message` (string): Custom message to include in notification emails.
|
|
31
35
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
32
36
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
|
|
33
37
|
* `filter` (object): Structured event payload filter.
|
|
@@ -76,6 +80,8 @@ Files::EventSubscription.create(
|
|
|
76
80
|
workspace_id: 1,
|
|
77
81
|
apply_to_all_workspaces: true,
|
|
78
82
|
name: "example",
|
|
83
|
+
subject: "example",
|
|
84
|
+
message: "example",
|
|
79
85
|
enabled: true,
|
|
80
86
|
event_types: ["example"],
|
|
81
87
|
delivery_policy: "example",
|
|
@@ -89,6 +95,8 @@ Files::EventSubscription.create(
|
|
|
89
95
|
* `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
|
|
90
96
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
|
|
91
97
|
* `name` (string): Required - Event Subscription name.
|
|
98
|
+
* `subject` (string): Custom subject line to use for notification emails.
|
|
99
|
+
* `message` (string): Custom message to include in notification emails.
|
|
92
100
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
93
101
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
|
|
94
102
|
* `filter` (object): Structured event payload filter.
|
|
@@ -106,6 +114,8 @@ Files::EventSubscription.update(id,
|
|
|
106
114
|
workspace_id: 1,
|
|
107
115
|
apply_to_all_workspaces: true,
|
|
108
116
|
name: "example",
|
|
117
|
+
subject: "example",
|
|
118
|
+
message: "example",
|
|
109
119
|
enabled: true,
|
|
110
120
|
event_types: ["example"],
|
|
111
121
|
delivery_policy: "example",
|
|
@@ -120,6 +130,8 @@ Files::EventSubscription.update(id,
|
|
|
120
130
|
* `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
|
|
121
131
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
|
|
122
132
|
* `name` (string): Event Subscription name.
|
|
133
|
+
* `subject` (string): Custom subject line to use for notification emails.
|
|
134
|
+
* `message` (string): Custom message to include in notification emails.
|
|
123
135
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
124
136
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
|
|
125
137
|
* `filter` (object): Structured event payload filter.
|
|
@@ -152,6 +164,8 @@ event_subscription.update(
|
|
|
152
164
|
workspace_id: 1,
|
|
153
165
|
apply_to_all_workspaces: true,
|
|
154
166
|
name: "example",
|
|
167
|
+
subject: "example",
|
|
168
|
+
message: "example",
|
|
155
169
|
enabled: true,
|
|
156
170
|
event_types: ["example"],
|
|
157
171
|
delivery_policy: "example",
|
|
@@ -166,6 +180,8 @@ event_subscription.update(
|
|
|
166
180
|
* `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
|
|
167
181
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
|
|
168
182
|
* `name` (string): Event Subscription name.
|
|
183
|
+
* `subject` (string): Custom subject line to use for notification emails.
|
|
184
|
+
* `message` (string): Custom message to include in notification emails.
|
|
169
185
|
* `enabled` (boolean): Whether this Event Subscription can dispatch events.
|
|
170
186
|
* `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
|
|
171
187
|
* `filter` (object): Structured event payload filter.
|
|
@@ -54,6 +54,24 @@ module Files
|
|
|
54
54
|
@attributes[:name] = value
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
# string - Custom subject line to use for notification emails.
|
|
58
|
+
def subject
|
|
59
|
+
@attributes[:subject]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def subject=(value)
|
|
63
|
+
@attributes[:subject] = value
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# string - Custom message to include in notification emails.
|
|
67
|
+
def message
|
|
68
|
+
@attributes[:message]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def message=(value)
|
|
72
|
+
@attributes[:message] = value
|
|
73
|
+
end
|
|
74
|
+
|
|
57
75
|
# boolean - Whether this Event Subscription can dispatch events.
|
|
58
76
|
def enabled
|
|
59
77
|
@attributes[:enabled]
|
|
@@ -114,6 +132,8 @@ module Files
|
|
|
114
132
|
# workspace_id - int64 - Workspace ID. 0 means the default workspace or site-wide.
|
|
115
133
|
# apply_to_all_workspaces - boolean - If true, this default-workspace subscription applies to events from all workspaces.
|
|
116
134
|
# name - string - Event Subscription name.
|
|
135
|
+
# subject - string - Custom subject line to use for notification emails.
|
|
136
|
+
# message - string - Custom message to include in notification emails.
|
|
117
137
|
# enabled - boolean - Whether this Event Subscription can dispatch events.
|
|
118
138
|
# event_types - array(string) - Event type strings matched by this subscription. Blank means all event types.
|
|
119
139
|
# filter - object - Structured event payload filter.
|
|
@@ -127,6 +147,8 @@ module Files
|
|
|
127
147
|
raise InvalidParameterError.new("Bad parameter: event_channel_id must be an Integer") if params[:event_channel_id] and !params[:event_channel_id].is_a?(Integer)
|
|
128
148
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
129
149
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
150
|
+
raise InvalidParameterError.new("Bad parameter: subject must be an String") if params[:subject] and !params[:subject].is_a?(String)
|
|
151
|
+
raise InvalidParameterError.new("Bad parameter: message must be an String") if params[:message] and !params[:message].is_a?(String)
|
|
130
152
|
raise InvalidParameterError.new("Bad parameter: event_types must be an Array") if params[:event_types] and !params[:event_types].is_a?(Array)
|
|
131
153
|
raise InvalidParameterError.new("Bad parameter: event_target_ids must be an Array") if params[:event_target_ids] and !params[:event_target_ids].is_a?(Array)
|
|
132
154
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
@@ -201,6 +223,8 @@ module Files
|
|
|
201
223
|
# workspace_id - int64 - Workspace ID. 0 means the default workspace or site-wide.
|
|
202
224
|
# apply_to_all_workspaces - boolean - If true, this default-workspace subscription applies to events from all workspaces.
|
|
203
225
|
# name (required) - string - Event Subscription name.
|
|
226
|
+
# subject - string - Custom subject line to use for notification emails.
|
|
227
|
+
# message - string - Custom message to include in notification emails.
|
|
204
228
|
# enabled - boolean - Whether this Event Subscription can dispatch events.
|
|
205
229
|
# event_types - array(string) - Event type strings matched by this subscription. Blank means all event types.
|
|
206
230
|
# filter - object - Structured event payload filter.
|
|
@@ -210,6 +234,8 @@ module Files
|
|
|
210
234
|
raise InvalidParameterError.new("Bad parameter: event_channel_id must be an Integer") if params[:event_channel_id] and !params[:event_channel_id].is_a?(Integer)
|
|
211
235
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
212
236
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
237
|
+
raise InvalidParameterError.new("Bad parameter: subject must be an String") if params[:subject] and !params[:subject].is_a?(String)
|
|
238
|
+
raise InvalidParameterError.new("Bad parameter: message must be an String") if params[:message] and !params[:message].is_a?(String)
|
|
213
239
|
raise InvalidParameterError.new("Bad parameter: event_types must be an Array") if params[:event_types] and !params[:event_types].is_a?(Array)
|
|
214
240
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
215
241
|
raise InvalidParameterError.new("Bad parameter: delivery_policy must be an Hash") if params[:delivery_policy] and !params[:delivery_policy].is_a?(Hash)
|
|
@@ -225,6 +251,8 @@ module Files
|
|
|
225
251
|
# workspace_id - int64 - Workspace ID. 0 means the default workspace or site-wide.
|
|
226
252
|
# apply_to_all_workspaces - boolean - If true, this default-workspace subscription applies to events from all workspaces.
|
|
227
253
|
# name - string - Event Subscription name.
|
|
254
|
+
# subject - string - Custom subject line to use for notification emails.
|
|
255
|
+
# message - string - Custom message to include in notification emails.
|
|
228
256
|
# enabled - boolean - Whether this Event Subscription can dispatch events.
|
|
229
257
|
# event_types - array(string) - Event type strings matched by this subscription. Blank means all event types.
|
|
230
258
|
# filter - object - Structured event payload filter.
|
|
@@ -237,6 +265,8 @@ module Files
|
|
|
237
265
|
raise InvalidParameterError.new("Bad parameter: event_channel_id must be an Integer") if params[:event_channel_id] and !params[:event_channel_id].is_a?(Integer)
|
|
238
266
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
239
267
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
268
|
+
raise InvalidParameterError.new("Bad parameter: subject must be an String") if params[:subject] and !params[:subject].is_a?(String)
|
|
269
|
+
raise InvalidParameterError.new("Bad parameter: message must be an String") if params[:message] and !params[:message].is_a?(String)
|
|
240
270
|
raise InvalidParameterError.new("Bad parameter: event_types must be an Array") if params[:event_types] and !params[:event_types].is_a?(Array)
|
|
241
271
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
242
272
|
raise InvalidParameterError.new("Bad parameter: delivery_policy must be an Hash") if params[:delivery_policy] and !params[:delivery_policy].is_a?(Hash)
|
data/lib/files.com/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.708
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|