Skip to content

Instantly share code, notes, and snippets.

@siata13
Created September 10, 2019 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siata13/8d5b683a299f3421307746b72659129a to your computer and use it in GitHub Desktop.
Save siata13/8d5b683a299f3421307746b72659129a to your computer and use it in GitHub Desktop.
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