Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Types used by Organisation Assets Service
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
You can’t perform that action at this time.