SharesResource
Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:64
Share links on files and folders.
Methods
Section titled “Methods”create()
Section titled “create()”create(
item,input):Promise<CreatedShare>
Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:68
Creates a link (share on the item); the answer carries token and url this once. Carries an Idempotency-Key.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<CreatedShare>
list()
Section titled “list()”list(
item):Promise<{items:Share[]; }>
Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:80
The item’s links, without tokens (all of them with share, otherwise your own).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{ items: Share[]; }>
revoke()
Section titled “revoke()”revoke(
shareId):Promise<void>
Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:88
Revokes a link (its creator, share on the target, or files.manage).
Parameters
Section titled “Parameters”shareId
Section titled “shareId”string
Returns
Section titled “Returns”Promise<void>