@rentman/rm-core 1.7.3 → 1.7.5
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 +7525 -7481
- 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 -41
- 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 +34 -34
- package/dist/src/classes/CollectionEntryService.d.ts +23 -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 -46
- package/dist/src/classes/ColumnSubsetCache.d.ts +8 -8
- package/dist/src/classes/ColumnUtil.d.ts +89 -89
- package/dist/src/classes/CreateRequest.d.ts +20 -20
- package/dist/src/classes/ItemAdministrator.d.ts +238 -238
- package/dist/src/classes/ItemCache.d.ts +23 -23
- 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 +97 -97
- 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/ResourceCache.d.ts +25 -25
- 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 -35
- 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 +8 -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 +33 -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 -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 +21 -21
- package/dist/src/factories/ItemResourceFactory.d.ts +29 -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 +82 -82
- package/dist/src/models/CollectionEntryOptions.d.ts +12 -12
- package/dist/src/models/CollectionResource.d.ts +41 -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 +70 -70
- package/dist/src/models/ItemEntryOptions.d.ts +11 -11
- package/dist/src/models/ItemResource.d.ts +27 -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 +213 -213
- 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
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { ColumnSet } from '../classes';
|
|
2
|
-
import { ItemEntryFactory } from '../factories';
|
|
3
|
-
import { Deferred } from '../interfaces';
|
|
4
|
-
import { ColumnExpansionResult, EntryParentNull, FieldMap, ItemError, ItemId, ItemIdConversionMap, ItemType, PromiseInterface } from '../types';
|
|
5
|
-
export declare class ItemEntry<ItemTypeType extends ItemType = any> {
|
|
6
|
-
private factory;
|
|
7
|
-
itemType: ItemTypeType;
|
|
8
|
-
itemId: ItemId;
|
|
9
|
-
columns: ColumnSet<ItemTypeType>;
|
|
10
|
-
id: number;
|
|
11
|
-
reloadQueued: boolean;
|
|
12
|
-
deferRequest: boolean;
|
|
13
|
-
deferred?: Deferred<this>;
|
|
14
|
-
parent: EntryParentNull;
|
|
15
|
-
initial: FieldMap
|
|
16
|
-
modified: FieldMap
|
|
17
|
-
derived: FieldMap
|
|
18
|
-
constructor(factory: ItemEntryFactory, itemType: ItemTypeType, itemId: ItemId, columns: ColumnSet<ItemTypeType>);
|
|
19
|
-
private getResources;
|
|
20
|
-
queueReload(): this;
|
|
21
|
-
defer(deferRequest?: boolean): this;
|
|
22
|
-
getPromise(): PromiseInterface<this>;
|
|
23
|
-
resolve(): this;
|
|
24
|
-
resolveDeferred(initial: FieldMap, derived: FieldMap, columns: ColumnSet<ItemTypeType>): this;
|
|
25
|
-
isDeferred(): boolean;
|
|
26
|
-
reject(error?: ItemError): this;
|
|
27
|
-
setFields(initial: FieldMap
|
|
28
|
-
setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap, columns?: ColumnSet<ItemTypeType>): this;
|
|
29
|
-
clone(conversionMap?: ItemIdConversionMap): ItemEntry<ItemTypeType>;
|
|
30
|
-
resetDerived(columnIds: string[]): this;
|
|
31
|
-
getFields(): FieldMap
|
|
32
|
-
expand(main: FieldMap, derived: FieldMap, columnExpansionResult: ColumnExpansionResult<ItemTypeType>): this;
|
|
33
|
-
expandLocal(columnExpansionResult: ColumnExpansionResult<ItemTypeType>): this;
|
|
34
|
-
private setLocalValues;
|
|
35
|
-
/**
|
|
36
|
-
* This function assumes the initial, modified, derived properties are already set. It will update the values
|
|
37
|
-
* themselves to preserve references in existing item resources.
|
|
38
|
-
*/
|
|
39
|
-
updateFields(fields: FieldMap
|
|
40
|
-
private updateItemValues;
|
|
41
|
-
updateItemFields(conversionMap: ItemIdConversionMap, columns?: ColumnSet<ItemTypeType>): this;
|
|
42
|
-
formatRequest(): FieldMap
|
|
43
|
-
setDisplayName(): this;
|
|
44
|
-
getDisplayName(): string;
|
|
45
|
-
/**
|
|
46
|
-
* @param {Boolean} returnAll Returns all initial values if true
|
|
47
|
-
* @returns {Object}
|
|
48
|
-
*/
|
|
49
|
-
getChanges(returnAll?: boolean): FieldMap<any>;
|
|
50
|
-
isLocal(): boolean;
|
|
51
|
-
isLockable(): boolean;
|
|
52
|
-
hasChanges(): boolean;
|
|
53
|
-
resetModified(): this;
|
|
54
|
-
setInitial(values: FieldMap, enableCallbacks?: boolean): this;
|
|
55
|
-
/**
|
|
56
|
-
* Does a shallow copy of values!
|
|
57
|
-
*/
|
|
58
|
-
setModified(values?: FieldMap): this;
|
|
59
|
-
setDerived(values: FieldMap): this;
|
|
60
|
-
setParent(parentType: ItemType, parentId: ItemId): this;
|
|
61
|
-
callOnChange(previous?: FieldMap): this;
|
|
62
|
-
toJSON(): {
|
|
63
|
-
id: number;
|
|
64
|
-
parent: EntryParentNull;
|
|
65
|
-
initial: FieldMap<
|
|
66
|
-
modified: FieldMap<
|
|
67
|
-
derived: FieldMap<
|
|
68
|
-
columns: ColumnSet<ItemTypeType>;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
1
|
+
import { ColumnSet } from '../classes';
|
|
2
|
+
import { ItemEntryFactory } from '../factories';
|
|
3
|
+
import { Deferred } from '../interfaces';
|
|
4
|
+
import { ColumnExpansionResult, EntryParentNull, FieldMap, ItemError, ItemId, ItemIdConversionMap, ItemType, PromiseInterface } from '../types';
|
|
5
|
+
export declare class ItemEntry<ItemTypeType extends ItemType = any> {
|
|
6
|
+
private factory;
|
|
7
|
+
itemType: ItemTypeType;
|
|
8
|
+
itemId: ItemId;
|
|
9
|
+
columns: ColumnSet<ItemTypeType>;
|
|
10
|
+
id: number;
|
|
11
|
+
reloadQueued: boolean;
|
|
12
|
+
deferRequest: boolean;
|
|
13
|
+
deferred?: Deferred<this>;
|
|
14
|
+
parent: EntryParentNull;
|
|
15
|
+
initial: FieldMap<ItemTypeType>;
|
|
16
|
+
modified: FieldMap<ItemTypeType>;
|
|
17
|
+
derived: FieldMap<ItemTypeType>;
|
|
18
|
+
constructor(factory: ItemEntryFactory, itemType: ItemTypeType, itemId: ItemId, columns: ColumnSet<ItemTypeType>);
|
|
19
|
+
private getResources;
|
|
20
|
+
queueReload(): this;
|
|
21
|
+
defer(deferRequest?: boolean): this;
|
|
22
|
+
getPromise(): PromiseInterface<this>;
|
|
23
|
+
resolve(): this;
|
|
24
|
+
resolveDeferred(initial: FieldMap, derived: FieldMap, columns: ColumnSet<ItemTypeType>): this;
|
|
25
|
+
isDeferred(): boolean;
|
|
26
|
+
reject(error?: ItemError): this;
|
|
27
|
+
setFields(initial: FieldMap<ItemTypeType>, derived: FieldMap): this;
|
|
28
|
+
setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap, columns?: ColumnSet<ItemTypeType>): this;
|
|
29
|
+
clone(conversionMap?: ItemIdConversionMap): ItemEntry<ItemTypeType>;
|
|
30
|
+
resetDerived(columnIds: string[]): this;
|
|
31
|
+
getFields(): FieldMap<ItemTypeType>;
|
|
32
|
+
expand(main: FieldMap, derived: FieldMap, columnExpansionResult: ColumnExpansionResult<ItemTypeType>): this;
|
|
33
|
+
expandLocal(columnExpansionResult: ColumnExpansionResult<ItemTypeType>): this;
|
|
34
|
+
private setLocalValues;
|
|
35
|
+
/**
|
|
36
|
+
* This function assumes the initial, modified, derived properties are already set. It will update the values
|
|
37
|
+
* themselves to preserve references in existing item resources.
|
|
38
|
+
*/
|
|
39
|
+
updateFields(fields: FieldMap<ItemTypeType>, derived?: FieldMap | null, overwrite?: boolean): this;
|
|
40
|
+
private updateItemValues;
|
|
41
|
+
updateItemFields(conversionMap: ItemIdConversionMap, columns?: ColumnSet<ItemTypeType>): this;
|
|
42
|
+
formatRequest(): FieldMap<ItemTypeType>;
|
|
43
|
+
setDisplayName(): this;
|
|
44
|
+
getDisplayName(): string;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Boolean} returnAll Returns all initial values if true
|
|
47
|
+
* @returns {Object}
|
|
48
|
+
*/
|
|
49
|
+
getChanges(returnAll?: boolean): FieldMap<any>;
|
|
50
|
+
isLocal(): boolean;
|
|
51
|
+
isLockable(): boolean;
|
|
52
|
+
hasChanges(): boolean;
|
|
53
|
+
resetModified(): this;
|
|
54
|
+
setInitial(values: FieldMap, enableCallbacks?: boolean): this;
|
|
55
|
+
/**
|
|
56
|
+
* Does a shallow copy of values!
|
|
57
|
+
*/
|
|
58
|
+
setModified(values?: FieldMap<ItemTypeType>): this;
|
|
59
|
+
setDerived(values: FieldMap): this;
|
|
60
|
+
setParent(parentType: ItemType, parentId: ItemId): this;
|
|
61
|
+
callOnChange(previous?: FieldMap<ItemTypeType>): this;
|
|
62
|
+
toJSON(): {
|
|
63
|
+
id: number;
|
|
64
|
+
parent: EntryParentNull;
|
|
65
|
+
initial: FieldMap<ItemTypeType>;
|
|
66
|
+
modified: FieldMap<ItemTypeType>;
|
|
67
|
+
derived: FieldMap<ItemTypeType>;
|
|
68
|
+
columns: ColumnSet<ItemTypeType>;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
isDuplicate: boolean;
|
|
10
|
-
constructor(values: ItemEntryOptionsInterface);
|
|
11
|
-
}
|
|
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
|
+
isDuplicate: boolean;
|
|
10
|
+
constructor(values: ItemEntryOptionsInterface);
|
|
11
|
+
}
|
|
@@ -1,27 +1,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
|
|
15
|
-
derived: FieldMap
|
|
16
|
-
protected constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions<ItemResource<ItemTypeType>>, _isNew: boolean, localCache: LocalCache | null);
|
|
17
|
-
isNew(): boolean;
|
|
18
|
-
isLocal(): boolean;
|
|
19
|
-
clearResource(): void;
|
|
20
|
-
deactivate(): void;
|
|
21
|
-
toJSON(): {
|
|
22
|
-
columns: string[];
|
|
23
|
-
fields: FieldMap<
|
|
24
|
-
derived: FieldMap<
|
|
25
|
-
entry: ItemEntry<ItemTypeType>;
|
|
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
|
+
isNew(): boolean;
|
|
18
|
+
isLocal(): boolean;
|
|
19
|
+
clearResource(): void;
|
|
20
|
+
deactivate(): void;
|
|
21
|
+
toJSON(): {
|
|
22
|
+
columns: string[];
|
|
23
|
+
fields: FieldMap<ItemTypeType>;
|
|
24
|
+
derived: FieldMap<ItemTypeType>;
|
|
25
|
+
entry: ItemEntry<ItemTypeType>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -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, ResponseColumnMap } from '../types';
|
|
4
|
-
export declare class Template<ItemTypeType extends ItemType = any> {
|
|
5
|
-
itemType: ItemTypeType;
|
|
6
|
-
response: ApiResponse;
|
|
7
|
-
fields: FieldMap<ItemTypeType>;
|
|
8
|
-
responseColumns: ResponseColumnMap;
|
|
9
|
-
columns: ColumnSet<ItemTypeType>;
|
|
10
|
-
constructor(factory: TemplateFactory, itemType: ItemTypeType, response: ApiResponse, additionalColumns: ResponseColumnMap);
|
|
11
|
-
}
|
|
1
|
+
import { ColumnSet } from '../classes';
|
|
2
|
+
import { TemplateFactory } from '../factories';
|
|
3
|
+
import { ApiResponse, FieldMap, ItemType, ResponseColumnMap } from '../types';
|
|
4
|
+
export declare class Template<ItemTypeType extends ItemType = any> {
|
|
5
|
+
itemType: ItemTypeType;
|
|
6
|
+
response: ApiResponse;
|
|
7
|
+
fields: FieldMap<ItemTypeType>;
|
|
8
|
+
responseColumns: ResponseColumnMap;
|
|
9
|
+
columns: ColumnSet<ItemTypeType>;
|
|
10
|
+
constructor(factory: TemplateFactory, itemType: ItemTypeType, response: ApiResponse, additionalColumns: ResponseColumnMap);
|
|
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
|
|
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';
|