@rentman/rm-core 1.0.21 → 1.0.22

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.
@@ -14,7 +14,6 @@ export declare class EditResource extends ItemResource {
14
14
  private collectionHandler;
15
15
  private errorHandler;
16
16
  private promiseService;
17
- fields: any;
18
17
  localCopies: any[];
19
18
  transactions: number;
20
19
  hasChanges: boolean;
@@ -2,6 +2,5 @@ import ItemEntryService from '../classes/ItemEntryService';
2
2
  import ItemEntry from "./ItemEntry";
3
3
  import ItemResource from "./ItemResource";
4
4
  export declare class ViewResource extends ItemResource {
5
- fields: any;
6
5
  constructor(itemEntryService: ItemEntryService, entry: ItemEntry, options: any);
7
6
  }
@@ -0,0 +1,52 @@
1
+ import ItemResource from '../models/ItemResource';
2
+ import CollectionResource from '../models/CollectionResource';
3
+ import ItemEntry from '../models/ItemEntry';
4
+ import CollectionEntry from '../models/CollectionEntry';
5
+ import { ENTRY_STATUS } from '../constants';
6
+ export declare type ItemResourceItemIdMap = {
7
+ [itemId: number]: ItemResource;
8
+ };
9
+ export declare type ItemResourceItemTypeMap = {
10
+ [itemType: string]: ItemResource;
11
+ };
12
+ export declare type ItemEntryEntryStatusMap = {
13
+ [entryStatus: string]: ItemEntry[];
14
+ };
15
+ export declare type CollectionEntryBatchStatusMap = {
16
+ [status: string]: CollectionEntryParentIdMap;
17
+ };
18
+ export declare type CollectionEntryParentIdMap = {
19
+ [parentId: number]: CollectionEntry;
20
+ };
21
+ export declare type CollectionEntryItemTypeMap = {
22
+ [itemType: string]: CollectionEntry[];
23
+ };
24
+ export declare type CollectionResourceParentIdMap = {
25
+ [parentId: number]: CollectionResource;
26
+ };
27
+ export interface ApiTemplate {
28
+ fields: any;
29
+ columns: any;
30
+ response: any;
31
+ responseColumns: any;
32
+ }
33
+ export declare type TemplateResponseItemEntryMap = {
34
+ main: ItemEntry;
35
+ linked: TemplateResponseLinkedItemEntryMap[];
36
+ };
37
+ export declare type TemplateResponseLinkedItemEntryMap = {
38
+ itemType: string;
39
+ itemEntries: {
40
+ [itemType: string]: ItemEntry[];
41
+ };
42
+ };
43
+ export declare type ApiTemplateItemTypeMap = {
44
+ [itemType: string]: ApiTemplate;
45
+ };
46
+ export declare type ItemTypeMap = {
47
+ [itemType: string]: any;
48
+ };
49
+ export declare type EntryStatus<T> = {
50
+ entry: T;
51
+ status: ENTRY_STATUS;
52
+ };