Created
September 10, 2019 05:57
-
-
Save siata13/8d5b683a299f3421307746b72659129a to your computer and use it in GitHub Desktop.
Types used by Organisation Assets Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ResourcePath { | |
DecodedUrl: string; | |
} | |
export enum CdnType { | |
Public = 0, | |
Private = 1 | |
} | |
export enum OrgAssetType { | |
Undefined = 0, | |
ImageDocumentLibrary = 1, | |
OfficeTemplateLibrary = 2 | |
} | |
export interface AddOrgAssetCdnRequest { | |
/** | |
* Absolute Site URL | |
*/ | |
libUrl: ResourcePath; | |
cdnType: CdnType; | |
orgAssetType: OrgAssetType; | |
/** | |
* Absolute Thumbnail URL. It must exist in the same Document Library. | |
*/ | |
thumbnailUrl?: ResourcePath; | |
} | |
export interface OrgAssetsItem { | |
/** | |
* Display name of the document library | |
*/ | |
DisplayName: string; | |
/** | |
* Server relative library resource path | |
*/ | |
LibraryUrl: ResourcePath, | |
ListId: string; | |
/** | |
* Undefined = 0, | |
* ImageDocumentLibrary = 1, | |
* OfficeTemplateLibrary = 2 | |
*/ | |
OrgAssetType: OrgAssetType, | |
/** | |
* Site relative thumbnail resource path | |
*/ | |
ThumbnailUrl: ResourcePath, | |
/** | |
* Unique ID | |
*/ | |
UniqueId: string; | |
FileType: string; | |
} | |
export interface OrgAssetsData { | |
/** | |
* Organisation Assets Libraries information | |
*/ | |
Items: OrgAssetsItem[]; | |
/** | |
* Site ID. | |
*/ | |
SiteId: string; | |
/** | |
* Server relative site resource path | |
*/ | |
Url: ResourcePath; | |
/** | |
* WebID | |
*/ | |
WebId: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment