@@ -49,6 +49,8 @@ export interface Config {
4949 delivery_token : string ;
5050 environment : string ;
5151 region ?: Region ;
52+ branch ?: string ;
53+ live_preview ?: LivePreview ;
5254 fetchOptions ?: object ;
5355}
5456// Stack Config
@@ -67,18 +69,21 @@ export interface ContentTypeCollection{
6769
6870export interface LivePreview {
6971 host : string
70- authorization : string
72+ management_token : string
7173 enable : boolean
7274}
7375
7476export interface LivePreviewQuery {
75- hash : string
77+ live_preview : string
7678 content_type_uid : string
7779}
7880
7981// Stack
8082export class Stack {
8183 constructor ( config : Config ) ;
84+ /**
85+ * @deprecated since version 3.15.0
86+ */
8287 constructor ( api_key : string , delivery_token : string , environment_name : string , region ?: Region , fetchOptions ?: any , live_preview ?: LivePreview ) ;
8388
8489 environment : string ;
@@ -100,13 +105,16 @@ export class Stack {
100105 clearByContentType ( ) : Stack ;
101106 clearAll ( ) : Stack ;
102107 getCacheProvider ( ) : object ;
103- getLastActivites ( ) : Promise < any > ; ;
108+ getLastActivities ( ) : Promise < any > ; ;
104109 getContentTypes ( param ?: object ) : Promise < ContentTypeCollection > ;
105110 sync ( params : object ) : Promise < SyncResult > ;
106111 imageTransform ( url : string , params : any ) : string ;
107112}
108113
109114export function Stack ( config : Config ) : Stack ;
115+ /**
116+ * @deprecated since version 3.15.0
117+ */
110118export function Stack ( api_key : string , access_token : string , environment_name : string , region ?: string , fetchOptions ?: object ) : Stack ;
111119
112120export class ContentType {
@@ -168,7 +176,7 @@ export class Entry {
168176 includeEmbeddedItems ( ) : this;
169177 includeFallback ( ) : this;
170178 /**
171- * @deprecated since verion 3.3.0
179+ * @deprecated since version 3.3.0
172180 */
173181 includeSchema ( ) : this;
174182 includeReferenceContentTypeUID ( ) : this;
@@ -227,6 +235,9 @@ export class Query extends Entry {
227235
228236 regex ( key : string , value : string , options ?: string ) : Query ;
229237
238+ /**
239+ * @deprecated since version 3.15.0
240+ */
230241 search ( value : string ) : Query ;
231242
232243 find ( fetchOptions ?: object ) : Promise < any > ;
0 commit comments