@rentman/rm-core 65.0.0 → 65.0.1-RM4-45884

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): boolean;
46
+ static compareFloats(a: number, b: number, epsilonPrecision?: 'float' | 'double'): 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,6 +114,14 @@ 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
+ }
117
125
  export interface SocketMessageCreate<ItemTypeType extends ApiItemType> extends SocketMessageBase {
118
126
  messageType: 'event';
119
127
  body: {
@@ -155,7 +163,7 @@ export type SocketMessageValuesTuple<ItemTypeType extends ApiItemType, ColumnIds
155
163
  parent: EntryParent | null;
156
164
  values: FieldMap<ItemTypeType, ColumnIds>;
157
165
  };
158
- export type SocketMessage<ItemTypeType extends ApiItemType> = SocketMessageCreate<ItemTypeType> | SocketMessageUpdate<ItemTypeType> | SocketMessageLinkTo<ItemTypeType> | SocketMessageDelete;
166
+ export type SocketMessage<ItemTypeType extends ApiItemType> = SocketMessageCreate<ItemTypeType> | SocketMessageUpdate<ItemTypeType> | SocketMessageLinkTo<ItemTypeType> | SocketMessageDelete | SocketMessageMassUpdate<ItemTypeType>;
159
167
  export type ItemResourcesItemTypeMap = {
160
168
  [ItemTypeType in ApiItemType]?: ItemResource<ItemTypeType>[];
161
169
  };
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.1-RM4-45884",
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.818.0-28-gc3d424afbb",
37
+ "@rentman/backend-types": "4.853.0-48-gdec0e2bd1e",
38
38
  "moment": "^2.30.1",
39
39
  "rxjs": "^7"
40
40
  },