@rentman/rm-core 65.0.0-RM4-45884 → 65.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.
|
@@ -43,7 +43,7 @@ export declare abstract class ApiFormatter {
|
|
|
43
43
|
* Compares the given fields, returns `true` when the fields are equal
|
|
44
44
|
*/
|
|
45
45
|
static compareFields<ColumnType extends ApiEnumApiType>(columnType: ColumnType, first?: ApiEnumApiTypeToTsTypeMap[ColumnType], second?: ApiEnumApiTypeToTsTypeMap[ColumnType]): boolean;
|
|
46
|
-
static compareFloats(a: number, b: number
|
|
46
|
+
static compareFloats(a: number, b: number): boolean;
|
|
47
47
|
static compareMomentObjects(first: moment.Moment, second: moment.Moment): boolean;
|
|
48
48
|
static compareDurations(first: moment.Duration, second: moment.Duration): boolean;
|
|
49
49
|
static formatResponseValue(columnType: string, value: any): any;
|
|
@@ -114,14 +114,6 @@ export interface SocketMessageBase {
|
|
|
114
114
|
messageType: string;
|
|
115
115
|
inResponse: boolean;
|
|
116
116
|
}
|
|
117
|
-
export interface SocketMessageMassUpdate<ItemTypeType extends ApiItemType> extends SocketMessageBase {
|
|
118
|
-
messageType: 'event';
|
|
119
|
-
body: {
|
|
120
|
-
itemType: ItemTypeType;
|
|
121
|
-
eventType: 'massUpdate';
|
|
122
|
-
items: Pick<SocketUpdatedItems, ItemTypeType>;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
117
|
export interface SocketMessageCreate<ItemTypeType extends ApiItemType> extends SocketMessageBase {
|
|
126
118
|
messageType: 'event';
|
|
127
119
|
body: {
|
|
@@ -163,7 +155,7 @@ export type SocketMessageValuesTuple<ItemTypeType extends ApiItemType, ColumnIds
|
|
|
163
155
|
parent: EntryParent | null;
|
|
164
156
|
values: FieldMap<ItemTypeType, ColumnIds>;
|
|
165
157
|
};
|
|
166
|
-
export type SocketMessage<ItemTypeType extends ApiItemType> = SocketMessageCreate<ItemTypeType> | SocketMessageUpdate<ItemTypeType> | SocketMessageLinkTo<ItemTypeType> | SocketMessageDelete
|
|
158
|
+
export type SocketMessage<ItemTypeType extends ApiItemType> = SocketMessageCreate<ItemTypeType> | SocketMessageUpdate<ItemTypeType> | SocketMessageLinkTo<ItemTypeType> | SocketMessageDelete;
|
|
167
159
|
export type ItemResourcesItemTypeMap = {
|
|
168
160
|
[ItemTypeType in ApiItemType]?: ItemResource<ItemTypeType>[];
|
|
169
161
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rentman/rm-core",
|
|
3
|
-
"version": "65.0.0
|
|
3
|
+
"version": "65.0.0",
|
|
4
4
|
"description": "Rentman core functionalities",
|
|
5
5
|
"main": "./dist/rm-core.js",
|
|
6
6
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/core": "^20",
|
|
37
|
-
"@rentman/backend-types": "4.
|
|
37
|
+
"@rentman/backend-types": ">=4.818.0-28-gc3d424afbb",
|
|
38
38
|
"moment": "^2.30.1",
|
|
39
39
|
"rxjs": "^7"
|
|
40
40
|
},
|