eservices-core 1.3.87 → 1.3.89

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.
Files changed (179) hide show
  1. package/dist/backend/src/types/action-type.d.ts +33 -33
  2. package/dist/backend/src/types/amqp-type.d.ts +28 -28
  3. package/dist/backend/src/types/auth-type.d.ts +19 -19
  4. package/dist/backend/src/types/billing.d.ts +23 -23
  5. package/dist/backend/src/types/communication.d.ts +48 -48
  6. package/dist/backend/src/types/list-setting-type.d.ts +19 -19
  7. package/dist/backend/src/types/main.d.ts +160 -160
  8. package/dist/backend/src/types/metadata-type.d.ts +76 -76
  9. package/dist/backend/src/types/server-type.d.ts +55 -55
  10. package/dist/backend/src/types/usage-context-type.d.ts +17 -17
  11. package/dist/backend/src/types/validation.d.ts +14 -14
  12. package/dist/eservices-core.cjs.js +5 -5
  13. package/dist/eservices-core.es.js +361 -363
  14. package/dist/eservices-core.umd.js +4 -4
  15. package/dist/frontend/core/classes/Action.d.ts +3 -3
  16. package/dist/frontend/core/classes/ApplicationManager.d.ts +104 -104
  17. package/dist/frontend/core/classes/ClassMetadata.d.ts +32 -32
  18. package/dist/frontend/core/classes/Communication.d.ts +27 -27
  19. package/dist/frontend/core/classes/CoreError.d.ts +44 -44
  20. package/dist/frontend/core/classes/InterfaceForm.d.ts +106 -106
  21. package/dist/frontend/core/classes/InterfaceWorker.d.ts +15 -15
  22. package/dist/frontend/core/classes/List.d.ts +102 -102
  23. package/dist/frontend/core/classes/ListWorker.d.ts +2 -2
  24. package/dist/frontend/core/classes/Metadata.d.ts +51 -51
  25. package/dist/frontend/core/classes/MetadataStore.d.ts +25 -25
  26. package/dist/frontend/core/classes/NotificationSystem.d.ts +54 -54
  27. package/dist/frontend/core/classes/ProcessWrap.d.ts +9 -9
  28. package/dist/frontend/core/classes/StepWorker.d.ts +9 -9
  29. package/dist/frontend/core/classes/new/List.d.ts +205 -205
  30. package/dist/frontend/core/classes/new/ListConfig.d.ts +26 -26
  31. package/dist/frontend/core/classes/new/Table.d.ts +27 -27
  32. package/dist/frontend/core/classes/table/Table.d.ts +70 -70
  33. package/dist/frontend/core/classes/table/get-table-row.d.ts +8 -8
  34. package/dist/frontend/core/config.d.ts +16 -16
  35. package/dist/frontend/core/errors/action-error.d.ts +3 -3
  36. package/dist/frontend/core/errors/communication-error.d.ts +7 -7
  37. package/dist/frontend/core/errors/wrap-error.d.ts +3 -3
  38. package/dist/frontend/core/hooks/use-form-action.d.ts +39 -39
  39. package/dist/frontend/core/hooks/use-form-metadata.d.ts +10 -10
  40. package/dist/frontend/core/hooks/use-wizard.d.ts +49 -49
  41. package/dist/frontend/core/index.d.ts +68 -69
  42. package/dist/frontend/core/init.d.ts +1 -1
  43. package/dist/frontend/core/internationalization/translate.d.ts +14 -14
  44. package/dist/frontend/core/new/new-import.d.ts +3 -3
  45. package/dist/frontend/core/services/FileService.d.ts +7 -7
  46. package/dist/frontend/core/services/action-service.d.ts +36 -36
  47. package/dist/frontend/core/services/auth-service.d.ts +76 -76
  48. package/dist/frontend/core/services/billing-service.d.ts +59 -59
  49. package/dist/frontend/core/services/client-service.d.ts +21 -21
  50. package/dist/frontend/core/services/communication-service.d.ts +64 -64
  51. package/dist/frontend/core/services/configuration-service.d.ts +15 -15
  52. package/dist/frontend/core/services/data-service.d.ts +59 -59
  53. package/dist/frontend/core/services/documents-service.d.ts +3 -3
  54. package/dist/frontend/core/services/equipment-service.d.ts +8 -8
  55. package/dist/frontend/core/services/history-service.d.ts +19 -19
  56. package/dist/frontend/core/services/internationalization-service.d.ts +6 -6
  57. package/dist/frontend/core/services/invitation-service.d.ts +5 -5
  58. package/dist/frontend/core/services/metadata-service.d.ts +11 -11
  59. package/dist/frontend/core/services/open-service.d.ts +3 -3
  60. package/dist/frontend/core/services/presentation-service.d.ts +9 -9
  61. package/dist/frontend/core/services/process-wizard-service.d.ts +64 -64
  62. package/dist/frontend/core/services/rule-validation-service.d.ts +4 -4
  63. package/dist/frontend/core/services/view-service.d.ts +19 -19
  64. package/dist/frontend/core/styles/index.d.ts +2 -2
  65. package/dist/frontend/core/styles/types.d.ts +164 -164
  66. package/dist/frontend/core/types/index.d.ts +105 -105
  67. package/dist/frontend/core/types/metadata-types.d.ts +20 -20
  68. package/dist/frontend/core/useMethods/index.d.ts +5 -5
  69. package/dist/frontend/core/useMethods/useInput.d.ts +15 -15
  70. package/dist/frontend/core/utils/Filter.d.ts +43 -43
  71. package/dist/frontend/core/utils/GraphQL/index.d.ts +21 -21
  72. package/dist/frontend/core/utils/Journal.d.ts +36 -36
  73. package/dist/frontend/core/utils/Request.d.ts +5 -5
  74. package/dist/frontend/core/utils/add-master-entities-to-search-params.d.ts +2 -2
  75. package/dist/frontend/core/utils/clickOutside.d.ts +2 -2
  76. package/dist/frontend/core/utils/firstChapterToLowerCase.d.ts +5 -5
  77. package/dist/frontend/core/utils/getPropFromObject.d.ts +15 -15
  78. package/dist/frontend/core/utils/group-array-by-field.d.ts +29 -29
  79. package/dist/frontend/core/utils/index.d.ts +21 -21
  80. package/dist/frontend/core/utils/is-master-entity.d.ts +2 -2
  81. package/dist/frontend/core/utils/logger.d.ts +7 -7
  82. package/dist/frontend/core/utils/mergeObjects.d.ts +6 -6
  83. package/dist/frontend/core/utils/parse-array-inputs.d.ts +11 -11
  84. package/dist/frontend/core/utils/parse-error.d.ts +6 -6
  85. package/dist/frontend/core/utils/pretty-value.d.ts +1 -1
  86. package/dist/frontend/core/utils/prettyDate.d.ts +13 -13
  87. package/dist/frontend/core/utils/recursive-object-wrap.d.ts +16 -16
  88. package/dist/frontend/core/utils/runPromiseQueue.d.ts +1 -1
  89. package/dist/frontend/core/utils/static-link.d.ts +6 -6
  90. package/dist/frontend/core/utils/uuid.d.ts +1 -1
  91. package/dist/frontend/core/utils/values-to-upper-case.d.ts +5 -5
  92. package/dist/frontend/src/classes/Communication.d.ts +11 -11
  93. package/dist/frontend/src/classes/Manager.d.ts +68 -68
  94. package/dist/frontend/src/classes/Metadata.d.ts +7 -7
  95. package/dist/frontend/src/classes/NotificationSystem.d.ts +53 -53
  96. package/dist/frontend/src/config.d.ts +8 -8
  97. package/dist/frontend/src/constants.d.ts +16 -16
  98. package/dist/frontend/src/hooks/use-actions.d.ts +56 -56
  99. package/dist/frontend/src/hooks/use-communication.d.ts +14 -14
  100. package/dist/frontend/src/hooks/use-enter.d.ts +5 -5
  101. package/dist/frontend/src/hooks/use-form-entity.d.ts +7 -7
  102. package/dist/frontend/src/hooks/use-list-active-row.d.ts +8 -8
  103. package/dist/frontend/src/hooks/use-list-entity.d.ts +21 -21
  104. package/dist/frontend/src/hooks/use-manager-state.d.ts +22 -22
  105. package/dist/frontend/src/hooks/use-metadata.d.ts +7 -7
  106. package/dist/frontend/src/hooks/use-socket.d.ts +33 -33
  107. package/dist/frontend/src/hooks/use-usage-context.d.ts +13 -13
  108. package/dist/frontend/src/index.d.ts +100 -100
  109. package/dist/frontend/src/methods/async-process.d.ts +8 -8
  110. package/dist/frontend/src/methods/catch-universal.d.ts +7 -7
  111. package/dist/frontend/src/methods/debounce.d.ts +4 -4
  112. package/dist/frontend/src/methods/get-cell-name.d.ts +2 -2
  113. package/dist/frontend/src/methods/get-cell-value.d.ts +5 -5
  114. package/dist/frontend/src/methods/get-core-debug-mark.d.ts +1 -1
  115. package/dist/frontend/src/methods/get-names-from-list-config.d.ts +3 -3
  116. package/dist/frontend/src/methods/group-array-by-field.d.ts +11 -11
  117. package/dist/frontend/src/methods/inject-action.d.ts +12 -12
  118. package/dist/frontend/src/methods/parse-error.d.ts +6 -6
  119. package/dist/frontend/src/methods/pretty-date.d.ts +13 -13
  120. package/dist/frontend/src/methods/pretty-money.d.ts +1 -1
  121. package/dist/frontend/src/methods/pretty-value-field-by-entity.d.ts +1 -1
  122. package/dist/frontend/src/methods/request.d.ts +4 -4
  123. package/dist/frontend/src/methods/setup-list-row.d.ts +11 -11
  124. package/dist/frontend/src/methods/throttle.d.ts +1 -1
  125. package/dist/frontend/src/methods/universal-client-read.d.ts +7 -7
  126. package/dist/frontend/src/methods/universal-communication.d.ts +11 -11
  127. package/dist/frontend/src/methods/universal-entity-create.d.ts +8 -8
  128. package/dist/frontend/src/methods/universal-entity-delete.d.ts +8 -8
  129. package/dist/frontend/src/methods/universal-entity-read.d.ts +11 -11
  130. package/dist/frontend/src/methods/universal-entity-update.d.ts +9 -9
  131. package/dist/frontend/src/methods/universal-list-setting-read.d.ts +4 -4
  132. package/dist/frontend/src/methods/universal-metadata-field-treat.d.ts +5 -5
  133. package/dist/frontend/src/methods/universal-metadata-read.d.ts +3 -3
  134. package/dist/frontend/src/methods/universal-tool-read.d.ts +7 -7
  135. package/dist/frontend/src/methods/universal-usage-context-read.d.ts +4 -4
  136. package/dist/frontend/src/methods/uuid.d.ts +4 -4
  137. package/dist/frontend/src/methods/values-to-upper-case.d.ts +5 -5
  138. package/dist/frontend/src/services/auth-service.d.ts +36 -36
  139. package/dist/frontend/src/services/communication-service.d.ts +64 -64
  140. package/dist/frontend/src/types/action-type.d.ts +47 -47
  141. package/dist/frontend/src/types/auth-type.d.ts +79 -79
  142. package/dist/frontend/src/types/button-type.d.ts +4 -4
  143. package/dist/frontend/src/types/client.d.ts +42 -42
  144. package/dist/frontend/src/types/entity-type.d.ts +46 -46
  145. package/dist/frontend/src/types/list-type.d.ts +59 -59
  146. package/dist/frontend/src/types/notification-type.d.ts +1 -1
  147. package/dist/frontend/src/types/usage-context-type.d.ts +6 -6
  148. package/dist/frontend/src/types/value-type.d.ts +5 -5
  149. package/dist/frontend/src/widgets/button/widget-button.vue.d.ts +17 -17
  150. package/dist/frontend/src/widgets/image/widget-image.vue.d.ts +26 -26
  151. package/dist/frontend/src/widgets/list/list-head/widget-list-head-cell.vue.d.ts +61 -61
  152. package/dist/frontend/src/widgets/list/list-head/widget-list-head.vue.d.ts +29 -29
  153. package/dist/frontend/src/widgets/list/widget-list-row.vue.d.ts +2 -2
  154. package/dist/frontend/src/widgets/list/widget-list.vue.d.ts +53 -53
  155. package/dist/frontend/src/widgets/loader/widget-loader.vue.d.ts +12 -12
  156. package/dist/frontend/src/widgets/multi-button/widget-multi-button.vue.d.ts +21 -21
  157. package/dist/frontend/src/widgets/spinner/widget-spinner.vue.d.ts +14 -14
  158. package/dist/frontend/src/widgets/table/widget-table-form.vue.d.ts +37 -37
  159. package/dist/frontend/src/widgets/table/widget-table-head.vue.d.ts +13 -13
  160. package/dist/frontend/src/widgets/table/widget-table-row.vue.d.ts +2 -2
  161. package/dist/frontend/src/widgets/table/widget-table.vue.d.ts +54 -54
  162. package/dist/frontend/tests/integrations/button.spec.d.ts +1 -1
  163. package/dist/frontend/tests/integrations/icon.spec.d.ts +1 -1
  164. package/dist/frontend/tests/integrations/loader.spec.d.ts +1 -1
  165. package/dist/frontend/tests/integrations/multi-button.spec.d.ts +1 -1
  166. package/dist/frontend/tests/integrations/spinner.spec.d.ts +1 -1
  167. package/dist/frontend/tests/integrations/table.spec.d.ts +1 -1
  168. package/dist/frontend/tests/unit/classes/notification-system.spec.d.ts +1 -1
  169. package/dist/frontend/tests/unit/hooks/use-list-active-row.spec.d.ts +1 -1
  170. package/dist/frontend/tests/unit/methods/async-process.spec.d.ts +1 -1
  171. package/dist/frontend/tests/unit/methods/catch-universal.spec.d.ts +1 -1
  172. package/dist/frontend/tests/unit/methods/parse-error.spec.d.ts +1 -1
  173. package/dist/frontend/tests/unit/parseCSSVariables.spec.d.ts +1 -1
  174. package/dist/frontend/tests/unit/recursive-object-wrap.spec.d.ts +1 -1
  175. package/dist/frontend/tests/unit/translate.spec.d.ts +1 -1
  176. package/dist/frontend/tests/unit/values-to-upper-case.spec.d.ts +1 -1
  177. package/dist/frontend/tests/wait.d.ts +1 -1
  178. package/package.json +71 -71
  179. package/readme.md +39 -39
