@rentman/rm-core 2.4.0 → 3.0.1
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 +8 -0
- package/dist/rm-core.js +257 -392
- package/dist/rm-core.min.js +2 -2
- package/dist/types/classes/cache/transaction/TransactionCache.d.ts +54 -157
- package/dist/types/factories/CollectionResourceFactory.d.ts +3 -22
- package/dist/types/factories/ItemEntryFactory.d.ts +3 -5
- package/dist/types/factories/ItemResourceFactory.d.ts +6 -21
- package/dist/types/models/CollectionResource.d.ts +29 -19
- package/dist/types/models/CollectionResourceOptions.d.ts +0 -4
- package/dist/types/models/ItemResource.d.ts +12 -6
- package/dist/types/models/ItemResourceOptions.d.ts +5 -8
- package/dist/types/models/index.d.ts +0 -6
- package/dist/types/types/ItemTypesCollection.d.ts +6 -6
- package/package.json +1 -1
- package/dist/types/models/CollectionEditResource.d.ts +0 -17
- package/dist/types/models/CollectionViewResource.d.ts +0 -7
- package/dist/types/models/EditResource.d.ts +0 -16
- package/dist/types/models/LocalViewResource.d.ts +0 -7
- package/dist/types/models/RemoteViewResource.d.ts +0 -7
- package/dist/types/models/ViewResource.d.ts +0 -8
|
@@ -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
|
-
}
|