@rentman/rm-core 1.5.5 → 1.5.6
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/changelog.md +389 -386
- package/dist/rm-core.js +7284 -7243
- package/dist/rm-core.min.js +1 -1
- package/dist/src/classes/ApiFormatter.d.ts +39 -40
- package/dist/src/classes/ApiRequestService.d.ts +20 -20
- package/dist/src/classes/ApiResponseProcessor.d.ts +33 -33
- package/dist/src/classes/BatchStatus.d.ts +27 -27
- package/dist/src/classes/ChangesCompilation.d.ts +51 -51
- package/dist/src/classes/ChangesProcessor.d.ts +33 -33
- package/dist/src/classes/CollectionCache.d.ts +37 -37
- package/dist/src/classes/CollectionEntryService.d.ts +26 -26
- package/dist/src/classes/CollectionHandler.d.ts +57 -57
- package/dist/src/classes/CollectionMatcher.d.ts +30 -30
- package/dist/src/classes/CollectionResourceService.d.ts +5 -5
- package/dist/src/classes/ColumnCache.d.ts +21 -21
- package/dist/src/classes/ColumnExpansion.d.ts +18 -18
- package/dist/src/classes/ColumnHandler.d.ts +21 -21
- package/dist/src/classes/ColumnInfo.d.ts +14 -14
- package/dist/src/classes/ColumnSet.d.ts +46 -46
- package/dist/src/classes/ColumnSubsetCache.d.ts +8 -8
- package/dist/src/classes/ColumnUtil.d.ts +83 -83
- package/dist/src/classes/CreateRequest.d.ts +20 -20
- package/dist/src/classes/ItemAdministrator.d.ts +70 -83
- package/dist/src/classes/ItemCache.d.ts +23 -22
- package/dist/src/classes/ItemEntryService.d.ts +24 -24
- package/dist/src/classes/ItemHandler.d.ts +60 -60
- package/dist/src/classes/ItemRequestService.d.ts +23 -23
- package/dist/src/classes/KeyService.d.ts +16 -16
- package/dist/src/classes/LocalCache.d.ts +51 -51
- package/dist/src/classes/LockService.d.ts +23 -23
- package/dist/src/classes/ModuleChangesCompilation.d.ts +21 -21
- package/dist/src/classes/QueryMatcher.d.ts +14 -14
- package/dist/src/classes/QueryParser.d.ts +16 -16
- package/dist/src/classes/QueryService.d.ts +19 -19
- package/dist/src/classes/RequestColumnExpansion.d.ts +12 -12
- package/dist/src/classes/SocketMessageHandler.d.ts +41 -40
- package/dist/src/classes/Util.d.ts +27 -27
- package/dist/src/classes/index.d.ts +34 -34
- package/dist/src/constants.d.ts +18 -18
- package/dist/src/core.d.ts +48 -48
- package/dist/src/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/src/factories/BatchStatusFactory.d.ts +8 -8
- package/dist/src/factories/ChangesCompilationFactory.d.ts +9 -9
- package/dist/src/factories/ChangesProcessorFactory.d.ts +18 -18
- package/dist/src/factories/CollectionCacheFactory.d.ts +7 -7
- package/dist/src/factories/CollectionEntryFactory.d.ts +21 -21
- package/dist/src/factories/CollectionMatcherFactory.d.ts +7 -7
- package/dist/src/factories/CollectionResourceFactory.d.ts +13 -13
- package/dist/src/factories/ColumnExpansionFactory.d.ts +8 -8
- package/dist/src/factories/ColumnInfoFactory.d.ts +6 -6
- package/dist/src/factories/ColumnSetFactory.d.ts +11 -11
- package/dist/src/factories/ColumnSubsetCacheFactory.d.ts +6 -6
- package/dist/src/factories/CreateRequestFactory.d.ts +11 -11
- package/dist/src/factories/ItemCacheFactory.d.ts +7 -7
- package/dist/src/factories/ItemEntryFactory.d.ts +19 -19
- package/dist/src/factories/ItemResourceFactory.d.ts +14 -14
- package/dist/src/factories/LocalCacheFactory.d.ts +15 -15
- package/dist/src/factories/ModuleChangesCompilationFactory.d.ts +5 -5
- package/dist/src/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/src/factories/QueryParserFactory.d.ts +5 -5
- package/dist/src/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/src/factories/TemplateFactory.d.ts +10 -10
- package/dist/src/factories/index.d.ts +22 -22
- package/dist/src/index.d.ts +7 -7
- package/dist/src/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- package/dist/src/interfaces/AuthInterface.d.ts +9 -9
- package/dist/src/interfaces/ErrorHandlerInterface.d.ts +5 -5
- package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +6 -5
- package/dist/src/interfaces/PromiseLibraryInterface.d.ts +15 -15
- package/dist/src/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/src/interfaces/index.d.ts +6 -6
- package/dist/src/models/CollectionEditResource.d.ts +15 -15
- package/dist/src/models/CollectionEntry.d.ts +67 -67
- package/dist/src/models/CollectionEntryOptions.d.ts +20 -20
- package/dist/src/models/CollectionResource.d.ts +40 -40
- package/dist/src/models/CollectionResourceOptions.d.ts +38 -38
- package/dist/src/models/CollectionViewResource.d.ts +6 -6
- package/dist/src/models/EditResource.d.ts +18 -18
- package/dist/src/models/ItemEntry.d.ts +71 -71
- package/dist/src/models/ItemEntryOptions.d.ts +18 -18
- package/dist/src/models/ItemResource.d.ts +23 -23
- package/dist/src/models/ItemResourceOptions.d.ts +13 -13
- package/dist/src/models/Template.d.ts +11 -11
- package/dist/src/models/ViewResource.d.ts +4 -4
- package/dist/src/models/index.d.ts +13 -13
- package/dist/src/types/ItemTypesCollection.d.ts +234 -234
- package/dist/src/types/PromiseInterface.d.ts +2 -2
- package/dist/src/types/index.d.ts +2 -2
- package/package.json +35 -35
- package/readme.md +15 -15
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { CollectionResourceFactory } from '../factories';
|
|
3
|
-
import { CollectionEntry, CollectionResource, CollectionResourceOptions, ItemResource } from '../models';
|
|
4
|
-
import { FieldMap, ItemId, ItemIdConversionMap, PromiseInterface } from '../types';
|
|
5
|
-
export declare class CollectionEditResource extends CollectionResource {
|
|
6
|
-
private factory;
|
|
7
|
-
constructor(factory: CollectionResourceFactory, collectionEntry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
|
|
8
|
-
save(): PromiseInterface<ItemIdConversionMap>;
|
|
9
|
-
moveItems(idArray: ItemId[], destination: CollectionResource, enableCallbacks?: boolean): ItemResource[];
|
|
10
|
-
removeItems(idArray: ItemId[], callOnRemove?: boolean): PromiseInterface<ItemResource[]>;
|
|
11
|
-
removeItem(itemId: ItemId, callOnRemove?: boolean): PromiseInterface<ItemResource>;
|
|
12
|
-
addItems(valuesArray: FieldMap[], callOnAdd?: boolean, callOnActivate?: boolean): PromiseInterface<ItemResource[]>;
|
|
13
|
-
addItem(values: FieldMap, callOnAdd?: boolean, callOnActivate?: boolean): PromiseInterface<ItemResource>;
|
|
14
|
-
clear(enableCallbacks: any): ItemResource[] | null;
|
|
15
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { CollectionResourceFactory } from '../factories';
|
|
3
|
+
import { CollectionEntry, CollectionResource, CollectionResourceOptions, ItemResource } from '../models';
|
|
4
|
+
import { FieldMap, ItemId, ItemIdConversionMap, PromiseInterface } from '../types';
|
|
5
|
+
export declare class CollectionEditResource extends CollectionResource {
|
|
6
|
+
private factory;
|
|
7
|
+
constructor(factory: CollectionResourceFactory, collectionEntry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
|
|
8
|
+
save(): PromiseInterface<ItemIdConversionMap>;
|
|
9
|
+
moveItems(idArray: ItemId[], destination: CollectionResource, enableCallbacks?: boolean): ItemResource[];
|
|
10
|
+
removeItems(idArray: ItemId[], callOnRemove?: boolean): PromiseInterface<ItemResource[]>;
|
|
11
|
+
removeItem(itemId: ItemId, callOnRemove?: boolean): PromiseInterface<ItemResource>;
|
|
12
|
+
addItems(valuesArray: FieldMap[], callOnAdd?: boolean, callOnActivate?: boolean): PromiseInterface<ItemResource[]>;
|
|
13
|
+
addItem(values: FieldMap, callOnAdd?: boolean, callOnActivate?: boolean): PromiseInterface<ItemResource>;
|
|
14
|
+
clear(enableCallbacks: any): ItemResource[] | null;
|
|
15
|
+
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { ColumnExpansion, ColumnInfo, ColumnSet, ItemCache } from '../classes';
|
|
2
|
-
import { CollectionEntryFactory } from '../factories';
|
|
3
|
-
import { CollectionEntryOptions, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
4
|
-
import { ApiQuery, ApiRequestColumns, EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType, PromiseInterface, QueryCallback } from '../types';
|
|
5
|
-
export declare class CollectionEntry {
|
|
6
|
-
private factory;
|
|
7
|
-
itemType: ItemType;
|
|
8
|
-
options: CollectionEntryOptions;
|
|
9
|
-
id: number;
|
|
10
|
-
query: ApiQuery;
|
|
11
|
-
columns: ColumnSet;
|
|
12
|
-
templateColumns: ColumnSet | null;
|
|
13
|
-
parent: EntryParentNull;
|
|
14
|
-
initial: ItemEntry[];
|
|
15
|
-
items: ItemEntry[];
|
|
16
|
-
resources: CollectionResource[];
|
|
17
|
-
deferred: any;
|
|
18
|
-
promise: PromiseInterface<CollectionEntry>;
|
|
19
|
-
reloadQueued: boolean;
|
|
20
|
-
hasEditResources: boolean;
|
|
21
|
-
hasItemEditResources: boolean;
|
|
22
|
-
constructor(factory: CollectionEntryFactory, itemType: ItemType, options: CollectionEntryOptions);
|
|
23
|
-
defer(): this;
|
|
24
|
-
isDeferred(): boolean;
|
|
25
|
-
_resolve(): this;
|
|
26
|
-
resolve(itemEntryCompound: {
|
|
27
|
-
columns: ColumnSet;
|
|
28
|
-
initial: ItemEntry[];
|
|
29
|
-
modified?: ItemEntry[];
|
|
30
|
-
}): this;
|
|
31
|
-
isLocal(): boolean;
|
|
32
|
-
matchParent(itemType: ItemType, itemId: ItemId): boolean;
|
|
33
|
-
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
34
|
-
getItemById(itemId: any): ItemEntry | undefined;
|
|
35
|
-
getIdArray(accumulator?: ItemId[]): ItemId[];
|
|
36
|
-
createItems(valuesArray: FieldMap[]): PromiseInterface<ItemEntry[]>;
|
|
37
|
-
resolveDerivedValues(itemEntries: ItemEntry[], localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
38
|
-
addItems(itemEntries: ItemEntry[], resultResource?: CollectionResource | null, updateInitial?: boolean, callOnAdd?: boolean, callOnActivate?: boolean): ItemResource[] | null;
|
|
39
|
-
private handleAddedItemCallbacks
|
|
40
|
-
removeItems(idArray: ItemId[], resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
41
|
-
clear(resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
42
|
-
handleRemovedItems(filterFunction: (itemEntry: ItemEntry) => boolean, resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
43
|
-
private handleRemovedItemCallbacks
|
|
44
|
-
private createBatchStatus
|
|
45
|
-
private expandLocal
|
|
46
|
-
private expandRemote
|
|
47
|
-
expand(newColumns: ApiRequestColumns, localItemCache: ItemCache): PromiseInterface<this>;
|
|
48
|
-
extendQuery(callback?: QueryCallback): any;
|
|
49
|
-
extend(queryCallback: QueryCallback, collectionResource?: CollectionResource | null, callOnAdd?: boolean, updateInitial?: boolean): PromiseInterface<ItemResource[] | null>;
|
|
50
|
-
queueReload(): void;
|
|
51
|
-
expandColumns(columnExpansion: ColumnExpansion): void;
|
|
52
|
-
expandRequestColumns(requestColumns: ApiRequestColumns): void;
|
|
53
|
-
getAddedItems(returnItemIds?: boolean): (number | ItemEntry)[];
|
|
54
|
-
getRemovedItems(returnItemIds?: boolean): (number | ItemEntry)[];
|
|
55
|
-
getUpdatedItems(): ItemEntry[];
|
|
56
|
-
hasAddedItems(): boolean;
|
|
57
|
-
hasRemovedItems(): boolean;
|
|
58
|
-
hasUpdatedItems(): boolean;
|
|
59
|
-
getCurrentResource(): CollectionResource;
|
|
60
|
-
clearResources(isSubtabChange?: boolean): void;
|
|
61
|
-
revertChanges(): void;
|
|
62
|
-
onItemsCreated(conversionMap: any): void;
|
|
63
|
-
getUpdatedItemColumns(conversionMap: any): {
|
|
64
|
-
[columnId: string]: ColumnInfo;
|
|
65
|
-
};
|
|
66
|
-
clone(parent: any, conversionMap?: ItemIdConversionMap): CollectionEntry;
|
|
67
|
-
}
|
|
1
|
+
import { ColumnExpansion, ColumnInfo, ColumnSet, ItemCache } from '../classes';
|
|
2
|
+
import { CollectionEntryFactory } from '../factories';
|
|
3
|
+
import { CollectionEntryOptions, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
4
|
+
import { ApiQuery, ApiRequestColumns, EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType, PromiseInterface, QueryCallback } from '../types';
|
|
5
|
+
export declare class CollectionEntry {
|
|
6
|
+
private factory;
|
|
7
|
+
itemType: ItemType;
|
|
8
|
+
options: CollectionEntryOptions;
|
|
9
|
+
id: number;
|
|
10
|
+
query: ApiQuery;
|
|
11
|
+
columns: ColumnSet;
|
|
12
|
+
templateColumns: ColumnSet | null;
|
|
13
|
+
parent: EntryParentNull;
|
|
14
|
+
initial: ItemEntry[];
|
|
15
|
+
items: ItemEntry[];
|
|
16
|
+
resources: CollectionResource[];
|
|
17
|
+
deferred: any;
|
|
18
|
+
promise: PromiseInterface<CollectionEntry>;
|
|
19
|
+
reloadQueued: boolean;
|
|
20
|
+
hasEditResources: boolean;
|
|
21
|
+
hasItemEditResources: boolean;
|
|
22
|
+
constructor(factory: CollectionEntryFactory, itemType: ItemType, options: CollectionEntryOptions);
|
|
23
|
+
defer(): this;
|
|
24
|
+
isDeferred(): boolean;
|
|
25
|
+
_resolve(): this;
|
|
26
|
+
resolve(itemEntryCompound: {
|
|
27
|
+
columns: ColumnSet;
|
|
28
|
+
initial: ItemEntry[];
|
|
29
|
+
modified?: ItemEntry[];
|
|
30
|
+
}): this;
|
|
31
|
+
isLocal(): boolean;
|
|
32
|
+
matchParent(itemType: ItemType, itemId: ItemId): boolean;
|
|
33
|
+
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
34
|
+
getItemById(itemId: any): ItemEntry | undefined;
|
|
35
|
+
getIdArray(accumulator?: ItemId[]): ItemId[];
|
|
36
|
+
createItems(valuesArray: FieldMap[]): PromiseInterface<ItemEntry[]>;
|
|
37
|
+
resolveDerivedValues(itemEntries: ItemEntry[], localItemCache: ItemCache): PromiseInterface<ItemEntry[]>;
|
|
38
|
+
addItems(itemEntries: ItemEntry[], resultResource?: CollectionResource | null, updateInitial?: boolean, callOnAdd?: boolean, callOnActivate?: boolean): ItemResource[] | null;
|
|
39
|
+
private handleAddedItemCallbacks;
|
|
40
|
+
removeItems(idArray: ItemId[], resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
41
|
+
clear(resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
42
|
+
handleRemovedItems(filterFunction: (itemEntry: ItemEntry) => boolean, resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
43
|
+
private handleRemovedItemCallbacks;
|
|
44
|
+
private createBatchStatus;
|
|
45
|
+
private expandLocal;
|
|
46
|
+
private expandRemote;
|
|
47
|
+
expand(newColumns: ApiRequestColumns, localItemCache: ItemCache): PromiseInterface<this>;
|
|
48
|
+
extendQuery(callback?: QueryCallback): any;
|
|
49
|
+
extend(queryCallback: QueryCallback, collectionResource?: CollectionResource | null, callOnAdd?: boolean, updateInitial?: boolean): PromiseInterface<ItemResource[] | null>;
|
|
50
|
+
queueReload(): void;
|
|
51
|
+
expandColumns(columnExpansion: ColumnExpansion): void;
|
|
52
|
+
expandRequestColumns(requestColumns: ApiRequestColumns): void;
|
|
53
|
+
getAddedItems(returnItemIds?: boolean): (number | ItemEntry)[];
|
|
54
|
+
getRemovedItems(returnItemIds?: boolean): (number | ItemEntry)[];
|
|
55
|
+
getUpdatedItems(): ItemEntry[];
|
|
56
|
+
hasAddedItems(): boolean;
|
|
57
|
+
hasRemovedItems(): boolean;
|
|
58
|
+
hasUpdatedItems(): boolean;
|
|
59
|
+
getCurrentResource(): CollectionResource;
|
|
60
|
+
clearResources(isSubtabChange?: boolean): void;
|
|
61
|
+
revertChanges(): void;
|
|
62
|
+
onItemsCreated(conversionMap: any): void;
|
|
63
|
+
getUpdatedItemColumns(conversionMap: any): {
|
|
64
|
+
[columnId: string]: ColumnInfo;
|
|
65
|
+
};
|
|
66
|
+
clone(parent: any, conversionMap?: ItemIdConversionMap): CollectionEntry;
|
|
67
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ApiQuery, ApiRequestColumns, ApiRequestLimit, EntryParentNull, OptionsInterface } from '../types';
|
|
2
|
-
export declare abstract class CollectionEntryOptionsInterface implements OptionsInterface {
|
|
3
|
-
columns?: ApiRequestColumns;
|
|
4
|
-
query?: ApiQuery | null;
|
|
5
|
-
queryParams?: object;
|
|
6
|
-
parent?: EntryParentNull;
|
|
7
|
-
deferRequest?: boolean;
|
|
8
|
-
limit?: ApiRequestLimit | null;
|
|
9
|
-
entryKey?: string | null;
|
|
10
|
-
}
|
|
11
|
-
export declare class CollectionEntryOptions extends CollectionEntryOptionsInterface {
|
|
12
|
-
columns: any;
|
|
13
|
-
query: any;
|
|
14
|
-
queryParams: any;
|
|
15
|
-
parent: any;
|
|
16
|
-
deferRequest: any;
|
|
17
|
-
limit: any;
|
|
18
|
-
entryKey: any;
|
|
19
|
-
constructor(values: CollectionEntryOptionsInterface);
|
|
20
|
-
}
|
|
1
|
+
import { ApiQuery, ApiRequestColumns, ApiRequestLimit, EntryParentNull, OptionsInterface } from '../types';
|
|
2
|
+
export declare abstract class CollectionEntryOptionsInterface implements OptionsInterface {
|
|
3
|
+
columns?: ApiRequestColumns;
|
|
4
|
+
query?: ApiQuery | null;
|
|
5
|
+
queryParams?: object;
|
|
6
|
+
parent?: EntryParentNull;
|
|
7
|
+
deferRequest?: boolean;
|
|
8
|
+
limit?: ApiRequestLimit | null;
|
|
9
|
+
entryKey?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare class CollectionEntryOptions extends CollectionEntryOptionsInterface {
|
|
12
|
+
columns: any;
|
|
13
|
+
query: any;
|
|
14
|
+
queryParams: any;
|
|
15
|
+
parent: any;
|
|
16
|
+
deferRequest: any;
|
|
17
|
+
limit: any;
|
|
18
|
+
entryKey: any;
|
|
19
|
+
constructor(values: CollectionEntryOptionsInterface);
|
|
20
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { CollectionResourceOptions, ItemEntry, ItemResource } from '../models';
|
|
4
|
-
import { ItemResourceItemIdMap, PromiseInterface } from '../types';
|
|
5
|
-
import { CollectionEntry } from './CollectionEntry';
|
|
6
|
-
export declare class CollectionResource {
|
|
7
|
-
private itemResourceFactory;
|
|
8
|
-
entry: CollectionEntry;
|
|
9
|
-
options: CollectionResourceOptions;
|
|
10
|
-
localCache: LocalCache;
|
|
11
|
-
items: ItemResource[];
|
|
12
|
-
itemIdMap: ItemResourceItemIdMap;
|
|
13
|
-
columns: any;
|
|
14
|
-
constructor(itemResourceFactory: ItemResourceFactory, entry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
|
|
15
|
-
getItemById(itemId: number): ItemResource;
|
|
16
|
-
rebuildMap(): void;
|
|
17
|
-
addItemResources(itemEntries: ItemEntry[]): ItemResource[];
|
|
18
|
-
/**
|
|
19
|
-
* @param itemEntries
|
|
20
|
-
* @returns {ItemResource[]}
|
|
21
|
-
*
|
|
22
|
-
* Returns the Itemresources that where removed Collection.
|
|
23
|
-
* Filters on ItemResource.entry === ItemEntry
|
|
24
|
-
*/
|
|
25
|
-
removeItemResources(itemEntries: ItemEntry[]): ItemResource[];
|
|
26
|
-
callOnAdd(itemResources: ItemResource[]): void;
|
|
27
|
-
callOnRemove(itemResources: ItemResource[]): void;
|
|
28
|
-
forEach(callback: (itemResource: ItemResource) => void): void;
|
|
29
|
-
filter(callback: (itemResource: ItemResource) => boolean): ItemResource[];
|
|
30
|
-
first(callback: (itemResource: ItemResource) => boolean): ItemResource | null;
|
|
31
|
-
some(callback: (itemResource: ItemResource) => boolean): boolean;
|
|
32
|
-
groupBy(argument: string | ((itemResource: ItemResource) => string | null)): {
|
|
33
|
-
[key: string]: ItemResource[];
|
|
34
|
-
};
|
|
35
|
-
map<T>(argument: string | ((itemResource: ItemResource) => T)): T[];
|
|
36
|
-
reduce<T>(callback: (itemResource: ItemResource, value: T) => T, value: T): T;
|
|
37
|
-
extend(queryCallback: any, returnAllItems?: boolean, callOnAdd?: boolean): PromiseInterface<ItemResource[] | null>;
|
|
38
|
-
deactivate(): void;
|
|
39
|
-
clearResource(): void;
|
|
40
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { CollectionResourceOptions, ItemEntry, ItemResource } from '../models';
|
|
4
|
+
import { ItemResourceItemIdMap, PromiseInterface } from '../types';
|
|
5
|
+
import { CollectionEntry } from './CollectionEntry';
|
|
6
|
+
export declare class CollectionResource {
|
|
7
|
+
private itemResourceFactory;
|
|
8
|
+
entry: CollectionEntry;
|
|
9
|
+
options: CollectionResourceOptions;
|
|
10
|
+
localCache: LocalCache;
|
|
11
|
+
items: ItemResource[];
|
|
12
|
+
itemIdMap: ItemResourceItemIdMap;
|
|
13
|
+
columns: any;
|
|
14
|
+
constructor(itemResourceFactory: ItemResourceFactory, entry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
|
|
15
|
+
getItemById(itemId: number): ItemResource;
|
|
16
|
+
rebuildMap(): void;
|
|
17
|
+
addItemResources(itemEntries: ItemEntry[]): ItemResource[];
|
|
18
|
+
/**
|
|
19
|
+
* @param itemEntries
|
|
20
|
+
* @returns {ItemResource[]}
|
|
21
|
+
*
|
|
22
|
+
* Returns the Itemresources that where removed Collection.
|
|
23
|
+
* Filters on ItemResource.entry === ItemEntry
|
|
24
|
+
*/
|
|
25
|
+
removeItemResources(itemEntries: ItemEntry[]): ItemResource[];
|
|
26
|
+
callOnAdd(itemResources: ItemResource[]): void;
|
|
27
|
+
callOnRemove(itemResources: ItemResource[]): void;
|
|
28
|
+
forEach(callback: (itemResource: ItemResource) => void): void;
|
|
29
|
+
filter(callback: (itemResource: ItemResource) => boolean): ItemResource[];
|
|
30
|
+
first(callback: (itemResource: ItemResource) => boolean): ItemResource | null;
|
|
31
|
+
some(callback: (itemResource: ItemResource) => boolean): boolean;
|
|
32
|
+
groupBy(argument: string | ((itemResource: ItemResource) => string | null)): {
|
|
33
|
+
[key: string]: ItemResource[];
|
|
34
|
+
};
|
|
35
|
+
map<T>(argument: string | ((itemResource: ItemResource) => T)): T[];
|
|
36
|
+
reduce<T>(callback: (itemResource: ItemResource, value: T) => T, value: T): T;
|
|
37
|
+
extend(queryCallback: any, returnAllItems?: boolean, callOnAdd?: boolean): PromiseInterface<ItemResource[] | null>;
|
|
38
|
+
deactivate(): void;
|
|
39
|
+
clearResource(): void;
|
|
40
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
2
|
-
import { ItemIdConversionMap, OnChangeFunction, OptionsInterface } from '../types';
|
|
3
|
-
export declare type CollectionResourceCallback = (itemResources: ItemResource[], collectionResource: CollectionResource) => void;
|
|
4
|
-
export declare type CollectionResourceInitialCallback = (itemEntries: ItemEntry[], collectionEntry: CollectionEntry) => void;
|
|
5
|
-
export declare type OnItemsCreatedCallback = (conversionMap: ItemIdConversionMap) => void;
|
|
6
|
-
export declare abstract class CollectionResourceOptionsInterface implements OptionsInterface {
|
|
7
|
-
editItems?: boolean;
|
|
8
|
-
editCollection?: boolean;
|
|
9
|
-
modInstant?: boolean;
|
|
10
|
-
enableSave?: boolean;
|
|
11
|
-
onItemsCreated?: OnItemsCreatedCallback;
|
|
12
|
-
onChange?: OnChangeFunction;
|
|
13
|
-
onAdd?: CollectionResourceCallback;
|
|
14
|
-
onRemove?: CollectionResourceCallback;
|
|
15
|
-
onAddInitial?: CollectionResourceInitialCallback;
|
|
16
|
-
onRemoveInitial?: CollectionResourceInitialCallback;
|
|
17
|
-
resourceKey?: string | null;
|
|
18
|
-
clearOnTabChange?: boolean;
|
|
19
|
-
clearOnSubTabChange?: boolean;
|
|
20
|
-
custom?: any;
|
|
21
|
-
}
|
|
22
|
-
export declare class CollectionResourceOptions extends CollectionResourceOptionsInterface {
|
|
23
|
-
editItems: any;
|
|
24
|
-
editCollection: any;
|
|
25
|
-
modInstant: any;
|
|
26
|
-
enableSave: any;
|
|
27
|
-
onItemsCreated: any;
|
|
28
|
-
onChange: any;
|
|
29
|
-
onAdd: any;
|
|
30
|
-
onRemove: any;
|
|
31
|
-
onAddInitial: any;
|
|
32
|
-
onRemoveInitial: any;
|
|
33
|
-
resourceKey: any;
|
|
34
|
-
clearOnTabChange: any;
|
|
35
|
-
clearOnSubTabChange: any;
|
|
36
|
-
custom: any;
|
|
37
|
-
constructor(values: CollectionResourceOptionsInterface);
|
|
38
|
-
}
|
|
1
|
+
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
2
|
+
import { ItemIdConversionMap, OnChangeFunction, OptionsInterface } from '../types';
|
|
3
|
+
export declare type CollectionResourceCallback = (itemResources: ItemResource[], collectionResource: CollectionResource) => void;
|
|
4
|
+
export declare type CollectionResourceInitialCallback = (itemEntries: ItemEntry[], collectionEntry: CollectionEntry) => void;
|
|
5
|
+
export declare type OnItemsCreatedCallback = (conversionMap: ItemIdConversionMap) => void;
|
|
6
|
+
export declare abstract class CollectionResourceOptionsInterface implements OptionsInterface {
|
|
7
|
+
editItems?: boolean;
|
|
8
|
+
editCollection?: boolean;
|
|
9
|
+
modInstant?: boolean;
|
|
10
|
+
enableSave?: boolean;
|
|
11
|
+
onItemsCreated?: OnItemsCreatedCallback;
|
|
12
|
+
onChange?: OnChangeFunction;
|
|
13
|
+
onAdd?: CollectionResourceCallback;
|
|
14
|
+
onRemove?: CollectionResourceCallback;
|
|
15
|
+
onAddInitial?: CollectionResourceInitialCallback;
|
|
16
|
+
onRemoveInitial?: CollectionResourceInitialCallback;
|
|
17
|
+
resourceKey?: string | null;
|
|
18
|
+
clearOnTabChange?: boolean;
|
|
19
|
+
clearOnSubTabChange?: boolean;
|
|
20
|
+
custom?: any;
|
|
21
|
+
}
|
|
22
|
+
export declare class CollectionResourceOptions extends CollectionResourceOptionsInterface {
|
|
23
|
+
editItems: any;
|
|
24
|
+
editCollection: any;
|
|
25
|
+
modInstant: any;
|
|
26
|
+
enableSave: any;
|
|
27
|
+
onItemsCreated: any;
|
|
28
|
+
onChange: any;
|
|
29
|
+
onAdd: any;
|
|
30
|
+
onRemove: any;
|
|
31
|
+
onAddInitial: any;
|
|
32
|
+
onRemoveInitial: any;
|
|
33
|
+
resourceKey: any;
|
|
34
|
+
clearOnTabChange: any;
|
|
35
|
+
clearOnSubTabChange: any;
|
|
36
|
+
custom: any;
|
|
37
|
+
constructor(values: CollectionResourceOptionsInterface);
|
|
38
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { CollectionEntry, CollectionResource, CollectionResourceOptions } from '../models';
|
|
4
|
-
export declare class CollectionViewResource extends CollectionResource {
|
|
5
|
-
constructor(itemResourceFactory: ItemResourceFactory, collectionEntry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
|
|
6
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { CollectionEntry, CollectionResource, CollectionResourceOptions } from '../models';
|
|
4
|
+
export declare class CollectionViewResource extends CollectionResource {
|
|
5
|
+
constructor(itemResourceFactory: ItemResourceFactory, collectionEntry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
|
|
6
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ItemResourceFactory } from '../factories';
|
|
2
|
-
import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
|
|
3
|
-
import { FieldMap, PromiseInterface } from '../types';
|
|
4
|
-
export declare class EditResource extends ItemResource {
|
|
5
|
-
private factory;
|
|
6
|
-
localCopies: FieldMap[];
|
|
7
|
-
transactions: number;
|
|
8
|
-
constructor(factory: ItemResourceFactory, entry: ItemEntry, options: ItemResourceOptions, isNew?: boolean);
|
|
9
|
-
isNew(): boolean;
|
|
10
|
-
start(): this;
|
|
11
|
-
rollback(): this;
|
|
12
|
-
commit(callOnChange?: boolean): this;
|
|
13
|
-
getLocalCopy(): FieldMap | null;
|
|
14
|
-
copyFields(destination?: FieldMap): FieldMap;
|
|
15
|
-
setFields(values: FieldMap, callOnChange?: boolean): this;
|
|
16
|
-
callOnChange(previous: FieldMap): this;
|
|
17
|
-
save(parameters?: any): PromiseInterface<this>;
|
|
18
|
-
}
|
|
1
|
+
import { ItemResourceFactory } from '../factories';
|
|
2
|
+
import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
|
|
3
|
+
import { FieldMap, PromiseInterface } from '../types';
|
|
4
|
+
export declare class EditResource extends ItemResource {
|
|
5
|
+
private factory;
|
|
6
|
+
localCopies: FieldMap[];
|
|
7
|
+
transactions: number;
|
|
8
|
+
constructor(factory: ItemResourceFactory, entry: ItemEntry, options: ItemResourceOptions, isNew?: boolean);
|
|
9
|
+
isNew(): boolean;
|
|
10
|
+
start(): this;
|
|
11
|
+
rollback(): this;
|
|
12
|
+
commit(callOnChange?: boolean): this;
|
|
13
|
+
getLocalCopy(): FieldMap | null;
|
|
14
|
+
copyFields(destination?: FieldMap): FieldMap;
|
|
15
|
+
setFields(values: FieldMap, callOnChange?: boolean): this;
|
|
16
|
+
callOnChange(previous: FieldMap): this;
|
|
17
|
+
save(parameters?: any): PromiseInterface<this>;
|
|
18
|
+
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { ColumnSet } from '../classes';
|
|
2
|
-
import { ItemEntryFactory } from '../factories';
|
|
3
|
-
import { ItemResource } from '../models';
|
|
4
|
-
import { ColumnExpansionResult, EntryParentNull, FieldMap, ItemError, ItemId, ItemIdConversionMap, ItemType } from '../types';
|
|
5
|
-
export declare class ItemEntry {
|
|
6
|
-
private factory;
|
|
7
|
-
itemType: string;
|
|
8
|
-
itemId: ItemId;
|
|
9
|
-
columns: ColumnSet;
|
|
10
|
-
id: number;
|
|
11
|
-
reloadQueued: boolean;
|
|
12
|
-
deferRequest: boolean;
|
|
13
|
-
deferred: any;
|
|
14
|
-
parent: EntryParentNull;
|
|
15
|
-
initial: FieldMap;
|
|
16
|
-
modified: FieldMap;
|
|
17
|
-
derived: FieldMap;
|
|
18
|
-
resources: ItemResource[];
|
|
19
|
-
constructor(factory: ItemEntryFactory, itemType: string, itemId: ItemId, columns: ColumnSet);
|
|
20
|
-
queueReload(): this;
|
|
21
|
-
defer(deferRequest?: boolean): this;
|
|
22
|
-
resolve(): this;
|
|
23
|
-
resolveDeferred(initial: any, derived: any, columns: any): this;
|
|
24
|
-
isDeferred(): boolean;
|
|
25
|
-
reject(error?: ItemError): this;
|
|
26
|
-
setFields(initial: FieldMap, derived: FieldMap): this;
|
|
27
|
-
setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap, columns?: ColumnSet): this;
|
|
28
|
-
clone(conversionMap?: ItemIdConversionMap): ItemEntry;
|
|
29
|
-
resetDerived(columnIds: any): this;
|
|
30
|
-
clearResources(): this;
|
|
31
|
-
deactivateResources(): this;
|
|
32
|
-
getFields(): FieldMap;
|
|
33
|
-
expand(main: FieldMap, derived: FieldMap, columnExpansionResult: ColumnExpansionResult): this;
|
|
34
|
-
expandLocal(columnExpansionResult: ColumnExpansionResult): this;
|
|
35
|
-
private setLocalValues
|
|
36
|
-
/**
|
|
37
|
-
* This function assumes the initial, modified, derived properties are already set. It will update the values
|
|
38
|
-
* themselves to preserve references in existing item resources.
|
|
39
|
-
*/
|
|
40
|
-
updateFields(fields: FieldMap, derived?: FieldMap | null, overwrite?: boolean): this;
|
|
41
|
-
private updateItemValues
|
|
42
|
-
updateItemFields(conversionMap: ItemIdConversionMap, columns?: ColumnSet): this;
|
|
43
|
-
formatRequest(): FieldMap;
|
|
44
|
-
setDisplayName(): this;
|
|
45
|
-
getDisplayName(): string;
|
|
46
|
-
/**
|
|
47
|
-
* @param {Boolean} returnAll Returns all initial values if true
|
|
48
|
-
* @returns {Object}
|
|
49
|
-
*/
|
|
50
|
-
getChanges(returnAll?: boolean): FieldMap;
|
|
51
|
-
isLocal(): boolean;
|
|
52
|
-
isLockable(): boolean;
|
|
53
|
-
hasChanges(): boolean;
|
|
54
|
-
resetModified(): this;
|
|
55
|
-
setInitial(values: FieldMap, enableCallbacks?: boolean): this;
|
|
56
|
-
/**
|
|
57
|
-
* Does a shallow copy of values!
|
|
58
|
-
*/
|
|
59
|
-
setModified(values?: FieldMap): this;
|
|
60
|
-
setDerived(values: FieldMap): this;
|
|
61
|
-
setParent(parentType: ItemType, parentId: ItemId): this;
|
|
62
|
-
callOnChange(previous: FieldMap): this;
|
|
63
|
-
toJSON(): {
|
|
64
|
-
id: number;
|
|
65
|
-
parent: EntryParentNull;
|
|
66
|
-
initial: FieldMap;
|
|
67
|
-
modified: FieldMap;
|
|
68
|
-
derived: FieldMap;
|
|
69
|
-
columns: ColumnSet;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
1
|
+
import { ColumnSet } from '../classes';
|
|
2
|
+
import { ItemEntryFactory } from '../factories';
|
|
3
|
+
import { ItemResource } from '../models';
|
|
4
|
+
import { ColumnExpansionResult, EntryParentNull, FieldMap, ItemError, ItemId, ItemIdConversionMap, ItemType } from '../types';
|
|
5
|
+
export declare class ItemEntry {
|
|
6
|
+
private factory;
|
|
7
|
+
itemType: string;
|
|
8
|
+
itemId: ItemId;
|
|
9
|
+
columns: ColumnSet;
|
|
10
|
+
id: number;
|
|
11
|
+
reloadQueued: boolean;
|
|
12
|
+
deferRequest: boolean;
|
|
13
|
+
deferred: any;
|
|
14
|
+
parent: EntryParentNull;
|
|
15
|
+
initial: FieldMap;
|
|
16
|
+
modified: FieldMap;
|
|
17
|
+
derived: FieldMap;
|
|
18
|
+
resources: ItemResource[];
|
|
19
|
+
constructor(factory: ItemEntryFactory, itemType: string, itemId: ItemId, columns: ColumnSet);
|
|
20
|
+
queueReload(): this;
|
|
21
|
+
defer(deferRequest?: boolean): this;
|
|
22
|
+
resolve(): this;
|
|
23
|
+
resolveDeferred(initial: any, derived: any, columns: any): this;
|
|
24
|
+
isDeferred(): boolean;
|
|
25
|
+
reject(error?: ItemError): this;
|
|
26
|
+
setFields(initial: FieldMap, derived: FieldMap): this;
|
|
27
|
+
setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap, columns?: ColumnSet): this;
|
|
28
|
+
clone(conversionMap?: ItemIdConversionMap): ItemEntry;
|
|
29
|
+
resetDerived(columnIds: any): this;
|
|
30
|
+
clearResources(): this;
|
|
31
|
+
deactivateResources(): this;
|
|
32
|
+
getFields(): FieldMap;
|
|
33
|
+
expand(main: FieldMap, derived: FieldMap, columnExpansionResult: ColumnExpansionResult): this;
|
|
34
|
+
expandLocal(columnExpansionResult: ColumnExpansionResult): this;
|
|
35
|
+
private setLocalValues;
|
|
36
|
+
/**
|
|
37
|
+
* This function assumes the initial, modified, derived properties are already set. It will update the values
|
|
38
|
+
* themselves to preserve references in existing item resources.
|
|
39
|
+
*/
|
|
40
|
+
updateFields(fields: FieldMap, derived?: FieldMap | null, overwrite?: boolean): this;
|
|
41
|
+
private updateItemValues;
|
|
42
|
+
updateItemFields(conversionMap: ItemIdConversionMap, columns?: ColumnSet): this;
|
|
43
|
+
formatRequest(): FieldMap;
|
|
44
|
+
setDisplayName(): this;
|
|
45
|
+
getDisplayName(): string;
|
|
46
|
+
/**
|
|
47
|
+
* @param {Boolean} returnAll Returns all initial values if true
|
|
48
|
+
* @returns {Object}
|
|
49
|
+
*/
|
|
50
|
+
getChanges(returnAll?: boolean): FieldMap;
|
|
51
|
+
isLocal(): boolean;
|
|
52
|
+
isLockable(): boolean;
|
|
53
|
+
hasChanges(): boolean;
|
|
54
|
+
resetModified(): this;
|
|
55
|
+
setInitial(values: FieldMap, enableCallbacks?: boolean): this;
|
|
56
|
+
/**
|
|
57
|
+
* Does a shallow copy of values!
|
|
58
|
+
*/
|
|
59
|
+
setModified(values?: FieldMap): this;
|
|
60
|
+
setDerived(values: FieldMap): this;
|
|
61
|
+
setParent(parentType: ItemType, parentId: ItemId): this;
|
|
62
|
+
callOnChange(previous: FieldMap): this;
|
|
63
|
+
toJSON(): {
|
|
64
|
+
id: number;
|
|
65
|
+
parent: EntryParentNull;
|
|
66
|
+
initial: FieldMap;
|
|
67
|
+
modified: FieldMap;
|
|
68
|
+
derived: FieldMap;
|
|
69
|
+
columns: ColumnSet;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ApiRequestColumnMap, ApiRequestColumns, EntryParentNull, OptionsInterface } from '../types';
|
|
2
|
-
export declare abstract class ItemEntryOptionsInterface implements OptionsInterface {
|
|
3
|
-
columns?: ApiRequestColumns;
|
|
4
|
-
parent?: EntryParentNull;
|
|
5
|
-
templateOptions?: any;
|
|
6
|
-
templateColumns?: ApiRequestColumnMap;
|
|
7
|
-
deferRequest?: boolean;
|
|
8
|
-
isDuplicate?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare class ItemEntryOptions extends ItemEntryOptionsInterface {
|
|
11
|
-
columns: any;
|
|
12
|
-
parent: any;
|
|
13
|
-
templateOptions: any;
|
|
14
|
-
templateColumns: any;
|
|
15
|
-
deferRequest: any;
|
|
16
|
-
isDuplicate: any;
|
|
17
|
-
constructor(values: ItemEntryOptionsInterface);
|
|
18
|
-
}
|
|
1
|
+
import { ApiRequestColumnMap, ApiRequestColumns, EntryParentNull, OptionsInterface } from '../types';
|
|
2
|
+
export declare abstract class ItemEntryOptionsInterface implements OptionsInterface {
|
|
3
|
+
columns?: ApiRequestColumns;
|
|
4
|
+
parent?: EntryParentNull;
|
|
5
|
+
templateOptions?: any;
|
|
6
|
+
templateColumns?: ApiRequestColumnMap;
|
|
7
|
+
deferRequest?: boolean;
|
|
8
|
+
isDuplicate?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class ItemEntryOptions extends ItemEntryOptionsInterface {
|
|
11
|
+
columns: any;
|
|
12
|
+
parent: any;
|
|
13
|
+
templateOptions: any;
|
|
14
|
+
templateColumns: any;
|
|
15
|
+
deferRequest: any;
|
|
16
|
+
isDuplicate: any;
|
|
17
|
+
constructor(values: ItemEntryOptionsInterface);
|
|
18
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ItemEntry, ItemResourceOptions } from '../models';
|
|
2
|
-
import { FieldMap, ResponseColumn } from '../types';
|
|
3
|
-
export declare class ItemResource {
|
|
4
|
-
entry: ItemEntry;
|
|
5
|
-
options: ItemResourceOptions;
|
|
6
|
-
protected readonly _isNew: boolean;
|
|
7
|
-
columns: {
|
|
8
|
-
[columnId: string]: ResponseColumn;
|
|
9
|
-
};
|
|
10
|
-
fields: FieldMap;
|
|
11
|
-
derived: FieldMap;
|
|
12
|
-
constructor(entry: ItemEntry, options: ItemResourceOptions, _isNew?: boolean);
|
|
13
|
-
isNew(): boolean;
|
|
14
|
-
isLocal(): boolean;
|
|
15
|
-
clearResource(): void;
|
|
16
|
-
deactivate(): void;
|
|
17
|
-
toJSON(): {
|
|
18
|
-
columns: string[];
|
|
19
|
-
fields: FieldMap;
|
|
20
|
-
derived: FieldMap;
|
|
21
|
-
entry: ItemEntry;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
1
|
+
import { ItemEntry, ItemResourceOptions } from '../models';
|
|
2
|
+
import { FieldMap, ResponseColumn } from '../types';
|
|
3
|
+
export declare class ItemResource {
|
|
4
|
+
entry: ItemEntry;
|
|
5
|
+
options: ItemResourceOptions;
|
|
6
|
+
protected readonly _isNew: boolean;
|
|
7
|
+
columns: {
|
|
8
|
+
[columnId: string]: ResponseColumn;
|
|
9
|
+
};
|
|
10
|
+
fields: FieldMap;
|
|
11
|
+
derived: FieldMap;
|
|
12
|
+
constructor(entry: ItemEntry, options: ItemResourceOptions, _isNew?: boolean);
|
|
13
|
+
isNew(): boolean;
|
|
14
|
+
isLocal(): boolean;
|
|
15
|
+
clearResource(): void;
|
|
16
|
+
deactivate(): void;
|
|
17
|
+
toJSON(): {
|
|
18
|
+
columns: string[];
|
|
19
|
+
fields: FieldMap;
|
|
20
|
+
derived: FieldMap;
|
|
21
|
+
entry: ItemEntry;
|
|
22
|
+
};
|
|
23
|
+
}
|