@rentman/rm-core 2.4.0 → 3.0.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.
@@ -1,16 +0,0 @@
1
- import { TransactionCache } from '../classes/cache/transaction/TransactionCache';
2
- import { ItemResourceFactory } from '../factories';
3
- import { ItemEntry, ItemResource, ItemResourceOptions } from '../models';
4
- import { FieldMap, ItemType, PromiseInterface } from '../types';
5
- export declare class EditResource<ItemTypeType extends ItemType = any> extends ItemResource<ItemTypeType> {
6
- protected localCopies: Array<FieldMap<ItemTypeType>>;
7
- fields: FieldMap<ItemTypeType>;
8
- constructor(factory: ItemResourceFactory, entry: ItemEntry<ItemTypeType>, options: ItemResourceOptions, isNew: boolean, transaction: TransactionCache);
9
- isNew(): boolean;
10
- copyFields(destination?: FieldMap<ItemTypeType>): FieldMap<ItemTypeType>;
11
- /**
12
- * @description
13
- * Updates the fields of the item and calls onChange, when updating many fields of many items it's better to create a {@link ChangesDelta ChangesDelta} yourself so all changes can be applied at once
14
- */
15
- setFields(values: FieldMap<ItemTypeType>): PromiseInterface<this>;
16
- }
@@ -1,7 +0,0 @@
1
- import { TransactionCache } from '../classes/cache/transaction/TransactionCache';
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, transaction: TransactionCache);
7
- }
@@ -1,7 +0,0 @@
1
- import { TransactionCache } from '../classes/cache/transaction/TransactionCache';
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, transaction: TransactionCache);
7
- }
@@ -1,8 +0,0 @@
1
- import { TransactionCache } from '../classes/cache/transaction/TransactionCache';
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, transaction: TransactionCache);
8
- }