@umbraco-cms/backoffice 1.0.0-next.596cc732 → 1.0.0-next.6c429eee

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/store.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
- import { UmbControllerHostInterface } from './controller';
3
+ import { UmbControllerHostElement } from './controller';
4
4
  import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from './backend-api';
5
5
  import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from './store';
6
6
 
@@ -18,7 +18,7 @@ interface UmbEntityDetailStore<T> extends UmbDataStore {
18
18
  * @return {*} {T}
19
19
  * @memberof UmbEntityDetailStore
20
20
  */
21
- getScaffold: (entityType: string, parentKey: string | null) => T;
21
+ getScaffold: (entityType: string, parentId: string | null) => T;
22
22
  /**
23
23
  * @description - Request data by key. The data is added to the store and is returned as an Observable.
24
24
  * @param {string} key
@@ -39,9 +39,9 @@ interface UmbContentStore<T> extends UmbEntityDetailStore<T> {
39
39
  }
40
40
 
41
41
  declare class UmbStoreBase {
42
- protected _host: UmbControllerHostInterface;
42
+ protected _host: UmbControllerHostElement;
43
43
  readonly storeAlias: string;
44
- constructor(_host: UmbControllerHostInterface, storeAlias: string);
44
+ constructor(_host: UmbControllerHostElement, storeAlias: string);
45
45
  }
46
46
 
47
47
  /**
@@ -60,17 +60,17 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$
60
60
  appendItems(items: Array<EntityTreeItemResponseModel>): void;
61
61
  /**
62
62
  * Updates an item in the store
63
- * @param {string} key
63
+ * @param {string} id
64
64
  * @param {Partial<EntityTreeItemResponseModel>} data
65
65
  * @memberof UmbEntityTreeStore
66
66
  */
67
- updateItem(key: string, data: Partial<EntityTreeItemResponseModel>): void;
67
+ updateItem(id: string, data: Partial<EntityTreeItemResponseModel>): void;
68
68
  /**
69
69
  * Removes an item from the store
70
- * @param {string} key
70
+ * @param {string} id
71
71
  * @memberof UmbEntityTreeStore
72
72
  */
73
- removeItem(key: string): void;
73
+ removeItem(id: string): void;
74
74
  /**
75
75
  * An observable to observe the root items
76
76
  * @memberof UmbEntityTreeStore
@@ -78,18 +78,18 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$
78
78
  rootItems: rxjs.Observable<EntityTreeItemResponseModel[]>;
79
79
  /**
80
80
  * Returns an observable to observe the children of a given parent
81
- * @param {(string | null)} parentKey
81
+ * @param {(string | null)} parentId
82
82
  * @return {*}
83
83
  * @memberof UmbEntityTreeStore
84
84
  */
85
- childrenOf(parentKey: string | null): rxjs.Observable<EntityTreeItemResponseModel[]>;
85
+ childrenOf(parentId: string | null): rxjs.Observable<EntityTreeItemResponseModel[]>;
86
86
  /**
87
- * Returns an observable to observe the items with the given keys
88
- * @param {Array<string>} keys
87
+ * Returns an observable to observe the items with the given ids
88
+ * @param {Array<string>} ids
89
89
  * @return {*}
90
90
  * @memberof UmbEntityTreeStore
91
91
  */
92
- items(keys: Array<string>): rxjs.Observable<EntityTreeItemResponseModel[]>;
92
+ items(ids: Array<string>): rxjs.Observable<EntityTreeItemResponseModel[]>;
93
93
  }
94
94
 
95
95
  /**
@@ -132,7 +132,7 @@ declare class UmbFileSystemTreeStore extends UmbStoreBase$1 implements UmbTreeSt
132
132
  */
133
133
  childrenOf(parentPath: string | null): rxjs.Observable<FileSystemTreeItemPresentationModel[]>;
134
134
  /**
135
- * Returns an observable to observe the items with the given keys
135
+ * Returns an observable to observe the items with the given ids
136
136
  * @param {Array<string>} paths
137
137
  * @return {*}
138
138
  * @memberof UmbFileSystemTreeStore
package/utils.d.ts CHANGED
@@ -11,4 +11,6 @@ declare function umbracoPath(path: string): string;
11
11
  declare function buildUdi(entityType: string, guid: string): string;
12
12
  declare function getKeyFromUdi(udi: string): string;
13
13
 
14
- export { buildUdi, getKeyFromUdi, getLookAndColorFromUserStatus, umbracoPath };
14
+ declare function generateGuid(): string;
15
+
16
+ export { buildUdi, generateGuid, getKeyFromUdi, getLookAndColorFromUserStatus, umbracoPath };