@@ -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,19 +1,19 @@
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
- export interface IAuthClientState {
12
- codeVerifier: string;
13
- accessToken: string;
14
- tokenType: string;
15
- refreshToken: string;
16
- expiresAt: number;
17
- claims: ReturnType<TokenSet['claims']>;
18
- isRequestRunningAt: number;
19
- }
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
+ export interface IAuthClientState {
12
+ codeVerifier: string;
13
+ accessToken: string;
14
+ tokenType: string;
15
+ refreshToken: string;
16
+ expiresAt: number;
17
+ claims: ReturnType<TokenSet['claims']>;
18
+ isRequestRunningAt: number;
19
+ }
@@ -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;
@@ -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
+ }
@@ -1,160 +1,160 @@
1
- export interface IRequestUpdateResult {
2
- catalogId: string;
3
- id: number;
4
- utcModified: UtcDate;
5
- version: number;
6
- }
7
- export declare type UtcDate = string;
8
- export interface IRequestCreateResult {
9
- catalogId: string;
10
- id: number;
11
- date: string;
12
- version: number;
13
- }
14
- export interface IRequestCountResult {
15
- count: number;
16
- }
17
- export interface INotificationConfig {
18
- label: string;
19
- icon: string;
20
- entity: string;
21
- mark?: string;
22
- link?: string;
23
- }
24
- export interface IHistoryResponse {
25
- entity: string;
26
- primaryKey: string;
27
- history: IHistoryItemResponse[];
28
- }
29
- export interface IHistoryItemResponse {
30
- version: number;
31
- utcCreated: string;
32
- action: "Insert" | "Update";
33
- machineName: string;
34
- changes: IHistoryChanges[] | null;
35
- currentValues: IHistoryCurrentValues[];
36
- }
37
- export interface IHistoryChanges {
38
- fieldName: string;
39
- newValue: string;
40
- originalValue: string;
41
- }
42
- export interface IHistoryCurrentValues {
43
- fieldName: string;
44
- value: string;
45
- }
46
- export interface IUser {
47
- FullName: string;
48
- UserName: string;
49
- }
50
- export interface INavigationRecord {
51
- label: string;
52
- icon: string;
53
- link: string;
54
- children: INavigationRecord[];
55
- hash: string;
56
- }
57
- /**
58
- * @deprecated Please, use IMetadata
59
- */
60
- export interface Metadata {
61
- auditedCreation: boolean;
62
- auditedModification: boolean;
63
- baseEntity: string;
64
- belongsCatalog: boolean;
65
- canCreate: boolean;
66
- canDelete: boolean;
67
- canNotRestrict: boolean;
68
- canRead: boolean;
69
- canRestore: boolean;
70
- canUpdate: boolean;
71
- canUse: boolean;
72
- description: string;
73
- entitySet: string;
74
- hasSimplePrimaryKey: boolean;
75
- name: string;
76
- named: boolean;
77
- numbered: boolean;
78
- ordered: boolean;
79
- primaryKey: string[];
80
- softlyDeletion: boolean;
81
- softlyRecoverable: boolean;
82
- type: "Ordinary";
83
- versioned: boolean;
84
- fields: MetadataField[];
85
- fieldsByName: {
86
- [name: string]: MetadataField;
87
- };
88
- }
89
- export interface MetadataField {
90
- aggregatedEntity: null | string;
91
- canGet: boolean;
92
- canSet: boolean;
93
- canSetForEdit: boolean;
94
- canSetForNew: boolean;
95
- dataType: "Entity" | "Integer" | "Guid" | "String" | "Decimal" | "DateTime" | "List";
96
- description: boolean;
97
- entityEnum: null | string;
98
- foreignEntityPrimaryKeyField: null | string;
99
- isEmbedded: boolean;
100
- isForeignKey: boolean;
101
- isPrimaryKey: boolean;
102
- name: string;
103
- ownedLocalField: null | string;
104
- ownerEntity: string;
105
- presentationType: string;
106
- referencedEntity: string | null;
107
- releatedLocalField: null | string;
108
- required: boolean;
109
- type: "Reference" | "ValueType" | "Aggregate" | "Owned";
110
- valueUnit: null | string;
111
- }
112
- interface ReferenceMetadataField {
113
- /**
114
- * Если переданное поле[1] является ссылкой на другую сущность, то значение referencedPrimaryFieldName равно
115
- * названию поля, которое является первичным ключом для сущности. Переданное поле [1] указывает именно на эту
116
- * сущность.
117
- */
118
- primaryFieldNameOfReferencedEntity: string;
119
- }
120
- export declare type ExtendedMetadataField = MetadataField & Partial<ReferenceMetadataField>;
121
- export declare type MetadataResponse = Metadata & {
122
- _filter: string;
123
- metadataByEntityId?: number;
124
- };
125
- export interface NamedCriterion {
126
- name: string;
127
- "expression"?: NamedCriterionExpression;
128
- }
129
- export declare type NamedCriterionExpression = EqualCriterionExpression | IncludeCriterionExpression;
130
- export declare type MasterNamedCriterion = NamedCriterion & MasterEntityCriterion;
131
- export interface FieldsCriterion {
132
- fields: string[];
133
- }
134
- export declare type MasterFieldsCriterion = FieldsCriterion & MasterEntityCriterion;
135
- export interface MasterEntityCriterion {
136
- masterEntity: string;
137
- }
138
- /**
139
- * @description Тип используется для указателя в expression на поля в сущности.
140
- */
141
- export declare type CriterionExpressionField = string;
142
- /**
143
- * @description Тип используется для значения в выражениях критериев.
144
- */
145
- export declare type CriterionExpressionValue = CriterionExpressionField | RefCriterionItem;
146
- export declare type RefCriterionItem = {
147
- value: string | number | null;
148
- };
149
- export declare type FieldCriterionItem = {
150
- field: string;
151
- };
152
- export declare type CriterionItem = string | NamedCriterion | MasterNamedCriterion | FieldsCriterion | MasterFieldsCriterion;
153
- export declare type CriterionGroup = (CriterionItem | CriterionItem[])[];
154
- export declare type EqualCriterionExpression = {
155
- equal: [field: CriterionExpressionField, value: CriterionExpressionValue] | [entityName: string, fieldName: CriterionExpressionField, equalValue: CriterionExpressionValue];
156
- };
157
- export declare type IncludeCriterionExpression = {
158
- include: [entityName: string, filters: Record<CriterionExpressionField, CriterionExpressionValue>];
159
- };
160
- export {};
1
+ export interface IRequestUpdateResult {
2
+ catalogId: string;
3
+ id: number;
4
+ utcModified: UtcDate;
5
+ version: number;
6
+ }
7
+ export declare type UtcDate = string;
8
+ export interface IRequestCreateResult {
9
+ catalogId: string;
10
+ id: number;
11
+ date: string;
12
+ version: number;
13
+ }
14
+ export interface IRequestCountResult {
15
+ count: number;
16
+ }
17
+ export interface INotificationConfig {
18
+ label: string;
19
+ icon: string;
20
+ entity: string;
21
+ mark?: string;
22
+ link?: string;
23
+ }
24
+ export interface IHistoryResponse {
25
+ entity: string;
26
+ primaryKey: string;
27
+ history: IHistoryItemResponse[];
28
+ }
29
+ export interface IHistoryItemResponse {
30
+ version: number;
31
+ utcCreated: string;
32
+ action: "Insert" | "Update";
33
+ machineName: string;
34
+ changes: IHistoryChanges[] | null;
35
+ currentValues: IHistoryCurrentValues[];
36
+ }
37
+ export interface IHistoryChanges {
38
+ fieldName: string;
39
+ newValue: string;
40
+ originalValue: string;
41
+ }
42
+ export interface IHistoryCurrentValues {
43
+ fieldName: string;
44
+ value: string;
45
+ }
46
+ export interface IUser {
47
+ FullName: string;
48
+ UserName: string;
49
+ }
50
+ export interface INavigationRecord {
51
+ label: string;
52
+ icon: string;
53
+ link: string;
54
+ children: INavigationRecord[];
55
+ hash: string;
56
+ }
57
+ /**
58
+ * @deprecated Please, use IMetadata
59
+ */
60
+ export interface Metadata {
61
+ auditedCreation: boolean;
62
+ auditedModification: boolean;
63
+ baseEntity: string;
64
+ belongsCatalog: boolean;
65
+ canCreate: boolean;
66
+ canDelete: boolean;
67
+ canNotRestrict: boolean;
68
+ canRead: boolean;
69
+ canRestore: boolean;
70
+ canUpdate: boolean;
71
+ canUse: boolean;
72
+ description: string;
73
+ entitySet: string;
74
+ hasSimplePrimaryKey: boolean;
75
+ name: string;
76
+ named: boolean;
77
+ numbered: boolean;
78
+ ordered: boolean;
79
+ primaryKey: string[];
80
+ softlyDeletion: boolean;
81
+ softlyRecoverable: boolean;
82
+ type: "Ordinary";
83
+ versioned: boolean;
84
+ fields: MetadataField[];
85
+ fieldsByName: {
86
+ [name: string]: MetadataField;
87
+ };
88
+ }
89
+ export interface MetadataField {
90
+ aggregatedEntity: null | string;
91
+ canGet: boolean;
92
+ canSet: boolean;
93
+ canSetForEdit: boolean;
94
+ canSetForNew: boolean;
95
+ dataType: "Entity" | "Integer" | "Guid" | "String" | "Decimal" | "DateTime" | "List";
96
+ description: boolean;
97
+ entityEnum: null | string;
98
+ foreignEntityPrimaryKeyField: null | string;
99
+ isEmbedded: boolean;
100
+ isForeignKey: boolean;
101
+ isPrimaryKey: boolean;
102
+ name: string;
103
+ ownedLocalField: null | string;
104
+ ownerEntity: string;
105
+ presentationType: string;
106
+ referencedEntity: string | null;
107
+ releatedLocalField: null | string;
108
+ required: boolean;
109
+ type: "Reference" | "ValueType" | "Aggregate" | "Owned";
110
+ valueUnit: null | string;
111
+ }
112
+ interface ReferenceMetadataField {
113
+ /**
114
+ * Если переданное поле[1] является ссылкой на другую сущность, то значение referencedPrimaryFieldName равно
115
+ * названию поля, которое является первичным ключом для сущности. Переданное поле [1] указывает именно на эту
116
+ * сущность.
117
+ */
118
+ primaryFieldNameOfReferencedEntity: string;
119
+ }
120
+ export declare type ExtendedMetadataField = MetadataField & Partial<ReferenceMetadataField>;
121
+ export declare type MetadataResponse = Metadata & {
122
+ _filter: string;
123
+ metadataByEntityId?: number;
124
+ };
125
+ export interface NamedCriterion {
126
+ name: string;
127
+ "expression"?: NamedCriterionExpression;
128
+ }
129
+ export declare type NamedCriterionExpression = EqualCriterionExpression | IncludeCriterionExpression;
130
+ export declare type MasterNamedCriterion = NamedCriterion & MasterEntityCriterion;
131
+ export interface FieldsCriterion {
132
+ fields: string[];
133
+ }
134
+ export declare type MasterFieldsCriterion = FieldsCriterion & MasterEntityCriterion;
135
+ export interface MasterEntityCriterion {
136
+ masterEntity: string;
137
+ }
138
+ /**
139
+ * @description Тип используется для указателя в expression на поля в сущности.
140
+ */
141
+ export declare type CriterionExpressionField = string;
142
+ /**
143
+ * @description Тип используется для значения в выражениях критериев.
144
+ */
145
+ export declare type CriterionExpressionValue = CriterionExpressionField | RefCriterionItem;
146
+ export declare type RefCriterionItem = {
147
+ value: string | number | null;
148
+ };
149
+ export declare type FieldCriterionItem = {
150
+ field: string;
151
+ };
152
+ export declare type CriterionItem = string | NamedCriterion | MasterNamedCriterion | FieldsCriterion | MasterFieldsCriterion;
153
+ export declare type CriterionGroup = (CriterionItem | CriterionItem[])[];
154
+ export declare type EqualCriterionExpression = {
155
+ equal: [field: CriterionExpressionField, value: CriterionExpressionValue] | [entityName: string, fieldName: CriterionExpressionField, equalValue: CriterionExpressionValue];
156
+ };
157
+ export declare type IncludeCriterionExpression = {
158
+ include: [entityName: string, filters: Record<CriterionExpressionField, CriterionExpressionValue>];
159
+ };
160
+ export {};