@microsoft/mgt-element
Advanced tools
Comparing version 2.2.0-preview.58c29b0 to 2.2.0-preview.59932a5
@@ -70,2 +70,16 @@ /** | ||
response: CacheOptions; | ||
/** | ||
* Cache options for files store | ||
* | ||
* @type {CacheOptions} | ||
* @memberof CacheConfig | ||
*/ | ||
files: CacheOptions; | ||
/** | ||
* Cache options for fileLists store | ||
* | ||
* @type {CacheOptions} | ||
* @memberof CacheConfig | ||
*/ | ||
fileLists: CacheOptions; | ||
} | ||
@@ -72,0 +86,0 @@ /** |
@@ -114,2 +114,10 @@ /** | ||
isEnabled: true | ||
}, | ||
files: { | ||
invalidationPeriod: null, | ||
isEnabled: true | ||
}, | ||
fileLists: { | ||
invalidationPeriod: null, | ||
isEnabled: true | ||
} | ||
@@ -116,0 +124,0 @@ }; |
@@ -46,2 +46,15 @@ /** | ||
static create<T>(graph: IGraph, request: GraphRequest, version?: string): Promise<GraphPageIterator<T>>; | ||
/** | ||
* Creates a new GraphPageIterator from existing value | ||
* | ||
* @static | ||
* @template T - the type of entities expected from this request | ||
* @param {IGraph} graph - the graph instance to use for making requests | ||
* @param value - the existing value | ||
* @param nextLink - optional nextLink to use to get the next page | ||
* from the graph parameter | ||
* @returns a GraphPageIterator | ||
* @memberof GraphPageIterator | ||
*/ | ||
static createFromValue<T>(graph: IGraph, value: any, nextLink?: any): GraphPageIterator<T>; | ||
private _graph; | ||
@@ -48,0 +61,0 @@ private _nextLink; |
@@ -71,2 +71,23 @@ /** | ||
/** | ||
* Creates a new GraphPageIterator from existing value | ||
* | ||
* @static | ||
* @template T - the type of entities expected from this request | ||
* @param {IGraph} graph - the graph instance to use for making requests | ||
* @param value - the existing value | ||
* @param nextLink - optional nextLink to use to get the next page | ||
* from the graph parameter | ||
* @returns a GraphPageIterator | ||
* @memberof GraphPageIterator | ||
*/ | ||
static createFromValue(graph, value, nextLink) { | ||
let iterator = new GraphPageIterator(); | ||
// create iterator from values | ||
iterator._graph = graph; | ||
iterator._value = value; | ||
iterator._nextLink = nextLink ? nextLink : null; | ||
iterator._version = graph.version; | ||
return iterator || null; | ||
} | ||
/** | ||
* Gets the next page for this request | ||
@@ -73,0 +94,0 @@ * |
{ | ||
"name": "@microsoft/mgt-element", | ||
"version": "2.2.0-preview.58c29b0", | ||
"version": "2.2.0-preview.59932a5", | ||
"description": "Microsoft Graph Toolkit base classes", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoftgraph/microsoft-graph-toolkit", |
@@ -77,2 +77,17 @@ /** | ||
response: CacheOptions; | ||
/** | ||
* Cache options for files store | ||
* | ||
* @type {CacheOptions} | ||
* @memberof CacheConfig | ||
*/ | ||
files: CacheOptions; | ||
/** | ||
* Cache options for fileLists store | ||
* | ||
* @type {CacheOptions} | ||
* @memberof CacheConfig | ||
*/ | ||
fileLists: CacheOptions; | ||
} | ||
@@ -170,2 +185,10 @@ | ||
isEnabled: true | ||
}, | ||
files: { | ||
invalidationPeriod: null, | ||
isEnabled: true | ||
}, | ||
fileLists: { | ||
invalidationPeriod: null, | ||
isEnabled: true | ||
} | ||
@@ -172,0 +195,0 @@ }; |
@@ -67,2 +67,26 @@ /** | ||
/** | ||
* Creates a new GraphPageIterator from existing value | ||
* | ||
* @static | ||
* @template T - the type of entities expected from this request | ||
* @param {IGraph} graph - the graph instance to use for making requests | ||
* @param value - the existing value | ||
* @param nextLink - optional nextLink to use to get the next page | ||
* from the graph parameter | ||
* @returns a GraphPageIterator | ||
* @memberof GraphPageIterator | ||
*/ | ||
public static createFromValue<T>(graph: IGraph, value, nextLink?) { | ||
let iterator = new GraphPageIterator<T>(); | ||
// create iterator from values | ||
iterator._graph = graph; | ||
iterator._value = value; | ||
iterator._nextLink = nextLink ? nextLink : null; | ||
iterator._version = graph.version; | ||
return iterator || null; | ||
} | ||
private _graph: IGraph; | ||
@@ -69,0 +93,0 @@ private _nextLink: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1029158
7361