eservices-core 1.0.430 → 1.0.432

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.
@@ -6,7 +6,7 @@ export default class Communication extends EventEmitter {
6
6
  id: number;
7
7
  constructor(talkId: number);
8
8
  read: () => any;
9
- sendMessage(text: string): Promise<import("../../../types/communication").IResultCreatingCommunicationMessage>;
9
+ sendMessage(text: string): Promise<import("../../../backend/src/types/communication").IResultCreatingCommunicationMessage>;
10
10
  static checkAndGenerate(data: any): Promise<{
11
11
  id: number;
12
12
  }>;
@@ -80,6 +80,8 @@ export interface IReadParams {
80
80
  fields?: string[];
81
81
  order?: ISortConfig;
82
82
  filter?: string;
83
+ limit?: number;
84
+ offset?: number;
83
85
  }
84
86
  export interface ISortConfig {
85
87
  name: string;
@@ -1,4 +1,4 @@
1
- import { IResultCreatingCommunication, IResultCreatingCommunicationMessage, IResultReadCommunication, IResultReadCommunicationMessage } from "../../../types/communication";
1
+ import { IResultCreatingCommunication, IResultCreatingCommunicationMessage, IResultReadCommunication, IResultReadCommunicationMessage } from "../../../backend/src/types/communication";
2
2
  export default class communicationService {
3
3
  static url: string;
4
4
  static create(data: CommunicationCreateParams): Promise<IResultCreatingCommunication>;
@@ -1,5 +1,5 @@
1
1
  import { ValuesInterface } from "../types";
2
- import { IRequestCreateResult, IRequestUpdateResult } from "../../../types/main";
2
+ import { IRequestCreateResult, IRequestUpdateResult } from "../../../backend/src/types/main";
3
3
  export default class dataService {
4
4
  static anonymousGetList<T>(entity: string): Promise<T[]>;
5
5
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.430
2
+ * eservices-core v1.0.432
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -3110,6 +3110,10 @@ class List$1 extends EventEmitter {
3110
3110
  options.fields = ReadParams.fields;
3111
3111
  if (ReadParams.filter)
3112
3112
  options.filter = ReadParams.filter;
3113
+ if (ReadParams.limit)
3114
+ options.limit = ReadParams.limit;
3115
+ if (ReadParams.offset)
3116
+ options.limit = ReadParams.offset;
3113
3117
  return dataService.getList(this.name, options)
3114
3118
  .then(v => this.array = v)
3115
3119
  .then(() => this.emit(List$1.EVENT_DATA, this.array))
@@ -3554,6 +3558,10 @@ class List extends EventEmitter {
3554
3558
  cellValue = prettyDate(typeof cellValue === "string" ? cellValue : null);
3555
3559
  break;
3556
3560
  }
3561
+ case "dateWithTime": {
3562
+ cellValue = prettyDateWithTime(typeof cellValue === "string" ? cellValue : null);
3563
+ break;
3564
+ }
3557
3565
  }
3558
3566
  /**
3559
3567
  * Установка обычного значения
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.430",
3
+ "version": "1.0.432",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {