@rentman/rm-core 1.7.6 → 1.9.0
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 +9 -0
- package/dist/rm-core.js +8097 -7631
- package/dist/rm-core.min.js +1 -1
- package/dist/src/classes/ApiFormatter.d.ts +39 -39
- package/dist/src/classes/ApiRequestService.d.ts +20 -20
- package/dist/src/classes/ApiResponseProcessor.d.ts +39 -39
- package/dist/src/classes/BatchStatus.d.ts +28 -28
- 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 +32 -34
- package/dist/src/classes/CollectionEntryService.d.ts +22 -23
- package/dist/src/classes/CollectionHandler.d.ts +54 -54
- package/dist/src/classes/CollectionMatcher.d.ts +42 -42
- package/dist/src/classes/CollectionResourceService.d.ts +6 -6
- 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 +39 -39
- package/dist/src/classes/ColumnSubsetCache.d.ts +8 -8
- package/dist/src/classes/ColumnUtil.d.ts +88 -89
- package/dist/src/classes/CreateRequest.d.ts +20 -20
- package/dist/src/classes/ItemAdministrator.d.ts +228 -237
- package/dist/src/classes/ItemCache.d.ts +23 -23
- package/dist/src/classes/ItemEntryService.d.ts +23 -23
- 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 +112 -92
- package/dist/src/classes/LocalCacheEventHandler.d.ts +19 -19
- package/dist/src/classes/LockService.d.ts +32 -32
- 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 +34 -34
- package/dist/src/classes/QueryService.d.ts +14 -14
- package/dist/src/classes/RequestColumnExpansion.d.ts +14 -14
- package/dist/src/classes/SocketMessageHandler.d.ts +41 -41
- package/dist/src/classes/Util.d.ts +28 -28
- package/dist/src/classes/index.d.ts +35 -36
- 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 +9 -9
- package/dist/src/factories/ChangesCompilationFactory.d.ts +10 -10
- package/dist/src/factories/CollectionCacheFactory.d.ts +7 -8
- package/dist/src/factories/CollectionEntryFactory.d.ts +23 -23
- package/dist/src/factories/CollectionMatcherFactory.d.ts +8 -8
- package/dist/src/factories/CollectionResourceFactory.d.ts +32 -33
- package/dist/src/factories/ColumnExpansionFactory.d.ts +8 -8
- package/dist/src/factories/ColumnInfoFactory.d.ts +7 -7
- package/dist/src/factories/ColumnSetFactory.d.ts +17 -17
- 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 +21 -21
- package/dist/src/factories/ItemResourceFactory.d.ts +28 -29
- package/dist/src/factories/LocalCacheFactory.d.ts +16 -16
- package/dist/src/factories/ModuleChangesCompilationFactory.d.ts +6 -6
- package/dist/src/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/src/factories/QueryParserFactory.d.ts +6 -6
- 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 +21 -21
- 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/ExceptionHandlerInterface.d.ts +3 -3
- package/dist/src/interfaces/LocalCacheManagerInterface.d.ts +5 -5
- package/dist/src/interfaces/PromiseLibraryInterface.d.ts +25 -25
- package/dist/src/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/src/interfaces/index.d.ts +7 -7
- package/dist/src/models/CollectionEditResource.d.ts +14 -14
- package/dist/src/models/CollectionEntry.d.ts +87 -82
- package/dist/src/models/CollectionEntryOptions.d.ts +12 -12
- package/dist/src/models/CollectionResource.d.ts +52 -41
- package/dist/src/models/CollectionResourceOptions.d.ts +22 -22
- package/dist/src/models/CollectionViewResource.d.ts +7 -7
- package/dist/src/models/EditResource.d.ts +18 -18
- package/dist/src/models/ItemEntry.d.ts +76 -70
- package/dist/src/models/ItemEntryOptions.d.ts +10 -10
- package/dist/src/models/ItemResource.d.ts +45 -27
- package/dist/src/models/ItemResourceOptions.d.ts +9 -9
- package/dist/src/models/LocalViewResource.d.ts +7 -7
- package/dist/src/models/RemoteViewResource.d.ts +7 -7
- package/dist/src/models/Template.d.ts +11 -11
- package/dist/src/models/ViewResource.d.ts +8 -8
- package/dist/src/models/index.d.ts +15 -15
- package/dist/src/types/ItemTypesCollection.d.ts +197 -196
- package/dist/src/types/PromiseInterface.d.ts +2 -2
- package/dist/src/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +15 -15
- package/dist/src/classes/ResourceCache.d.ts +0 -25
|
@@ -1,70 +1,76 @@
|
|
|
1
|
-
import { ColumnSet } from '../classes';
|
|
2
|
-
import { ItemEntryFactory } from '../factories';
|
|
3
|
-
import { Deferred } from '../interfaces';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
import { ColumnSet } from '../classes';
|
|
2
|
+
import { ItemEntryFactory } from '../factories';
|
|
3
|
+
import { Deferred } from '../interfaces';
|
|
4
|
+
import { ItemResource } from '../models';
|
|
5
|
+
import { ColumnExpansionResult, EntryParentNull, FieldMap, ItemError, ItemId, ItemIdConversionMap, ItemType, PromiseInterface } from '../types';
|
|
6
|
+
export declare class ItemEntry<ItemTypeType extends ItemType = any> {
|
|
7
|
+
private factory;
|
|
8
|
+
itemType: ItemTypeType;
|
|
9
|
+
itemId: ItemId;
|
|
10
|
+
columns: ColumnSet<ItemTypeType>;
|
|
11
|
+
id: number;
|
|
12
|
+
reloadQueued: boolean;
|
|
13
|
+
deferRequest: boolean;
|
|
14
|
+
deferred?: Deferred<this>;
|
|
15
|
+
parent: EntryParentNull;
|
|
16
|
+
initial: FieldMap<ItemTypeType>;
|
|
17
|
+
modified: FieldMap<ItemTypeType>;
|
|
18
|
+
derived: FieldMap<ItemTypeType>;
|
|
19
|
+
resources: Array<ItemResource<ItemTypeType>>;
|
|
20
|
+
constructor(factory: ItemEntryFactory, itemType: ItemTypeType, itemId: ItemId, columns: ColumnSet<ItemTypeType>);
|
|
21
|
+
queueReload(): this;
|
|
22
|
+
clearResource(resource: ItemResource): void;
|
|
23
|
+
clearResources(): void;
|
|
24
|
+
defer(deferRequest?: boolean): this;
|
|
25
|
+
getPromise(): PromiseInterface<this>;
|
|
26
|
+
resolve(): this;
|
|
27
|
+
resolveDeferred(initial: FieldMap, derived: FieldMap, columns: ColumnSet<ItemTypeType>): this;
|
|
28
|
+
isDeferred(): boolean;
|
|
29
|
+
reject(error?: ItemError): this;
|
|
30
|
+
setFields(initial: FieldMap<ItemTypeType>, derived: FieldMap): this;
|
|
31
|
+
setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap, columns?: ColumnSet<ItemTypeType>): this;
|
|
32
|
+
clone(conversionMap?: ItemIdConversionMap): ItemEntry<ItemTypeType>;
|
|
33
|
+
resetDerived(columnIds: string[]): this;
|
|
34
|
+
getFields(): FieldMap<ItemTypeType>;
|
|
35
|
+
expand(main: FieldMap, derived: FieldMap, columnExpansionResult: ColumnExpansionResult<ItemTypeType>): this;
|
|
36
|
+
expandLocal(columnExpansionResult: ColumnExpansionResult<ItemTypeType>): this;
|
|
37
|
+
private setLocalValues;
|
|
38
|
+
/**
|
|
39
|
+
* @description
|
|
40
|
+
* Updates the {@link ItemEntry.initial initial}, {@link ItemEntry.modified modified} and {@link ItemEntry.derived derived} properties in-place to preserve references in existing {@link ItemResource ItemResources}.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* - Assumes the {@link ItemEntry.initial initial}, {@link ItemEntry.modified modified} and {@link ItemEntry.derived derived} properties are already set.
|
|
44
|
+
*/
|
|
45
|
+
updateFields(fields: FieldMap<ItemTypeType>, derived?: FieldMap | null, overwrite?: boolean): this;
|
|
46
|
+
private updateItemValues;
|
|
47
|
+
updateItemFields(conversionMap: ItemIdConversionMap, columns?: ColumnSet<ItemTypeType>): this;
|
|
48
|
+
formatRequest(): FieldMap<ItemTypeType>;
|
|
49
|
+
setDisplayName(): this;
|
|
50
|
+
getDisplayName(): string;
|
|
51
|
+
/**
|
|
52
|
+
* @param returnAll Returns all initial values if true
|
|
53
|
+
*/
|
|
54
|
+
getChanges(returnAll?: boolean): FieldMap<any>;
|
|
55
|
+
isLocal(): boolean;
|
|
56
|
+
isLockable(): boolean;
|
|
57
|
+
hasChanges(): boolean;
|
|
58
|
+
resetModified(): this;
|
|
59
|
+
setInitial(values: FieldMap, enableCallbacks?: boolean): this;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* - Does a shallow copy of values!
|
|
63
|
+
*/
|
|
64
|
+
setModified(values?: FieldMap<ItemTypeType>): this;
|
|
65
|
+
setDerived(values: FieldMap): this;
|
|
66
|
+
setParent(parentType: ItemType, parentId: ItemId): this;
|
|
67
|
+
callOnChange(previous?: FieldMap<ItemTypeType>): this;
|
|
68
|
+
toJSON(): {
|
|
69
|
+
id: number;
|
|
70
|
+
parent: EntryParentNull;
|
|
71
|
+
initial: FieldMap<ItemTypeType>;
|
|
72
|
+
modified: FieldMap<ItemTypeType>;
|
|
73
|
+
derived: FieldMap<ItemTypeType>;
|
|
74
|
+
columns: ColumnSet<ItemTypeType>;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ApiRequestColumnMap, ApiRequestColumns, EntryParentNull } from '../types';
|
|
2
|
-
export declare type ItemEntryOptionsInterface = Partial<ItemEntryOptions>;
|
|
3
|
-
export declare class ItemEntryOptions {
|
|
4
|
-
columns: ApiRequestColumns;
|
|
5
|
-
parent: EntryParentNull;
|
|
6
|
-
templateOptions: any;
|
|
7
|
-
templateColumns: ApiRequestColumnMap;
|
|
8
|
-
deferRequest: boolean;
|
|
9
|
-
constructor(values: ItemEntryOptionsInterface);
|
|
10
|
-
}
|
|
1
|
+
import { ApiRequestColumnMap, ApiRequestColumns, EntryParentNull } from '../types';
|
|
2
|
+
export declare type ItemEntryOptionsInterface = Partial<ItemEntryOptions>;
|
|
3
|
+
export declare class ItemEntryOptions {
|
|
4
|
+
columns: ApiRequestColumns;
|
|
5
|
+
parent: EntryParentNull;
|
|
6
|
+
templateOptions: any;
|
|
7
|
+
templateColumns: ApiRequestColumnMap;
|
|
8
|
+
deferRequest: boolean;
|
|
9
|
+
constructor(values: ItemEntryOptionsInterface);
|
|
10
|
+
}
|
|
@@ -1,27 +1,45 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ItemEntry, ItemResourceOptions } from '../models';
|
|
4
|
-
import { FieldMap, ItemType, ResponseColumn } from '../types';
|
|
5
|
-
export declare abstract class ItemResource<ItemTypeType extends ItemType = any> {
|
|
6
|
-
protected readonly factory: ItemResourceFactory;
|
|
7
|
-
readonly entry: ItemEntry<ItemTypeType>;
|
|
8
|
-
readonly options: ItemResourceOptions<ItemResource<ItemTypeType>>;
|
|
9
|
-
protected readonly _isNew: boolean;
|
|
10
|
-
protected readonly localCache: LocalCache | null;
|
|
11
|
-
columns: {
|
|
12
|
-
[columnId: string]: ResponseColumn;
|
|
13
|
-
};
|
|
14
|
-
fields: FieldMap<ItemTypeType>;
|
|
15
|
-
derived: FieldMap<ItemTypeType>;
|
|
16
|
-
protected constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<ItemResource<ItemTypeType>>, _isNew: boolean, localCache: LocalCache | null);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ItemEntry, ItemResourceOptions } from '../models';
|
|
4
|
+
import { FieldMap, ItemType, ResponseColumn } from '../types';
|
|
5
|
+
export declare abstract class ItemResource<ItemTypeType extends ItemType = any> {
|
|
6
|
+
protected readonly factory: ItemResourceFactory;
|
|
7
|
+
readonly entry: ItemEntry<ItemTypeType>;
|
|
8
|
+
readonly options: ItemResourceOptions<ItemResource<ItemTypeType>>;
|
|
9
|
+
protected readonly _isNew: boolean;
|
|
10
|
+
protected readonly localCache: LocalCache | null;
|
|
11
|
+
columns: {
|
|
12
|
+
[columnId: string]: ResponseColumn;
|
|
13
|
+
};
|
|
14
|
+
fields: FieldMap<ItemTypeType>;
|
|
15
|
+
derived: FieldMap<ItemTypeType>;
|
|
16
|
+
protected constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<ItemResource<ItemTypeType>>, _isNew: boolean, localCache: LocalCache | null);
|
|
17
|
+
onConstruct(): void;
|
|
18
|
+
/**
|
|
19
|
+
* @description
|
|
20
|
+
* 'isNew' means that the {@link ItemEntry ItemEntry} is a local item and that this resource was created when the {@link ItemEntry ItemEntry} was first created
|
|
21
|
+
*/
|
|
22
|
+
isNew(): boolean;
|
|
23
|
+
isLocal(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @description
|
|
26
|
+
* Removes the reference to the {@link ItemResource ItemResource} from the {@link ItemEntry ItemEntry}
|
|
27
|
+
*
|
|
28
|
+
* Warning:
|
|
29
|
+
* This doesn't revert any changes made to the item, in order to revert the changes you should use {@link EditResource.start start} and {@link EditResource.rollback rollback}.
|
|
30
|
+
*/
|
|
31
|
+
clearResource(): void;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* - Does *not* clear resources
|
|
37
|
+
*/
|
|
38
|
+
deactivate(): void;
|
|
39
|
+
toJSON(): {
|
|
40
|
+
columns: string[];
|
|
41
|
+
fields: FieldMap<ItemTypeType>;
|
|
42
|
+
derived: FieldMap<ItemTypeType>;
|
|
43
|
+
entry: ItemEntry<ItemTypeType>;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnChangeFunction } from '../types';
|
|
2
|
-
import { ItemResource } from './ItemResource';
|
|
3
|
-
export declare type ItemResourceOptionsInterface<ItemResourceType extends ItemResource<any> = ItemResource<any>> = Partial<ItemResourceOptions<ItemResourceType>>;
|
|
4
|
-
export declare class ItemResourceOptions<ItemResourceType extends ItemResource<any> = ItemResource<any>> {
|
|
5
|
-
edit: boolean;
|
|
6
|
-
remote: boolean;
|
|
7
|
-
onChange: OnChangeFunction<ItemResourceType>;
|
|
8
|
-
constructor(values: ItemResourceOptionsInterface<ItemResourceType>);
|
|
9
|
-
}
|
|
1
|
+
import { OnChangeFunction } from '../types';
|
|
2
|
+
import { ItemResource } from './ItemResource';
|
|
3
|
+
export declare type ItemResourceOptionsInterface<ItemResourceType extends ItemResource<any> = ItemResource<any>> = Partial<ItemResourceOptions<ItemResourceType>>;
|
|
4
|
+
export declare class ItemResourceOptions<ItemResourceType extends ItemResource<any> = ItemResource<any>> {
|
|
5
|
+
edit: boolean;
|
|
6
|
+
remote: boolean;
|
|
7
|
+
onChange: OnChangeFunction<ItemResourceType>;
|
|
8
|
+
constructor(values: ItemResourceOptionsInterface<ItemResourceType>);
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ItemEntry, ItemResourceOptions, ViewResource } from '../models';
|
|
4
|
-
import { ItemType } from '../types';
|
|
5
|
-
export declare class LocalViewResource<ItemTypeType extends ItemType = any> extends ViewResource<ItemTypeType> {
|
|
6
|
-
constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions, isNew: boolean, localCache: LocalCache | null);
|
|
7
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ItemEntry, ItemResourceOptions, ViewResource } from '../models';
|
|
4
|
+
import { ItemType } from '../types';
|
|
5
|
+
export declare class LocalViewResource<ItemTypeType extends ItemType = any> extends ViewResource<ItemTypeType> {
|
|
6
|
+
constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions, isNew: boolean, localCache: LocalCache | null);
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ItemEntry, ItemResourceOptions, ViewResource } from '../models';
|
|
4
|
-
import { ItemType } from '../types';
|
|
5
|
-
export declare class RemoteViewResource<ItemTypeType extends ItemType = any> extends ViewResource<ItemTypeType> {
|
|
6
|
-
constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<RemoteViewResource<ItemTypeType>>, isNew: boolean, localCache: LocalCache | null);
|
|
7
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ItemEntry, ItemResourceOptions, ViewResource } from '../models';
|
|
4
|
+
import { ItemType } from '../types';
|
|
5
|
+
export declare class RemoteViewResource<ItemTypeType extends ItemType = any> extends ViewResource<ItemTypeType> {
|
|
6
|
+
constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<RemoteViewResource<ItemTypeType>>, isNew: boolean, localCache: LocalCache | null);
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ColumnSet } from '../classes';
|
|
2
|
-
import { TemplateFactory } from '../factories';
|
|
3
|
-
import { ApiResponse, FieldMap, ItemType,
|
|
4
|
-
export declare class Template<ItemTypeType extends ItemType = any> {
|
|
5
|
-
itemType: ItemTypeType;
|
|
6
|
-
response: ApiResponse;
|
|
7
|
-
fields: FieldMap<ItemTypeType>;
|
|
8
|
-
responseColumns:
|
|
9
|
-
columns: ColumnSet<ItemTypeType>;
|
|
10
|
-
constructor(factory: TemplateFactory, itemType: ItemTypeType, response: ApiResponse, additionalColumns:
|
|
11
|
-
}
|
|
1
|
+
import { ColumnSet } from '../classes';
|
|
2
|
+
import { TemplateFactory } from '../factories';
|
|
3
|
+
import { ApiResponse, FieldMap, ItemType, ResponseColumnItemTypeMap } from '../types';
|
|
4
|
+
export declare class Template<ItemTypeType extends ItemType = any> {
|
|
5
|
+
itemType: ItemTypeType;
|
|
6
|
+
response: ApiResponse;
|
|
7
|
+
fields: FieldMap<ItemTypeType>;
|
|
8
|
+
responseColumns: ResponseColumnItemTypeMap;
|
|
9
|
+
columns: ColumnSet<ItemTypeType>;
|
|
10
|
+
constructor(factory: TemplateFactory, itemType: ItemTypeType, response: ApiResponse, additionalColumns: ResponseColumnItemTypeMap);
|
|
11
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
import { ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
|
|
4
|
-
import { FieldMap, ItemType } from '../types';
|
|
5
|
-
export declare abstract class ViewResource<ItemTypeType extends ItemType = any> extends ItemResource<ItemTypeType> {
|
|
6
|
-
fields: Readonly<FieldMap<ItemTypeType>>;
|
|
7
|
-
protected constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<ViewResource<ItemTypeType>>, isNew: boolean, localCache: LocalCache | null);
|
|
8
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
import { ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
|
|
4
|
+
import { FieldMap, ItemType } from '../types';
|
|
5
|
+
export declare abstract class ViewResource<ItemTypeType extends ItemType = any> extends ItemResource<ItemTypeType> {
|
|
6
|
+
fields: Readonly<FieldMap<ItemTypeType>>;
|
|
7
|
+
protected constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<ViewResource<ItemTypeType>>, isNew: boolean, localCache: LocalCache | null);
|
|
8
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './ItemEntryOptions';
|
|
2
|
-
export * from './ItemResourceOptions';
|
|
3
|
-
export * from './ItemEntry';
|
|
4
|
-
export * from './ItemResource';
|
|
5
|
-
export * from './ViewResource';
|
|
6
|
-
export * from './EditResource';
|
|
7
|
-
export * from './CollectionEntryOptions';
|
|
8
|
-
export * from './CollectionResourceOptions';
|
|
9
|
-
export * from './CollectionEntry';
|
|
10
|
-
export * from './CollectionResource';
|
|
11
|
-
export * from './CollectionViewResource';
|
|
12
|
-
export * from './CollectionEditResource';
|
|
13
|
-
export * from './Template';
|
|
14
|
-
export * from './RemoteViewResource';
|
|
15
|
-
export * from './LocalViewResource';
|
|
1
|
+
export * from './ItemEntryOptions';
|
|
2
|
+
export * from './ItemResourceOptions';
|
|
3
|
+
export * from './ItemEntry';
|
|
4
|
+
export * from './ItemResource';
|
|
5
|
+
export * from './ViewResource';
|
|
6
|
+
export * from './EditResource';
|
|
7
|
+
export * from './CollectionEntryOptions';
|
|
8
|
+
export * from './CollectionResourceOptions';
|
|
9
|
+
export * from './CollectionEntry';
|
|
10
|
+
export * from './CollectionResource';
|
|
11
|
+
export * from './CollectionViewResource';
|
|
12
|
+
export * from './CollectionEditResource';
|
|
13
|
+
export * from './Template';
|
|
14
|
+
export * from './RemoteViewResource';
|
|
15
|
+
export * from './LocalViewResource';
|