@@ -171,6 +171,9 @@ CouchDB transforms $nor into $and with $ne operators</p>
171
171
<dt ><a href =" #getSharingRulesForFile " >getSharingRulesForFile(document)</a > ⇒ <code ><a href =" #Rule " >Array.< ; Rule> ; </a ></code ></dt >
172
172
<dd ><p >Compute the rules that define how to share a File. See <a href =" https://docs.cozy.io/en/cozy-stack/sharing-design/#description-of-a-sharing " >https://docs.cozy.io/en/cozy-stack/sharing-design/#description-of-a-sharing</a ></p >
173
173
</dd >
174
+ <dt ><a href =" #getSharingRulesForSharedDrive " >getSharingRulesForSharedDrive(document)</a > ⇒ <code ><a href =" #Rule " >Array.< ; Rule> ; </a ></code ></dt >
175
+ <dd ><p >Compute the rules that define a shared drive.</p >
176
+ </dd >
174
177
<dt ><a href =" #getSharingPolicyForFile " >getSharingPolicyForFile(document)</a > ⇒ <code ><a href =" #SharingPolicy " >SharingPolicy</a ></code ></dt >
175
178
<dd ><p >Compute the sharing policy for a File based on its sharing type</p >
176
179
</dd >
@@ -268,6 +271,8 @@ not.</p>
268
271
<dt ><a href =" #Rule " >Rule</a > : <code >object</code ></dt >
269
272
<dd ><p >A sharing rule</p >
270
273
</dd >
274
+ <dt ><a href =" #SharingRulesOptions " >SharingRulesOptions</a > : <code >object</code ></dt >
275
+ <dd ></dd >
271
276
<dt ><a href =" #Recipient " >Recipient</a > : <code >object</code ></dt >
272
277
<dd ><p >An io.cozy.contact</p >
273
278
</dd >
@@ -2345,6 +2350,7 @@ See https://docs.cozy.io/en/cozy-stack/sharing-design/#description-of-a-sharing
2345
2350
| Param | Type | Description |
2346
2351
| --- | --- | --- |
2347
2352
| document | [ <code >Sharing</code >] ( #Sharing ) | The document to share. Should have and _ id and a name |
2353
+ | [ sharingRulesOptions] | [ <code >SharingRulesOptions</code >] ( #SharingRulesOptions ) | The document to share. Should have and _ id and a name |
2348
2354
2349
2355
<a name =" forceDownload " ></a >
2350
2356
@@ -2482,6 +2488,18 @@ Compute the rules that define how to share a File. See https://docs.cozy.io/en/c
2482
2488
| --- | --- | --- |
2483
2489
| document | [ <code >Sharing</code >] ( #Sharing ) | The document to share. Should have and _ id and a name |
2484
2490
2491
+ <a name =" getSharingRulesForSharedDrive " ></a >
2492
+
2493
+ ## getSharingRulesForSharedDrive(document) ⇒ [ <code >Array.< ; Rule> ; </code >] ( #Rule )
2494
+ Compute the rules that define a shared drive.
2495
+
2496
+ ** Kind** : global function
2497
+ ** Returns** : [ <code >Array.< ; Rule> ; </code >] ( #Rule ) - The rules that define a shared drive
2498
+
2499
+ | Param | Type | Description |
2500
+ | --- | --- | --- |
2501
+ | document | [ <code >Sharing</code >] ( #Sharing ) | The document to share. Should have and _ id and a name |
2502
+
2485
2503
<a name =" getSharingPolicyForFile " ></a >
2486
2504
2487
2505
## getSharingPolicyForFile(document) ⇒ [ <code >SharingPolicy</code >] ( #SharingPolicy )
@@ -3100,6 +3118,16 @@ A sharing rule
3100
3118
| [ update] | <code >string</code > |
3101
3119
| [ remove] | <code >string</code > |
3102
3120
3121
+ <a name =" SharingRulesOptions " ></a >
3122
+
3123
+ ## SharingRulesOptions : <code >object</code >
3124
+ ** Kind** : global typedef
3125
+ ** Properties**
3126
+
3127
+ | Name | Type |
3128
+ | --- | --- |
3129
+ | [ sharedDrive] | <code >boolean</code > |
3130
+
3103
3131
<a name =" Recipient " ></a >
3104
3132
3105
3133
## Recipient : <code >object</code >
0 commit comments