Skip to content

Commit 742abb3

Browse files
authored
Notifications (#208)
1 parent 7fe9d55 commit 742abb3

File tree

3 files changed

+88
-2
lines changed

3 files changed

+88
-2
lines changed

cs3/sharing/link/v1beta1/link_api.proto

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2019 CERN
1+
// Copyright 2018-2023 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -96,6 +96,13 @@ message CreatePublicShareRequest {
9696
// Indicates a share used for internal usage,
9797
// not exposed by a ListPublicShares.
9898
bool internal = 5;
99+
// OPTIONAL
100+
// Whether to notify the owner of a share when a file is uploaded to it.
101+
bool notify_uploads = 6;
102+
// OPTIONAL
103+
// Comma-separated list of extra email addresses to notify when a file is
104+
// uploaded to the share.
105+
string notify_uploads_extra_recipients = 7;
99106
}
100107

101108
message CreatePublicShareResponse {
@@ -131,6 +138,8 @@ message UpdatePublicShareRequest {
131138
TYPE_EXPIRATION = 3;
132139
TYPE_DISPLAYNAME = 4;
133140
TYPE_DESCRIPTION = 5;
141+
TYPE_NOTIFYUPLOADS = 6;
142+
TYPE_NOTIFYUPLOADSEXTRARECIPIENTS = 7;
134143
}
135144
// REQUIRED.
136145
// Defines the field to update.
@@ -144,6 +153,13 @@ message UpdatePublicShareRequest {
144153
// OPTIONAL
145154
// Defines the public link description.
146155
string description = 6;
156+
// OPTIONAL
157+
// Whether to notify the owner of a share when a file is uploaded to it.
158+
bool notify_uploads = 7;
159+
// OPTIONAL
160+
// Comma-separated list of extra email addresses to notify when a file is
161+
// uploaded to the share.
162+
string notify_uploads_extra_recipients = 8;
147163
}
148164
Update update = 3;
149165
}

cs3/sharing/link/v1beta1/resources.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2019 CERN
1+
// Copyright 2018-2023 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -110,6 +110,13 @@ message PublicShare {
110110
// OPTIONAL
111111
// Description of the share.
112112
string description = 14;
113+
// OPTIONAL
114+
// Whether to notify the owner of a share when a file is uploaded to it.
115+
bool notify_uploads = 15;
116+
// OPTIONAL
117+
// Comma-separated list of extra email addresses to notify when a file is
118+
// uploaded to the share.
119+
string notify_uploads_extra_recipients = 16;
113120
}
114121

115122
// The permissions for a share.

docs/index.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11442,6 +11442,23 @@ <h3 id="cs3.sharing.link.v1beta1.CreatePublicShareRequest">CreatePublicShareRequ
1144211442
not exposed by a ListPublicShares. </p></td>
1144311443
</tr>
1144411444

11445+
<tr>
11446+
<td>notify_uploads</td>
11447+
<td><a href="#bool">bool</a></td>
11448+
<td></td>
11449+
<td><p>OPTIONAL
11450+
Whether to notify the owner of a share when a file is uploaded to it. </p></td>
11451+
</tr>
11452+
11453+
<tr>
11454+
<td>notify_uploads_extra_recipients</td>
11455+
<td><a href="#string">string</a></td>
11456+
<td></td>
11457+
<td><p>OPTIONAL
11458+
Comma-separated list of extra email addresses to notify when a file is
11459+
uploaded to the share. </p></td>
11460+
</tr>
11461+
1144511462
</tbody>
1144611463
</table>
1144711464

@@ -11999,6 +12016,23 @@ <h3 id="cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update">UpdatePublicSh
1199912016
Defines the public link description. </p></td>
1200012017
</tr>
1200112018

12019+
<tr>
12020+
<td>notify_uploads</td>
12021+
<td><a href="#bool">bool</a></td>
12022+
<td></td>
12023+
<td><p>OPTIONAL
12024+
Whether to notify the owner of a share when a file is uploaded to it. </p></td>
12025+
</tr>
12026+
12027+
<tr>
12028+
<td>notify_uploads_extra_recipients</td>
12029+
<td><a href="#string">string</a></td>
12030+
<td></td>
12031+
<td><p>OPTIONAL
12032+
Comma-separated list of extra email addresses to notify when a file is
12033+
uploaded to the share. </p></td>
12034+
</tr>
12035+
1200212036
</tbody>
1200312037
</table>
1200412038

@@ -12128,6 +12162,18 @@ <h3 id="cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.Type">UpdatePub
1212812162
<td><p></p></td>
1212912163
</tr>
1213012164

12165+
<tr>
12166+
<td>TYPE_NOTIFYUPLOADS</td>
12167+
<td>6</td>
12168+
<td><p></p></td>
12169+
</tr>
12170+
12171+
<tr>
12172+
<td>TYPE_NOTIFYUPLOADSEXTRARECIPIENTS</td>
12173+
<td>7</td>
12174+
<td><p></p></td>
12175+
</tr>
12176+
1213112177
</tbody>
1213212178
</table>
1213312179

@@ -12385,6 +12431,23 @@ <h3 id="cs3.sharing.link.v1beta1.PublicShare">PublicShare</h3>
1238512431
Description of the share. </p></td>
1238612432
</tr>
1238712433

12434+
<tr>
12435+
<td>notify_uploads</td>
12436+
<td><a href="#bool">bool</a></td>
12437+
<td></td>
12438+
<td><p>OPTIONAL
12439+
Whether to notify the owner of a share when a file is uploaded to it. </p></td>
12440+
</tr>
12441+
12442+
<tr>
12443+
<td>notify_uploads_extra_recipients</td>
12444+
<td><a href="#string">string</a></td>
12445+
<td></td>
12446+
<td><p>OPTIONAL
12447+
Comma-separated list of extra email addresses to notify when a file is
12448+
uploaded to the share. </p></td>
12449+
</tr>
12450+
1238812451
</tbody>
1238912452
</table>
1239012453

0 commit comments

Comments
 (0)