eservices-core 1.3.91 → 1.3.93
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 +33 -33
- package/dist/backend/src/types/amqp-type.d.ts +28 -28
- package/dist/backend/src/types/auth-type.d.ts +24 -24
- package/dist/backend/src/types/billing.d.ts +23 -23
- package/dist/backend/src/types/communication.d.ts +48 -48
- package/dist/backend/src/types/history-type.d.ts +41 -0
- package/dist/backend/src/types/list-setting-type.d.ts +19 -19
- package/dist/backend/src/types/main.d.ts +138 -160
- package/dist/backend/src/types/metadata-type.d.ts +77 -76
- package/dist/backend/src/types/server-type.d.ts +55 -55
- package/dist/backend/src/types/socket-type.d.ts +2 -0
- package/dist/backend/src/types/usage-context-type.d.ts +17 -17
- package/dist/backend/src/types/validation.d.ts +14 -14
- package/dist/eservices-core.cjs.js +5 -5
- package/dist/eservices-core.es.js +1330 -1546
- package/dist/eservices-core.umd.js +6 -6
- package/dist/frontend/core/classes/Action.d.ts +3 -3
- package/dist/frontend/core/classes/ApplicationManager.d.ts +104 -104
- package/dist/frontend/core/classes/ClassMetadata.d.ts +32 -32
- package/dist/frontend/core/classes/Communication.d.ts +27 -27
- package/dist/frontend/core/classes/CoreError.d.ts +44 -44
- package/dist/frontend/core/classes/InterfaceForm.d.ts +106 -106
- package/dist/frontend/core/classes/InterfaceWorker.d.ts +15 -15
- package/dist/frontend/core/classes/List.d.ts +102 -102
- package/dist/frontend/core/classes/ListWorker.d.ts +2 -2
- package/dist/frontend/core/classes/Metadata.d.ts +51 -51
- package/dist/frontend/core/classes/MetadataStore.d.ts +25 -25
- package/dist/frontend/core/classes/NotificationSystem.d.ts +54 -54
- package/dist/frontend/core/classes/ProcessWrap.d.ts +9 -9
- package/dist/frontend/core/classes/StepWorker.d.ts +9 -9
- package/dist/frontend/core/classes/new/List.d.ts +205 -205
- package/dist/frontend/core/classes/new/ListConfig.d.ts +26 -26
- package/dist/frontend/core/classes/new/Table.d.ts +27 -27
- package/dist/frontend/core/classes/table/Table.d.ts +70 -70
- package/dist/frontend/core/classes/table/get-table-row.d.ts +8 -8
- package/dist/frontend/core/config.d.ts +16 -16
- package/dist/frontend/core/errors/action-error.d.ts +3 -3
- package/dist/frontend/core/errors/communication-error.d.ts +7 -7
- package/dist/frontend/core/errors/wrap-error.d.ts +3 -3
- package/dist/frontend/core/hooks/use-form-action.d.ts +39 -39
- package/dist/frontend/core/hooks/use-form-metadata.d.ts +10 -10
- package/dist/frontend/core/hooks/use-wizard.d.ts +49 -49
- package/dist/frontend/core/index.d.ts +57 -66
- package/dist/frontend/core/init.d.ts +1 -1
- package/dist/frontend/core/internationalization/translate.d.ts +14 -14
- package/dist/frontend/core/new/new-import.d.ts +3 -3
- package/dist/frontend/core/services/FileService.d.ts +7 -7
- package/dist/frontend/core/services/action-service.d.ts +36 -36
- package/dist/frontend/core/services/auth-service.d.ts +76 -76
- package/dist/frontend/core/services/billing-service.d.ts +59 -59
- package/dist/frontend/core/services/client-service.d.ts +21 -21
- package/dist/frontend/core/services/communication-service.d.ts +64 -64
- package/dist/frontend/core/services/configuration-service.d.ts +15 -15
- package/dist/frontend/core/services/data-service.d.ts +59 -59
- package/dist/frontend/core/services/documents-service.d.ts +3 -3
- package/dist/frontend/core/services/equipment-service.d.ts +8 -8
- package/dist/frontend/core/services/history-service.d.ts +19 -19
- package/dist/frontend/core/services/internationalization-service.d.ts +6 -6
- package/dist/frontend/core/services/invitation-service.d.ts +5 -5
- package/dist/frontend/core/services/metadata-service.d.ts +11 -11
- package/dist/frontend/core/services/open-service.d.ts +3 -3
- package/dist/frontend/core/services/presentation-service.d.ts +9 -9
- package/dist/frontend/core/services/process-wizard-service.d.ts +64 -64
- package/dist/frontend/core/services/rule-validation-service.d.ts +4 -4
- package/dist/frontend/core/services/view-service.d.ts +19 -19
- package/dist/frontend/core/styles/index.d.ts +2 -2
- package/dist/frontend/core/styles/types.d.ts +164 -164
- package/dist/frontend/core/types/index.d.ts +105 -105
- package/dist/frontend/core/types/metadata-types.d.ts +20 -20
- package/dist/frontend/core/useMethods/index.d.ts +5 -5
- package/dist/frontend/core/useMethods/useInput.d.ts +15 -15
- package/dist/frontend/core/utils/Filter.d.ts +43 -43
- package/dist/frontend/core/utils/GraphQL/index.d.ts +21 -21
- package/dist/frontend/core/utils/Journal.d.ts +36 -36
- package/dist/frontend/core/utils/Request.d.ts +5 -5
- package/dist/frontend/core/utils/add-master-entities-to-search-params.d.ts +2 -2
- package/dist/frontend/core/utils/clickOutside.d.ts +2 -2
- package/dist/frontend/core/utils/firstChapterToLowerCase.d.ts +5 -5
- package/dist/frontend/core/utils/getPropFromObject.d.ts +15 -15
- package/dist/frontend/core/utils/group-array-by-field.d.ts +29 -29
- package/dist/frontend/core/utils/index.d.ts +21 -21
- package/dist/frontend/core/utils/is-master-entity.d.ts +2 -2
- package/dist/frontend/core/utils/logger.d.ts +7 -7
- package/dist/frontend/core/utils/mergeObjects.d.ts +6 -6
- package/dist/frontend/core/utils/parse-array-inputs.d.ts +11 -11
- package/dist/frontend/core/utils/parse-error.d.ts +6 -6
- package/dist/frontend/core/utils/pretty-value.d.ts +1 -1
- package/dist/frontend/core/utils/prettyDate.d.ts +13 -13
- package/dist/frontend/core/utils/recursive-object-wrap.d.ts +16 -16
- package/dist/frontend/core/utils/runPromiseQueue.d.ts +1 -1
- package/dist/frontend/core/utils/static-link.d.ts +6 -6
- package/dist/frontend/core/utils/uuid.d.ts +1 -1
- package/dist/frontend/core/utils/values-to-upper-case.d.ts +5 -5
- package/dist/frontend/src/classes/Communication.d.ts +11 -11
- package/dist/frontend/src/classes/Manager.d.ts +68 -68
- package/dist/frontend/src/classes/Metadata.d.ts +7 -7
- package/dist/frontend/src/classes/NotificationSystem.d.ts +53 -53
- package/dist/frontend/src/config.d.ts +8 -8
- package/dist/frontend/src/constants.d.ts +16 -16
- package/dist/frontend/src/hooks/use-actions.d.ts +56 -56
- package/dist/frontend/src/hooks/use-communication.d.ts +14 -14
- package/dist/frontend/src/hooks/use-enter.d.ts +5 -5
- package/dist/frontend/src/hooks/use-form-entity.d.ts +7 -7
- package/dist/frontend/src/hooks/use-list-active-row.d.ts +8 -8
- package/dist/frontend/src/hooks/use-list-entity.d.ts +21 -21
- package/dist/frontend/src/hooks/use-list-search.d.ts +8 -0
- package/dist/frontend/src/hooks/use-list-select.d.ts +15 -15
- package/dist/frontend/src/hooks/use-manager-state.d.ts +22 -22
- package/dist/frontend/src/hooks/use-metadata.d.ts +7 -7
- package/dist/frontend/src/hooks/use-shortcut-config.d.ts +2 -0
- package/dist/frontend/src/hooks/use-socket.d.ts +33 -33
- package/dist/frontend/src/hooks/use-usage-context.d.ts +13 -13
- package/dist/frontend/src/index.d.ts +107 -102
- package/dist/frontend/src/methods/async-process.d.ts +8 -8
- package/dist/frontend/src/methods/catch-universal.d.ts +7 -7
- package/dist/frontend/src/methods/debounce.d.ts +4 -4
- package/dist/frontend/src/methods/get-cell-name.d.ts +2 -2
- package/dist/frontend/src/methods/get-cell-value.d.ts +5 -5
- package/dist/frontend/src/methods/get-core-debug-mark.d.ts +1 -1
- package/dist/frontend/src/methods/get-names-from-list-config.d.ts +3 -3
- package/dist/frontend/src/methods/get-unit-value.d.ts +5 -5
- package/dist/frontend/src/methods/group-array-by-field.d.ts +11 -11
- package/dist/frontend/src/methods/inject-action.d.ts +12 -12
- package/dist/frontend/src/methods/parse-error.d.ts +6 -6
- package/dist/frontend/src/methods/pretty-date.d.ts +13 -13
- package/dist/frontend/src/methods/pretty-money.d.ts +1 -1
- package/dist/frontend/src/methods/pretty-value-field-by-entity.d.ts +1 -1
- package/dist/frontend/src/methods/request.d.ts +4 -4
- package/dist/frontend/src/methods/setup-list-row.d.ts +11 -11
- package/dist/frontend/src/methods/throttle.d.ts +1 -1
- package/dist/frontend/src/methods/universal-client-read.d.ts +7 -7
- package/dist/frontend/src/methods/universal-communication.d.ts +11 -11
- package/dist/frontend/src/methods/universal-entity-create.d.ts +8 -8
- package/dist/frontend/src/methods/universal-entity-delete.d.ts +8 -8
- package/dist/frontend/src/methods/universal-entity-read.d.ts +11 -11
- package/dist/frontend/src/methods/universal-entity-update.d.ts +9 -9
- package/dist/frontend/src/methods/universal-history-read.d.ts +6 -0
- package/dist/frontend/src/methods/universal-list-setting-read.d.ts +4 -4
- package/dist/frontend/src/methods/universal-metadata-field-treat.d.ts +5 -5
- package/dist/frontend/src/methods/universal-metadata-read.d.ts +3 -3
- package/dist/frontend/src/methods/universal-tool-read.d.ts +7 -7
- package/dist/frontend/src/methods/universal-usage-context-read.d.ts +4 -4
- package/dist/frontend/src/methods/uuid.d.ts +4 -4
- package/dist/frontend/src/methods/values-to-upper-case.d.ts +5 -5
- package/dist/frontend/src/services/auth-service.d.ts +36 -36
- package/dist/frontend/src/services/communication-service.d.ts +64 -64
- package/dist/frontend/src/services/dashboard-service.d.ts +7 -0
- package/dist/frontend/src/services/history-service.d.ts +4 -0
- package/dist/frontend/src/types/action-type.d.ts +47 -47
- package/dist/frontend/src/types/auth-type.d.ts +79 -79
- package/dist/frontend/src/types/button-type.d.ts +4 -4
- package/dist/frontend/src/types/client.d.ts +42 -42
- package/dist/frontend/src/types/entity-type.d.ts +46 -46
- package/dist/frontend/src/types/list-type.d.ts +63 -63
- package/dist/frontend/src/types/notification-type.d.ts +1 -1
- package/dist/frontend/src/types/usage-context-type.d.ts +6 -6
- package/dist/frontend/src/types/value-type.d.ts +5 -5
- package/dist/frontend/src/widgets/button/widget-button.vue.d.ts +17 -17
- package/dist/frontend/src/widgets/image/widget-image.vue.d.ts +26 -26
- package/dist/frontend/src/widgets/list/list-head/widget-list-head-cell.vue.d.ts +61 -61
- package/dist/frontend/src/widgets/list/list-head/widget-list-head.vue.d.ts +29 -29
- package/dist/frontend/src/widgets/list/widget-list-row.vue.d.ts +2 -2
- package/dist/frontend/src/widgets/list/widget-list.vue.d.ts +53 -53
- package/dist/frontend/src/widgets/loader/widget-loader.vue.d.ts +12 -12
- package/dist/frontend/src/widgets/multi-button/widget-multi-button.vue.d.ts +21 -21
- package/dist/frontend/src/widgets/spinner/widget-spinner.vue.d.ts +14 -14
- package/dist/frontend/src/widgets/table/widget-table-form.vue.d.ts +37 -37
- package/dist/frontend/src/widgets/table/widget-table-head.vue.d.ts +13 -13
- package/dist/frontend/src/widgets/table/widget-table-row.vue.d.ts +2 -2
- package/dist/frontend/src/widgets/table/widget-table.vue.d.ts +54 -54
- package/dist/frontend/tests/integrations/button.spec.d.ts +1 -1
- package/dist/frontend/tests/integrations/icon.spec.d.ts +1 -1
- package/dist/frontend/tests/integrations/loader.spec.d.ts +1 -1
- package/dist/frontend/tests/integrations/multi-button.spec.d.ts +1 -1
- package/dist/frontend/tests/integrations/spinner.spec.d.ts +1 -1
- package/dist/frontend/tests/integrations/table.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/classes/notification-system.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/hooks/use-list-active-row.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/hooks/use-shortcut-config.spec.d.ts +1 -0
- package/dist/frontend/tests/unit/methods/async-process.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/methods/catch-universal.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/methods/parse-error.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/parseCSSVariables.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/recursive-object-wrap.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/translate.spec.d.ts +1 -1
- package/dist/frontend/tests/unit/values-to-upper-case.spec.d.ts +1 -1
- package/dist/frontend/tests/wait.d.ts +1 -1
- package/package.json +71 -71
- package/readme.md +39 -39
- package/dist/frontend/src/types/metadata-type.d.ts +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export interface IToolResponse {
|
|
2
|
-
action: IAction;
|
|
3
|
-
closeHostForm: boolean;
|
|
4
|
-
confirmation: null | string | true;
|
|
5
|
-
description: string | null;
|
|
6
|
-
name: string;
|
|
7
|
-
order: number;
|
|
8
|
-
redirectEntity: string | null;
|
|
9
|
-
requireSave: boolean;
|
|
10
|
-
showOnToolPanel: boolean;
|
|
11
|
-
title: string;
|
|
12
|
-
url: string;
|
|
13
|
-
}
|
|
14
|
-
export interface IAction {
|
|
15
|
-
entity: string;
|
|
16
|
-
entityField: null | string;
|
|
17
|
-
name: string;
|
|
18
|
-
targetCode: number;
|
|
19
|
-
targetName: string;
|
|
20
|
-
parameters: {
|
|
21
|
-
"name": string;
|
|
22
|
-
"dataTypeCode": 0;
|
|
23
|
-
"dataTypeName": string;
|
|
24
|
-
"description": string;
|
|
25
|
-
"entityEnum": string;
|
|
26
|
-
"fieldName": string;
|
|
27
|
-
"referencedEntity": string;
|
|
28
|
-
"sourceCode": 0;
|
|
29
|
-
"sourceName": string;
|
|
30
|
-
"title": string;
|
|
31
|
-
"defaultValue": string;
|
|
32
|
-
}[];
|
|
33
|
-
}
|
|
1
|
+
export interface IToolResponse {
|
|
2
|
+
action: IAction;
|
|
3
|
+
closeHostForm: boolean;
|
|
4
|
+
confirmation: null | string | true;
|
|
5
|
+
description: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
order: number;
|
|
8
|
+
redirectEntity: string | null;
|
|
9
|
+
requireSave: boolean;
|
|
10
|
+
showOnToolPanel: boolean;
|
|
11
|
+
title: string;
|
|
12
|
+
url: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IAction {
|
|
15
|
+
entity: string;
|
|
16
|
+
entityField: null | string;
|
|
17
|
+
name: string;
|
|
18
|
+
targetCode: number;
|
|
19
|
+
targetName: string;
|
|
20
|
+
parameters: {
|
|
21
|
+
"name": string;
|
|
22
|
+
"dataTypeCode": 0;
|
|
23
|
+
"dataTypeName": string;
|
|
24
|
+
"description": string;
|
|
25
|
+
"entityEnum": string;
|
|
26
|
+
"fieldName": string;
|
|
27
|
+
"referencedEntity": string;
|
|
28
|
+
"sourceCode": 0;
|
|
29
|
+
"sourceName": string;
|
|
30
|
+
"title": string;
|
|
31
|
+
"defaultValue": string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface IAMQPOptions {
|
|
2
|
-
/**
|
|
3
|
-
* @description Виртуальное пространство. По умолчанию "/"
|
|
4
|
-
*/
|
|
5
|
-
vhost?: string;
|
|
6
|
-
/**
|
|
7
|
-
* @description Имя пользователя для авторизации в RabbitMQ
|
|
8
|
-
*/
|
|
9
|
-
username?: string;
|
|
10
|
-
/**
|
|
11
|
-
* @description Пароль пользователя для авторизации в RabbitMQ
|
|
12
|
-
*/
|
|
13
|
-
password?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @description hostname от URI подключения.
|
|
16
|
-
* @example http://localhost -> localhost
|
|
17
|
-
* @example https://aiti.eservices.dev:1998 -> aiti.eservices.dev:1998
|
|
18
|
-
*/
|
|
19
|
-
hostname: string;
|
|
20
|
-
/**
|
|
21
|
-
* @description Строковое значение префикса для названия queue.
|
|
22
|
-
*/
|
|
23
|
-
prefix?: string;
|
|
24
|
-
/**
|
|
25
|
-
* @description Название Exchange к которому будет добавляться наша очередь
|
|
26
|
-
*/
|
|
27
|
-
exchange: string;
|
|
28
|
-
}
|
|
1
|
+
export interface IAMQPOptions {
|
|
2
|
+
/**
|
|
3
|
+
* @description Виртуальное пространство. По умолчанию "/"
|
|
4
|
+
*/
|
|
5
|
+
vhost?: string;
|
|
6
|
+
/**
|
|
7
|
+
* @description Имя пользователя для авторизации в RabbitMQ
|
|
8
|
+
*/
|
|
9
|
+
username?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description Пароль пользователя для авторизации в RabbitMQ
|
|
12
|
+
*/
|
|
13
|
+
password?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description hostname от URI подключения.
|
|
16
|
+
* @example http://localhost -> localhost
|
|
17
|
+
* @example https://aiti.eservices.dev:1998 -> aiti.eservices.dev:1998
|
|
18
|
+
*/
|
|
19
|
+
hostname: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description Строковое значение префикса для названия queue.
|
|
22
|
+
*/
|
|
23
|
+
prefix?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description Название Exchange к которому будет добавляться наша очередь
|
|
26
|
+
*/
|
|
27
|
+
exchange: string;
|
|
28
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { TokenSet } from "openid-client";
|
|
2
|
-
export interface IAuthOptions {
|
|
3
|
-
baseURL: string;
|
|
4
|
-
issuerBaseURL: string;
|
|
5
|
-
clientId: string;
|
|
6
|
-
clientSecret: string;
|
|
7
|
-
loginURLPathname?: string;
|
|
8
|
-
logoutURLPathname?: string;
|
|
9
|
-
sessionKey?: string;
|
|
10
|
-
/**
|
|
11
|
-
* @description Необходимо ли использовать логаут на ID сервере. По умолчанию
|
|
12
|
-
* true.
|
|
13
|
-
*/
|
|
14
|
-
useLogoutIdentityServer?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface IAuthClientState {
|
|
17
|
-
codeVerifier: string;
|
|
18
|
-
accessToken: string;
|
|
19
|
-
tokenType: string;
|
|
20
|
-
refreshToken: string;
|
|
21
|
-
expiresAt: number;
|
|
22
|
-
claims: ReturnType<TokenSet['claims']>;
|
|
23
|
-
isRequestRunningAt: number;
|
|
24
|
-
}
|
|
1
|
+
import { TokenSet } from "openid-client";
|
|
2
|
+
export interface IAuthOptions {
|
|
3
|
+
baseURL: string;
|
|
4
|
+
issuerBaseURL: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
loginURLPathname?: string;
|
|
8
|
+
logoutURLPathname?: string;
|
|
9
|
+
sessionKey?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description Необходимо ли использовать логаут на ID сервере. По умолчанию
|
|
12
|
+
* true.
|
|
13
|
+
*/
|
|
14
|
+
useLogoutIdentityServer?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface IAuthClientState {
|
|
17
|
+
codeVerifier: string;
|
|
18
|
+
accessToken: string;
|
|
19
|
+
tokenType: string;
|
|
20
|
+
refreshToken: string;
|
|
21
|
+
expiresAt: number;
|
|
22
|
+
claims: ReturnType<TokenSet['claims']>;
|
|
23
|
+
isRequestRunningAt: number;
|
|
24
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { UtcDate } from "./main";
|
|
2
|
-
export interface IOnlinePayment {
|
|
3
|
-
onlinePayment: {
|
|
4
|
-
amount: number;
|
|
5
|
-
bankName: string;
|
|
6
|
-
currencyCode: string;
|
|
7
|
-
id: number;
|
|
8
|
-
number: string;
|
|
9
|
-
payerId: number;
|
|
10
|
-
paymentId: number;
|
|
11
|
-
statusCode: string;
|
|
12
|
-
token: string;
|
|
13
|
-
utcCreated: UtcDate | null;
|
|
14
|
-
utcDeleted: UtcDate | null;
|
|
15
|
-
utcModified: UtcDate | null;
|
|
16
|
-
utcRestored: UtcDate | null;
|
|
17
|
-
version: number;
|
|
18
|
-
};
|
|
19
|
-
redirectUrl: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IApplyResultOnlinePayment {
|
|
22
|
-
a: 1;
|
|
23
|
-
}
|
|
1
|
+
import { UtcDate } from "./main";
|
|
2
|
+
export interface IOnlinePayment {
|
|
3
|
+
onlinePayment: {
|
|
4
|
+
amount: number;
|
|
5
|
+
bankName: string;
|
|
6
|
+
currencyCode: string;
|
|
7
|
+
id: number;
|
|
8
|
+
number: string;
|
|
9
|
+
payerId: number;
|
|
10
|
+
paymentId: number;
|
|
11
|
+
statusCode: string;
|
|
12
|
+
token: string;
|
|
13
|
+
utcCreated: UtcDate | null;
|
|
14
|
+
utcDeleted: UtcDate | null;
|
|
15
|
+
utcModified: UtcDate | null;
|
|
16
|
+
utcRestored: UtcDate | null;
|
|
17
|
+
version: number;
|
|
18
|
+
};
|
|
19
|
+
redirectUrl: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IApplyResultOnlinePayment {
|
|
22
|
+
a: 1;
|
|
23
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Параметры для создания чата. Именно такие параметры должны уходить с frontend и приходить на backend.
|
|
3
|
-
*/
|
|
4
|
-
export interface ICommunicationParams {
|
|
5
|
-
/**
|
|
6
|
-
* @description Целевое направление чата. Используется для того, чтобы идентифицировать, для чего именно был создано
|
|
7
|
-
* обсуждение.
|
|
8
|
-
*/
|
|
9
|
-
targetCode: string;
|
|
10
|
-
/**
|
|
11
|
-
* @description Название сущности, которая выступает в качестве родителя.
|
|
12
|
-
*/
|
|
13
|
-
entityName: string;
|
|
14
|
-
/**
|
|
15
|
-
* @description Значение CatalogId родительской сущности.
|
|
16
|
-
*/
|
|
17
|
-
entityCatalogId: string;
|
|
18
|
-
}
|
|
19
|
-
export declare type ICommunicationCreateParams = ICommunicationParams;
|
|
20
|
-
export declare type ICommunicationReadParams = ICommunicationParams;
|
|
21
|
-
export interface ICommunicationCreationResult {
|
|
22
|
-
id: number;
|
|
23
|
-
catalogId: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ICommunicationReadingResult {
|
|
26
|
-
id: number;
|
|
27
|
-
catalogId: string;
|
|
28
|
-
utcCreated: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ICommunicationMessageReadParams {
|
|
31
|
-
communicationId: number;
|
|
32
|
-
}
|
|
33
|
-
export interface ICommunicationMessageCreateParams {
|
|
34
|
-
communicationId: number;
|
|
35
|
-
text: string;
|
|
36
|
-
}
|
|
37
|
-
export interface ICommunicationMessageReadingResult {
|
|
38
|
-
appName: "SCP" | "BAP";
|
|
39
|
-
catalogId: string;
|
|
40
|
-
content: string;
|
|
41
|
-
id: number;
|
|
42
|
-
personId: number;
|
|
43
|
-
personName: string;
|
|
44
|
-
userId: number;
|
|
45
|
-
userName: string;
|
|
46
|
-
utcCreated: string;
|
|
47
|
-
}
|
|
48
|
-
export declare type ICommunicationMessageCreationResult = ICommunicationMessageReadingResult;
|
|
1
|
+
/**
|
|
2
|
+
* @description Параметры для создания чата. Именно такие параметры должны уходить с frontend и приходить на backend.
|
|
3
|
+
*/
|
|
4
|
+
export interface ICommunicationParams {
|
|
5
|
+
/**
|
|
6
|
+
* @description Целевое направление чата. Используется для того, чтобы идентифицировать, для чего именно был создано
|
|
7
|
+
* обсуждение.
|
|
8
|
+
*/
|
|
9
|
+
targetCode: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description Название сущности, которая выступает в качестве родителя.
|
|
12
|
+
*/
|
|
13
|
+
entityName: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description Значение CatalogId родительской сущности.
|
|
16
|
+
*/
|
|
17
|
+
entityCatalogId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type ICommunicationCreateParams = ICommunicationParams;
|
|
20
|
+
export declare type ICommunicationReadParams = ICommunicationParams;
|
|
21
|
+
export interface ICommunicationCreationResult {
|
|
22
|
+
id: number;
|
|
23
|
+
catalogId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ICommunicationReadingResult {
|
|
26
|
+
id: number;
|
|
27
|
+
catalogId: string;
|
|
28
|
+
utcCreated: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ICommunicationMessageReadParams {
|
|
31
|
+
communicationId: number;
|
|
32
|
+
}
|
|
33
|
+
export interface ICommunicationMessageCreateParams {
|
|
34
|
+
communicationId: number;
|
|
35
|
+
text: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ICommunicationMessageReadingResult {
|
|
38
|
+
appName: "SCP" | "BAP";
|
|
39
|
+
catalogId: string;
|
|
40
|
+
content: string;
|
|
41
|
+
id: number;
|
|
42
|
+
personId: number;
|
|
43
|
+
personName: string;
|
|
44
|
+
userId: number;
|
|
45
|
+
userName: string;
|
|
46
|
+
utcCreated: string;
|
|
47
|
+
}
|
|
48
|
+
export declare type ICommunicationMessageCreationResult = ICommunicationMessageReadingResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface IHistoryReadParams {
|
|
2
|
+
entity: string;
|
|
3
|
+
id: number;
|
|
4
|
+
}
|
|
5
|
+
export interface IHistoryResponse {
|
|
6
|
+
entity: string;
|
|
7
|
+
primaryKey: string;
|
|
8
|
+
history: IHistoryItemResponse[];
|
|
9
|
+
}
|
|
10
|
+
export interface IHistoryItemResponse {
|
|
11
|
+
version: number;
|
|
12
|
+
utcCreated: string;
|
|
13
|
+
action: "Insert" | "Update";
|
|
14
|
+
machineName: string;
|
|
15
|
+
changes: IHistoryChanges[] | null;
|
|
16
|
+
currentValues: IHistoryCurrentValues[];
|
|
17
|
+
}
|
|
18
|
+
export interface IHistoryChanges {
|
|
19
|
+
fieldName: string;
|
|
20
|
+
newValue: string;
|
|
21
|
+
originalValue: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IHistoryCurrentValues {
|
|
24
|
+
fieldName: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IParsedHistoryChanges extends IHistoryChanges {
|
|
28
|
+
oldValue: IHistoryChanges['originalValue'];
|
|
29
|
+
name: IHistoryChanges['fieldName'];
|
|
30
|
+
}
|
|
31
|
+
export interface IParsedHistoryItemResponse {
|
|
32
|
+
version: number;
|
|
33
|
+
utcCreated: string;
|
|
34
|
+
action: "Insert" | "Update";
|
|
35
|
+
machineName: string;
|
|
36
|
+
changes: IParsedHistoryChanges[] | null;
|
|
37
|
+
currentValues: IHistoryCurrentValues[];
|
|
38
|
+
}
|
|
39
|
+
export interface IParsedHistoryResponse extends IHistoryResponse {
|
|
40
|
+
history: IParsedHistoryItemResponse[];
|
|
41
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export interface IListSettingReadParams {
|
|
2
|
-
entity: string;
|
|
3
|
-
mark?: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @description Описание объекта, который получается после обработки.
|
|
7
|
-
*/
|
|
8
|
-
export interface IListTreatmentField {
|
|
9
|
-
name?: string | string[];
|
|
10
|
-
type?: "Entity" | "Integer" | "String" | "DateTime";
|
|
11
|
-
unit?: string;
|
|
12
|
-
entity?: string;
|
|
13
|
-
link?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @description Для отображения данного поля необходимо использовать модальное окно. Дополнительная информация будет
|
|
16
|
-
* браться из поля entity.
|
|
17
|
-
* */
|
|
18
|
-
modal?: boolean;
|
|
19
|
-
}
|
|
1
|
+
export interface IListSettingReadParams {
|
|
2
|
+
entity: string;
|
|
3
|
+
mark?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @description Описание объекта, который получается после обработки.
|
|
7
|
+
*/
|
|
8
|
+
export interface IListTreatmentField {
|
|
9
|
+
name?: string | string[];
|
|
10
|
+
type?: "Entity" | "Integer" | "String" | "DateTime";
|
|
11
|
+
unit?: string;
|
|
12
|
+
entity?: string;
|
|
13
|
+
link?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @description Для отображения данного поля необходимо использовать модальное окно. Дополнительная информация будет
|
|
16
|
+
* браться из поля entity.
|
|
17
|
+
* */
|
|
18
|
+
modal?: boolean;
|
|
19
|
+
}
|