eservices-core 1.3.373 → 1.4.2
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.
- package/dist/backend/src/types/action-type.d.ts +0 -51
- package/dist/backend/src/types/auth-type.d.ts +3 -7
- package/dist/backend/src/types/billing.d.ts +0 -1
- package/dist/backend/src/types/communication.d.ts +3 -3
- package/dist/backend/src/types/entity-count-type.d.ts +0 -3
- package/dist/backend/src/types/history-type.d.ts +1 -5
- package/dist/backend/src/types/list-setting-type.d.ts +2 -6
- package/dist/backend/src/types/main.d.ts +14 -26
- package/dist/backend/src/types/metadata-type.d.ts +7 -25
- package/dist/backend/src/types/server-type.d.ts +1 -47
- package/dist/backend/src/types/socket-type.d.ts +1 -39
- package/dist/backend/src/types/usage-context-type.d.ts +0 -4
- package/dist/backend/src/types/wizard-type.d.ts +1 -1
- package/dist/eservices-core.cjs.js +8 -8
- package/dist/eservices-core.es.js +2414 -3998
- package/dist/eservices-core.umd.js +8 -8
- package/dist/frontend/core/classes/ClassMetadata.d.ts +1 -2
- package/dist/frontend/core/classes/Communication.d.ts +0 -1
- package/dist/frontend/core/classes/CoreError.d.ts +0 -1
- package/dist/frontend/core/classes/InterfaceForm.d.ts +2 -3
- package/dist/frontend/core/classes/InterfaceWorker.d.ts +3 -3
- package/dist/frontend/core/classes/List.d.ts +6 -2
- package/dist/frontend/core/classes/ListWorker.d.ts +0 -1
- package/dist/frontend/core/classes/Metadata.d.ts +2 -3
- package/dist/frontend/core/classes/MetadataStore.d.ts +2 -3
- package/dist/frontend/core/classes/NotificationSystem.d.ts +1 -1
- package/dist/frontend/core/classes/StepWorker.d.ts +1 -1
- package/dist/frontend/core/classes/new/List.d.ts +4 -5
- package/dist/frontend/core/classes/new/ListConfig.d.ts +0 -1
- package/dist/frontend/core/classes/new/Table.d.ts +1 -2
- package/dist/frontend/core/classes/table/Table.d.ts +1 -2
- package/dist/frontend/core/classes/table/get-table-row.d.ts +0 -1
- package/dist/frontend/core/config.d.ts +0 -1
- package/dist/frontend/core/errors/action-error.d.ts +0 -1
- package/dist/frontend/core/hooks/use-form-metadata.d.ts +1 -2
- package/dist/frontend/core/index.d.ts +2 -3
- package/dist/frontend/core/internationalization/translate.d.ts +4 -3
- package/dist/frontend/core/new/new-import.d.ts +0 -1
- package/dist/frontend/core/services/action-service.d.ts +0 -1
- package/dist/frontend/core/services/auth-service.d.ts +1 -2
- package/dist/frontend/core/services/billing-service.d.ts +0 -1
- package/dist/frontend/core/services/data-service.d.ts +0 -1
- package/dist/frontend/core/services/history-service.d.ts +0 -1
- package/dist/frontend/core/services/metadata-service.d.ts +0 -1
- package/dist/frontend/core/styles/index.d.ts +0 -1
- package/dist/frontend/core/styles/types.d.ts +8 -8
- package/dist/frontend/core/types/index.d.ts +4 -5
- package/dist/frontend/core/types/metadata-types.d.ts +2 -2
- package/dist/frontend/core/utils/Filter.d.ts +6 -6
- package/dist/frontend/core/utils/GraphQL/index.d.ts +0 -1
- package/dist/frontend/core/utils/add-master-entities-to-search-params.d.ts +0 -1
- package/dist/frontend/core/utils/getPropFromObject.d.ts +0 -1
- package/dist/frontend/core/utils/group-array-by-field.d.ts +1 -1
- package/dist/frontend/core/utils/index.d.ts +0 -1
- package/dist/frontend/core/utils/is-master-entity.d.ts +0 -1
- package/dist/frontend/core/utils/mergeObjects.d.ts +0 -1
- package/dist/frontend/core/utils/values-to-upper-case.d.ts +0 -1
- package/dist/frontend/page/Any.vue.d.ts +2 -0
- package/dist/frontend/page/App.vue.d.ts +2 -0
- package/dist/frontend/page/head-cell.vue.d.ts +8 -0
- package/dist/frontend/src/classes/Communication.d.ts +1 -2
- package/dist/frontend/src/classes/EventBus.d.ts +3 -8
- package/dist/frontend/src/classes/Manager.d.ts +11 -21
- package/dist/frontend/src/classes/Metadata.d.ts +1 -2
- package/dist/frontend/src/classes/NotificationSystem.d.ts +4 -7
- package/dist/frontend/src/config.d.ts +4 -11
- package/dist/frontend/src/constants.d.ts +1 -24
- package/dist/frontend/src/hooks/use-actions.d.ts +11 -40
- package/dist/frontend/src/hooks/use-communication.d.ts +0 -1
- package/dist/frontend/src/hooks/use-form-entity.d.ts +0 -1
- package/dist/frontend/src/hooks/use-list-active-row.d.ts +1 -2
- package/dist/frontend/src/hooks/use-list-download.d.ts +5 -22
- package/dist/frontend/src/hooks/use-list-entity.d.ts +2 -3
- package/dist/frontend/src/hooks/use-list-search.d.ts +1 -2
- package/dist/frontend/src/hooks/use-list-select.d.ts +0 -1
- package/dist/frontend/src/hooks/use-manager-state.d.ts +5 -7
- package/dist/frontend/src/hooks/use-metadata.d.ts +0 -1
- package/dist/frontend/src/hooks/use-shortcut-config.d.ts +0 -1
- package/dist/frontend/src/hooks/use-socket.d.ts +25 -14
- package/dist/frontend/src/hooks/use-usage-context.d.ts +0 -1
- package/dist/frontend/src/hooks/use-wizard.d.ts +10 -7
- package/dist/frontend/src/icons/widget-icon-arrow-up.vue.d.ts +5 -0
- package/dist/frontend/src/icons/widget-icon-keyboard-arrow-down.vue.d.ts +5 -0
- package/dist/frontend/src/icons/widget-icon-triangle.vue.d.ts +7 -0
- package/dist/frontend/src/index.d.ts +15 -50
- package/dist/frontend/src/methods/async-process.d.ts +0 -7
- package/dist/frontend/src/methods/catch-universal.d.ts +0 -1
- package/dist/frontend/src/methods/convert-list-config.d.ts +1 -3
- package/dist/frontend/src/methods/custom-filter-mix.d.ts +0 -1
- package/dist/frontend/src/methods/formatter.d.ts +1 -2
- package/dist/frontend/src/methods/get-cell-name.d.ts +0 -1
- package/dist/frontend/src/methods/get-cell-value.d.ts +0 -1
- package/dist/frontend/src/methods/get-links.d.ts +1 -8
- package/dist/frontend/src/methods/inject-action.d.ts +1 -2
- package/dist/frontend/src/methods/parse-error.d.ts +0 -1
- package/dist/frontend/src/methods/setup-list-row.d.ts +0 -1
- package/dist/frontend/src/methods/table-mock-field.d.ts +0 -2
- package/dist/frontend/src/methods/translate.d.ts +4 -3
- package/dist/frontend/src/methods/universal-client-read.d.ts +1 -2
- package/dist/frontend/src/methods/universal-communication.d.ts +0 -1
- package/dist/frontend/src/methods/universal-entity-count.d.ts +0 -1
- package/dist/frontend/src/methods/universal-entity-create.d.ts +0 -1
- package/dist/frontend/src/methods/universal-entity-delete.d.ts +0 -1
- package/dist/frontend/src/methods/universal-entity-read.d.ts +1 -3
- package/dist/frontend/src/methods/universal-entity-update.d.ts +0 -1
- package/dist/frontend/src/methods/universal-history-read.d.ts +0 -1
- package/dist/frontend/src/methods/universal-list-setting-read.d.ts +1 -1
- package/dist/frontend/src/methods/universal-metadata-field-treat.d.ts +0 -1
- package/dist/frontend/src/methods/universal-metadata-list.d.ts +0 -1
- package/dist/frontend/src/methods/universal-metadata-read.d.ts +0 -1
- package/dist/frontend/src/methods/universal-tool-execute.d.ts +0 -1
- package/dist/frontend/src/methods/universal-tool-read.d.ts +1 -2
- package/dist/frontend/src/methods/universal-usage-context-read.d.ts +0 -1
- package/dist/frontend/src/methods/values-to-upper-case.d.ts +0 -1
- package/dist/frontend/src/methods/wrap-tool-response.d.ts +9 -11
- package/dist/frontend/src/services/auth-service.d.ts +1 -2
- package/dist/frontend/src/services/file-service.d.ts +0 -11
- package/dist/frontend/src/services/history-service.d.ts +0 -1
- package/dist/frontend/src/services/process-wizard-service.d.ts +0 -1
- package/dist/frontend/src/types/action-type.d.ts +31 -8
- package/dist/frontend/src/types/auth-type.d.ts +16 -16
- package/dist/frontend/src/types/client.d.ts +38 -3
- package/dist/frontend/src/types/entity-type.d.ts +11 -11
- package/dist/frontend/src/types/formatter-type.d.ts +1 -1
- package/dist/frontend/src/types/list-type.d.ts +6 -64
- package/dist/frontend/src/types/notification-type.d.ts +1 -1
- package/dist/frontend/src/types/usage-context-type.d.ts +1 -2
- package/dist/frontend/src/types/value-type.d.ts +1 -1
- package/dist/frontend/src/widgets/button/widget-button.vue.d.ts +20 -0
- package/dist/frontend/src/widgets/fast-table/widget-fast-table-button-download-csv.vue.d.ts +9 -0
- package/dist/frontend/src/widgets/fast-table/widget-fast-table-head-cell.vue.d.ts +8 -0
- package/dist/frontend/src/widgets/fast-table/widget-fast-table.vue.d.ts +103 -0
- package/dist/frontend/src/widgets/field/widget-field.vue.d.ts +7 -0
- package/dist/frontend/src/widgets/image/widget-image.vue.d.ts +9 -0
- package/dist/frontend/src/widgets/list/list-head/widget-list-head-cell.vue.d.ts +19 -0
- package/dist/frontend/src/widgets/list/list-head/widget-list-head.vue.d.ts +18 -0
- package/dist/frontend/src/widgets/list/widget-list-row.vue.d.ts +2 -0
- package/dist/frontend/src/widgets/list/widget-list.vue.d.ts +23 -0
- package/dist/frontend/src/widgets/loader/widget-loader.vue.d.ts +5 -0
- package/dist/frontend/src/widgets/modal-list-download/modal-list-download.vue.d.ts +6 -0
- package/dist/frontend/src/widgets/multi-button/widget-multi-button.vue.d.ts +13 -0
- package/dist/frontend/src/widgets/spinner/widget-spinner.vue.d.ts +7 -0
- package/dist/frontend/src/widgets/table/widget-table-form.vue.d.ts +16 -0
- package/dist/frontend/src/widgets/table/widget-table-head-cell.vue.d.ts +5 -0
- package/dist/frontend/src/widgets/table/widget-table-head.vue.d.ts +40 -0
- package/dist/frontend/src/widgets/table/widget-table-row.vue.d.ts +2 -0
- package/dist/frontend/src/widgets/table/widget-table.vue.d.ts +35 -0
- package/dist/frontend/src/widgets/widget-table-panel-filters/filters/widget-filter-entity.vue.d.ts +13 -0
- package/dist/frontend/src/widgets/widget-table-panel-filters/filters/widget-filter-text.vue.d.ts +11 -0
- package/dist/frontend/src/widgets/widget-table-panel-filters/widget-table-panel-filter-item.vue.d.ts +17 -0
- package/dist/frontend/src/widgets/widget-table-panel-filters/widget-table-panel-filters.vue.d.ts +14 -0
- package/dist/icons.eot +0 -0
- package/package.json +1 -1
- package/dist/backend/src/types/batch-type.d.ts +0 -9
- package/dist/backend/src/types/client.d.ts +0 -57
- package/dist/backend/src/types/enum-type.d.ts +0 -13
- package/dist/backend/src/types/print-form-type.d.ts +0 -19
- package/dist/backend/src/types/request-type.d.ts +0 -42
- package/dist/backend/src/types/value-hooks.d.ts +0 -9
- package/dist/backend/src/types/version-type.d.ts +0 -6
- package/dist/frontend/src/classes/ListDataController.d.ts +0 -59
- package/dist/frontend/src/classes/LocalListConfiguration.d.ts +0 -18
- package/dist/frontend/src/classes/ManagerError.d.ts +0 -3
- package/dist/frontend/src/classes/SelectStrategies.d.ts +0 -13
- package/dist/frontend/src/classes/socket/SocketHandler.d.ts +0 -13
- package/dist/frontend/src/classes/socket/SocketMessage.d.ts +0 -21
- package/dist/frontend/src/classes/socket/SocketProgressHandler.d.ts +0 -6
- package/dist/frontend/src/classes/socket/SocketSystem.d.ts +0 -19
- package/dist/frontend/src/classes/socket/SocketValidator.d.ts +0 -12
- package/dist/frontend/src/core-utils/add-field-params-handler.d.ts +0 -7
- package/dist/frontend/src/core-utils/add-list-cell-handler.d.ts +0 -6
- package/dist/frontend/src/core-utils/add-list-row-handler.d.ts +0 -6
- package/dist/frontend/src/core-utils/get-cell-model-value.d.ts +0 -6
- package/dist/frontend/src/core-utils/index.d.ts +0 -15
- package/dist/frontend/src/hooks/use-list-configuration.d.ts +0 -32
- package/dist/frontend/src/hooks/use-list-scroll.d.ts +0 -3
- package/dist/frontend/src/hooks/use-localstorage.d.ts +0 -2
- package/dist/frontend/src/hooks/use-metadata-field.d.ts +0 -7
- package/dist/frontend/src/hooks/use-print-form.d.ts +0 -14
- package/dist/frontend/src/methods/download-document-builder-file.d.ts +0 -6
- package/dist/frontend/src/methods/download-file.d.ts +0 -4
- package/dist/frontend/src/methods/get-entity-label-by-primary-key.d.ts +0 -1
- package/dist/frontend/src/methods/getPrimaryFieldNameForEntity.d.ts +0 -5
- package/dist/frontend/src/methods/load-entity-data-like-options.d.ts +0 -9
- package/dist/frontend/src/methods/load-print-form.d.ts +0 -7
- package/dist/frontend/src/methods/open-blob-file.d.ts +0 -3
- package/dist/frontend/src/methods/socket-process.d.ts +0 -6
- package/dist/frontend/src/methods/universal-batch-delete.d.ts +0 -9
- package/dist/frontend/src/methods/universal-batch-update.d.ts +0 -9
- package/dist/frontend/src/methods/universal-entity-resolve.d.ts +0 -5
- package/dist/frontend/src/methods/universal-enum-read.d.ts +0 -8
- package/dist/frontend/src/methods/universal-mandatory-fields-read.d.ts +0 -8
- package/dist/frontend/src/types/button-selection.types.d.ts +0 -11
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IEntityPrimaryKey } from './main';
|
|
2
|
-
|
|
3
1
|
export interface IToolResponse {
|
|
4
2
|
action: IAction;
|
|
5
3
|
closeHostForm: boolean;
|
|
@@ -7,25 +5,12 @@ export interface IToolResponse {
|
|
|
7
5
|
description: string | null;
|
|
8
6
|
name: string;
|
|
9
7
|
order: number;
|
|
10
|
-
paramDialog: null | IParamDialogBase;
|
|
11
8
|
redirectEntity: string | null;
|
|
12
9
|
requireSave: boolean;
|
|
13
10
|
showOnToolPanel: boolean;
|
|
14
11
|
title: string;
|
|
15
12
|
url: string;
|
|
16
13
|
usageContext?: string;
|
|
17
|
-
showValidationResults?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface IParamDialogBase {
|
|
20
|
-
caption: string;
|
|
21
|
-
info: string;
|
|
22
|
-
name: string;
|
|
23
|
-
params: {
|
|
24
|
-
dataType: string;
|
|
25
|
-
name: string;
|
|
26
|
-
title: string;
|
|
27
|
-
unit: string;
|
|
28
|
-
}[];
|
|
29
14
|
}
|
|
30
15
|
export interface IAction {
|
|
31
16
|
entity: string;
|
|
@@ -50,41 +35,5 @@ export interface IAction {
|
|
|
50
35
|
export interface IToolExecuteParams {
|
|
51
36
|
name: string;
|
|
52
37
|
values: unknown;
|
|
53
|
-
primaryKeys: unknown;
|
|
54
38
|
usageContext?: string;
|
|
55
39
|
}
|
|
56
|
-
export interface IToolTaskParameters {
|
|
57
|
-
/**
|
|
58
|
-
* @description Название тула, для которого читаем параметры
|
|
59
|
-
*/
|
|
60
|
-
toolName: string;
|
|
61
|
-
/**
|
|
62
|
-
* Первичный ключ записи (Id, CatalogId(В основном), Code).
|
|
63
|
-
*/
|
|
64
|
-
masterEntityPrimaryKey?: IEntityPrimaryKey;
|
|
65
|
-
}
|
|
66
|
-
export interface IToolResult {
|
|
67
|
-
affectedEntities?: IAffectedEntity[];
|
|
68
|
-
code: number;
|
|
69
|
-
message: string;
|
|
70
|
-
success: boolean;
|
|
71
|
-
validationEffect?: IValidationEffect;
|
|
72
|
-
}
|
|
73
|
-
export interface IAffectedEntity {
|
|
74
|
-
created: boolean;
|
|
75
|
-
deleted: boolean;
|
|
76
|
-
name: string;
|
|
77
|
-
primaryKey: any;
|
|
78
|
-
updated: boolean;
|
|
79
|
-
}
|
|
80
|
-
export interface IValidationEffectItem {
|
|
81
|
-
message: string;
|
|
82
|
-
ruleName: string;
|
|
83
|
-
statusCode: number;
|
|
84
|
-
statusName: string;
|
|
85
|
-
title: string;
|
|
86
|
-
detail: string[];
|
|
87
|
-
}
|
|
88
|
-
export declare type IValidationEffect = {
|
|
89
|
-
results: IValidationEffectItem[];
|
|
90
|
-
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TokenSet } from 'openid-client';
|
|
1
2
|
export interface IAuthOptions {
|
|
2
3
|
baseURL: string;
|
|
3
4
|
issuerBaseURL: string;
|
|
@@ -15,19 +16,14 @@ export interface IAuthOptions {
|
|
|
15
16
|
* true.
|
|
16
17
|
*/
|
|
17
18
|
useLogoutIdentityServer?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @description Если установлено значение true, то будет использоваться новый метод Logout на web-server:
|
|
20
|
-
* WindowsAccount/Logout2
|
|
21
|
-
*/
|
|
22
|
-
useWindowsLogout?: boolean;
|
|
23
19
|
}
|
|
24
20
|
export interface IAuthClientState {
|
|
21
|
+
codeVerifier: string;
|
|
25
22
|
accessToken: string;
|
|
26
23
|
tokenType: string;
|
|
27
24
|
refreshToken: string;
|
|
28
25
|
expiresAt: number;
|
|
29
|
-
claims: ReturnType<
|
|
26
|
+
claims: ReturnType<TokenSet['claims']>;
|
|
30
27
|
isRequestRunningAt: number;
|
|
31
28
|
tokenSet: any;
|
|
32
|
-
idToken: any;
|
|
33
29
|
}
|
|
@@ -16,8 +16,8 @@ export interface ICommunicationParams {
|
|
|
16
16
|
*/
|
|
17
17
|
entityCatalogId: string;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type ICommunicationCreateParams = ICommunicationParams;
|
|
20
|
+
export type ICommunicationReadParams = ICommunicationParams;
|
|
21
21
|
export interface ICommunicationCreationResult {
|
|
22
22
|
id: number;
|
|
23
23
|
catalogId: string;
|
|
@@ -45,4 +45,4 @@ export interface ICommunicationMessageReadingResult {
|
|
|
45
45
|
userName: string;
|
|
46
46
|
utcCreated: string;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type ICommunicationMessageCreationResult = ICommunicationMessageReadingResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface IHistoryReadParams {
|
|
2
2
|
entity: string;
|
|
3
|
-
|
|
3
|
+
id: number;
|
|
4
4
|
}
|
|
5
5
|
export interface IHistoryResponse {
|
|
6
6
|
entity: string;
|
|
@@ -14,8 +14,6 @@ export interface IHistoryItemResponse {
|
|
|
14
14
|
machineName: string;
|
|
15
15
|
changes: IHistoryChanges[] | null;
|
|
16
16
|
currentValues: IHistoryCurrentValues[];
|
|
17
|
-
userId: number | null;
|
|
18
|
-
userName: string | null;
|
|
19
17
|
}
|
|
20
18
|
export interface IHistoryChanges {
|
|
21
19
|
fieldName: string;
|
|
@@ -35,8 +33,6 @@ export interface IParsedHistoryItemResponse {
|
|
|
35
33
|
utcCreated: string;
|
|
36
34
|
action: "Insert" | "Update";
|
|
37
35
|
machineName: string;
|
|
38
|
-
userId: number | null;
|
|
39
|
-
userName: string | null;
|
|
40
36
|
changes: IParsedHistoryChanges[] | null;
|
|
41
37
|
currentValues: IHistoryCurrentValues[];
|
|
42
38
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface IListSettingReadParams {
|
|
2
2
|
entity: string;
|
|
3
|
-
mark?: string
|
|
3
|
+
mark?: string;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* @description Описание объекта, который получается после обработки.
|
|
@@ -45,16 +45,12 @@ export interface IListOptions {
|
|
|
45
45
|
* @description Строковое обозначение фильтра, которое нужно применить к запросу.
|
|
46
46
|
*/
|
|
47
47
|
filter: string;
|
|
48
|
-
/**
|
|
49
|
-
* @description Убирать повторяющиеся значения
|
|
50
|
-
*/
|
|
51
|
-
distinct: boolean;
|
|
52
48
|
}
|
|
53
49
|
/**
|
|
54
50
|
* @issue 3692
|
|
55
51
|
* @description Пользовательские фильтры, которые нужно добавить в запрос
|
|
56
52
|
*/
|
|
57
|
-
export
|
|
53
|
+
export type IListCustomFilter = string | {
|
|
58
54
|
name: string;
|
|
59
55
|
arguments: Record<string, any>;
|
|
60
56
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ISocketOptions } from './socket-type';
|
|
2
|
-
|
|
3
|
-
export declare type ICustomerRequestInfo = ISocketOptions;
|
|
2
|
+
export type ICustomerRequestInfo = ISocketOptions;
|
|
4
3
|
/**
|
|
5
4
|
* @description Используется как дочерний интерфейс при изменении состояния сущности.
|
|
6
5
|
*/
|
|
@@ -15,12 +14,7 @@ export interface IRequestUpdateResult extends IEntityAffect {
|
|
|
15
14
|
export interface IRequestCreateResult extends IEntityAffect {
|
|
16
15
|
date: string;
|
|
17
16
|
}
|
|
18
|
-
export
|
|
19
|
-
/**
|
|
20
|
-
* @description Первичный ключ, который используется для идентификации записи. Пожалуйста, используйте его во всех сущностях,
|
|
21
|
-
* чтобы легче было в будущем отлаживать.
|
|
22
|
-
*/
|
|
23
|
-
export declare type IEntityPrimaryKey = string | number;
|
|
17
|
+
export type UtcDate = string;
|
|
24
18
|
export interface IUser {
|
|
25
19
|
FullName: string;
|
|
26
20
|
UserName: string;
|
|
@@ -96,46 +90,40 @@ interface ReferenceMetadataField {
|
|
|
96
90
|
*/
|
|
97
91
|
primaryFieldNameOfReferencedEntity: string;
|
|
98
92
|
}
|
|
99
|
-
export
|
|
93
|
+
export type ExtendedMetadataField = MetadataField & Partial<ReferenceMetadataField>;
|
|
100
94
|
export interface NamedCriterion {
|
|
101
95
|
name: string;
|
|
102
96
|
"expression"?: NamedCriterionExpression;
|
|
103
97
|
}
|
|
104
|
-
export
|
|
105
|
-
export
|
|
98
|
+
export type NamedCriterionExpression = EqualCriterionExpression | IncludeCriterionExpression;
|
|
99
|
+
export type MasterNamedCriterion = NamedCriterion & MasterEntityCriterion;
|
|
106
100
|
export interface FieldsCriterion {
|
|
107
101
|
fields: string[];
|
|
108
102
|
}
|
|
109
|
-
export
|
|
103
|
+
export type MasterFieldsCriterion = FieldsCriterion & MasterEntityCriterion;
|
|
110
104
|
export interface MasterEntityCriterion {
|
|
111
105
|
masterEntity: string;
|
|
112
106
|
}
|
|
113
107
|
/**
|
|
114
108
|
* @description Тип используется для указателя в expression на поля в сущности.
|
|
115
109
|
*/
|
|
116
|
-
export
|
|
110
|
+
export type CriterionExpressionField = string;
|
|
117
111
|
/**
|
|
118
112
|
* @description Тип используется для значения в выражениях критериев.
|
|
119
113
|
*/
|
|
120
|
-
export
|
|
121
|
-
export
|
|
114
|
+
export type CriterionExpressionValue = CriterionExpressionField | RefCriterionItem;
|
|
115
|
+
export type RefCriterionItem = {
|
|
122
116
|
value: string | number | null;
|
|
123
117
|
};
|
|
124
|
-
export
|
|
118
|
+
export type FieldCriterionItem = {
|
|
125
119
|
field: string;
|
|
126
120
|
};
|
|
127
|
-
export
|
|
128
|
-
export
|
|
129
|
-
export
|
|
121
|
+
export type CriterionItem = string | NamedCriterion | MasterNamedCriterion | FieldsCriterion | MasterFieldsCriterion;
|
|
122
|
+
export type CriterionGroup = (CriterionItem | CriterionItem[])[];
|
|
123
|
+
export type EqualCriterionExpression = {
|
|
130
124
|
equal: [field: CriterionExpressionField, value: CriterionExpressionValue] | [entityName: string, fieldName: CriterionExpressionField, equalValue: CriterionExpressionValue];
|
|
131
125
|
};
|
|
132
|
-
export
|
|
126
|
+
export type IncludeCriterionExpression = {
|
|
133
127
|
include: [entityName: string, filters: Record<CriterionExpressionField, CriterionExpressionValue>];
|
|
134
128
|
};
|
|
135
|
-
export declare enum StatusStore {
|
|
136
|
-
NotInit = 0,
|
|
137
|
-
Loading = 1,
|
|
138
|
-
Failed = 2,
|
|
139
|
-
Done = 3
|
|
140
|
-
}
|
|
141
129
|
export {};
|
|
@@ -8,10 +8,9 @@ export interface IExtendedMetadata extends IMetadata {
|
|
|
8
8
|
*/
|
|
9
9
|
fieldNameForLabel?: string;
|
|
10
10
|
/**
|
|
11
|
-
* @description
|
|
12
|
-
* Под СТАРАТЬСЯ подразумевается то, что не все методы работают с CatalogId, а до сих пор принимают Id.
|
|
11
|
+
* @description Значение идентификатора сущности для котороый выбираются метаданные.
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
metadataByEntityId?: IEntityId;
|
|
15
14
|
/**
|
|
16
15
|
* @description Тестовая переменная, хранящая в себе набор фильтров, которые нужно применить к сущности.
|
|
17
16
|
*/
|
|
@@ -20,17 +19,13 @@ export interface IExtendedMetadata extends IMetadata {
|
|
|
20
19
|
* @description Расширенный набор(массив) полей
|
|
21
20
|
*/
|
|
22
21
|
fields: IExtendedMetadataField[];
|
|
23
|
-
/**
|
|
24
|
-
* @description Имеется ли в данной сущности CatalogId (Лучше использовать constants CATALOG_NAME_FIELD)
|
|
25
|
-
*/
|
|
26
|
-
hasCatalogId: boolean;
|
|
27
22
|
/**
|
|
28
23
|
* @description Расширенный объект полей, для удобного доступа по имени
|
|
29
24
|
*/
|
|
30
25
|
fieldsByName: Record<string, IExtendedMetadataField>;
|
|
31
26
|
}
|
|
32
|
-
export
|
|
33
|
-
export
|
|
27
|
+
export type IMasterEntity = [string, IEntityId];
|
|
28
|
+
export type IEntityId = number;
|
|
34
29
|
export interface IMetadata {
|
|
35
30
|
auditedCreation: boolean;
|
|
36
31
|
auditedModification: boolean;
|
|
@@ -66,7 +61,7 @@ export interface IMetadataField {
|
|
|
66
61
|
canSet: boolean;
|
|
67
62
|
canSetForEdit: boolean;
|
|
68
63
|
canSetForNew: boolean;
|
|
69
|
-
dataType: "Entity" | "Integer" | "Guid" | "String" | "Decimal" | "DateTime" | "List" | "Boolean"
|
|
64
|
+
dataType: "Entity" | "Integer" | "Guid" | "String" | "Decimal" | "DateTime" | "List" | "Boolean";
|
|
70
65
|
description: boolean;
|
|
71
66
|
displayName: string;
|
|
72
67
|
entityEnum: null | string;
|
|
@@ -87,7 +82,7 @@ export interface IMetadataField {
|
|
|
87
82
|
*/
|
|
88
83
|
relatedLocalFieldReferencedEntity: null | string;
|
|
89
84
|
required: boolean;
|
|
90
|
-
type: "Reference" | "ValueType" | "Aggregate" | "Owned"
|
|
85
|
+
type: "Reference" | "ValueType" | "Aggregate" | "Owned";
|
|
91
86
|
valueUnit: null | string;
|
|
92
87
|
}
|
|
93
88
|
interface IReferenceMetadataField {
|
|
@@ -97,21 +92,8 @@ interface IReferenceMetadataField {
|
|
|
97
92
|
* сущность.
|
|
98
93
|
*/
|
|
99
94
|
primaryFieldNameOfReferencedEntity: string;
|
|
100
|
-
/**
|
|
101
|
-
* @description Какое поле внутри объекта нужно использовать в качестве метки. Устанавливает есть для ReferenceEntity.
|
|
102
|
-
*/
|
|
103
|
-
fieldNameForLabel: string;
|
|
104
|
-
/**
|
|
105
|
-
* @description Имеется ли в данной сущности CatalogId (Лучше использовать constants CATALOG_NAME_FIELD)
|
|
106
|
-
*/
|
|
107
|
-
hasCatalogId: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* @description Если в сущности есть Id и CatalogId, то для такой сущности нужно СТАРАТЬСЯ использовать CatalogId.
|
|
110
|
-
* Под СТАРАТЬСЯ подразумевается то, что не все методы работают с CatalogId, а до сих пор принимают Id.
|
|
111
|
-
*/
|
|
112
|
-
useCatalogInsteadId: boolean;
|
|
113
95
|
}
|
|
114
|
-
export
|
|
96
|
+
export type IExtendedMetadataField = IMetadataField & Partial<IReferenceMetadataField>;
|
|
115
97
|
export interface IMetadataFieldTreatmentParams {
|
|
116
98
|
entity: string;
|
|
117
99
|
fieldName: string | string[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IAuthOptions } from './auth-type';
|
|
2
2
|
import { IAMQPOptions } from './amqp-type';
|
|
3
|
-
|
|
4
3
|
export interface IServerParams {
|
|
5
4
|
/**
|
|
6
5
|
* @description Версия текущей сборки. Версия сервера складывается из версии Core и текущей реализации. Если
|
|
@@ -15,10 +14,6 @@ export interface IServerParams {
|
|
|
15
14
|
* @description Тип сервера. "back" For Close Office (Back Office). "front" For Open Office (Front Office).
|
|
16
15
|
*/
|
|
17
16
|
type: ServerType;
|
|
18
|
-
/**
|
|
19
|
-
* @description Название сервера для удобного отличия между веб-серверами.
|
|
20
|
-
*/
|
|
21
|
-
name: string;
|
|
22
17
|
/**
|
|
23
18
|
* @description Полный URL AppServer.
|
|
24
19
|
*/
|
|
@@ -76,35 +71,8 @@ export interface IServerParams {
|
|
|
76
71
|
* сущности разом. Используется в MetadataService.readAll
|
|
77
72
|
*/
|
|
78
73
|
testAvailableEntities?: string[];
|
|
79
|
-
/**
|
|
80
|
-
* @description Если установлено значение в true, то к части
|
|
81
|
-
*/
|
|
82
|
-
usePersonFilter?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* @description Путь до папки с логами, относительно root проекта (пока что).
|
|
85
|
-
*/
|
|
86
|
-
logPath?: string;
|
|
87
|
-
/**
|
|
88
|
-
* @description Массив обработчиков для файлов или папок. Вызывается в методе useConfig.
|
|
89
|
-
*/
|
|
90
|
-
arrayDataBinding?: {
|
|
91
|
-
type: "file";
|
|
92
|
-
elementPath: string;
|
|
93
|
-
handler: (data: unknown) => void;
|
|
94
|
-
defaultValue?: string;
|
|
95
|
-
}[];
|
|
96
|
-
/**
|
|
97
|
-
* @description путь до папки с переводами
|
|
98
|
-
*/
|
|
99
|
-
pathToInternationalizationFolder: string;
|
|
100
|
-
limitationPerSocket: number;
|
|
101
|
-
timeoutInSecondOfRequestLimitation: number;
|
|
102
|
-
}
|
|
103
|
-
export declare enum officeType {
|
|
104
|
-
front = "front",
|
|
105
|
-
back = "back"
|
|
106
74
|
}
|
|
107
|
-
export
|
|
75
|
+
export type ServerType = 'back' | 'front';
|
|
108
76
|
export interface IServerSession {
|
|
109
77
|
secret: string;
|
|
110
78
|
resave: boolean;
|
|
@@ -122,18 +90,4 @@ export interface IBasicServerConfiguration {
|
|
|
122
90
|
[name: string]: any;
|
|
123
91
|
}[];
|
|
124
92
|
dateTimeFormat: string;
|
|
125
|
-
/**
|
|
126
|
-
* @description Массив сущностей, которые являются ссылочными. Именно полагаясь на этот массив происходит
|
|
127
|
-
* обработка таких ячеек, как Type, Operation, Target и т.д.
|
|
128
|
-
*/
|
|
129
|
-
linkedEntities: IEntityName[];
|
|
130
|
-
/**
|
|
131
|
-
* @description Строковое значение, которое будет использоваться в секции Communication, чтобы скрыть истинное
|
|
132
|
-
* имя officer. То есть все сообщения от BACK office будет приходить как бы от установленного имени.
|
|
133
|
-
* @example Для CST проекта использовалось "CST Agent"
|
|
134
|
-
* @task 4160
|
|
135
|
-
*/
|
|
136
|
-
displayBackOfficeUserName: string;
|
|
137
|
-
[name: string]: unknown;
|
|
138
93
|
}
|
|
139
|
-
export declare type IEntityName = string;
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { default as CustomerConfigurationStore } from '../store/customer-configuration-store';
|
|
3
|
-
|
|
4
|
-
export declare type ISocketEventHandler = ((options: ICustomerRequestInfo, data: unknown, requestUtils?: Partial<ISocketUtils>) => any);
|
|
5
|
-
export interface ISocketUtils {
|
|
6
|
-
emit: (eventName: string, data: any) => void;
|
|
7
|
-
/**
|
|
8
|
-
* @description Функция, которую можно запустить для вызова другого события. Это удобно, например, для пакетной
|
|
9
|
-
* загрузки. Когда в одном процессе сосредоточено несколько других.
|
|
10
|
-
* @param eventName Название события, которое необходимо выполнить. Событие должно быть заранее зарегистрировано на
|
|
11
|
-
* web-server в core-socket-server.
|
|
12
|
-
* @param data Данные, которые будут переданы в событие.
|
|
13
|
-
*/
|
|
14
|
-
execute: (eventName: string, data: any) => Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* @description Ссылка на экземпляр класса, которы хранит и работы с конфигурацией веб-сервера.
|
|
17
|
-
*/
|
|
18
|
-
customerConfigurationStore: CustomerConfigurationStore;
|
|
19
|
-
[name: string]: any;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
1
|
+
export type ISocketEventHandler = ((options: ISocketOptions, data: unknown) => any);
|
|
24
2
|
export interface ISocketOptions {
|
|
25
3
|
/**
|
|
26
4
|
* @description Целый AccessToken, который нужно использовать в запросах на AppServer.
|
|
@@ -42,18 +20,6 @@ export interface ISocketOptions {
|
|
|
42
20
|
* @description Идентификатор персоны.
|
|
43
21
|
*/
|
|
44
22
|
personId: number;
|
|
45
|
-
/**
|
|
46
|
-
* @description Название события в котором вызывается обработчик
|
|
47
|
-
*/
|
|
48
|
-
event?: string;
|
|
49
|
-
/**
|
|
50
|
-
* @description Уникальный идентификатор события
|
|
51
|
-
*/
|
|
52
|
-
requestId?: number;
|
|
53
|
-
/**
|
|
54
|
-
* @description Метка языка запроса
|
|
55
|
-
*/
|
|
56
|
-
lang?: string;
|
|
57
23
|
}
|
|
58
24
|
export interface ISocketMessage {
|
|
59
25
|
/**
|
|
@@ -79,8 +45,4 @@ export interface ISocketMessage {
|
|
|
79
45
|
* @description Строковое значение URL, с которого было отправлено сообщение. Используется для вычисления UsageContext.
|
|
80
46
|
*/
|
|
81
47
|
url: string;
|
|
82
|
-
/**
|
|
83
|
-
* @description Строковая метка языка на котором ожидается ответ
|
|
84
|
-
*/
|
|
85
|
-
lang?: string;
|
|
86
48
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Metadata } from './main';
|
|
2
|
-
|
|
3
2
|
export interface IUsageContextResponse extends Metadata {
|
|
4
3
|
_filter: string;
|
|
5
4
|
}
|
|
@@ -16,6 +15,3 @@ export interface IFieldUsageContext {
|
|
|
16
15
|
"canGet": boolean;
|
|
17
16
|
"canSet": boolean;
|
|
18
17
|
}
|
|
19
|
-
export interface IUsageContextReadMandatoryFieldsParams {
|
|
20
|
-
primaryKey: string | number;
|
|
21
|
-
}
|
|
@@ -75,7 +75,7 @@ export interface IWizardProcessResponse {
|
|
|
75
75
|
token: string;
|
|
76
76
|
validationResults: IWizardValidationItem[];
|
|
77
77
|
}
|
|
78
|
-
export
|
|
78
|
+
export type IWizardFixedProcessResponse = Omit<IWizardProcessResponse, 'createdEntites'> & {
|
|
79
79
|
createdEntities: IWizardProcessResponse['createdEntites'];
|
|
80
80
|
};
|
|
81
81
|
export interface IWizardValidationItem {
|