eservices-core 1.0.405 → 1.0.407

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.
@@ -1,4 +1,29 @@
1
- import Form from "./Form";
2
- export default class Communication extends Form {
3
- constructor(props: any);
1
+ import EventEmitter from "jenesius-event-emitter";
2
+ export default class Communication extends EventEmitter {
3
+ /**
4
+ * @description UniqID of Talk
5
+ */
6
+ id: number;
7
+ constructor(talkId: number);
8
+ read: () => any;
9
+ sendMessage(text: string): Promise<{
10
+ id: string;
11
+ catalogId: string;
12
+ }>;
13
+ static checkAndGenerate(data: any): Promise<{
14
+ id: number;
15
+ }>;
4
16
  }
17
+ export declare function useCommunication(communication: Communication): {
18
+ array: {
19
+ appName: "SCP" | "BAP";
20
+ catalogId: string;
21
+ content: string;
22
+ id: number;
23
+ personId: number;
24
+ personName: string;
25
+ userId: number;
26
+ userName: string;
27
+ utcCreated: string;
28
+ }[];
29
+ };
@@ -1,4 +1,4 @@
1
- import Form from "./Form";
1
+ import { Form } from "jenesius-vue-form";
2
2
  import { ListChunker } from "../types";
3
3
  import Table from "./Table";
4
4
  export default class CoreError extends Error {
@@ -6,6 +6,10 @@ export default class CoreError extends Error {
6
6
  id: number;
7
7
  static ID: number;
8
8
  constructor(message: string, details?: any);
9
+ /**
10
+ * @description Не удалось найти родительскую форму. Обычно ошибка используется при вызове Form.getParentForm();
11
+ * */
12
+ static ParentFormNotFound(): CoreError;
9
13
  /**
10
14
  * ОДИН ИЗ ЭЛЕМЕНТОВ, КОТОРЫЙ ПЫТАЕТСЯ ПОДПИСАТЬСЯ НА ФОРМУ
11
15
  * НЕ ИМЕЕТ ПАРАМЕТРА NAME.
package/dist/index.d.ts CHANGED
@@ -9,9 +9,9 @@ import { Values } from "./types";
9
9
  import Icon from "./widgets/icons/Icon.vue";
10
10
  import { IListCell, IListConfig, IFilterConfig, ISortConfig } from "./classes/List";
11
11
  import { ICustomerContext } from "./classes/ApplicationManager";
12
+ import { ICommunicationMessage } from "./services/communication-service";
12
13
  import { setupSocket, useSocket } from "./socket/use-socket";
13
14
  import WidgetBreadcrumbs from "./widgets/breadcrumbs/widget-breadcrumbs.vue";
14
- import WidgetCommunication from "./widgets/communication/widget-communication.vue";
15
15
  import WidgetList from "./widgets/list/widget-list.vue";
16
16
  import WidgetSection from "./widgets/section/widget-section.vue";
17
17
  import WidgetSpinner from "./widgets/spinner/WidgetSpinner.vue";
@@ -40,11 +40,13 @@ import ProcessWrap from "./classes/ProcessWrap";
40
40
  import { ApplicationManager, Manager } from "./classes/ApplicationManager";
41
41
  import NotificationSystem from "./classes/NotificationSystem";
42
42
  import List from "./classes/List";
43
+ import Communication from "./classes/Communication";
43
44
  import { clickOutside, requestHandler } from "./utils";
44
45
  import valuesToUpperCase from "./utils/values-to-upper-case";
45
46
  import { prettyDate, prettyDateWithTime } from "./utils/prettyDate";
46
47
  import Filter from "./utils/Filter";
47
48
  import staticLink from "./utils/static-link";
49
+ import groupArrayByField from "./utils/group-array-by-field";
48
50
  import useFormMetadata from "./hooks/use-form-metadata";
49
51
  import useFormAction from "./hooks/use-form-action";
50
52
  import useFormLabel from "./hooks/use-form-label";
@@ -52,6 +54,7 @@ import useFormRequestData from "./hooks/use-form-request-data";
52
54
  import { useListFilter, useListOrder, useListState } from "./classes/List";
53
55
  import useCustomerState from "./hooks/use-customer-state";
54
56
  import { useTableRequest, useTableState } from "./classes/table/Table";
57
+ import { useCommunication } from "./classes/Communication";
55
58
  export {
56
59
  /**
57
60
  * @deprecated
@@ -61,16 +64,16 @@ clickOutside,
61
64
  * @deprecated
62
65
  * */
63
66
  requestHandler, useSocket, setupSocket };
64
- export { ApplicationManager, Manager, NotificationSystem, Table, CoreError, List, ProcessWrap, ListCell };
67
+ export { ApplicationManager, Manager, NotificationSystem, Table, CoreError, List, ProcessWrap, ListCell, Communication };
65
68
  export { fileService, processWizardService, viewService, authService, dataService, communicationService, metadataService, invitationService };
66
69
  /**
67
70
  * HOOKS
68
71
  * */
69
- export { useFormMetadata, useFormAction, useFormLabel, useFormRequestData, useListFilter, useListOrder, useListState, useCustomerState, useTableState, useTableRequest };
72
+ export { useFormMetadata, useFormAction, useFormLabel, useFormRequestData, useListFilter, useListOrder, useListState, useCustomerState, useTableState, useTableRequest, useCommunication };
70
73
  /**
71
74
  * All components binding with VueComponents must have name started with Widget.
72
75
  * */
73
- export { WidgetNotificationSystem, WidgetForm, ModalValidation, WidgetTable, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection, WidgetImage, WidgetButton, WidgetNotFound, Icon as WidgetIcon, WidgetCard, WidgetWizard, WidgetMultiButton, WidgetShadowForm };
76
+ export { WidgetNotificationSystem, WidgetForm, ModalValidation, WidgetTable, WidgetSpinner, WidgetBreadcrumbs, WidgetList, WidgetSection, WidgetImage, WidgetButton, WidgetNotFound, Icon as WidgetIcon, WidgetCard, WidgetWizard, WidgetMultiButton, WidgetShadowForm };
74
77
  declare const utils: {
75
78
  clickOutside: typeof _utils.clickOutside;
76
79
  requestHandler: typeof _utils.requestHandler;
@@ -79,12 +82,13 @@ declare const utils: {
79
82
  prettyDateWithTime: typeof prettyDateWithTime;
80
83
  Filter: typeof Filter;
81
84
  staticLink: typeof staticLink;
85
+ groupArrayByField: typeof groupArrayByField;
82
86
  };
83
87
  export { utils };
84
88
  /**
85
89
  * Interfaces
86
90
  * */
87
- export { IListCell, IListConfig, IFilterConfig, ISortConfig, ICustomerContext };
91
+ export { IListCell, IListConfig, IFilterConfig, ISortConfig, ICustomerContext, ICommunicationMessage };
88
92
  declare const _default: {
89
93
  services: {
90
94
  authService: typeof authService;